I went to bed thinking about the story scene chat was helping me with, but also with too much caffeine in my system. I got woken up twice, by two seperate variations of the scene making my heart pound in excitement. I think one of the versions put the scene into a bright field of flowers filled with round stone towers because I took a bath with a floral bath bomb.
i feel like the people who like python aren't programmers
I like python but I'm *checks notes* a "Systems Engineer", whatever that is
life's a game that you're bound to lose / like using a hammer to pound in screws
fuck up once and you break your thumb / if you're happy at all then you're god damn dumb
that's right we're on a fucked up cruise / God is dead but at least we have booze
bad things happen, no one knows why / the sun burns out and everyone dies
In python you don’t have to explicitly declare the type of any variable (like is it a string or an int), so it gets assigned based on how you use it and can get reassigned. Sometimes this is good, sometimes you get fucked by it.
credeiki on
Steam, LoL: credeiki
0
ShivahnUnaware of her barrel shifter privilegeWestern coastal temptressRegistered User, Moderatormod
I also hate R with a passion. The language I am best at and find easiest is C++. Maybe I'm just secretly 100 years old?
In python you don’t have to explicitly declare the type of any variable (like is it a string or an int), so it gets assigned based on how you use it and can get reassigned. Sometimes this is good, sometimes you get fucked by it.
i feel like the people who like python aren't programmers
Python is the preferred language of people working with large datasets, usually in social or science stuff that they need to crunch some data with.
I have some baseless speculation that this is largely due to sunk costs and they already have all the tooling for Python and can't be arsed recreating it in other languages.
My current theory is that duck typing made more sense 30 years ago when python was created and IDEs were fast less advanced, so strict type systems were a bigger burden.
life's a game that you're bound to lose / like using a hammer to pound in screws
fuck up once and you break your thumb / if you're happy at all then you're god damn dumb
that's right we're on a fucked up cruise / God is dead but at least we have booze
bad things happen, no one knows why / the sun burns out and everyone dies
i feel like the people who like python aren't programmers
Python is the preferred language of people working with large datasets, usually in social or science stuff that they need to crunch some data with.
I have some baseless speculation that this is largely due to sunk costs and they already have all the tooling for Python and can't be arsed recreating it in other languages.
I think it is more that python and R have really strong communities building out tools and such for free for folks.
A few of my R packages are actually written in C++ but run through R.
Data.table being the biggest example.
Almost all the excel packages are written in Java. And love to break like all things Java.
0
TavIrish Minister for DefenceRegistered Userregular
horse
0
BethrynUnhappiness is MandatoryRegistered Userregular
Duck typing, reading about it, seems even more stupid than usual dynamic typing...
"Just allow the programmer to do whatever and throw output errors while still running the code"
(i didn't mean it as "if you like python, then you aren't a programmer" but rather, people who end up programming from non-computer science / programming backgrounds appreciate the conveniences of python instead of finding them frustrating. i apologize for my insensitive remarks and will reflect in the chamber of shame)
i feel like the people who like python aren't programmers
I love python; I think it is very easy to use; I use it professionally every day; and yes. Not a programmer but I do write code for money so whatever, I think I don’t need to get my hackles up over the semantics.
I also have written multiprocessing code a couple of times but it’s v bad, as I said before. However some libraries multiprocess by their own and also there are workarounds.
Prof software engineer, python is my preferred language.
But I mostly use perl at work because idk my boss is a time traveler from the distant past or something
i feel like the people who like python aren't programmers
Python is the preferred language of people working with large datasets, usually in social or science stuff that they need to crunch some data with.
I have some baseless speculation that this is largely due to sunk costs and they already have all the tooling for Python and can't be arsed recreating it in other languages.
It's because it's not statically typed I think.
So you can do what PHP and JS do and reassign variables to your hearts content and the language just doesn't give a fuck at the current time until you try to use a method that isn't implemented in the class, then it throws a runtime error instead of a compile time error.
not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
In python you don’t have to explicitly declare the type of any variable (like is it a string or an int), so it gets assigned based on how you use it and can get reassigned. Sometimes this is good, sometimes you get fucked by it.
you an enforce type hints with some extensions to help make it be more statically typed
additionally things like numpy and pandas and SciPy are written in C++ but have a python wrapper
i feel like the people who like python aren't programmers
I like python but I'm *checks notes* a "Systems Engineer", whatever that is
You're also a big Powershell user so
ya know
I've hardly gotten to write any powershell in so long.
Stupid *nix environments
life's a game that you're bound to lose / like using a hammer to pound in screws
fuck up once and you break your thumb / if you're happy at all then you're god damn dumb
that's right we're on a fucked up cruise / God is dead but at least we have booze
bad things happen, no one knows why / the sun burns out and everyone dies
In python you don’t have to explicitly declare the type of any variable (like is it a string or an int), so it gets assigned based on how you use it and can get reassigned. Sometimes this is good, sometimes you get fucked by it.
the saner way of handling dynamic typing than how JS handles it
you both wildly overestimate my frogramming knowledge
Oh in any case I realized duck typing doesn’t quite refer to what I mean
It means that you can try to do anything with any variable and if it works it works and if it doesn’t the interpreter gets sad about it instead of preventing you from trying the thing in the first place based on the variable’s type
I guess I don’t care about this? I mean sometimes you realize that you thought you had a string but instead you had a list or whatever and then you fix it. You can always just do if dtype(a)==string:
in order to check, so dunno what the problem is really.
I would honestly rather write C and Java code than Python though, I really hate Python.
with python tho, you can have a wrapper around computational heavy C code, and rely on python for I/O and GUI stuff. especially if you wanna get around the global interpreter lock.
it's easier to use Qt for UI stuff in Python than it is in C++
i feel like the people who like python aren't programmers
I like python but I'm *checks notes* a "Systems Engineer", whatever that is
You're also a big Powershell user so
ya know
I've hardly gotten to write any powershell in so long.
Stupid *nix environments
Trying to relearn Linux so I got a Raspberry Pi. God I forgot how unintuitive things like parameter names can be. Switching to zsh helped though. Feels like a shell written in the last century at least
Runtime errors: for people who insist that they can just write bug-free code.
Yeah my dynamic code in C# is a fucking mess of error handling because you can't trust ANYTHING of being accurate or conforming to a model.
For instance, if you're parsing a json file and pushing it into a dynamic obj because you're lazy, you'd run the risk of data being missing, referencing null elements, older formatting, etc. Anything that can go wrong, will go wrong. I try not to use dynamic unless it's a real small thing and I can cover its warts effectively that no one will notice.
not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
Trying to relearn Linux so I got a Raspberry Pi. God I forgot how unintuitive things like parameter names can be. Switching to zsh helped though. Feels like a shell written in the last century at least
In python you don’t have to explicitly declare the type of any variable (like is it a string or an int), so it gets assigned based on how you use it and can get reassigned. Sometimes this is good, sometimes you get fucked by it.
the saner way of handling dynamic typing than how JS handles it
you both wildly overestimate my frogramming knowledge
It's from the expression "if it looks like a duck, swims like a duck, and quacks like a duck, it's probably a duck."
In languages like C++, you have to strictly specify exactly what a variable is. If you want to hold an integer, you have to specifically create an "int" variable--and you can't change that variable later on to hold text, because you've already decided it's an int. That means you always know exactly what type something is... if I ask for a number, I'm guaranteed to get a number.
In python, you don't have to do that. The important thing is that it has the interface you want. So you might have a variable "myVar" and you might call the function "myVar.quack()". You don't care what type of variable myVar is, all you care about is that it has a function called "quack()".
There are pros and cons to each. Python's flexibility can make it easier to work with at times, but can also make it harder to diagnose issues.
Trying to relearn Linux so I got a Raspberry Pi. God I forgot how unintuitive things like parameter names can be. Switching to zsh helped though. Feels like a shell written in the last century at least
Posts
typing
???
I like python but I'm *checks notes* a "Systems Engineer", whatever that is
fuck up once and you break your thumb / if you're happy at all then you're god damn dumb
that's right we're on a fucked up cruise / God is dead but at least we have booze
bad things happen, no one knows why / the sun burns out and everyone dies
In python you don’t have to explicitly declare the type of any variable (like is it a string or an int), so it gets assigned based on how you use it and can get reassigned. Sometimes this is good, sometimes you get fucked by it.
the saner way of handling dynamic typing than how JS handles it
Because Python was clearly written by a duck typing randomly on a keyboard, you see.
you both wildly overestimate my frogramming knowledge
No you want to program not just do some data work on the side.
I think that is it.
Python and R are great for data work.
Python also works for small automation tasks, especially around data.
They aren't for programming.
You're also a big Powershell user so
ya know
I have some baseless speculation that this is largely due to sunk costs and they already have all the tooling for Python and can't be arsed recreating it in other languages.
fuck up once and you break your thumb / if you're happy at all then you're god damn dumb
that's right we're on a fucked up cruise / God is dead but at least we have booze
bad things happen, no one knows why / the sun burns out and everyone dies
this is my level
May have gotten a bit enthusiastic near the end when doing 100 macebell 360 swings.
I think it is more that python and R have really strong communities building out tools and such for free for folks.
A few of my R packages are actually written in C++ but run through R.
Data.table being the biggest example.
Almost all the excel packages are written in Java. And love to break like all things Java.
"Just allow the programmer to do whatever and throw output errors while still running the code"
??????????
Too many unhelpful evangelists too, maybe
Prof software engineer, python is my preferred language.
But I mostly use perl at work because idk my boss is a time traveler from the distant past or something
It's because it's not statically typed I think.
So you can do what PHP and JS do and reassign variables to your hearts content and the language just doesn't give a fuck at the current time until you try to use a method that isn't implemented in the class, then it throws a runtime error instead of a compile time error.
you an enforce type hints with some extensions to help make it be more statically typed
additionally things like numpy and pandas and SciPy are written in C++ but have a python wrapper
python's neat as hell
I've hardly gotten to write any powershell in so long.
Stupid *nix environments
fuck up once and you break your thumb / if you're happy at all then you're god damn dumb
that's right we're on a fucked up cruise / God is dead but at least we have booze
bad things happen, no one knows why / the sun burns out and everyone dies
Oh in any case I realized duck typing doesn’t quite refer to what I mean
It means that you can try to do anything with any variable and if it works it works and if it doesn’t the interpreter gets sad about it instead of preventing you from trying the thing in the first place based on the variable’s type
I guess I don’t care about this? I mean sometimes you realize that you thought you had a string but instead you had a list or whatever and then you fix it. You can always just do if dtype(a)==string:
in order to check, so dunno what the problem is really.
with python tho, you can have a wrapper around computational heavy C code, and rely on python for I/O and GUI stuff. especially if you wanna get around the global interpreter lock.
it's easier to use Qt for UI stuff in Python than it is in C++
the frog rammers are coming out of the walls!
>:[
Trying to relearn Linux so I got a Raspberry Pi. God I forgot how unintuitive things like parameter names can be. Switching to zsh helped though. Feels like a shell written in the last century at least
Yeah my dynamic code in C# is a fucking mess of error handling because you can't trust ANYTHING of being accurate or conforming to a model.
For instance, if you're parsing a json file and pushing it into a dynamic obj because you're lazy, you'd run the risk of data being missing, referencing null elements, older formatting, etc. Anything that can go wrong, will go wrong. I try not to use dynamic unless it's a real small thing and I can cover its warts effectively that no one will notice.
I'm a fish person.
It's from the expression "if it looks like a duck, swims like a duck, and quacks like a duck, it's probably a duck."
In languages like C++, you have to strictly specify exactly what a variable is. If you want to hold an integer, you have to specifically create an "int" variable--and you can't change that variable later on to hold text, because you've already decided it's an int. That means you always know exactly what type something is... if I ask for a number, I'm guaranteed to get a number.
In python, you don't have to do that. The important thing is that it has the interface you want. So you might have a variable "myVar" and you might call the function "myVar.quack()". You don't care what type of variable myVar is, all you care about is that it has a function called "quack()".
There are pros and cons to each. Python's flexibility can make it easier to work with at times, but can also make it harder to diagnose issues.
I would use that one