I like Python def
I like Python def
I like Python def
Ewww default exports. Explicit named exports are better! And so it begins
How very dare you share my opinion!
PascalCase default exports for Classes
camelCase named exports for functions
ALL_CAPS named exports for constants
How about some fun
?
How about some fn
instead?
these puns are getting func
y
Chef's kiss 👌
So much better
fun
is the punchable face of keywords. I don't know why, but I hate it.
Oh, you're no fun
.
I'll see myself out.
For me it's friend
I prefer good old def
How about some (defun)
?
better than function
Kotlin?
Yes
Python is fine as a language I guess
But python programmers give it a bad name. I've never seen "well written" python code, it's always shit that's been thrown together cos it works.
I use python exclusively when I want to quickly throw some shit together that nobody's ever gonna spend any time maintaining, so that tracks.
It badly needs strong typing. And braces.
just put int_ or str_ in front of your variables
problem solved 😌
When the grey beards wake up they're going to be fuming
int main() {}
Seriously. why isn't there any C love around here?
Who doesn’t use arrow functions?
Arrow functions should be used only for callbacks. I hate that people has started defining named functions with arrow functions in JS. Arrow functions are not hoisted and the ordering of your functions is going to get wonky, because you need to define all you functions first before composing them, when it should be the other way around. Start with the most high-level function which calls lower level functions.
I think there's also a good case to use them if your function is just evaluating and returning a single expression.
sum(your_mom <- rep(69, 420))
Python sucks ass. Try Go if you don't like Java
That's a nice argument, Senator. Care to back it up with a source?
pipenv venv virtualenv pyenv poetry
Spin the wheel
Depends what you are working on.
Like all languages, they all have pros and cons.
Language evangelism doesn't help really...
While I personally agree that Python sucks, largely because I don't agree with whitespace indentation defining blocks and I also don't like Java...I'm neutral on Go, depending on the use case.
I know plenty of people who love Python, but I kind of wonder if it's because they were brought up on it. I wasn't. So we're just in different camps. Whatever floats your boat I guess.
I was brought up on Python and also do not like it for a variety of reasons, both practical and by personal preference. I also have the opinion that if you are trying to learn software engineering it is not a good language to start out with, despite it being so easy to pick up at first.
Some people try to use Python's popularity as a counterpoint, and while it does show that my view is a minority opinion, it's not a very convincing argument for the language itself.
I love python just because of the community. It is a very popular beginner language (for better or for worse, depending on who you ask) and its community has grown to embrace that. They have the most active Discord I've seen for a language and they do a lot to curb elitism and plain old rudeness. Not that other communities are necessarily bad, but the Python community is where I end up whenever I really want to feel passionate about programming.
you've probably read this many times before. prototyping, three users applications, routine, quick test, owning pretentious kids with some class inheritance, medium / small company data processing, free very good editors with all you need to code/debug, speed not necessary, my boss doesn't like it... stuff like that
Having worked on all 3 of those I prefer python. I think C# is a much better Java alternative though. But it would depend on the project of course. Something like Python of JavaScript is nice for faster development. That's my jam lol.
As for it sucking ass. Idk about that but it may be a cool feature to try out
\
i agree. python only be used if absolutely necessary, such as machine learning and what not. and only because of its popularity and libraries. scripting? try bash or lua. making a cli/tui? try rust or c or something. web backend? god have mercy if you decide to use python for that.
"Web backend"
Youtube has been real silent since that one dropped.