- 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
Your flight controllers are programmed in a dynamically typed language which in it's original implementation was interpreted?
And even then sanitizing 100000 telephone numbers with a regular expression sounds very possible to be performed in under a minute on todays processors (at least when the regexp is compiled to a state-machine).
Admin
Admin
Well it's been fun but we're obviously done here. Good luck in your office job, you clearly enjoy the meagre standards it impresses upon you and I suppose I can respect that. I can't agree with it, but I can respect it.
Admin
Coming from an instrumentation background, where sampling rates are measured in millions of samples per second, his flight controllers sound quite sluggish. Of course, we separated hardware interface from the software controlling it as much as possible.
Admin
Admin
Thanks for the well wishes anyhow.
Admin
Admin
I'm calling you arrogant because you assumed that since I'm disagreeing with you on optimizing something that doesn't need it, my standards must be low. My point from the beginning has been about knowing when to optimize. Sometimes it can be a good thing to use a less-optimized (not least-optimized) approach, because it may be cheaper (not just money, but time); it depends on the situation.
You don't deal with such situations, and that's fine. But you did originally suggest writing more code (than a simple regex) to solve the same problem only slightly-more efficiently when such optimization (and subsequent testing and maintenance) was unnecessary. That doesn't make you a better engineer, in fact quite the opposite.
Blah blah bullshit blah. You're not very convincing; I hear the same crap from contractors. Others don't pursue the same opportunities as you, so you assume it means you're naturally better at it. Sometimes it's not a difference of skill-level; sometimes it's a difference of personal preference (in particular, that of lifestyle and business domain).Admin
Let's not even mention the fact that "Anonymous" is single-handedly producing this error-free super code. I'm sure his company must be compensating him well for all the money they're saving on testers and peers to review his code. It's especially lucky for them, because it sounds as though he's peerless.
Admin
Unless you're using advanced mathematics in your work, such as solving fluid dynamics problems or some such, you have probably overestimated your exceptionalism.
Admin
Dunning–Kruger effect anyone?
Admin
Regardless of what you are paid to do, the fact that you cannot grasp such a simple concept as 'different tools for different needs' suggests that perhaps you may not progress much further than mid-level developer.
I'd suggest that you look around at what other high performance devs are achieving and you'll probably feel somewhat embarrassed with your 100,000/min.
Admin
Yes, the real WTF is in the requirements.
Stripping out '+' for instance will completely break some international numbers. I've seen a lot of websites get this wrong.
Admin
TRWTF is that it should be a function, for code reuse.
...in The Enterprise Library. Required use.
Admin
homephone = homephone.replace(/\D/g,""); //js code
The comment line does make me wonder if the language isn't javascript or whether the developer is still learning how to properly add comments.
captcha: validus - Greek hero renowned for form validation
Admin
TRWTF are languages that do not pre-compile regexes - in which the resulting code would just walk the string and check each char for being a digit. Linear complexity results.
Admin
So totally, TOTALLY, unnecessary. All of those characters could have been removed instantly by a) bungee jumping b) sky diving c) sex d) ride in a jet aircraft e) night at a fair ground f) anything exciting enough to consume that many characters in one go. Why do you sit and scratch your ass instead? Really.
Admin
So he was paid for each function call then :-D
Admin
lol
so what about special characters? :)