|
Pardot posted:http://www.stanford.edu/group/wonglab/jiangh/seqmap/ Grad student code fffffffffffffff goddamn I'm getting PTSD One of the big reasons why I left the biological sciences was the code was universally terrible. Outstandingly so. Like 'well that's brilliant that it works, but you shouldn't be doing it'. The tool authors didn't know what the gently caress, refused to listen to anyone who had actual experience in the 'real world' (me), and I couldn't talk to the PIs because they're like 'it works who gives a gently caress'. Which left people like me trying to glue this wretched poo poo together was left holding the bag. And EVERY SINGLE loving UTILITY HAS ITS OWN TEXT BASED TREE FILE FORMAT. I wrote SO MANY GODDAMN STATE MACHINES PROCESSING lovely TEXT FORMATS I WAS IMPREGNATED BY RAGEL. R͔̠̹͖̲͕à̪̗̫g͔ḛ̫̺̬̞l̤̦̮̦̦̭ ̬̝͕͖͈̣̬͞h̞a̴̖̘̲̤͖s̶͉̼̤̠̠̤ ̶̱̣̫̮̟ḅ̖͚̭̲ȩ̩͈͚͚͍̘e̷̙͙̥̖̰͇n̜͖̪̰͟ͅ ̡̦̮̬͖̺̥m̖͔y҉͇ ̹̼̫͜o̟̤͎n͉l̦̺͈̖̫͉͕y̰̝̱̭͓ ̪̻͎͇f̗̠͈̼r̲͖͙i͓̲̞͉̯ͅe̜̣n͇͟d̼͍̩̕.͕̤̦͡ ͕R̷͚͉ạ̧̦̙g͙̪̰̖͉͔͇͜e̹̯͍l̰͚̜̣̮̖ ͎̼̼͙w͉i͖͖͙̳̦͚͝l̺̤̞͚ͅl͍̟̬̮̦͎̭͞ ͍̠̤͙̀d҉͎̬͙͉̖͇o͙͓̠̪͞ ̳̼̮̟͘me̸͔ ̡̲n҉o҉̮̘͇͉̞̭ h͍a̷̰̭̻̻ͅr̶͈͖͖̙̻m̫̪ͅ.̤ ̲͕L̰̥̥̳̣̻͘i̠̪̹͞v̼̫̭͖͈e̢̯̫͖̹̻͈͚ ̷t̛͎̳̝̙͉̲̰ḫ̞r̘̼̜̥̬̣o̼̠u͚̭̥͕̘̞͞ͅg͓̯̲̻h ͍̻̩t̼́h̳̪̠̥͞ͅȩ̫ ͚͇͚̼̀s̠̝͓̙͍̲ta̤̫̝̫̤̱̥͝t̹̱̲͉̳̯͔͢e̲͖s̬ ̥t̴͖͉̙̖̰o̡̗͔̫ th͚̟̻̤̩͞e͈͍ ̴X̫͘M̫͎̬͇̬̣L̻̩͉̖̼ ̴͈͎p̧̦̣r̤͕e̛̞͖̗͇̮̪p҉̜̫̭ro͍c͉̜ḙ̣͓̜͢s͎̳͖s̘͔̝̖o̝̭̞̺̝r̭.͉̬̮ͅ ̡͓̪̰Ŗ̠͚̗̖̤a̧ģ̯e̶̠̠͔̣̺̤̱l̜͖̭̙̪̹͎ ̶̤͚̮͎͎s̗̦̝͔̪͍͞h̠̼̼̫͢o͇͚͢ͅẃ̞̘̜̙̰̙s̫̭͖͙̻̩̺ ̴̥th̻̺̝̲̯ḙ̹̪̣̖ ̱b̤a̞͝b͈̗͍͉̕y̪͡ ̖̻̬̦̬̻t̵̠̲͍ͅr̘͍̩̮̜u͚̺t̰͍̹͚́h͜ ̜ṯ̶̻̞̖o̹͎̯̦͉̬ ̪̫͜t͓̝̺́ḩ̭̠͈̰̰͇e͈̲̘̗̯̠ͅ ͕͎e̺͓n̩̙͉d̰͚͍̟̙̮̻ ͍ọ̹̹̻́f̺ ̟m͙̰̙͍̞̼̖y͔ ͏̜̘̜p̴a͏̼̫d̯̘̻͟d҉̱ị̼͚̺̙ͅn͏ģ̭̼͔̣ ̥͓̬̪d̨̲͕̭̙u̘̳̳͝ḿ̦̩m̖͈̠y̸̠̮̯͙̹ͅ.̰̥͔̙̫͜ ̧͚͚͕̙I͕̙̺͍̗̹͠t͕͈ ̸̣͙b͢re͓̳̼̩a̱̖̹͠t̛̯̟̩̻h͈̺̖͓͡e͎̹͍͚s̘̟͘ͅ ̡̙̭͈ț̵̖̤̺̜̮h̬̜̺͇̗͡e̡̱̭͇̳̪ ̣̬̫̼͈p͇̠̟̘̫̞r̛͙̪̳̜e̶̠͚̞͈̖͉s̨̼͈̹̖͇̫e̤͕̱̝n҉̰͎̜̰̼̳̝ta̗͓̳̤̟̲ͅt̵̰͖̰ì͔o͢n̴͈̣,̜̭̪̫ ̀m̴͍͍̹̦͙̖̰o̰̩̻̰c̬͎̩͉͎͇͟ͅk̷̗ ͘u̦̱͈͇ͅp̳̹̲̹̠ ̫̗̣t̬̩̪͍̕h̖̻̩ḙ̷͕̻̗͍ ͓̘̩i͕̺̻̹̩̠̺n͙͢d̫̺e̜̮ͅn̵̠t͓̣̫ ̳͙̤̫̞̣͜ͅf̬̟o̼͍̣r͕̪̗̣͕̹͉ ͇̮͕̣͇͞ͅa̙̥͜l̺̼͍̤̳l̙͎ ҉y͏̘̣̘̞̭͉o̫̩̼͖̝̮̹͞u͍̙͞r͉̟̭̩͡s̨͔̻͕̳.̧̹̥͓͓͖
|
# ? Jun 15, 2011 18:46 |
|
|
# ? May 14, 2024 14:17 |
|
has this been posted? Found it on Reddit from 4chancode:
|
# ? Jun 15, 2011 19:07 |
|
Munkeymon posted:You found one of my current employer's sites, I guess? Well in that case I have access to your current employer's VCS
|
# ? Jun 15, 2011 19:15 |
|
Wheany posted:Well in that case I have access to your current employer's VCS Oh, my bad - you didn't mention any empty tables being used as spacers between the layout sub-tables, so probably not us.
|
# ? Jun 15, 2011 19:29 |
|
NotShadowStar posted:fffffffffffffff goddamn I'm getting PTSD I'm pretty sure this is all scientific programming. I work with some physicists who have an elaborate simulation application, written in Fortran, that doesn't use any Fortran numerical libraries.
|
# ? Jun 15, 2011 19:38 |
|
NotShadowStar posted:fffffffffffffff goddamn I'm getting PTSD
|
# ? Jun 15, 2011 19:44 |
|
Janin posted:yup
|
# ? Jun 15, 2011 20:16 |
|
NotShadowStar posted:One of the big reasons why I left the biological sciences was the code was universally terrible. Outstandingly so. Like 'well that's brilliant that it works, but you shouldn't be doing it'. The tool authors didn't know what the gently caress, refused to listen to anyone who had actual experience in the 'real world' (me), and I couldn't talk to the PIs because they're like 'it works who gives a gently caress'. Which left people like me trying to glue this wretched poo poo together was left holding the bag. GrumpyDoctor is right; this is all scientific programming. When I started to implement an algorithm for my bioinformatics research, my advisor told me: quote:I can tell you've worked in industry, since you want your implementation to be perfect. Don't worry about that. Make it work well enough, get results, publish the paper, and move on.
|
# ? Jun 15, 2011 22:00 |
|
Lysidas posted:The pressures that we're under in academia ("publish or perish") are guaranteed to produce horrible code that works just well enough to get results out of. Good luck to others who want to reproduce your work!
|
# ? Jun 15, 2011 22:27 |
|
This is compounded by the fact that most academics that aren't in CS or something closely related have little experience and no formal training in programming. So they learn just enough fortran/C/python to make something that works (or adapt existing code into something that works), get the results, and move on. In the parallel programming class that I TA, we often see researchers from other disciplines (physics and biology in particular) who are hoping to learn enough to parallelize their takes-days-to-run software and get some significant improvements. In most cases, they lack the fundamentals that are necessary to understand the course material; the rest often decide to just stick with what they have rather than completely redesigning the program (which is often what would be necessary).
|
# ? Jun 15, 2011 22:40 |
|
Lysidas posted:The pressures that we're under in academia ("publish or perish") are guaranteed to produce horrible code that works just well enough to get results out of. I saw a paper published before I left that had a home grown utility requirement of Python < 2.0. Also the idea of 'just get results out' was a fallacy because they keep going back to the same tools and pipelines but them just adding more poo poo to them. Thermopyle posted:Good luck to others who want to reproduce your work! I brought up this very point. Repeatedly. Without the exact homegrown pipelines chaining all of this horrible poo poo together it's impossible to reproduce with the data sets and all the massaging needed to get from one loving terrible tool to another. They essentially said Goddamnit I'm going to go zalgo again the more I talk about it.
|
# ? Jun 15, 2011 23:03 |
|
I get the impression that there are an awful lot of scientists out there who could really use a software engineer just attached to their groups to, well, actually engineer their software. I basically have that job, and I think it's the best thing ever.
|
# ? Jun 15, 2011 23:38 |
|
GrumpyDoctor posted:I get the impression that there are an awful lot of scientists out there who could really use a software engineer just attached to their groups to, well, actually engineer their software. I basically have that job, and I think it's the best thing ever. This does sound like a great job. I love science and software and helping people. I think I'll take your job, ok?
|
# ? Jun 16, 2011 00:53 |
|
suction posted:has this been posted? Found it on Reddit from 4chan
|
# ? Jun 16, 2011 00:53 |
|
GrumpyDoctor posted:I get the impression that there are an awful lot of scientists out there who could really use a software engineer just attached to their groups to, well, actually engineer their software. I basically have that job, and I think it's the best thing ever. There was an opening for this exact position at Argonne when I was looking... but the goddamn lab is impossible to get to in a reasonable time frame from where I live. I seriously considered moving.
|
# ? Jun 16, 2011 01:19 |
|
TRex EaterofCars posted:There was an opening for this exact position at Argonne when I was looking... but the goddamn lab is impossible to get to in a reasonable time frame from where I live. I seriously considered moving. Forget scientists. Be an embedded programmer with quants (scientists who want money) in finance and get paid $stupid.
|
# ? Jun 16, 2011 02:40 |
|
Indentation deliberately preserved:code:
code:
|
# ? Jun 16, 2011 15:00 |
|
Zombywuf posted:
Gotta love that.
|
# ? Jun 16, 2011 15:44 |
|
var LOG_OK = 1; Looks like "login ok" or "user logged in", right? WRONG! It's opposite day! if(!(username.length > 0 && username != "guest")){ LOG_OK = 0; } [.....] if(!LOG_OK){ showConfigLink(); } Why would you even?
|
# ? Jun 16, 2011 15:52 |
|
My boss just came into my office and told me he's putting using namespace std; in a header file I wrote because his textual parser for some swig whatever doesn't recognize std::string, just string.
|
# ? Jun 16, 2011 15:59 |
|
Lexical Unit posted:My boss just came into my office and told me he's putting using namespace std; in a header file I wrote because his textual parser for some swig whatever doesn't recognize std::string, just string. can you at least convince him to use using std::string;?
|
# ? Jun 16, 2011 17:10 |
|
TasteMyHouse posted:can you at least convince him to use using std::string;?
|
# ? Jun 16, 2011 17:21 |
|
Ignore the image macros in the thread on this patch: https://github.com/MrMEEE/bumblebee/commit/a047be85247755cdbe0acce6#diff-0 code:
I wonder how many people got their machines bricked by this clanger. duck monster fucked around with this message at 08:53 on Sep 8, 2022 |
# ? Jun 16, 2011 18:18 |
|
Wheany posted:var LOG_OK = 1; My favourite is a big chunk of code which made extensive use of a variable called $noRetries. It was about half an hour before I realised that this was intended to mean "number of retries", not "disable retries".
|
# ? Jun 16, 2011 18:21 |
|
duck monster posted:Ignore the retarded image macros in the thread on this patch: I don't know much about bash but doesn't this change fix the line of code which deletes /usr? Surely the change where that error was introduced would be more of a facepalm. EDIT: Here we go. qntm fucked around with this message at 18:35 on Jun 16, 2011 |
# ? Jun 16, 2011 18:28 |
|
qntm posted:I don't know much about bash but doesn't this change fix the line of code which deletes /usr? Surely the change where that error was introduced would be more of a facepalm.
|
# ? Jun 16, 2011 18:39 |
|
TasteMyHouse posted:can you at least convince him to use using std::string;?
|
# ? Jun 16, 2011 19:09 |
|
From memory:code:
|
# ? Jun 16, 2011 19:20 |
|
Zombywuf posted:There's also a similar core piece of code that splits strings on the regex ":::". I shaved 10% of the CPU usage off a page load by changing it to split on a fixed string delimiter. Are you me and having to split on ":::" due to the the god awful CascadingDropDown control from the AjaxToolkit by any chance? I just had to fix this up yesterday because we'd been using two regexes to parse out the SelectedValue from it. No idea why we weren't just doing a split on ":::".
|
# ? Jun 16, 2011 23:25 |
|
Found a bug in some inventory code today that was way, way old. It's bad programming, but it's bad because it expected PHP not to be quirky.code:
|
# ? Jun 17, 2011 04:35 |
|
NotShadowStar posted:fffffffffffffff goddamn I'm getting PTSD I literally have an entire directory of awful scripts i've written for parsing horrifying undocumented text formats from the 70s. gently caress structural biology software and everything related to it. Does the PDB file format specification count as a horror? ftp://ftp.wwpdb.org/pub/pdb/doc/format_descriptions/Format_v32_letter.pdf
|
# ? Jun 17, 2011 06:38 |
|
qntm posted:I don't know much about bash but doesn't this change fix the line of code which deletes /usr? Surely the change where that error was introduced would be more of a facepalm. Yeah thus the - + in the diff. But thats not really what I was pointing out. The fact that it was there in the first part. From memory Eve Online had a similar bug once that wiped out the BOOT.INI (or whatever its called) on everyones windows boxes.
|
# ? Jun 17, 2011 06:43 |
|
GrumpyDoctor posted:I'm pretty sure this is all scientific programming. I work with some physicists who have an elaborate simulation application, written in Fortran, that doesn't use any Fortran numerical libraries. Scientists are generally horrible coders. When that whole climategate frameup was going on, people where gasping on horror at some of the numerical processing code that was leaked. The funny thing was, I doubt there was an experienced fortran coder on the planet that would have even blinked at it. Its just what happens when you get a non programmer and put "ultramaths basic" in front of him. Its going to be awful. Interestingly enough some of the tightest code I've seen came from some biologist dudes I worked with at my old uni that where doing DNA sequencing stuff. Those guy could code up a loving storm.
|
# ? Jun 17, 2011 06:46 |
|
duck monster posted:Ignore the retarded image macros in the thread on this patch: Can't! I like this one:
|
# ? Jun 17, 2011 07:48 |
|
I saw something like this the other day:code:
|
# ? Jun 17, 2011 10:40 |
|
I wish Java had gotos, I had a parser that used a for-switch and they would have really helped there
|
# ? Jun 17, 2011 10:56 |
|
ahmini posted:I saw something like this the other day:
|
# ? Jun 17, 2011 11:25 |
|
Aleksei Vasiliev posted:I wish Java had gotos, I had a parser that used a for-switch and they would have really helped there http://www.java2s.com/Code/Java/Language-Basics/Javalabeledforloop.htm And...for-switch? Like this?
|
# ? Jun 17, 2011 12:07 |
|
Tamba posted:Java has labeled breaks: And yes but my case was justified and not bizarre like that thing. I haven't actually worked on it for awhile since I got bored with parsing binary->XML, but I'm pretty sure gotos would have helped me write cleaner code in that method.
|
# ? Jun 17, 2011 12:13 |
|
|
# ? May 14, 2024 14:17 |
|
Is there a language that allows fallthrough inside switch, but requires you to explicitly declare it? Like thiscode:
* break, fallthough, return, exit, probably others
|
# ? Jun 17, 2011 15:07 |