- 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
It just goes to show you that anyone can write SQL injection vulnerabilities, especially Java programmers.
Admin
I thought it was a reference to K-Mart... the store that used to have "Blue Light Specials".
Admin
It's called J#.
Admin
It's called J#.
Admin
Admin
Army of Darkness is never obscure.
Admin
Yeah. That was my first reaction, also. Restore from backup!
Admin
Except the fact most .NET guys I've worked with have no idea about EF, or MVC, or NHibernate and want to do everything with DataSets and stored procedures and thousand-line code-behind files.
.NET can be awesome, but it's harder (IMO) to find competent .NET guys who don't come from a drag-and-drop RAD background. Java seems the opposite, most people in Java know what design patterns are, know about Hibernate, and WANT TO USE IT instead of fighting against it.
I love .NET, but I hate the typical .NET shop's mentality, is what I meant.
Admin
Being the guy who pushes EF and MVC in my shop, I know exactly what you're talking about. The tool is fantastic, but you have to actually embrace the tool. I work with a bunch of Classic ASP developers who love web forms and don't get MVC. I always hated ASP and WebForms, and I took to MVC instantly.
Admin
Admin
I'm at a shop that actively refuses to even let us refactor code, seeing it as a "waste of time" and not delivering "new features". I spent a few days looking through our code seeing if there was anything at all that can be refactored to provide some kind of architecture (there is no architecture, no structure, just lots of WebForms and code behind) and I found nothing. It would be a herculean effort to even begin to refactor this thing, since it's so tightly intertwined and half the time looks like nobody understood OOP.
THAT is what I envy about Java; the embracing of design patterns and the SOLID principles and MVC and ORMs and all of those lovely things that .NET is like "Pah! We just use DataSets and Stored Procedures"
Admin
Admin
Why call our PHP hero, Randy? Why not just call him Well Hung Horny PHP Dude Who Likes To Sabotage Java Projects In His Spare Time?
I taught myself JAVA in 2000 in about 2 weeks . Easy for anyone who comes from a C/C++ background. Java is easier than C++ and PHP is even easier.
You can write really great code in PHP and really shit code in Java. Whether a language is strongly typed or is Object Oriented is not what produces good code. Good Programmers write Good Code.
Shit Programmers will write Shit Code, no matter what language they use.
I develop in PHP and MySQL today. It works.
And no, I don't feel the need to sabotage a project that is written in Java or Visual Basic. I think VB is evil. Basic is not a language one should use in the modern age of computing.
Admin
To be fair, VB.NET is not that bad. I prefer C# myself but VB.NET is a perfectly capable language provided you write it using proper development practices and not treat it like VB6.
I'd rather have a job using VB.NET at a shop using MVC, NHibernate, Ninject and the like than a C# job using WebForms, DataSets and stored procedures with everything in code-behind.
Admin
Wait, SQL injection like Bobby Table is in this code, too.
http://bobby-tables.com/
Admin
Good... Bad... I'm the guy with the gun.
Admin
C# and VB.NET are, as of Framework 4, feature-compatible. There is no practical difference between C# and VB.NET. I threw a little party the day that was announced (since I work in a VB.NET shop). Yeah, it's a little more verbose, but whatever.
Admin
Backup? What's that?
Admin
No one is going to mention the other error in the Java code? You select a single field from the database then ask for the 2nd String from each row in the database? That's likely to throw an ArrayIndexOutOfBoundsException. Another WTF is using an offset of 1 (instead of 0) in ResultSet.
CAPTCHA: valetudo - it's all worth it to get Randy off the team.
Admin
If you're going to do the comparisons, please do them appropriately:
Java vs C# (languages) JEE vs .Net (environments)
And yes, I totally agree, talk about using JDBC in any project today and you'll be kicked out the door. Didn't know .Net shops were so lame... I feel your pain guys.
Funny thing, many stuff in .Net land is a port from JEE (junit, hibernate, spring, etc)
Admin
Yeah well, after seing this:
"if(val = password)"
I thought the code was pretty broken from the anonymatiation (this should be a captcha!)
Admin
One act of workspace violence deserves another, after all.
Admin
Yep, but for the longest time .NET focused on "RAD" techniques while that stuff quickly came up in Java land, so in .NET you're more apt to be kicked out the door if you are all "We need to use MVC and leverage NHibernate instead of DataSets, and we can use NUnit for testing" since chances are good the .NET shop has no idea what unit testing is, and everything is DataSets.
Admin
It's not even that obscure of a reference.
Admin
Whether it is software design, marketing, or politics, extroverts are the problem. They don't care what is good, just what looks good, so they can bask in the hollow approval of their fellow groupthinking conformist sheep.
Admin
The real WTF is SVN. If they had used git, it didn't matter if someone deleted the central repository. You'd still have your own copy, including history.
Admin
^ this. I was fortunate enough to be at a large company on a PHP-based project back in '00. Met w/ Zeev a few times and had Stas Malyshev working out of our office for a week or so; 12 years and many projects/jobs/languages later, I still rank them well above most of the other coders I've worked with.
PHP coders can be just as brilliant or just as stupid as any other schmuck in front of a keyboard.
Admin
I briefly worked under a manager whose experience was in BASIC. As the company moved in a new direction, by fiat he became a C programmer, but he didn't like it. So he wrote his own string functions (MID, LEFT, RIGHT) and other comfort replacements and a few extras:
#define BEGIN { #define END }
And then banned the user of the ternary operator because he didn't understand it. He insisted everyone use his C-BASIC ("capitalize those variables!"). The nightmare didn't last long as upper management then hired a horde of experienced C programmers who summarily ignored his petty dictates.
Admin
.NET guy here.
As far as backups go, some people may work in organisations that just aren't cut out for supporting developers.
I work in one of them. It's tough to get the IT guys to restore anything from backups. The usual response is, 'we're too busy'. Pretty much everything on my machine is officially unsupported by IT as they're only used to dealing with Office Apps.
That said, in those situations, it's the responsibility of the developer to mitigate against this. We use GIT, and everything is pushed to an offsite server.
Admin
I call bullshit on a PHP dev knowing how to configure and use SSH.
Admin
Admin
Unit testing is nothing more than an excuse for a programmer to take three times as long as it should to code a simple feature.
Admin
You can always tell the PHP developers.
Admin
At the risk of sounding racist, probably because a lot of J2EE development was sent overseas to India where new and inexperienced grads were thrown into the deep end coding up lots of garbage.
Admin
What would you say my girlfriend means when she says "Army of Darkness is not obscure yet."
Admin
<-- Not a PHP developer.
Admin
Isn't it funny how bad employment choices seem to take care of themselves? Some teams, you just don't want to be on...
Admin
Alright you Primitive Screwheads, listen up! You see this? This... is my ORM system! Entity Framework, 4.3. Microsoft's top of the line. You can find this in the NuGet package repository. That's right, this sweet baby was made in Redmond, Washington. Distributed under a permissive license. It's got Code First, a walnut stock, a fluent API, cobalt blue steel, and a hair trigger. That's right, shop soft, shop Microsoft.
Admin
http://www.youtube.com/watch?v=pFriRcIwqNU
You foreigners need to get out more.
:-)
Admin
Nope.
Admin
Admin
Admin
Where's the WTF? It's only a guy sabotaging a project voluntarily.
Admin
What unit testing is is something that a lot of people don't understand.
A lot of people think unit testing came from the Java ecosystem, but Java actually got it from Smalltalk. It was invented there because it was necessary: Smalltalk doesn't have a static type system, so you can't get the compiler to do correctness checking for you, so you end up having to write the correctness checks yourself if you don't want your code blowing up in production.
Anyone using it in a language with a proper type system is just plain silly.
Admin
Well, that's not a WTF story. It's plain old sabotage. Well, not sabotage to benefit someone else, just stupid sabotage to promote one language. Petty behaviour that got its fair "reward".
Admin
A passing unit test may make PM's nod their heads sagely, but a passing unit test does not equal working code. That's why good developers understand the business and its needs before cracking open an IDE.
Admin
Admin
Admin
Admin
And no, I'm not a Java guy, or an enterprise software guy in general. But quoting marketing copy, really?