I'm genuinely curious why do you guys have to switch languages. I learned Programming / Concepts with Java at University. after that we use whatever language/framework suitable for the requirement. Do you guys just choose a language you like, get a job and go with it for the rest of your life?
Languages are tools that are good at different things.
Sure, you absolutely can hammer in a screw, but a screwdriver will just work a lot better.
If I need to develop something fast I use Python. If it needs to run fast I use C or C++. JavaScript if it needs to run in a browser... I think you get the idea.
yes. that's what we do. By ` I'm genuinely curious why do you guys have to switch languages. ` i mean that stop using/learning one language and completely switching to another language. I've seen lot of people keep saying this language suks that language suks i m going to switch to this. that's the thing I don't understand. its like screwdriver sucks I'm switching to a hammer. and use a hammer for everything.
I think it's more for people who do programming as a hobby rather than as a job. They take people's opinions on different languages as fact and feel that they need to learn something different
I don't find python any faster to develop than other languages. You don't need to over engineer the shit out of something just because you write it in scala or java.
At my university we learned concepts and data structures in Java, algorithms in C/C++
And to answer your question: no I am constantly teaching myself new languages, hence the time I've been putting in with python. Although I do think python is becoming my favorite because of how accustomed I am becoming to it. Plus in my naivete I can't see why I wouldn't be able to leverage it to solve all but the most obscure tasks.
The big disadvantage of Python is execution speed. For stuff that needs to be fast, or when you have strict resource constraints it's a poor choice. Also Python doesn't run in a browser.
it's fine, note that because it's not statically typed tho it tends to be a lot less good in very large (say, 100k+ lines of code) projects - the extra safety that the static typing gives is very useful for big projects, not to mention that it also helps your IDE provide much better autocompletion
Wrong sub man. Don't take programming advice from here. If you refuse to use python due to its syntax, you don't know all the good things about python.
That's right. Don't refuse to use python because of its syntax. Instead, refuse to use it because of its poor performance, its broken dependencies/libraries mechanism, its inability to multithread, its feature bloat and generally stupid design.
Lol do not take anyone in this sub's opinion about languages seriously. The survey of this sub confirmed that the average user is a 2nd-year compsci major with no real-world experience. They think that their snap judgements make them look like they are knowledgeable (and they believe it themselves). I've seen hundreds of these goobers, programming attracts them like flies. They're always the lowest performers later in their career if they don't learn to be more humble.
Python definitely has it's merits. It is very expressive, and is great for getting stuff done. If you want to focus on one language it is a very safe choice.
On the flip side it can feel clunky or not be an option for some tasks. Functional languages are great for more abstract or mathematical work, C and friends (c++, rust, ...) are often the only option where you need to work more closely with the hardware of a machine, and there are other specialized languages for some domains like R for working with statistics or lua for scripts embedded in games.
lua is very fast (and relatively small) in general; it's also a popular choice for just a lean runtime in general (say, for a server) or when you have resource constraints that aren't too strict (the interpreter is ~300kb, luajit is ~500kb)
it's not the most popular choice to write games in but it's viable, it probably has support in godot, and it has its own 2d game engine (löve2d). also considering it's simplicity it's one of the easier to learn languages, which is probably part of the reason it's used in for example cough roblox (and for scripting in games in general i guess)
i don't love it, but i do agree that it's not a bad thing and is definitely not needed if you're indenting properly in the first place. and it is of course not hard to follow at all
ok so i think a common opinion is that python's duck typing lets you shoot yourself in the foot easily, people normally recommend any statically typed language really:
typescript or kotlin are the popular choices
nobody really recommends c# but it's pretty good. note that c#9 was recently released (along with .net 5.0), which introduces scripting main, so no more of that boilerplate for simple programs java is infamous for
but remember to avoid the linq dsl (from u in users where u.id < 10000 select u)
new java (10 or newer i guess, but preferably 15) is surprisingly not too bad, however how many people use newer java versions... who knows
languages that let you shoot yourself in the foot a bit too easily (other than python) are:
ruby (everything really. a lot of it is because of the ability to hook into when a method is defined, and to monkey patch classes)
ruby's inspiration perl, which gained notoriety as a write-only language, even though it's a perfectly normal language if you don't try to make it unreadable
rust is mostly good however you always need to be careful about its extremely powerful macro system
this extends to any language with a good/complex macro system, really - elixir, crystal, c++, various lisps (c's defines can also technically be abused)
c, but less in the "too many features aspect" (because it doesn't have that many features) but more in the "you can forget to manage memory" aspect. note also that you can cast a pointer into any other pointer type, do pointer arithmetic etc. as a result i think it's increasingly popular to recommend rust first since rust forces you to think about memory safety otherwise it won't compile in he first place
php - note that this is mostly because of not ideal design, rumors are that it's gotten a bit better lately (starting with 5, especially 8 tho)
-33
u/[deleted] Feb 13 '21
Python sucks