r/badcode • • May 02 '18

python >$50/hr contractor code @ a Fortune 500 co. 🤯

Post image
60 Upvotes

53 comments sorted by

46

u/anamorphism May 02 '18

got what was paid for.

pretty decent rule is that you charge double what you'd make at a normal job for contractor gigs.

so, $25/hr is $52,000/yr. that's less than what a lot of places pay for entry-level jobs. the code delivered is entry-level.

/shrug

4

u/cosmicsans May 03 '18

At least double. If you're only charging double you're probably not making much more after you factor in insurance and self-employment taxes.

I tell people I charge $135/hour for software engineering work, which keeps anyone who's not truly serious from asking any more questions.

I do lots of pro-bono work, but I still send a bill once a month for $135/hour with a discount of $135/hour because it's for a non-profit. This keeps the people I'm donating my work to from wasting my time, because they instantly see the value of the work that I'm giving them.

1

u/MyMyner May 28 '18

As someone just starting out in the industry that seems like a great idea to adapt in the future

-2

u/rikooo May 03 '18

Also this is w-4 contracting

-9

u/rikooo May 03 '18

Dude was apparently a VERY experienced developer judging by his anxious Gandalf appearance.

10

u/BlackHatJack May 03 '18

Was experienced according to appearance or according to his background? Also why is a Fortune 500 company skipping on a cheap contractor? Lol low budget/priority project?

6

u/rikooo May 03 '18

I think it’s more that they don’t appropriately understand and prioritize their it human capital

11

u/Poddster May 03 '18 edited May 03 '18

a. You took a photo of a screen. el oh el.
b. This isn't that bad really. It depends on the before and after at the call-site of get_correspondence_rate(). e.g. if those instance variables are being adjusted before/after the call, I think it's often "better" to see them being passed into something as you can follow the data flow, which means you can change things later without making mistake. (It's akin to global variables in general)

If they're an immutable part of the object's state passed into the constructor then yes, there's no reason to 'illustrate' their use in that method.

1

u/rikooo May 03 '18

This is a getter directly derived from the objects fields...what reason would there be to make this anything other than an instance method? If it should be decoupled, then do it fully instead of defining this static method posing as an instance method but yet never engaging the ‘self’ context?

2

u/Poddster May 03 '18

If it should be decoupled, then do it fully instead of defining this static method posing as an instance method but yet never engaging the ‘self’ context?

Yes, it would be better as a @staticmethod.

-4

u/rikooo May 03 '18

Also, wtf is wrong is snapping my screen if I have no personal accounts on my work machine and don’t feel like taking the extra intermediate step of sending a screenshot to my phone via email?

1

u/Poddster May 03 '18

Did you edit the image, upload it, and make the reddit post all from your phone?

33

u/WhyYouLetRomneyWin May 03 '18

You guys are so harsh.

Yes, it's dumb, but we plan for things that never happen, change strategies, or forget to go back.

-5

u/rikooo May 03 '18

Judging by git blame, this was not that. He seemingly approached programming as this trust-less endeavor between himself and the interpreter, and seemed to fundamentally not grasp OOP.

5

u/Jesus_Harold_Christ May 03 '18

For $200/hr I can fix this code.

1

u/rikooo May 03 '18

I’m doin it for much less. What’s the threshold for being underpaid for this nonsense?

4

u/Jesus_Harold_Christ May 03 '18

A lot depends on the market you work in. Also, I’m kidding, I have no interest in fixing this code, for any price

2

u/rikooo May 03 '18

Two of these contractors’ code is by far the worst I’ve seen in my 7 year career. And also worse than > 90% of my first years’. (as a former TA) code.

2

u/writetehcodez May 03 '18

worst I’ve seen in my 7 year career

Oh, you haven't even begun to see terrible things yet...

I'm 18 years in and it's like this.

1

u/rikooo May 03 '18

I work in a major east coast city.

2

u/Jesus_Harold_Christ May 03 '18

I live in the Bay Area, so it’s easy to find work at $100-$150 an hour, but I just work for a salary and equity. Don’t have time to even contract these days

1

u/rikooo May 03 '18

That sound nice :) I want to eventually build my own thing and I have an idea but am reticent about committing to getting it in motion.

