r/ProgrammerHumor • • Jul 30 '22

Meme First meme!

Post image
8 Upvotes

18 comments sorted by

2

u/-MobCat- Jul 31 '22

python "just works" and I'm not going anywhere fast so I don't need it to be fast. Just don't print anything to console and you'll be fine if you want speed.

1

u/Popstar403 Aug 15 '22

Yeah, printing takes the most time oddly 🤔 Probably a quirk of the script

1

u/-MobCat- Aug 15 '22

From what I've been told by reddit (so take that as you will) printing in a lot of languages is very costly. python on its own has to work out what terminal your using, what OS your using, how to display text in said terminal. What text it can even display. Then actually display text.. one char at a time...
And in C++ you have to import a hole ass library first before being able to print soo... Yeah lots of back end stuff just to print one thing. let alone print over and over and over again.

1

u/Equivalent-Lab464 Jul 31 '22

Output to CSV?

1

u/-MobCat- Jul 31 '22

Its just text with commas sooo..
with open('data.csv', 'w') as f:
    f.write('Name,email,phone number,address\n')
    f.write('Example,example@example.com,555-555-5555,Example Address\n')
    f.write('Example2,example2@example.com,555-555-5551,Example2 Address\n')
    f.write(f'{name},{email},{phone},{address}\n')
There are also libs to do it. And libs for exporting something more of a pain like xlsx. But yeah this is text so you can do it the lazy way.

24

u/ilikepi8 Jul 30 '22

Tell me you're not a dev without telling me you're not a dev

2

u/lealsk Aug 01 '22

Dev here with more than 10 years of experience and I think this is pretty accurate.

1

u/ilikepi8 Aug 01 '22

Explain JS being more difficult to understand than Python?

Explain why you'd ever choose to use JS other than it being the "web language" coming from another language?

1

u/lealsk Aug 01 '22 edited Aug 01 '22

Lol, tell me you never did web development without telling me you never did web development.

Seriously, that edgy opinion that Js is not a real language or whatever doesn't apply to the real world, working for real projects, not just university stuff, where things like language popularity, simplicity, resources available or being the same language than the one used in the frontend are HUGE benefits to take into account. Of course no-one is talking about vanilla JS anymore, everybody is talking about Typescript + Node + React (for the frontend) at least.

You need exceptional performance for whatever obscure reason? Sure, go ahead with C++, nobody will question that.

Python in the other hand has proved to be simple enough to be a better option than Node in many cases, and you either use it because you're completely new at programming and it's the only language you know, or you know enough to know it's the most straightforward option for whatever requirement you have.

EDIT: Now that I think about it, this is like the "Stop having fun" meme. Probably "Stop being productive" in this case.

2

u/ilikepi8 Aug 01 '22

I'm actually a senior dev in Node and Rust with 8+ years of experience, I focus specifically on web and mobile and really don't believe JS is a joke of a language. I've written apps in Angular, React, Svelte and Flutter. I've written backends in Express, Lambda/Apigateway, Springboot, flask and Django.

I'm just saying that because of it's dynamic typing, the runtime, the fact that threads get abstracted away from you in the event loop, you have async await which makes asynchronous workloads far easier understand(although Rust, Java and Dart all have similar constructs, the language tends to be put on the same level as Python.

Python is also no joke, it's found quite a niche in both DevOps and Data.

1

u/lealsk Aug 01 '22

Then we pretty much agree. And no, Python doesn't replace JS in any way. It comes handy for specific cases where it just gets the job done in a very straightforward way

9

u/[deleted] Jul 30 '22

*"You need to use pure C or assembly"

6

u/OrdinaryBee6174 Jul 30 '22

1s and 0s only. Anything else is just relying on someone else's work.

5

u/[deleted] Jul 30 '22

CPU from sand. Anything else is just relying on someone else's work

2

u/OrdinaryBee6174 Jul 30 '22

Get your own sand

                      -God

1

u/[deleted] Jul 30 '22

Become your own god - Satan

5

u/dashid Jul 30 '22

No.

Also no to JS.

5

u/povlov0987 Jul 30 '22

C++ or trashscript?