- 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
How, dare I ask, does he come by this information?
Admin
That makes it even worse! Not only is this an application for controlling a nuclear reactor, it's doing it illegally!
And who's to say it's not code for a commercial reactor somewhere? Maybe the contractor decided not to waste money going offshore (having read enough flame wars on TDWTF to learn that this is contentious) ... and instead went to a university to get it done even more cheaply? Electric power doesn't pay for itself, you know ...
Admin
H and V could be "horizontal" and "vertical", I suppose.
Good job. I nearly did this exercise myself.
Admin
A variable should not exist outside of the scope where it is used. (Inside loops, ifs and whatever else)... It adds confusion to the code, and in maintenance the risk of using variables that should be left alone increases.
Admin
Rod.... heheheh.
Admin
Yeah, my first job out of college was like this. The application they had me work on had a Java class called 'ConstantsAndGlobals.java'. This class had 4000 (yes, that's four thousand) lines of variables that were used in various places in the application.
Admin
Hey, me too!
Admin
And they're perfectly safe - they only emit model radiation.
TRWTF is not only a university discriminating based on where you went to school (makes me think that they need to hire their own alumni just to keep their post-grad employment numbers up), but that they went back afterwards to hire a non-grad - that's gotta sting a little.
Admin
I think they already know. And if they didn't, the inner workings of your nuclear reactors are on Wikipedia.
Admin
I came here to make sure someone made this.
Admin
In addition, if a variable is intended to be a field of the class it should be declared with an access modifier, and unless you've got a damned good reason that should be "private". (two good reasons would be inheritance and constants, neither of which apply here)
Admin
Rods in most reactors are operated in banks (groups) so have a single rod control is fairly common.
Tc would typically be the inlet water temperature of the reactor. This is important as it has a direct impact on reactor power, moderating fast neutrons to thermal neutrons.
SG is a steam generator in a primary/secondary reactor configuration. Water in one side steam out the other.
Admin
Aargh! This is getting even worse! Not only did the contractors designing this application for controlling a nuclear reactor, let's not forget, not only were they too cost-cutting to even go offshore but couldn't even be bothered to go to a university whose alumni were worth their salt as programmers!
Admin
Wouldn't this be "Representative Line?"
Admin
Given that the VA is primarily a medical undertaking, my guess would be to produce the crazy isotopes they need for things like PET scans radiation treatments and things like that. Or performing bizarre experiments on injured veterans for the sinister purpose of ushering in the Zombie Apocalypse and/or the New World Order.
Admin
Having worked for a "prestigious" ivy-league university as a non-alumni, I know what it's like. You're never going to be on the same job track as alumni coworkers, and even someone nearly incompetent will get raises or promotions when non-alums don't. Also, I think more management decisions are made on the golf course than on site. I managed to succeed only because I was working on relatively new and untested technology (at the time) that wasn't yet mainstream. Thank goodness I got out of there before the university's endowments and investments disappeared with Bernie Madoff.
Admin
No, you probably didn't get promoted because you didn't know that the singular of "alumni" is "alumnus".
Admin
Damn, you are right. How could we all have missed that?
Admin
Ah, reminds me of the good old days sitting next to the classroom radiator, coding on the Ti-92! It would store programs directly in plain Basic code, and memory was scarce (300kB available on the first one I had), so whenever I felt one of my programs was finished, I'd change all the variable names to a1, a2... Ugly code it was!
Admin
True. Senior moms are really the biggest problem facing us today. Also, old people having sex is just icky.
Admin
Admin
Actually, I do, but I've found this is an excellent way to out those incompetent alumni who'd rather argue about latin grammar than content. Congratulations!
Admin
Admin
"Create variables!"
"Captain, create which variables?"
"ALL OF THEM!"
Admin
PLEASE MAKE IT A FEATURED COMMENT!
Admin
Good call.
Admin
Wonderful! I now know how American Zionist nuclear reactor works because of this article! And it resistant to StuxNet! I take secrets back to Iran.
Admin
This is the most sensible thing I've read yet on this site. Not that there's a lot of competition on that front...
Admin
p.s. the singular of alumni is totally alumni. Why? Because English isn't Latin. We anglicize foreign words we borrow all the time, there's nothing wrong with that.
Admin
well, i'm getting this cool 3D mushroom cloud thing if i cross my eyes slightly...
Admin
Admin
And c. no grad students to be found
(And to be fair: d. the reactor develops about as much power as a AAA battery - it's a research reactor run by the chemistry department)
Admin
I love how the recruiter sent him through the entire interview process only to tell him, "Oh he only hires alums."
Fuck recruiters.
Admin
Admin
Creating variables only at one scope is a bad practice as someone mentioned in a later post, but for all we know there were other variables with more limited scope. Lack of documentation is a real WTF, unless they were actually documented where they were used, but that seems unlikely.
A long time ago in a far away life I actually was forced to declare all my variables up front like this. It was a compiler few know anything about and I ran into a bug in that compiler. The workaround required that I declare all my variables up front. Anyone who later read my code would be justified in calling it a WTF.
Captcha appellatio: oral sex with an apple
Admin
Where is splinex1 through splinex4?
Admin
Well they shouldn't, because you should have declared your reasons for doing so in a comment ... if you hadn't done that they would have been so justified.
Admin
Admin
It's over there - next to your APL manual.
Admin
Admin
Admin
Admin
Can't you read? They're clearly marked as x and y locations of pumps and valves!
Admin
[quote user="C-Octothorpe"][quote user="Sock Puppet #5"][quote user="Anonymous Coward"]PLEASE MAKE IT A FEATURED COMMENT![/quote] I'm pretty sure they don't do featured comments anymore.[/quote]No, they do, there's just been nothing worth "featuring".[/quote] Actually, I thought this one was amusing: [quote user=Warren] This code is self-documenting.
What it documents is the coder's lack of "real world" experience. [/quote] Perhaps the real problem is that they're not reading the comments, which explains how a certain filthy-minded character has been able to dominate recently.
Admin
Admin
As far as "featuring" comments goes, a pattern I usually see is that very rarely do any comments past the first page ever get featured. My guess is the author gets busy or loses interest due to zunesis or retarded flame wars.
Admin
The Fortran code for nuclear reactor simulation I came across looked like this. You had to guess which ascii letter was used to transliterate the symbols used in the original equation. Even though it was coded to compile using fortran 95, it seems like the associate professor made it using only fortran 77 paradigm (notably the DO loop with line marker for CONTINUE, instead of using just END DO).
Admin
Please feature this comment.
Admin
No, no you're not making it up. TRWTF is that the Java lawyers felt the need to restrict the usage of the language in nuclear reactors -- it's like they knew the quality of their users, and that it wasn't good.
Admin
The University of California had one, but the city of Berkeley made them get of rid of it by making the city a "Nuclear Free Zone".