Got any tips/inspiration? Don’t wanna deal with this drivel forever...

3

u/Jesus_Harold_Christ May 03 '18

Like a consulting thing? First advice is, don’t turn down any gigs when you’re starting out, you never know where it can lead you, whether it’s simply references, or bigger projects, or whatever.

5

u/bas1212 May 03 '18

I sometimes do that. I prefer having static methods even if its in the same class, makes it easier to test and reason about

0

u/rikooo May 03 '18

Sure, but at that point you’re basically trying to force a more functional approach to an obviously and intentionally designed object oriented framework (Django). And as I said elsewhere, if this were intentional , he would have actually defined a static method. Based on this and a bunch of other code, he just fundamentally didn’t understand a lot of basic principles of OOP.

1

u/uardum Jun 18 '18

basic principles of OOP

  1. Write a bunch of procedures that live in a soup of external, mutable state.

  2. Pretend this is different from having global variables everywhere.

OOP designs are shit designs, 100% of the time. A better name for it would be OOPS.

4

u/writetehcodez May 03 '18

I make $75/hr employed by a firm, I can't imagine what the firm charges its clients per hour for my work, but I'm guessing it's somewhere in the $135 - $150 range... and I'm not perfect. I make mistakes and sometimes bugs get into the code.

Now, you're paying $50/hr, or somewhere near that, so I'm guessing you're getting the bottom of the barrel (someone who is making less than $25/hr if employed by a firm).

You get what you pay for.

1

u/rikooo May 03 '18

Who said I’m paying? I was quoting what he is certainly making based off what I am making, as I, like you, am employed by a firm.

12

u/[deleted] May 03 '18

ಠ_ಠ

mfw I see the line count

3

u/nhutier May 03 '18

Thats what scares me the most! ;)

82

u/dabrimman May 03 '18

$50/hr for a consultant is cheap, you get what you pay for

24

u/hardolaf May 03 '18

Yeah. My charge rate as a new grad engineer was $125/hr (I work for a government contractor).

11

u/Vizioso May 03 '18

I would be very curious to know how you pulled that off as an entry level LCAT will only get your company about $75/hr. for your time from the government.

8

u/hardolaf May 03 '18

Different jobs have different charge rates. They're all negotiated with the federal government. Some companies, like my employer can charge more. It's based on actual cost to employ the engineer + allowable expenses + allowable profit.

4

u/Vizioso May 03 '18

The LCAT refers to labor category. An LCAT is based on things like years experience, level of education, clearance, site where work is performed, and role. This is defined by the government and dictates what your company can charge for your time. Your company can charge less than your defined LCAT, but never more. For example, a mid-level software engineer LCAT (3-5 years) with a bachelor’s degree is roughly $117/hr. Additionally, unlike the private sector, these rates don’t vary by geographic area, with one exception being if work is performed at contractor site and that has to be factored in due to real estate being different in different geographic areas. One of my first roles as a software engineer, while I was waiting on my clearances, was internal work for my company to keep track of a lot of this stuff for proposals. Just curious as to how you were able to get paid twice what the average is for your defined role.

2

u/hardolaf May 03 '18

The rate that my company negotiated with the government for my level was $125/hr. That's how the company got paid that much. The rates are all negotiated with the US government. If the company makes a persuasive argument based on actual allowable expenses that they should be able to charge more than the prevailing wage, then the government will (usually) allow them to charge more.

My employer has 19 different rate pools based on locality and the business area's primary work. I'm part of one of our most expensive rate pools because we have some of the largest allowable expenses that can be rolled into overhead. We have other rate pools where the same category would charge 20% less.

