• blah (unregistered)

    Is it just me or would this code also ignore every second line?

  • TheCPUWizard (unregistered)

    @Blah - is it just me, or did you ignore every second point in the post? [yeah, call it a rounding error]

  • Tom (unregistered) in reply to blah

    Yes it does only read every other line (and it is even mentioned in the post):

    as well as the fact that our read do/while loop only reads every other line.

  • (nodebb)

    Whenever I see Struts, the first thing that comes to mind was the 2017 Equifax data breach.

    ...this wasn't Equifax's code, was it?

  • Duke of New York (unregistered)

    I guess you could say that the programmer liked to stuff his Struts.

  • (nodebb)

    I particular like how this expert handled those checked exceptions like a pro.

  • (nodebb)

    There's a vast difference between learning to work with a technology versus learning how to use a technology.

    This looks like development by debugging, where they inspect the available variables and what they have in them, and work out a way to extract the thing they want from that.

  • löchlein deluxe (unregistered)

    Yeah this sounds like a greybeard dev who wasn't given the time to move to Struts properly. "I have this working code which was ported from logic from a Perl script for Minix, and I know it works. So how do I get an input stream in Struts?"

  • LZ79LRU (unregistered)

    And this is why we need formal education, certification, licensing and a bar.

  • (nodebb)

    "Everything about this is wrong and overengineered, and smells like it was written by someone who was "smarter" than everyone else, and thus couldn't be bothered with using standard approaches to anything." How arrogant.

    This code reads more like someone who was recently in school using print-based debugging to compensate for being in way over their head. In school it's reasonable to think that the challenge you're supposed to be doing is writing a method to snag a bit of text out of a much longer string. Heck, maybe they thought they'd be rewarded for doing work, after all professors usually want a solution that makes you do some work, not a "smartass" solution where you somehow avoid doing having to write more than one line of new code. Plenty of businesses are happy to take in junior engineers and turn them loose with little or no meaningful oversight, and then this happens, and then you blame the engineer.

  • (nodebb)

    @LZ79LRU Ref

    And this is why we need formal education, certification, licensing and a bar.

    And tech specific ratings. Professional pilots don't just jump in an unfamiliar jet and figure out how to fly it by osmosis and zooming around the sky willy-nilly.

    Nobody said be allowed to write a line of e.g. Struts without having attended a formal Struts school, passed a formal Struts academic exam and practical use exercises, and gotten a Struts rating attached to their programmer's license.

  • LZ79LRU (unregistered) in reply to WTFGuy

    Precisely. At the very least one should have to demonstrate compliance with ISO[what ever number struts is] before being allowed to work in it. And we need a worldwide guild of assemblers (sounds better than developer) to manage the process.

  • Duke of New York (unregistered) in reply to LZ79LRU

    Let's not and say we did. I've done my time amongst the "professionalize coding" set and good riddance to that. Every application isn't an airplane or an X-ray machine and I'd bet that somewhere in the foggy past you too have been paid for bad code.

Leave a comment on “Bent Struts”

Log In or post as a guest

Replying to comment #:

« Return to Article