It’s a one line function in an example. It’s a getter.
It’s a one line function in an example. It’s a getter.
Considering how politically active he is, he might become a politician (even running for president?). A lot of people will care about this if suddenly Elon musk appears in American ballots.
EDIT: I just remembered that Elon cannot run for USA president. But idk if other political positions are open.
And seeing how trump can break every law, I don’t see what would prevent Elon from running for president.
Lmao, and they say dynamic typing is supposed to speed up the developer.
This is literally a getter function. How is a getter awful code? It’s the simplest function there is. The only function simpler than that is returning the input itself.
Python doesn’t check the types of function headers though. They’re only hints for the programmer.
Dear imgui absolutely exists on rust. Which is the same dear imgui as C/C++. If you want a rust option though, there’s egui, which is basically Rusty’s version of dear imgui.
For rust I use iced, as it meets all my needs and is a delight to work in. I don’t think it’s good for making graphs though. For graphs I heard that people like matplotlib (in python), which you can also use inside PyQt apps. I’ve tried using matplotlib and did not enjoy the experience at all, but I don’t know of any alternatives.
That is because when you’re a beginner, you read everywhere that you should be using anaconda and jupyter notebooks. I know because I did so. Neither of them lasted more than a week on my computer though.
Anything that’s not an integer or a range doesn’t belong inside []
. Much more readable to use zip, map, filter, etc. And more powerful.
EDIT: that was meant for indexing lists. Strings inside []
for indexing ducts are fine.
I haven’t used npm. But pip is horrible. Some times I’ve used a well-known library that only works on linux, but there is no mention of it whatsoever, and it installs without problem. The error only happens at run-time (not even when importing!) and says nothing about platform-dependency. I only learned that it was a linux-only library because I happened to try running it on a Linux machine to see if it worked.
Many times you have to set up your environment a specific way (environment variables, PATH, install dependencies outside of pip) for it to work, and there’s no mention of it anywhere. Sometimes you install the library with pip, sometimes with apt, and there is no way to know which one. And sometimes the library is both in apt and pip, but the pip one does nothing.
Furthermore, good luck importing a library. You might have installed it with “pip install my-library” but to import it you have to do “import MyAwesomeLibrary3”. And pip won’t tell you about that.
The mistake was choosing a language, and afterwards searching for a use to the language you just learned.
My screen gets dimm enough that it’s almost impossible to see outside with the slider at the left.
The solution is extremely easy though. Put an option in the settings so pressing volume up/down while the screen is locked changes the brightness instead of the volume.
So they should conquer the entirety of Asia in one turn, to get an extra 7 units per turn in order to afford their war with Europe?
I was totally ready for “green energy is good graphics and oil is good mechanics”. But then the comment ended. I’m so lost
It not being fully 3D doesn’t mean that it’s of lower quality.
For example when consoles got powerful enough to draw 3D backgrounds you could see a significant decline in background quality, since you can have a higher quality 2D background for a fraction of the resources.
I don’t think changing a profession’s terms to “prevent stupid jokes” is a smart move.
Fold it twice, still free
I poo almost daily at work. It’s almost impossible to hold it in for 8:30 continuous hours.
If someone tells me off for it, they will find out how much my productivity drops when I have to focus on holding the shit instead of doing my work.
Poo in work. Not only is it a nice break, but it also is more productive than not pooing. Win-win for everyone.
To be fair, in that article mentions the way to get rust from C. Sure, there is not a compiler written in C, but C is down there in the list of compilers needed for rust, so “just” need to compile some other compilers in the middle.
What’s up with all these posts lately talking as if C was the chain breaker that will let you achieve a higher spiritual level for your soul or some shit. This is at least the second I’ve seen this week.
It’s a programming language. If you want to use it, use it. There is no illuminati pulling in the strings to prevent you from learning this holy language.
That being said, like all programming languages, it’s a tool, with its upsides and downsides. Depending on the project it might be the best choice or the worst. But with the advancement in language design, there’s very little upsides compared to more modern languages, taking into account its big downsides.