9 ms·
I miss my days working with C++. It's moved further down the development stack than where it used to be. We used to handle UI, API parsing, and pretty much ever
by jdlyga 2y ago
I miss my days working with C++. It's moved further down the development stack than where it used to be. We used to handle UI, API parsing, and pretty much everything using C++.
- KptMarchewa 2y agoI just wish to _not_ work with Python.
- REDS1736 2y agoWhy is that? I'm genuinely curious. Also, what languages / environments do you prefer?
- 01HNNWZ0MV43FF 2y agoNot gp but I prefer rust to python and I'm itching to try that "just write your build scripts and stuff in rust too" Sure the builds are slow and Python _kinda_ has static typing, but rust just has a lot of stuff I like and it's practical to install and use natively without learning all the jargon like venvs and eggs and wheels and which package manager and package manager manager (rye?) to use this year I tried Python years ago and never got the motivation to push through that learning curve. I've used c++ a lot but it always required me to "keep my hands inside the ride at all times". Rust feels like it actually wants to be easy to use
- gorjusborg 2y agoThe idea of using Rust for scripting is bizaar. I can understand not wanting to use Python for everything, but I see the problem being the 'use it for everything' not the language choice. Use the tool that excels at the job. There is no language that is good at everything.
- natsucks 2y agoRust is cool now. Python is not cool anymore.
- steve1977 2y agoI think Python fell victim to the Peter Principle. It got promoted beyond its competence.
- germandiago 2y agoPython does well for several reasons. Some that come to my mind: its versatility binding native code and its easy-to-fit in your brain mental model for many tasks. The fact that you can script with Python without a compilation step also helped a lot to spread its popularity I think.
- rightbyte 2y agoThe way you define the entry point function is so bizarre I assume scripting was the original use case.
- germandiago 2y agoCould be. But it also gives you the flexibility to set tests inside the module files.
- AnimalMuppet 2y agoHaving to use the wrong tool is not cool, ever. So I don't care how cool Rust is right now, I still am not going to use it for scripting.
- weinzierl 2y agoHave you tried it? How would you know that Rust is the wrong tool. I'm indifferent when it comes to Python vs Rust for scripting, but I'd take Rust over a shell script (of any variety) any day.
- e44858 2y agoFor a single file script, you can avoid managing environments by using a nix shebang: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/python.section.md#running-python-scripts-and-using-nix-shell-as-shebang-running-python-scripts-and-using-nix-shell-as-shebang https://github.com/NixOS/nixpkgs/blob/master/doc/languages-f...
- IshKebab 2y agoSame for me. Mainly due to the packaging fiasco (and to a lesser extent, imports). The actual language is not awful. Some features are even nice, like infinite precision integers by default, and separate / and // operators. Language is ok. Setting everything up is atrocious. The other quite annoying thing is that the docs are extremely badly organised so Google rarely points you directly at what you want. Instead you get stuff like w3schools which is trash, but much better organised. Also annoying that the docs still don't include types. I would use Typescript (via Deno), Go or Rust instead. There are some other Python replacement languages I haven't tried yet that might be an option like Mojo, Lobster, Nim. Probably still too niche for production; I'd stick with Typescript.
- emmanueloga_ 2y agoPixi.sh has been great for me so far, it’s a single binary install that can install Python, conda packages and PyPi packages, maybe give it try!
- IshKebab 2y agoLooks nice but I can't really require the whole team of like 100 people to use this quite niche tool. Python needs an official solution.
- dlahoda 2y agopoetry with poetry2nix with nix flakes will do magic in terms of setup. if stick with pyright(inference) it is as modern as rust. python speed increases heavily in all directions.
- IshKebab 2y ago> poetry with poetry2nix with nix flakes will do magic in terms of setup. I'm sure, but it also sounds like it will take about 2 weeks of reading manuals and learning Nix before I'll get to the same point as Rust and Go start at. And that's not really an option for big teams, which is the only situation where I'm forced to use Python anyway.
- xedrac 2y agoBecause Python falls all over itself in larger projects, and is poor at utilizing resources efficiently. It's fine for smaller things that don't care about cpu cycles. I would much rather use Rust in a large project.
- DrBazza 2y agoAny non-trivial python is indistinguishable from magic.
- Night_Thastus 2y agoWhere I am, we still do!
- freedomben 2y agoWhat libraries are you using? Qt? Do you use anything for database access and rest API (or protobufs like we did) or just custom code?
- Night_Thastus 2y agoQt for everything UI-related, yes. SQLite for databases, though looking again that code is actually Python. Nothing networked, so REST isn't relevant.
- freedomben 2y agoSame. I really miss it. Not terribly long ago we had an app that has a client and server, both in c++. UI, API, everything was c++. It really felt like the universal language had arrived. I won't pretend everything was perfect as it wasn't, but work was fun and the high caliber of people who could work in that stack was a joy to work with. I've never had a more exciting lunch than when we got distcc running on our blades so we could execute builds way faster. It was also a joy not being the only Linux zealot :-D
- zerr 2y agoI guess the scarcity of cheap labour contributed to the demise of C++ in the applications world.
- VyseofArcadia 2y agoAt my work pretty much everything but the UI is in C++. I suspect the only reason the UI isn't C++ is so we have a portion of the cosebase that recent grads can work on right away without having to train them up in C++.
- JonChesterfield 2y agoI felt some nostalgia for Fortran a while ago. Spent half an hour programming in it, cured. Maybe take a shot at parsing JSON in C++ and see if the nostalgia survives the process.
- ChuckMcM 2y agoIt took 30 minutes to cure you?!? One of the first things I did when I got my PiDP-11 which can run RSX-11M and the DEC fortran compiler. I spent many many hours programming in Fortran when I was in college and thought wow I could relive some of that, about 5 minutes in I was "okay, step slowly away from the console." :-)
- tialaramex 2y agoThere's a fun stream where tsoding decides to learn Fortran, and the instructions he's working from say to turn off implicit typing (ie write "implicit none"). He's familiar with modern languages with type inference and with C++ type deduction which is a similar idea to full blown inference - and so he has no reason to even guess what Fortran is going to do without that admonition and you can see he's not happy when he finds out.
- pklausler 2y agoI don't get that at all. Old FORTRAN has a mildly confusing feature that is easy to disable. He then got upset about the mildly confusing feature that everybody now disables. If one wants to bitch about Fortran, at least complain about the modern language (which is still a horror show of poorly defined and often unportable features), not the stuff that has been made obsolete.
- ChuckMcM 2y agoI was teaching one of the local highschool kids how to program in C and they asked "So why does everybody use i,j, and k for their indexes in loops?"
- 2y ago
- dkersten 2y agoI still tinker on a game engine personal project just to scratch the C++ itch. I really like using C++, despite all the hate it gets.
- zerr 2y agoOften I think that I'm lucky, still working on C++ desktop applications.