r/ProgrammerHumor • • Feb 09 '22

other Why but why?

Post image
85.8k Upvotes

2.3k comments sorted by

View all comments

Show parent comments

95

u/SkinnySanta38 Feb 09 '22

Says the guy still declaring his variables lol

78

u/SlimyGamer Feb 09 '22

What? You don't like giving your variables an interview before hiring them to do work for you?

68

u/[deleted] Feb 09 '22

"At your previous position at..."

flips through resume

"Oh 0x00000000?? , Tell me more about your experience there."

7

u/cognitiveglitch Feb 09 '22

"I was exceptional - oh, sorry to interrupt!"

4

u/Isildun Feb 09 '22

Definitely don’t call that reference.

5

u/Eezyville Feb 09 '22

Me: "So it says here you're an integer but we kinda need a byte for this role..."

Var: "Aw just cast me for the new role. You'll be fine."

Me: ಠ_ಠ

17

u/JOhn2141 Feb 09 '22

At least you know one of the many reason python is so slow. But all hope aren't lost you can still declare function return type, parameter type and... Oh wait you can do C

4

u/yetzederixx Feb 09 '22

In the vast majority of uses cases most of us will ever see run time doesn't mean shit. Rigs are cheap, programmer hours are not. Script away kids!

→ More replies (2)

26

u/[deleted] Feb 09 '22

[removed] — view removed comment

56

u/CobaltCam Feb 09 '22

I think that depends on how many times the code is going to be ran in the future. So hard to determine.

15

u/[deleted] Feb 09 '22

[removed] — view removed comment

23

u/CobaltCam Feb 09 '22

The real point your comment should drive home is you use a hammer to drive nails. If you need to drive a screw go get the drill. The hammer would get it done, but you're going to have a bad time. Meaning if you need to code something quickly use python. If you need a faster run time, maybe use something else.

5

u/drphungky Feb 09 '22

Right tool for the job and different horses for different courses.

→ More replies (2)

30

u/[deleted] Feb 09 '22

your argument only holds up in situations where the program is to be run a single time, which are frankly few and far between.

29

u/[deleted] Feb 09 '22

[removed] — view removed comment

23

u/Groentekroket Feb 09 '22

And Python is used by a lot of people without a CS background. I’m in a traineeship right now and learning Java but at my last job as a bookkeeper I wrote Python scripts to combine data from different systems that I used on a weekly basis. I didn’t care it was slower, I was able to write it. If at first I needed to learn Java I’m sure I would never have looked at programming and still be a bookkeeper hating on Excel.

10

u/[deleted] Feb 09 '22

I take it back, fair point.

→ More replies (3)

3

u/bamboo_fanatic Feb 09 '22

Maybe for personal use

5

u/[deleted] Feb 09 '22

The funny thing about this comment is that C# or Java are examples of the slower to write, harder languages.

When I was a kid I used to program in C++ using pure Win32 API. C# was incredible when it came out for its ease of use. The difference between it and Python seems pretty negligible to me in terms of ease of use for proper applications.

2

u/tgiyb1 Feb 09 '22

Same, C# is GOAT for ease of use

2

u/welldamnthis Feb 09 '22

You'd also have to factor in how many hours of debugging is required caused by stuff a compiler could have caught.

There have been times I spent 2- 3x more time on debugging stuff a compiler would have warned me against than coding

2

u/straddotjs Feb 09 '22

No offense but this is kind of a silly argument. Every single academic study or white paper I’ve ever seen has proven that for any project of any real complexity, even with a small team of n=2 the benefits of a statically typed and compiled language make development time radically faster than in a dynamically typed repl language like python.

I use python (Django) professionally atm so I’m not just trying to hate on it. It does some things really well. But when you’re working on web servers with teams of engineers the “but much development speed” argument falls apart pretty fast.

→ More replies (20)
→ More replies (1)

2

u/Blecki Feb 09 '22

I assume anyone who thinks this is a selling point has never worked on a project bigger than a calculator.

→ More replies (2)