And what about booleans? They only need a single bit!
Anketam
@Anketam
Best posts made by Anketam
-
RE: Old Computer Challenge
@DOA said:
DOA's Law: The age of the oldest hardware you own is proportional to the amount of time that has passed since you last moved.
You need more than DOA's Law. You need an of clause to go with it. I recommend DOA's Law of Old Hardware until you can come up with a cheecky or clever name for the law.There, my legacy is secure.
-
RE: Yet another sleep
Hmm... depending on the language, there should be a class that lets you update the system time. So what you can do, is if you get a message that is later than your system time, update your system's time to be 1 millisecond ahead of it. So you now have a ninja way of syncing the clocks and a perfect wtf surprise for the next programmer that inherits your code after you leave.
-
RE: Old Computer Challenge
@DOA said:
@Anketam said:
Well dhromed should have no problem now coming up with a creative name for your law.You need more than DOA's Law. You need an of clause to go with it. I recommend DOA's Law of Old Hardware until you can come up with a cheecky or clever name for the law.
I'm a software developer, you expect me to come up with a good name for anything?@db2 said:Funny enough, I just moved three years ago, but I've still got the Vic-20 my family owned way back in 1984 or so.
Keep ruining it with your edge case and I'll change it to "The age of the oldest hardware you own is proportional to the amount of time that has passed since you last moved divided by the size of your penis". -
RE: Lotus Notes: Spearheading the social/mobile web revolution!
@FrostCat said:
@blakeyrat said:
As some one who never used Lotus Notes I had to look up what you were refering to, and luckily Code Horror had a wonderful topic on it, for those interested:@Cassidy said:
OMG there's 5 more pages of this? Well, apologies if someone else already brought this up, but that's not true: the heiroglyphics it used to display when you typed in your password were mildly amusing the first time.Okay, so Notes is universally reviled. Does it have any redeeming features? Other than those that are.. erm.. found in other products?
No.http://www.codinghorror.com/blog/2008/02/the-dramatic-password-reveal.html
All I could think when reading it was wtf?!
-
RE: I Hate I Hate Lotus Notes Helpdesk
Outlook handles attempts at multiline subject lines neatly. You hit enter in the subject line and boom it moves the cursor to the body. The whole idea of allowing multiple lines in the subject line just contradicts its name.
-
RE: Tell me if this is acceptable or if I'm overly sensitive
Workers pulling pranks on fellow workers and leaders is acceptable under the correct culture
Leaders should never pull pranks on their workers.
My company we are a very serious company, but we have a few characters who loved to do pranks. There was one ongoing prank on the test team, where if you left your computer unlocked and unattended a fellow tester would send an email from your computer to the test team saying: "Home made pizza in the lab!" It was a very good prank since it had the added benefit of encouraging people to lock their computers which complies with corporate policy.
One minor prank was done on one of the team leads, who is a hunt and peck typer, and they switched the 'm and 'n' keys around on his keyboard. Took him 30 minutes to figure out what was wrong.
This other prank occured before I started working, one of our managers was on vacation for a week and had a small office. Her team decided to fill her office with balloons. Once they filled it as much as they could they closed the door (which opened into the office), and started to fill it up the rest of the way by lifting the ceiling tiles and pushing the balloons over the wall. When the manager got in she had a lot of trouble even opening the door to her office, and once she finally got it open enough she was greeted by an avalanch of balloons.
Latest posts made by Anketam
-
RE: The DBA is dead; Long Live the DBA
Snoofle,
Once everything calms down you will have to tell us what the long term ramifications are.
-
RE: PHP Case WTF
Impressive, I did not even know you could do that. Once I think I have seen the level of crazy stuff people can do with PHP, someone comes along and one ups it.
-
RE: Hit with the stupid branch...
@Cassidy said:
@ubersoldat said:
I was not taught anything in college about version control, bug tracking, or any other CM related area. Luckily for me my first program was a rather mature program that taught me all these things. This university also had database classes as optional and not required for a CS degree.This is one of the topics which I was never taught in college, which struck me as a rather very bad thing.
Ditto, but I think my college days preceeded code versioning systems.
I've since been shown how to branch (but not told why and when I should do so) and how to lock for checkout plus unlock when committing... but not how to merge.
Then again, I'm the only user of the CVS I currently use, so that's less of an issue.
-
RE: Hit with the stupid branch...
Trust me, don't under estimate people's ability to mess up branching. I have had to deal with some seriously messed up branching.
-
RE: The Intern
@nic said:
I'm demonstrating my technical ignorance, but as someone who has just graduated and have just noticed myself writing nearly exactly that above code style, what should I be doing instead? I have a list of variables that I need to access from other classes. So I've just been setting the variables as 'public static final VAR' and accessing them with CLASSNAME.VAR. What is a better way to do this? Or, alternatively, should I just stop trying to use globals and stick with locals and calling methods.
Depends.If the variable is associated with an object/class then it should be inside that class and thus not static (unless it is a constant). If you seem to have a lot of variables that are not associated with any defined class, then you need to ask yourself if you are missing classes. As for public, protected, and private it comes down to what should be allowed access to the variable. You should take advantage of get and set functions (how they are done varies by language, and some languages have special support to make them slicker). In my case I noticed that in my classes that variables used for storing data tend to be public while variables used for functionality tend to be private.
Note that exceptions to this do apply.
-
RE: A glorified launcher... for $69.99?
I hope that the 'deal of the day' was for 95% off.
-
RE: I just installed Windows 8 (2013 edition)
I am personally holding off any judgement for or against Windows 8 until I use it for myself, which I have no idea when that will occur.
-
RE: An incident
@Qwerty said:
@Weng said:
Great quote, I am so going to have to make this my sig.Apparently my grip on reality is too tight.
Yep, I've seen that one before. Mostly when talking to HR. I don't even get emails from Sales. -
RE: An incident
@Weng said:
Actually, it's really delicious. We made more money with the fuckup than we would have without - the only thing we lost is face with the client because they had to take a compliance hit.
I hate it when they base SLAs on best case scenarios and not the normal case scenario. But can't be as bad as my current program which has several monthly SLAs that have 100% targets. Needless to say in the 4 years this program has been around it has not once made them.You see, the cause was ENTIRELY on them changing the file. What we produced isn't what was specified, but there was no specification for handling the "there are precisely zero eligible records" edge case because the situation is completely nonsensical (effectively, these books we're producing are specialized phone directories. Having a specification for handling this scenario would be like writing a specification for "there are no <thing in phone directory> in all of North America." Technically possible, but if it were true, our customer wouldn't exist.
As such, they were charged for the entire first production run, were billed for everybody's time to research and recover from the problem, had to give us a pass on the missed SLAs while they were fixing it and they have to pay for the second production run as well. Between reproduction costs, saved SLA penalties (we were going to miss SLAs anyway - we ALWAYS miss SLAs because this project is terrible and sales sold an SLA that's only slightly longer than the best-case production time) and charged resource time, this singular incident paid my annual salary and the PM's salary.
A lesser person would spin it as "I found a moneymaking opportunity for the company" on their performance review.
Also loved the story. I was laughing over how stereotypical everyone was in the situation.
-
RE: The Skyrim Mod Model
@blakeyrat said:
Another bitch about modding: every comment I get on Workshop is like "I like your mod but instead of what it does it should do X, Y, and Z. I like it but I'd like it better if it did X, Y and Z."
Answer: "Yes"And I always reply, "if you want to make your own mod based on mine, feel free. I'll even give you the source files."
And they always reply, "nah I'm no good at that stuff."
Do other creative endeavors get that, or is it only mods? "Look, I liked Star Trek, but I think it would be better if instead of a spaceship it's in a submarine and Klingons should be blue and act different."
It is great when the author (regardless of the medium) listens to a suggestion that 'everyone' wants, and then they start complaining about the change.