- 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
That's what I meant: a textual (or whatever) representation of the schema. Enjoy your :flags:
Admin
I'm not quite sure if "refusing to follow the coding conventions" should be a firing offense or not.
Admin
If you ask me it is certainly cause for corrective action, which could include termination... Alias without prejudice...😝
Admin
As far as I'm concerned this is TRWTF:
Never mind how easy it should or shouldn't be to set up the test environment. It *is* only the test environment, not production; couldn't it have waited until the working week?(Actually I was expecting it to have been the production environment, and was quite surprised to read that it was only the test environment that got screwed up. But maybe that just means I read TDWTF too much.)
Admin
I see a lot of code cleanup, yes. But, honestly, I don't see a lot of productive work on his list.
I kind of get the impression that, "I haZ read a book!" but as to doing anything useful, he's on Paula Bean's level.
Admin
As another_sam writes, cleaning up is something you do to increase the quality of the codebase. I can hardly see any WTF here, except that you don't commit stuff that breaks the application. Wanting to adhere to coding conventions can hardly be called a WTF.
Admin
As long as you do it by the end of the transaction, it is the “first time”…
Admin
Hmm, I have fixed code like that, to make it compliant with the standards. Because yes, I made the Java guidelines a requirement where I work. In my experience, there's a direct link between sloppiness of the code and bugs. This is not to say that neat code necessarily works better, but at least anybody looking at the code (including the original developer) has a better idea what's going on, if you know what to expect. If something starts with a capital, it's a class. If it starts with a lower case letter, it's an instance. If it's all caps with underscores, it's a static final ("const" in C parlance). One way of tackling bugs is to strictly adhere to conformity. I don't believe in "creativity" when it comes to developing: it's strictly a craft.
Admin
That's OK, boomzilla, it would be a boring world if we all agreed. Somewhere else some people are having arguments over iOS vs Android, naturally aspirated versus turbo, square versus round watch faces, and probably Pepsi versus Coke. The trick is to realise that everybody is wrong in some way, and that includes me. As T S Eliot put it, the only wisdom we can hope to acquire is the wisdom of humility.
Admin
TRWTF is not that he broke the "drop everything and rebuild the database from scratch" script, it's that he decided it'd be a good idea to test that script on production data and without even backing it up first.
edit: ok, I guess he just nuked the testing environment. Still.
Admin
A better title for this article would have been "THE PORCINE COSMETOLOGIST".
Because Java. Bleargh.
Admin
Hah. And now bolding in quotes doesn't work. @discoursebot How does stuff seriously get fundamentally broken, @codinghorror, when I go away for a week? This is pathetic.
Admin
@chubertdev - Days Since Last Discourse Bug: 0
<!-- Posted by SockBot 0.13.0 "Devious Boris" on Fri Jan 16 2015 19:53:29 GMT+0000 (UTC)-->Admin
Do companies exist where someone would not yell at you for changing code that doesn't directly improve how much cash is directly coming in to the company?
Admin
Not sure about other companies, but other devs certainly will if you make them have to manually merge changes because of it.
Admin
:wave: this one.... unless you can't show why it's a good thing you're doing it (like it will make future development faster or will remove technical debt that would otherwise be a problem.... stuff like that. not what this yahoo did)
Admin
Admin
wat
Admin
Aw, man, this is like the very oldest days of the site. We need a round of all the oldest in-jokes: everything old is new again!
Admin
Well, first off: it's two asterisks to bold:
**like this**
. See?Second, it's never worked in the middle of a word. You need to use HTML for that.
Admin
Or you can use BBcode style…
Admin
use strong text for great effect
.... that made more sense when i typed it.....
it was something about <strong> being better than <b> because it could lift more.....
something like that.
Admin
Yes, because there is so much difference between
<b>this</b>
and<b>this</b>
. BBCode should never have been invented.Admin
<Fuck Discourse in the ass with a pitchfork
Admin
And how often do you actually type out either one of those?
Admin
On here, never; I use the
[]()
syntax.On other forums though, I use the BBCode one more often than you'd think :stuck_out_tongue_winking_eye:
Admin
I've typed out anchor tags > 1000000000000000003 times, so I write the former quite a bit faster.
Admin
The fun part is when you're using somewhere which requires Markdown. With BBCode and HTML (and even MediaWiki), the link address comes first.
So, invariably when I have to write MarkDown, I type
[http://www.example.com/](Link Text)
... which is backwards for MarkDown, which has the link text first.Admin
I do that, but I also do the footnote stuff (though not manually). Highlight, ctrlL,ctrlV,enter and it's done.
Admin
While I agree with you, I don't think it is too bad renaming things that are poorly named in the area that you are working on if it improves clarity or using tools like the Extract Method tool in Visual Studio to break down overly large methods.
Admin
Renaming stuff within a module is no big deal. Renaming things that are exposed in APIs, especially publicly-visible APIs… :confounded:
Admin
That's why I'm trying to shovel down the throat of the teams I lead code reviews and strict conventions and rules from the start of the project.
Everything is defined and documented either in the wiki or in each README of the project from the start. If this conventions/rules aren't met, your PR is not merged.
And I mean everything, from tabs/spaces to log and compiler warning levels. There's some NASA/JPL 10 rules document which have some good ones.
Luckily, management has seen that without this, projects are harder to maintain/evolve, specially in our environment with lots of offshore developers.
In our case it's not, but it's another nail in your coffin to kick you out of the project. You hear a lot about 10X developers but I've worked with some that were -10X and they usually were the ones more sloppy on following the conventions.
Little advice for young developers: when joining a project, don't think that your conventions are better and should be changed. Wait until you have that responsibility to do it. If the team uses tabs, use tabs unless you're told to change them. It's easier to adapt than to look for a new job.
Admin
The thing is that too much rule enforcement can be counter productive when teams get smaller and I would imagine I would leave, mainly because it makes me worry to much whether it is correct. But then again I don't like working in large teams and deliberately work at smaller places where it is easier just to go over and say "look can you do this for reasons A, B and C"
Admin
Why do you have a DOS executable named google on your website?
Admin
Well, most of this rules are conventions (tab or spaces) and the true rules defined are 7 or 8 and are common sense (max 60 LOC functions)
Admin
Let him call version control part of the backup stuff, and the manual repair session is explained. Just not why over the weekend, but there must be a reason too. Probably the deadline, when the testing environment had to be shown to work so it could be sent to prod.
iOS vs. Android vs. Windouch, or Linsux vs. BSE vs. Windouch, or vegetarian vs. meat, or Java vs. C# vs. whatever, I'm cool with that.
But Coca Cola instead of Pepsi Cola? NO. WAY. EVER.
Admin
Admin
Yuk. If I'm at a restaurant, I always try to discreetly figure out which brand of cola I'll be served. If it's pepsi, I'll opt for juice instead.
Admin
I worked at a place--using centralized source control, and something ancient like an SCCS derivative, I think, that had enough live branches and developers that there was one guy whose job was branch manager: he would look at code checked in and makes sure you followed the conventions. This was one of those millions-of-lines projects and if you touched anything that wasn't directly relevant to the change for that project, or if you didn't follow the conventions, he'd reject/revert the commit. The part about not touching unrelated code was mainly to minimize the amount of stuff he had to vet.
Admin
Yeah well, that's why I hated CVS and SVN and I wouldn't be able to perform the current flow if it wasn't because of the tools we use.
Admin
THERE IS NO MIDDLE GROUND BETWEEN COCA COLA AND PEPSI—THERE COMPLETELY DIFFERENT AND IT'S REALLY IMPORTANT BUSINESS.
Admin
Indeed. And for a while too I prefered cola light, where the coca-pepsi gap is even bigger.
Honestly I prefer the alternative brand 'first choice' over pepsi.
Admin
Big red is the best soda.
Admin
I obviously didn't express myself clearly enough because that's not quite what I meant, but I will enjoy the :flags: anyway. :smile:
Admin
If you're relying on transaction support for DDL... you're gonna have a bad time.
Assuming transactional support for DDL (here be dragons) you've only made it "the first time" to external observers of the database as the scripts are run. Nobody cares about that. People who have to read your creation scripts are where it matters, and they will still hate you.
Admin
yes. there is. it's called Moxie*.
and it is an abomination unto the goddess.... still it is technically a middleground between Coke and Pepsi.
* - Because it's one soda that BOTH Coke and Pepsi fans hate just as much as they hate the cola that they are not fans of.
Admin
Does RC Cola not exist anymore then? Never had it myself; didn't think it was available in the UK, except it seems it was launched here in 2011. Don't recall ever seeing it on the shelves though.
Admin
And it was about as appetising as piss.
Admin
better than moxie.... i guarantee it.
Admin
Good!
Bad!
Having not had either in a very long time (I stopped drinking them because of the caffeine, not to mention the sugar) I can tell you they both taste terrible.