|
||||
PC + lightning = http://arp242.net/tmp/itmaybebroken.jpg
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
Quote:
|
|
||||
True marcolino, lal.ebay.com or b4.ebay.com would have been a better fit.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
b4 ... That is a never a good fit. anywhere. At any time. For any reason. I wish I could just overwrite that part of my memory with something else ... Anything else ... even Britney Spear songs will do.
Lal, yeah, guess that would be ok...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
||||
Well, there was about 4 androids with names: Data, Lore, Lal, and B4. Not counting TOS and occasional oddities. I've never met a lady server but lal.ebay.com sure sounds nicer than gort.ebay.com - and I'm partial to the original to the (original) film
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
My ISP used to name their servers after star wars characters, eventually those aliases were dropped and the world rejoiced.
|
|
||||
This is so funny.
http://www.youtube.com/watch?v=ataw7OLSvsU "It may take a few seconds, but it will happen!" Also features Tux as a minor role (As the wrath of God? ).
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
||||
The sort of code I have to deal with at work ATM (*NOT* written by me, from the previous guy).
How can it be physically possible to write this? (Yes, this is one "line" of code). Code:
$queryInsert = "INSERT INTO leverancier_artikel(leverancier_id,leverancier_artikelnr,fabrikant_artikelnr,merk,omschrijving,prijs,prijs_valuta,voorraad,artikel_groep,ean,status,timestamp) VALUES($leverancier_id,\"".$leverancier_artikelnr."\",\"".$fabrikant_artikelnr."\",\"".$merk."\",\"".$omschrijving."\",\"".$prijs."\",\"".$prijs_valuta."\",\"".$voorraad."\",\"".$artikel_groep."\",\"".$ean."\",\"".$status."\",$timestamp)";
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
||||
Don't make me post ASP.NET code!!
Especially stuff like 30 to 40 lines of inline HTML use to create an email message. Which of course is repeated in 3 different function because one email message subject is approved, the other is rejected and the last is approved with modification.
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick |
|
||||
I really, really don't understand how people can write complete crap like that
I mean, when I'm in a hurry or have a deadline or whatever I certainly write less-than-perfect code, and I am fully aware of this. Sometimes it's just a quality vs. quantity question. ... But in this case, I know there was plenty of time ... In fact, I know that doing this the "proper way" actually takes less time and is much easier to maintain (This code interacts with 3rd party supplies. So maintenance is expected!). I mean ... Just look at the complete quote and backslash screwup! wtf is this shit? How would any human being EVER write ANYTHING like that ?! Is this some attempt at obfuscated code? *sigh* The really funny thing is, the previous guy always complained about how bad the code the guys before him wrote was. But in all honesty, there is little difference ...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
||||
The thing the irritates me the most is the woman that wrote this code came in as a big shoot, ms certified and all that. We had a two week code review before she left and I asked her specifically why she wrote this function 3 times and the only difference I could see was the subject. Her answer was "I don't know, that is how I got it to work." After that, I didn't ask anymore questions.
Now after dealing with this code for a month it is even worse that I thought. Such as functions that have an object as the parameter and the first thing the function does is "query" the database using the object to retrieve the object, for example: Code:
private void CreateWorkItem(string request_status, Employee requestor, Employee approver, DS_Request req) { DS_Request ds_request = _request.GetDSRequest(req.request_id); .... }
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick |
|
||||
Wow, that sounds so familiar. I'm more or less in the same situation; The previous guy was hired especially for this job, university degree and whatnot. Worked for half a year, and then left. I left my old (crap-ish) job at the same company took over his.
At least your predecessor used functions I think the first two weeks I *only* did code refactoring. There was no generic API for communicating with our Administration software for example, everything was just inline MySQL queries and such. Making "GetArticleByNum()" functions and such really isn't that hard. There was *exactly* one function: Find(), which is just a wrapper around strpos() which returned True or False (... And it is even a stupid function, using === would accomplish the same). This was our *entire* API ... Even the MySQL credentials were just in a file which was included() ... Note that there wasn't *one* file, but this file was copied about 10 times to various locations ... To make things worse: We only have one guy doing programming for in-house tools and such, so proper documentation and proper code is *even more* important because if "that one guy" leaves, all knowledge leaves with him. Quote:
.. I prefer to keep things KISS though whenever reasonably possible ... But I can see the value in these tools though ... Assuming they are used properly though
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
||||
I guess those tools can be useful in a simple db scheme. My problem with them is once you get beyond simple. Such as dealing with highly normalized db were getting something like a persons name, address and phone could possible take querying 4 or more tables. Or things like queries across different db or even linked servers.
Anyway to get some what back "On Topic" here is an example of the only comments in her code, Code:
/// <summary> /// There are no comments for AudienceSet in the schema. /// </summary> public global::System.Data.Objects.ObjectQuery<Audience> AudienceSet
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick |
|
||||
haha, is it just me or do some people need to vent some frustration haha.
I'm about halfway through rewriting most of the existing stuff. After that it's all *PERFECT* code and a lot less frustration
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
||||
Quote:
Unless that is encoded in baby talk instead of a real spoken language, I don't see what's so funny about it. I've seen worse, up to and including gobs of inlined multi-language code just to fetch a non breaking space out of a database. That's when I took a break. The intelligence I see out of most "Educated" people I've crossed codes with, makes me seriously doubt the virtue of a degree related to programming.... or that birth control is working.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Check this out (funny contest). | fbsduser | Off-Topic | 6 | 4th March 2009 10:48 PM |
Funny network behaviour :) | PatrickBaer | General software and network | 5 | 9th October 2008 09:47 AM |
Funny things in /usr/share/misc | ivanatora | FreeBSD General | 4 | 10th August 2008 02:13 PM |