this post was submitted on 07 Dec 2023
929 points (99.2% liked)

196

16217 readers
2491 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 54 points 9 months ago (4 children)

Maybe they want to avoid java coding patterns. FactoryFactoryGenerator kind of stuff. Maybe they want to teach their own java coding patterns and want someone coming in with a blank slate so they don't have to unlearn habits. Maybe they're tired of diploma mill programmers applying and are using this as a resume filter tripwire.

[–] pennomi 40 points 9 months ago* (last edited 9 months ago) (4 children)

Definitely. Horror story time.

We had an outside contractor bring us some code once that was thousands of lines of Python to do a very simple job. I was perplexed. I dove in to figure out what the problem was, and somehow I was looking at the most Java-esque Python code I could imagine. What’s worse is that he implemented his own “Java style” property getters and setters for all the Python classes, which obviously aren’t needed because you can simply access properties directly. In the end I took an 80 line snippet of his code (which actually did the work we needed), swapped out all the getters and setters, and deleted all the rest.

[–] Potatos_are_not_friends 19 points 9 months ago

This is pretty common with outside contractors.

We just come in, say we'll pay them x dollars and they give us code that passes the test. But that code will not at all align with any prior patterns.

I absolutely know I'm guilty of it when I do freelancing. Sorry.

[–] [email protected] 13 points 9 months ago (1 children)

You can always tell when someone's been a career contractor because they never adhere to any of the established patterns/styles in the codebase.

[–] [email protected] 2 points 9 months ago

I disagree. Good career contractors should learn to write in the code style of the project. And the real pros do.

[–] [email protected] 7 points 9 months ago

That's not to say that python coding habits are the best either -- certainly they're terrible when translating outside of python (most of the time). And even within python, someone who is used to with only the base modules will write it differently than writing PyQt and still completely different than someone doing numpy code... because the styles of coding of the underlying system change your coding mode. Like, my variables are all CamelCase when doing user interfaces with Qt because it makes sense there, stylistically.

[–] [email protected] 6 points 9 months ago

Did you pay by the SLOC?

[–] ook_the_librarian 11 points 9 months ago (1 children)

It might be to see who is reading the posting and tailoring their reply. Kinda like a "no green M&Ms" rider.

[–] ChickenLadyLovesLife 1 points 9 months ago* (last edited 9 months ago)

It was brown M&Ms. Only a psychopath would say no green M&Ms.

[–] Zeth0s 8 points 9 months ago* (last edited 9 months ago)

Definitely the first. I work in ML, and I find for instance people with background mainly in c# to be the least fit for my field, particularly if they have long experience. So I understand this kind of requests

[–] Potatos_are_not_friends 5 points 9 months ago

I originally thought it was the former.

But now I'm strongly hoping it's the latter! Pretty smart move.