- 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
Admin
That is really funny... I totally didn't catch that...
Admin
Perfect. That should compile and run fine. Now go away and look up the quadratic formula, you prats.
Admin
Or chomping on Viagra at some bar in Silicon Valley picking up women.
Admin
Admin
This is actually fairly spot-on, when speaking generally.
If there exists some third-party solution that exactly solves your problem, then they can be quite useful - assuming that the legal department okays the licensing agreement, of course.
But it's not often the case that you can find some library out there that really does what you want. Too many times people want to pull in third-party libraries that offer nearly what they want. That leads to nothing but headaches - you spend lots of time creating workarounds to try and mimic the behavior you really want. On long-term projects, the time spent on workarounds often ends up being longer than the time it would have taken to just write what you needed in the first place.
People also tend to pull in large third-party libraries for tiny bits and pieces (or libraries with massive, overly-complicated dependency chains), leading to application bloat that may cause problems if you need to maintain a small footprint.
Then of course there are the times when the third-party library is distributed under some licensing agreement that is likely to cause conflict with the legal department; it would be better to check that upfront and consider the tradeoffs in time spent writing the functionality yourself versus time spent battling with legal.
Admin
Doesn't that look good?
Admin
I'm sorry, the edit button is located in a third-party library that our standard practices forbid us to use.
Admin
Admin
Admin
Of course not. On the contrary, I'm saying that you can get rid of all of the operators, and your code still will look pretty readable.
Admin
The real WTF is that Tennyson didn't just copy the Money class from the GSESF into his code (not into another library - that would violate company policy) and fix it there himself. Surely every class in all code isn't put into the GSESF, and if they are then with the high volume of new additions surely he could slip it in under a different name.
Captcha: causa - the first step toward causamex, the united North American government.
Admin
Just out of curiosity, in a money class with an autoincrement (++) defined, would it autoincrement by a penny, a dollar, or something else?
I suspect that if the Federal government did it, it would autoincrement by a billion while an autodecrement would also increment by a billion.
Admin
Damn, I thought you wrote "equally readable", not "really readable". I'm saying that LISP code is quite easy to understand.
Admin
Admin
So, based on what I'm reading here, it's easier to write something new than to add small amounts of functionality to an almost complete solution?
That, sir, is poppycock!
If one buys shahi paneer but finds it too bland, does one throw out precious food and make his own recipe from scat? No. Instead he just adds some bhut jolokia and he is very happy customer.
Admin
If I'd been asked to give a performance review, I would have said, "Continuing to employ this person as Architect introduces unnecessary risk."
Admin
The guys who wrote the specs for MathML probably thought the same
Admin
Not if I have to release my "small amounts of functionality" to the whole world to see and my business is making money off of the software I write.
The GPL can go fuck itself.
Admin
Sadly, no. :-( I have just been enlightened. IHBT
Admin
Admin
If he really wanted to be THAT independent from frameworks, he shouldn't use .NET in the first place.
Admin
What he should have said is that "not overloading the == operator introduces unecessary risk into the construction of the application" sigh kids these days.
Admin
Admin
No, no, you need to use the proper factory classes!
b.multiply(b).subtract((int)new IntegerFactoryFactoryImpl(AbstractIntegerFactoryFactory.DEFAULT_PARAMETERS).createFactory().create("4", NumericBase.StandardDecimal).multiply(a.multiply(b)))
(I'd link to the relevant bash.org quote, but bash seems to be blocked at work :()
Admin
Admin
Truly amazing logic.
Standards is a subject that I've spent some time thinking about at a meta level.
I can agree with "least common denominator", by itself. After all, most standards wind up LCD because they wind up describing those requirements that must exist, as opposed to should exist.
But really, what standards are mostly about is consensus; as in, "We agree this is the way things (must/should) be done."
He's just said, "Damn the consensus; I'm doing my own thing." Because it's better? No, because he's "too flaming smart" to be part of a consensus; he decided not to overload ==, and that's that.
So now everyone else that uses the class must pay in errors and code faults because he's too smart to be part of the tribe.
Admin
Admin
Admin
Admin
BTW-Threats of violence over the internet doesn't scare anybody. Ever.
Admin
Admin
TRWTF is C# and it's default implementation of ==. Go VB.NET!!! :D
Admin
Admin
Admin
Dumbas, Have you herd of Utaranchal or Himlays?
Admin
I am saying risk is necesary for progres of mankind and human civlisaton. All of you, who is humans, agree with me.
Admin
Fake Nagesh is 12, but on other hand, I am much more older.
Admin
Admin
Sorry, no humans here; only sock puppets.
Admin
Possibly caused by some component having gone marginal, and excess electric charge having built up on the casing caused it to drag that component just into the "fail" category. Laying on of hands dissipated that charge. Computer started working. Magic.
Admin
Admin
Indeed. A while back, our company got sick of dealing with a particular closed-source image library, that when we reported bugs to them, they refused to fix in a timely manner or possibly at all. So the word from on high was, switch to this other closed-source image library, that did roughly all the same things, just in a different way, so it required restructuring basically everything to do with generating or modifying images (which was a lot.)
Thankfully, my direct boss was smart enough to suggest that instead of just directly redoing everything for the new image library, we refactor it so as much as possible would go through an abstract library wrapper, so if we ever changed libraries again, we'd mostly just need to rewrite the wrapper (and keep a version of the wrapper for the old library, too). Because, sure enough, after I finished modifying everything to use the new image library... word from a different on-high was there were legal complications (our product could be considered to expose their API, in some twisted legal sense, for which they wanted a bajillion dollars.)
So after all that, someone ended up tasked with writing our own internal image library, which scared me a bit, but it turned out entirely successful. And now if there are bugs in the image library, I can tell a coworker to fix them, instead of a faceless 3rd party company that couldn't care less. Win!
Of course, unlike this story, said coworker is open to modifying the API if I have a good reason for considering the current one inadequate. He complains about it all day first, as is his right, but he still fixes it.
Admin
http://catb.org/jargon/html/magic-story.html
Admin
Seriously he thinks overloading an operator will cause less confusion? Most people will typically expect an operator to do its language specified behavior unless they have been specifically informed otherwise.
I'm personally of the opinion that operator overloading is a dark art that should be practiced only on operators that are otherwise illegal on your given type. If you want to call a method, do so explicitly.
Admin
One or more authors spent months (or years!) writing 98% of what you need. You were able to download their hard work, complete with source code, for free.
And, you think it's somehow unfair that you can't redistribute THEIR WORK (plus your 2%) without providing the source to the 2%?
Contact the original authors. They can relicense it to you without the restrictions of the GPL. If you make them a fair offer (say, 98% of the profits, considering they wrote 98% of the code), they might take you up on it.
Admin
That would be called COBOL 68.
Admin
(Some of this stuff is dangerously close to what I actually spend my days writing. Enterprise service buses are not for the faint-of-heart. Or the sane, frankly.)
Admin
Actually I pretty particular about my food containing no scat at all.
Admin
GPL means that when you distribute your software, you have to show your code. If you're not distributing your software, no one gives a fuck. Chances are this was an internal application never seen by the outside world.
Chances are that the Architect's fear of open-source is unfounded and silly.