- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
That's why you have code reviews. If you have code reviews in place, something like this is never permitted to be checked in in the first place.
Admin
Unfortunately the function newhir.freeJob() returns the amount of free jobs...
Admin
One advantage is that objects are deallocated at precise times (exactly when the last use goes away), so you can rely on this for releasing non-object resources.
Admin
Any IDE that isn't shit will also be able to show you the documentation (or at least the signature and a one-line summary) of what the method does as you're typing it, so unless you turn that off or just don't read it because 'you already know everything', you should notice that it doesn't do what you thought it did. It's not the IDE that's the problem any more than emacs would be, it's the 'beingtoo lazy to read the easily accessible documentation' part that's the issue in both cases.
Admin
the true power of this function is hidden the way you use it. let's not forget it can turn a person into a rabbit which has the abilities of a rocket and explore new planets where it can then create a new project.
Admin
[quote user="TimC"] [/quote]
WFM in .au too. But then again, you do have to know when pressing the button will make a difference - no use pressing it while the door is still opening, because the microcontroller is still busy opening the door and will ignore you. [/quote]
Let me guess - works best if you wait until the door is just about to close, right?
Admin
Any programmer that isn't shit knows the classes they're using, because they take the time to read the documentation before they start writing code, and don't just import something that sounds likely and start pounding on the keys like a monkey hoping some Shakespeare will come out.
If you ignore the documentation before you start writing, why wouldn't you continue to do so while you're writing? I mean, an idiot stays stupid all day long, don't they?
Admin
Admin
newHire = null;
is all that is needed.
Admin
Given that it's two lines in a codebase of unspecified size, I wouldn't necessarily blame them for missing it on visual inspection, but I would blame them for not using a profiler...
Admin
I like my willy running free.
Admin
TRWTF is not GCing the runny variable.
Admin
FTFY
Admin
TRWTF is that's redundant.
Admin
You'd see something more like that in C# .NET
Admin
Hello Hello Hello
Admin
261