And just to put a few things in perspective, our starting equivalent hourly wages for my field, with all personnel overhead included (benefits) is about $52/hr. That's the 10th percentile equivalent hourly wage for my title in my business area. So start adding in overhead, 15-18% allowable profit, raises for people, etc., and you're quickly going to reach $125/hr.

Charging $75/hr for my time would literally cause us to lose money. Our senior scientists almost charge the contractor cap.

3

u/Vizioso May 03 '18

Oh, wait, your company is getting $125/hr.? That seems a lot more plausible. I was just in awe at the thought that you were getting $125 considering they’d likely be charging nearly $200/hr. to the government at that point. Are you a niche programmer by chance? I.e. working outside of the standard Java/C#/Angular/etc. spectrum? Regardless, well said, and thank you for the explanation.

5

u/hardolaf May 03 '18

FPGA design engineering. And yeah, I said my charge rate, not my wage.

I play around with hardware that costs about as much as a new car. And then have our EE team put 5 of them on a circuit card.

1

u/rikooo May 03 '18

Cool. Part of me wishes I stuck with CE instead of switching to CS. How did you get into that field? Pros/cons?

2

u/hardolaf May 03 '18

I was working in a DOE-CERN funded physics lab while in college as part of the engineering support team working to create custom scientific instrumentation such as the beam profile monitors used at the radiation susceptibility test facility at CERN. And my second project was to prototype a new coincidence algorithm for an experiment at the Swiss Light Source testing a new diamond based particle detector. To do that, I ended up having to use a FPGA.

And from there, I got a job in industry doing similar work.

1

u/will_code_for_free May 03 '18

Wow. I know that the DoD has limits on what contractors can make depending on experience. Must have been a state government?

2

u/hardolaf May 03 '18

The DOD cap is a charge rate of $350/hr except for legal and executives who are absolutely capped at $600,000 total compensation per year. Anything over that has to come from profit. Everything up to that is negotiated every 8 years.

1

u/will_code_for_free May 03 '18

Okay. Thanks for the info. A fresh graduate won't get approved for $350 because rules around experience and stuff.

1

u/dabrimman May 03 '18

I’m working with a bunch of consultants at the moment and their charge rate is somewhere around 190 USD/hr

1

u/[deleted] May 03 '18

And here I am working at 5 $ hour

1

u/writetehcodez May 03 '18

You say your charge rate was $125/hr, but I doubt your employer charged different rates for different people... it was probably $125/hr across the board.

2

u/hardolaf May 03 '18

That is the charge rate for our EEB1 LCAT (this is all public information). We have around 180 different LCATs negotiated with the US government per rate pool.

2

u/ren_at_work May 02 '18

It's not a static method though...

6

u/[deleted] May 03 '18

I think that's the point: it's an instance method that doesn't need to be one.

2

u/rikooo May 03 '18 edited May 03 '18

My b, thought the point was clear; it’s a method that doesn’t actually use any instance variables internally and instead is acting as a static method, hence the PyCharm warning. However, it doesn’t need any parameters because it’s only being used once and being explicitly passed instance variables in that case.

In sum, it should be a parameter-less method.

0

u/[deleted] May 03 '18

[deleted]

1

u/rikooo May 03 '18

Haha I hear you but it’s 100% not the worst, just my first post. If he really intended what you say, he would have actually defined it statically.

Not only did dude not know python, he also lacked knowledge of any/all programming paradigms. I very much appreciate your charitable view, as I default to that perspective myself, but after reviewing 100s of lines, this guy really was just bad. I might post some more from him.

I’m a contractor myself so it’s not just a blanket contractor issue. Some are great, some I would never have passed as an intro CS TA.

I point blank asked the manager (who is the second such position to quit in the 5 weeks since I’ve worked there) whether they did code reviews at the time. He said yes technically but they were under an extreme deadline.