Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "python"
-
Someone on the IP 127.0.0.1 has been creating a lot of bugs in my code, please beware of you notice any connections from that address.16
-
Don't know if it's up here, found it on r/ProgrammerHumor and thought it deserved to be shared :)28
-
Customer at a first meeting:
- "Didn't realize you're a developer, you're almost good looking!"
Never got a more bittersweet compliment.19 -
I accidentally created a bug that became an amazing feature at my last job.
It was for a program to read barcode tickets (we created software and web solutions for events), and to register the barcode sacnners to the computer I had to do some magic with USB-detection since it was not specified which brand the scanners would be (so no SDK would be available).
When the scanner was plugged in it would create its own thread so it wouldn't interfere with the UI of the program when it was reading/sending data.
Somehow I messed up with the thread termination for new scanners so it would accept to connect more than one scanner and it would work flawless since it was its own thread in the program.
When I tried to think out a solution for multiple scanners when planning it I got a headache and thought that's something for later. Turned out alright in the end apparently.8 -
That weird moment when you don't understand what ++ or -- means in devRant cause you Python developer15
-
Learned Python by working 6 year with it. The first tool I made in my spare time was a porn playback helper.7
-
When you've been getting lots of comments on your pull request and have to keep asking for approval.7
-
"It must work in IE6, we still use it in our offices."
While developing a JavaScript web app for a bank with 10 000+ employees. In 2014.8 -
So I've started my Python adventure and made an app that lets me know what's my next lesson in school. It shows lesson, subject and time.9
-
Coolest project: I once worked for a customer who hosted an exhibition for a few thousand visitors in a big event arena in Stockholm.
They didn't want to use the existing ticket reading system on the arena so I had to build my own application compatible with barcode scanners (they said this about one week before the event).
It wasn't a complicated application to dev but with the tight deadline and no time to actually stress test it, it was the coolest thing to see hundreds of people streaming through the ticket station flawlessly.
Day 2 of the event I built a simple web application so I could see the flow rate of read tickets while I sat in the arena pub with a beer.6 -
Had to wake four people up at 2 am to fix a crashing service.
10/10 would deploy to production on Friday night again.27 -
Me: you should not open that log file in excel its almost 700mb
Client: its okay, my computer has 4gb ram
Me: *looking at clients computer crashing*
Client: the file is broken!
Me: no, you just need to use a more memory efficient tool, like R, SAS, python, C#, or like anything else!5 -
sudo apt-get random-tool
Traceback (most recent call last):
Aborting because there's a fork in the spoon compartment on line 43 in main
Error this script only works on Python 2.7 and maybe 4.1 on line 59 in main
Missing symbols when trying to decipher Sumerian recipe for steamed vegetables on line 67 in main
Cannot open shared object: Your OS is a bully and is hiding my files on line 98 in main
Are you sure all directories matching ^(/)?([^/\0]+(/)?)+$ are in your $PATH on line 268 in main
Your computer is kind of vibrating in an annoying way on line 332 in main
Failing because I'm feeling insecure please hold me on line 587 in main
I'm feeling confused about my sentience when running TensorFlow models on line 682 in main
FUCK
HAS ANYONE EVER MANAGED TO JUST FUCKING INSTALL A PYTHON BASED APPLICATION WITHOUT DEBUGGING RANDOM COMPUTER STATE SHIT AND DEPENDENCIES FOR THREE HOURS?16 -
At introduction of new class teacher asked which _one_ of the following isn't a programming language:
- Swift
- Pseudocode
- Haskell
- HTML
Took my chance on HTML, but apperantly pseudocode is less of a programming language according to him.30 -
Was scrolling through LinkedIn and had forgotten i wasn't on devRant. Just thought:
- "Man, these rants really suck." -
So, I was out cruising in my sports car the other day. Porsche, two seater, about 400 hp.
When I stopped at a red light I was next to a man driving his family of four in his Volkswagen. I revved my car to show my power, but he seemed unfazed by my superior engine. When the light became green I floored it, he didn't have a chance of catching up, I just left him behind and laughed. He's so stupid for driving that slow car.
I can't understand why anyone would ever want to drive a Volkswagen when they are just so obviously slow?
👆This is how you sound like when you compare languages only based on how fast they are.13 -
After working as a developer for 4-5 years I finally took up school again.
The teacher at our first programming course insisted that we named all our variables in our locale language (swedish) and always started arrays at index 1.15 -
Wrote a python script to fetch details of amazon products to monitor price differences.
The script is only 50 lines, which is why I love python!8 -
Best and worst customer I've had: A bank.
Great because they had so much money for projects.
Unbearable because everything needed to work in IE6.6 -
Biggest dev insecurity?
Probably http://
It’s not secure at all, never feeling very confident when browsing that protocol.6 -
OMFG it happened again. I'm always very explicit with recruiters that I don't take full time employment while I'm studying. This one was very understanding about it and said he found a great match for my skillset.
I just had a meeting with the CEO of this great match of a company.
- "No, we only seek people who can work full time, let's keep in touch when you've graduated".
What the fuck, way to waste everyones time.10 -
Due to the coronavirus we are currently required to develop all our web services with SOAP and sanitise all our input for at least 20 seconds.2
-
What the fuck, it says on both my LinkedIn profile and on my CV that I'm a student but I can take on part time projects, and I also told a recruiter the same thing over phone (after he found me on LinkedIn).
Today I had lunch with said recruiter. Guess who had no clue I was a student?11 -
Told the recruiter about 4 times before my lunch interview that I was a working student (I could only take part time jobs).
Just as we sat down and got our food he asked me where I currently worked, and I gently reminded him that I was still, in fact, a student.
He had this weir look on his face as I had tried to trick him into a free lunch, as all the positions he had was for full time jobs.
Still ate the lunch and had awkward small talk the entire time.6 -
Few weeks ago I was having a few beers and messing around with a Minimax AI that could be used for different games as long as you fed it possible moves and win/loose-conditions. Could be used for like Tic Tac Toe on a 5x5 field, connect four etc.
I hadn't got it to work yet as I tried to implement alpha-beta pruning to optimize it. When I was playing against it I thought "Damn you're stupid, why would you even make that move" but still finished the game.
Before I knew it I had fucking lost. It outplayed me like 6 moves before I even knew what was happening.
And that's one of the top coolest feelings I've had as a developer, got destroyed by my own program.3 -
Apparently you make more money if you use spaces than if you use tabs
https://stackoverflow.blog/2017/06/...10 -
When you see a Java devotee using Python and they're doing something like this:
array = [1, 2, 3, 4]
for n in range(0,len(array)):
print(array[n])
At least I get to tell them "hey it doesn't have to be so hard just do it like this:"
array = [1, 2, 3, 4]
for n in array:
print(n)14 -
It’s actually pretty neat. I constantly suffer from impostor syndrome, so I always have keep learning to keep up the facade.4
-
Good to see instagram move to python3 without an exception. Literally that was smooth. Cheers to those who think Python is not scalable. 95 million photos on daily basis. 400 daily users.
https://thenewstack.io/instagram-ma...5 -
People always asked me how I got started with Python, I always have to come up with a reason to hide the fact that I started using it because I like the name13
-
Took me longer than I'd like to admit before I realized why my function always returned zero.
Too quick with the constructor it seemed.6 -
sometimes I hate python....
Ive just chased down a bug where a simple string saved in a simple dict sometimes came out as a f*cking tuple(!) when I needed it!
turned out that at some point this dict got updated with values from some other dict. And at some other point, I decided it was a great idea to rewrite that update code into individual setter's instead ... and of course forgot to remove one the trailing comma's, thus creating a perfectly legal tuple .... *sigh*
No errors, no warnings - just plain corrupt data....10 -
During mockup presentation where everything is perfectly vertically aligned:
Dev: "How should the surrounding content behave if the article is longer?"
Designer: "That won't happen."3 -
Some back info that you need to know for this rant:
1) I am a Canadain, so I spell 'color' like: colour.
2) Americans spell 'colour' like color.
Today I was debugging a Python file that I and my team of Americans and Canadians were working on. I ran the code and got an error that one of our variables was named incorrectly. I searched the code up and down for 3+ hours looking for the issue. After taking my lunch break I came back and read the file again. Then I realized it: I had started working on one part spelling color like colour, and then an American finished the project, spelling colour like color, so there were two different variables. This really pissed me off because we could have fixed it by deciding on a language before we started the project. I fixed it quickly and now we have a new rule at the office: always use American English when naming variables.
Moral of the story: decide which language to use for variables when working on a multi-national team.10 -
Haven't written Python in months. Noe I have to go back through a couple hundred lines and remove all the ;s 😂😂7
-
Once worked for a guy who lectured me in front of the whole office because I didn't continued work at home after I stayed 3h unpaid overtime at the office.
I quit soon after that.3 -
Always use SELECT-query with the same conditions before you DELETE/UPDATE in a production database.1
-
Worked as a web developer on a really small agency and we always said to customers that were not designers so they need to provide us with a mockup if they want it fancy.
One customer wanted us to design a campaign site for an event and we asked for a design mockup.
"Sure, I'll send it right over!"
About 2 hours later a bike messenger knocked on our door and gave us a coaster from the merchandise. -
Favourite code editor?
Hands down, it’s actually Vim.
It’s mostly because I haven’t been able to exit it though. Actually it’s the only reason. I’m stuck. Someone please send help.12 -
Apparently the firewall at work has blocked access our git repo since there are too many consecutive requests to it.3
-
pyRant!!!
What is Python?
Me: Python is sweet,robust and Productive
Others: Python is snake
Me: Sickheads😈😈😈9 -
I've set up my server to only accept logins with SSH-keys, and permanently banning all IP:s that attempt login with passwords.
Now I can't stop watching the banned IP:s stacking up, it's like drugs to me.6 -
On Python,You create a gun module, a gun class, a foot module and a foot class. After realizing you can't point the gun at the foot, you pass a reference to the gun to a foot object. After the foot is blown up, the gun object remains alive for eternity, ready to shoot all future feet that may happen to appear.1
-
I'm currently reading a course in Project Management and I have yet to find an image in the course literature with a person that doesn't suffers from a headache.1
-
ARGGHHHH Python!!! why the hell is this a thing... if I specify a default argument, I want it to be a default argument, not get carried over....13
-
I find it ironic that some python devs hate on nodejs because of npm modules. But then go ahead and create a virtual environment for every new python project.6
-
from phone import Camera
from animals import Python
camera = Camera()
python = Python()
camera.take(python)
camera.showImage()4 -
Everyone talks about their hate of js but like python is honestly just as bad.
- shitty package manager,
* need to recreate python environments to keep workflows seperate as oppose to just mapping dependencies like in maven, npm, cargo, go-get
* Can't fix python version number to project I.e specify it in requirements
- dynamic typing that gets fixed with shitty duck typing too many times
- no first class functions
- limited lambda expressions
- def def def
- overly archaic error messages, rarely have I gotten a good error message and didn't have to dive into package code to figure it out
- people still use 2.7 ... Honestly I blame the difficulty of changing versions for this. It's just not trivial to even specify another python version
- inconsistent import system. When in module use . When outside don't.
- SLOW so SLOW
- BLOCKING making things concurrent has only recently got easier, but it still needs lots of work. Like it would be nice to do
runasync some_async_fcn()
Or just running asynchronous functions on the global scope will make it know to go to some default runtime. Or heck. Just let me run it like that...
- private methods aren't really private. They just hide them in intelisense but you can still override them....
I know my username is ironic :P13 -
Quitting my last job. I had been there for about 3 years and had a great time there.
It was only my boss and I, we were developing software and websites for events so we were quite often out meeting and partying with people, it kinda became a part of the job. We had a fridge always stacked with beer and champagne which was for us and our friends to use. The office was located in the middle of the most exclusive business and club district in the city, so I could use the office as I wanted during evenings to meet up with friends and drinking beer.
But it was expected to work a lot of overtime. I was single and young and really liked what I was doing so I didn't mind. But then I met the love of my life and started to spend more time with her. I couldn't stay and work as often and would rather be with her on weekends.
It became quite hard to live up to my boss's expectations and it always felt like I disappointed him if I didn't (or couldn't) stay for an after work, and when I did, it felt like I disappointed my new girlfriend instead.
Ultimately I felt I had to choose one of them, or I would definitely loose her. It was a no-brainer since I knew I couldn't keep working like that forever, and didn't want to risque a relationship because of work.
It took all of my courage to do it and I felt so bad because I knew my boss (and my friend) would feel like I betrayed him, but I knew it was the right thing to do.
I can still miss it sometimes, but I don't regret it.3 -
I once added a semicolon at the end of a line when coding in Python.
I’ve brought shame on my family.4 -
I fucking love Python
It just works :)
Half an hour for a nice evening side project.
Even faster than Twitter takes for approving an app.
im waiting now 1 week...6 -
When you think you've either found a bug in Python, or you're going insane, so just to double check, you make two mutually exclusive assertions that could never both be true, and yet, your tests still pass.
I think it's time to find a new job.9 -
Started learning python couple of days back.
My feelings right now
How the fuck I miss this language for so long time?13 -
I just replaced 180 lines of Python with 5 lines. I want to smack the author but that would be workplace violence. Funny how if you import some built in libraries you don't have to basically write it's entire functionality and can just use it. I am so ready for this week to be over.3
-
I officially do not know what the fuck I'm doing.
I can't stay focused on any language to learn and it frustrates me so much.
I want to learn Python but my head is always like why don't you do something like php or HEY why not fucking do JavaScript or some big boy languages like c or something, hey wb that Java project due for school?
And then even when Im doing Python my brain is like "ayyo you should learn machine learning, tkinter AND beautiful soup. .oh WAIT YOU SHOULD LEARN PYTHON 3 INSTEAD OF 2, while you're at it why not install vim instead of atom?" And it's just really frustrating cause I want to build apps but my brain keeps telling me I need to learn something else before I can make anything good it's a repeating cycle and it's just very frustrating8 -
2018 dev goal #1: ✔️
This week I learned Python 3, as in most of the syntax. Not yet any development, but that will come tomorrow onwards.
Oh, and I hate the funky type system, which is almost non existent and so flexible that I don't know if it's just bad or I simply don't see why I should want it this way.
Please enlighten me why you think Python is great or just plain snake crap.
Did I mention snake case being common practice? And that Python doesn't know real private properties, methods, etc.? How does that work?17 -
When I landed my dream job in 2009 (which is also be my first job in the industry), I had no clue about python. The company just asked me three months after starting with them for something related if I'd like to join the automation team. It sounded like fun to me, so the company paid for me a private remote instructor for a week. Then I went across the world to the main office to work directly with our automation team for two weeks. I picked it up quickly and well (or so I thought) and was churning out scripts for a few years.
Through a series of unfortunate events, I and many others no longer work there. Five years later, I have a renewed interest in Python so I take online courses to relearn it. Why is it so much harder this time around? I do remember it, but not in great detail nor as well as I did, but I'm baffled that I'm struggling so much the second time around.
It's only Python! Still getting enjoyment out of it as I did before though.3 -
I've been a Python user and contributor for 10+ years. Somehow, after seeing so many fights on the Python mailing lists in the past few months, I have mixed feelings about the language itself.
The binary on my laptop is still the same, but using it feels different.6 -
I just had my first "Group project"-experience and holy fucking shit am I about to explode right now.
I messaged you one fucking week before the project is due and ask for your input that none of you contributed to and if that was too advanced for you imbeciles to handle then HOW THE HELL ARE YOU SUPPOSED TO SURVIVE THREE MORE FUCKING YEARS IN CS. THEN YOU HAVE THE DECENCY TO RESPOND SIX FUCKING HOURS AFTER THE PROJECT IS DUE AND COMPLAIN ABOUT THE WORK.
WELL GUESS WHAT YOU FUCKING WASTE OF MOLECULES, I ALREADY TURNED IT IN AND THE ONLY REGRET I HAVE IS PUTTING YOUR FUCKING NAMES ON THE PROJECT.
I DRAGGED YOUR SORRY ASSES TO THE FINISH LINE AND THEN YOU HAVE THE COURAGE TO ASK "WHAT TOOK YOU SO LONG"?
NEXT TIME AT LEAST HAVE THE COURTESY TO SPIT BEFORE YOU FUCK SOMEONE OVER4 -
About every project at my last job. Impossible to like any project with a boss that legitimately thinks frames and tables are a better option than learning css.
But why not, attribute styling on html-elements are the future indeed.8 -
I absolutely hate python, but it has simple string manipulation because of how it abstracts from arrays, so I have to use it to write my assembler for my CPU project
I wanna take a hot shower and scrub myself of that filth18 -
Reviewing code in a project, found this one:
# Todo: Fix horrible parent member check. People may have been killed for better code
-- horrible code here -- -
So after exactly 30 minutes of building a basic interpreter (yes I'm back on the interpreter wagon) in python, I have once again come to the conclusion that python can go fuck itself with its backwards and inconsistent syntax with needlessly over worked and backwards data structures...
Would rather work in fucking COBOL at this stage...3 -
Dear devs,
I’ve been seeing a lot of comments bashing python. I’d like to know the moment when you went “wow fuck this shit” with python.
My biggest gripe is in large ish projects, because of the dynamic typing things are so hard to debug and narrow down. If it had static typing then python would be the best, but then if it had it it wouldn’t be python in the first place I’d venture.
Go!18 -
Got an assignment in school to make an easy project in c for embedded real time processors with a free complexity level (it was really early in the course and many had never been programming before).
Since I've been working a few years in development I decided to create an own transmitter and receiver for an own protocol between processors (we had just spent a week to understand how to use existing protocols, but I made my own).
The protocol used only 1 line to communicate with half-duplex and we're self adjusting the syncing frequency during the transmission. I managed to transmit data up to 1 kbps after tweaking it a bit (the only holdback was the processors clock frequency).
Then I got the feedback from our teacher, which basically said:
"Your protocol looks like any other protocol out there. Have you considered using an UART?"
Like yeah, I see the car you built there looks like any other car out there, have you considered using a Volvo instead?1 -
What kind of sick joke is it that the url for camelCase on wikipedia is www.wikipedia.org/wiki/Camel_case2
-
So I own a small business that is a licensee of about a few hundred other ones. I wanted a mail list from the corporate office and they wanted to charge me. (we already pay them hundreds if not thousands a month) So I wrote a python script to scrape their website and get the info for free. I love programming!3
-
TIL Python doesn't really give a fuck about semicolons -.-
So after spending the past couple years almost exclusively using C# and Unity I decided to come back* to Python for no real reason except wanting a change of pace.
I almost ripped my hair out backspacing semicolons I kept putting in out of force of habit after having worked in C# for so long
Well guess what... I just learned (purely by accident)... Python couldn't care less. I feel internal conflict if that makes sense.
TBH now I'm randomly putting in semi-colons at the end of some statements just because I can and I want to abuse this freedom ^_^
Yeah yeah it's not very "pythonic" or pretty but screw that
* I started programming in Python back in high-school but switched over to C# + Unity after graduating and pursuing indie-gamedev.
Note: After some searching I realize you can use semicolons to have multiple statements on the same line but I never really needed to do that during my time with Python so I didn't even remember it was even a thing6 -
The new iPhone is gonna have an odd number of pixels in width. I can already feel the anxiety of trying to achieve pixel perfection.7
-
Python is a fucking joke. "Readability" disguised as 150+ magic methods and values. Virtual environments to hide shitty dependency management. Strings that may or may not act as comments. No correlation between package and module names - install Pillow; import PIL. **kwargs instead of options=dict(), because why separate function arguments from arbitrary extra data? And finally, the only way to have tkinter on Windows is to install IDLE, so that some fucktard can stick their shitty app right up yours ...7
-
How to explain “What is a Python environment?” to some PhD candidates that don’t have experience in programming?
I will teach Python this semester and I am trying to come up the right explanation.21 -
Anybody loves python? I don't know why, but the more I use python, the more I seem to hate it. Specially the poor naming of the functions are just horrible! specially when you've been following the #CleanCodePrinciple strictly.
Let me give some example:
What does even "len" or "str" mean normally? is it a variable or a function? can anybody imagine?
where as in Java or JavaScript it is array.length and anyValue.toString()
anybody can understand what these things are, whether a variable or a function.
in python some functions are like "dothisorthat" and some are "do_this_or_that" some are "doThisOrThat". I mean, why can't you just follow an unified rule?
and there's this fragmentation between python 2 and 3! whether in stackoverflow or in youtube/udemy, a lot of them used python 2 and some uses python 3. I mean, can't they have some BackworkSupports?20 -
Is it just me, or are there any other devs, that just can't get going with python?
Every time, I try to do something, that is supposed to be simple, the language be like, "Bitch, hold on. I know I'm supposed to be the most simple language there is, but here I am again, to fuck you over. Your welcome.".
According to my friends, its actually just me.12 -
My last boss insisted on using tables instead of divs and then asked me to make it responsive (every damn time). Also, functions that were over 10k of lines.4
-
Guys, I have recently made a python package which is published on PyPI.
I am a very junior python lover 😍6 -
Fuck me sideways, it took me so long to figure out what caused a certain bug. Thanks python
>>> list = [[0] * 2] * 2
>>> list
[[0, 0], [0, 0]]
>>> list[0][0] = 1
>>> list
[[1, 0], [1, 0]]9 -
I've heard a lot of nice things about python so today I decided to check it out and HOLY CRAP this is an amazing language! Really makes me wonder why I didn't look into this sooner!
Seriously though! I looked at the documentation and official tutorials for like 30 minutes before writing a selection sort algorithm using only six lines of code. I'm quite mind blown.8 -
Nothing ruins my day like having to touch up python scripts. I'm predominantly a Java dev and never learned Python properly so every time I do it its THE WORST2
-
I love pipes in R. Really wish more mainstream languages would adopt that *looking at you python, nodejs-tc39, rust, cpp*
Just something about doing
data %>% group_by(age) %>% summarize ( count= n() ) %>% print
As oppose to
print(summarize (group_by(data, age), count=n()) )19 -
C: what technologies are you using in this product?
Me: we are using celery which uses kombu to communicate through redis. Additionally, we have beat tasks that run and check the state of workers
C: was someone hungry when they named these frameworks?
Me: Possibly, but I just got hungry naming them. -
Been writing some Python apps for the last weeks and I really enjoy the language. I got all the basic stuff down but not sure how to progress to learn the more advanced stuff. What even is advanced stuff in Python and where can I find information about it?
I'm thinking about creating an API, any advanced techniques I could benefit or use for that?9 -
I became good enough to be hired as a developer by reinventing lots of wheels and making mistakes. A lot of mistakes.2
-
At what point can I claim to not be a script kiddie anymore?
Like, I've built compilers, and interpreters for an excel-like syntax, I refactored a pdf-parsing library from the ground up. I managed databases and wrote protocols for communicating with hardware.
But most of my experience is with python / nodejs / golang. It is only recently that I started playing with C and rust for actual efficient system code.8 -
When I was starting with Python at work I was very confused about identifying what is function, class, module, object instance, etc. just by name so I asked my colleague with PHP background to follow PEP8 and use meaningful names for objects. He's like okay and the next day I find this:
class vv(models.Model):13 -
Switched from Python 2 to Python3 a while ago. The biggest challenge for me is still remembering to use print as a function.2
-
I'm learning python3 right now, advises or exercises to practice? I want to learn machine learning. I'm developng on elixir for now. But I hear good stuff about python.6
-
# what's new in Python 3.6
https://docs.python.org/3.6/...
# and I gotta plug https://talkpython.fm/
... -
Python. Oh dear Python. Why, oh why, when I have your function with parameters defined as an int, do you blithely accept a string and just go about your merry day? If I wanted you to be able to accept a string I would have let you accept a string. But no, I want ints. Its not a suggestion. Its a demand.
You're dynamically-typed thug life gets on my static-typed backgrounds nerves.
(I am fully aware of the reasons for it and why, but my goodness I do sometimes miss my static-typed compile error languages, rather than pseudocode that accidently compiles python)25 -
So the other day, I was working on some Python project when there was this bug that kept transforming. Like seriously, I would turn from "bool not defined" to "function does not exist" to literally "file does not exist"... within the FILE. And when I fixed them, new bugs kept popping up, and I couldn't find anything that was a problem. Nothing. There was this one function in there that, if I changed even the comments in there, would break. And so.... I turned off Atom and turned it on again. ( ha ) Didn't work. I restarted my computer. I copy pasted the file into another file. I used another IDE. I restarted GHCI. I restarted Jupyter Notebook... and after 6 hours... I found that it was because an if statement has a comparison between a bool and a bool, with a = in the middle. (not ==). I swear I almost threw the computer on the floor.2
-
Python drives me nuts. Can we just have 1 environment to run python. Virtual environment or conda environment. Hard to switch from notebooks to ide's because you need to reinstall the packages for that environment3
-
I don't know how many hours in a row it was, but one month I put down about 340 hours of work.
My boss had taken upon this massive project with a deadline at the end of the month. I basically lived at the office (I actually spent the night there more than once), meanwhile he was out sailing.1 -
I was trying to watch an instructional YouTube Python video (on my Android phone) while it was dark in my bedroom, and then I remembered that Youtube for Android doesn't have a damn dark mode... NOOOOOOOO!!! :( :(
Why did you do this to us Google!5 -
I'm really tired of all the hype that Python lately gets, mostly by begginers or at most mediors.
I get that a lot of people like it's syntax, but it has just a few use cases where it really shines (like CI scripting or ML). In other cases it always has a much better and much more mature alternative.
As a web developer I would always pick PHP over Python. It has really mature frameworks like Symfony or Laravel which are using PSR standards, well documented and implemented common patterns, option for strict typing and probably most importantly tons of libraries for pretty much everything. For example I could find implementation of payment gate for even the smallest banks in our country, thus saving several days of implementing it myself. And PHP will always humiliate Python in performance. Yet, pretty much every comparison article of those two will state Python as better option for webdev, mostly because it is evident that the person who wrote the article never even tried to do a proper atleast midsized project in PHP, but has ton of experience in Django.
And what exactly is my point? There are two in fact:
1) You should always use the right tools for the job.
2) Even if you could do something doesn't mean you should do it.
In the end of the day I shouldn't really be bothered by people hyping Python, but those fanatics really made me hate the language, even if I would normally consider looking into it.8 -
I've tried to give it many chances, but I just don't think Python will ever be for me. Even "quick and dirty" scripts are faster for me in a statically-typed language with static syntax checking and sensible code completion.8
-
Which version of Python are people working with these days? Is there enough support for Python 3.x to use that or is it better to stick with Python 2.7.x for the time being?6
-
Now, this is some next level shit in python (or I just don't know about it yet).
Anyway, I only discovered this thing lately4 -
Booting up my Windows computer at work after 1 year leave. I'm gonna do a Windows Update.
I suspect I'm not going to get anything else done today.6 -
Anyone else tired of the good old "Python 3.x will never be useful blahblahblah everyone uses 2.7 yadayadayada" bullshit?3
-
If there's something that makes me want to shoot myself even more than having to work with python, it's python's package management.8
-
That moment when you know Python, and start in a serious national competition. You expect god knows how hard tasks....and all of a sudden you realise that all of them are in turtle...rip2
-
It feels so good actually doing something that saves the company a buttload of money.
Just optimized some ML models. Now it costs a tenth of the money to run them :P2 -
I tried to install a simple Python package today for a simple 10 line program and spent over an hour installing dependencies and reading documentation.1
-
So I'm in a scenario I'm uncomfortable, need some encouragement from fellow devRanters. (Looong post)
I've been working at this startup for about 10mths (since I graduated). They have been really good to me since the start, and overlooked some fuck ups I did at first.
But now I've been way more experienced , picked it up really quick. And I've basically redesigned several of their admin solutions and data products. Also, I'm basically their entire data analysis team now. I do backend (node, PHP, MySQL) and analysis for them (stats, deep learning, python, big data packaging for clients).
But seeing as I've moved in their company, and have been consulted on several major decisions, as well as built a really good relationship with some of their clients. I still haven't seen a raise, moreover I've been told that I'm expected to work from 8am to 5:30pm (9.5hrs no overtime pay). Which really pisses me off, since I know I'm worth more than what I'm paid (about 40k a year).
My brother (who's also a dev) suggested to tell them that I'm not happy at work due to this. And quit if they don't react well.
How should i bring this up? Should I really quit? This is all new grounds.6 -
I now understand why people say python is such a damn hard language to keep big projects. I'm so hell lost in all those code indentations and lack of conventions!!!!
GET ME BACK TO RUBY PLEASE I BEG AAAAAAA4 -
Started out with python, while meaning to learn javascript.
I am now competent in python. Im still not sure how it happened.
Started python because I got tired with doing repetative calculations by hand. I think I had like a phobia of problem solving with nested loops. any time I thought a problem would require nesting, especially more than one nested loop, I would just avoid doing it, or end up doing it by hand.
Wrote so many goddamn loops though in the process of exploring graphs, doing things by hand seems like a nuisance. Thinking in loops has its own zen or something.
Now I just need to get over my fear of json-based CLI-enabled configuration-over-convention.1 -
After my Python-question was marked as Duplicate on StackOverflow I realized that the problem was wrong indentation....1
-
After 8 years of development, I gave python a try today. It honestly had me hooked at its usage of lambdas and list comprehension but im finding alot of things I like about it.
Honestly it offers the same things I like about javascript: rapid prototyping and multi paradigm.
But then i get up and running with django. Ya its nice and its not a template first solution like alot of opinionated frameworks out there.
This just feels very wholesome to learn. I feel comfortable and in a good place.8 -
Python file truncate instead of actually deleting file contents...
there goes a weekend of log backups.. FML -
Everyone I tell this to, thinks it’s cutting edge, but I see it as a stitched together mess. Regardless:
A micro-service based application that stages machine learning tasks, and is meant to be deployed on 4+ machines. Running with two message queues at its heart and several workers, each worker configured to run optimally for either heavy cpu or gpu tasks.
The technology stack includes rabbitmq, Redis, Postgres, tensorflow, torch and the services are written in nodejs, lua and python. All packaged as a Kubernetes application.
Worked on this for 9 months now. I was the only constant on the project, and the architecture design has been basically re-engineered by myself. Since the last guy underestimated the ask.2 -
Started working with a startup. They have one Dev guy, who for some reason is using both python 3 and 2 in the same git repo, and had no requirement.txt or anything to really track dependencies....
For fuck sake, the Dev guy is actually intelligent, but really freaking messy.. why can't he have this basic thing done...2 -
Python is really beginning to turn horrible now. Legacy codes...argh!! why don't developers move already to python3? and all those horrible third party dependencies for only 2 which somehow break after even some mending. God save them. Horrible night.2
-
Am I the only one that can't get into Python? Any tips would be appreciated. I've been debugging a 2.7 legacy application at work but the language is so finicky and the errors are so vague.2
-
For all of you who are thinking of starting your python journey, I highly recommend the book fluent python by Luciano Ramalho, it covers almost everything to get you up and running, aswell as alot of good tips and tricks3
-
Pandas groupBy cumcount() function cracks me up every time I see it. Dask has one too: http://dask.pydata.org/en/latest/...
In general Python libs are so inconsistent with their function names, especially data sci packages.
Abbreviations rule supreme. They could have at least add an underscore for this one if that's the standard. cum_count over and out1 -
When i have to take an hard decision, this python script always helps.
import random
print(random.choice(hardDecisionOfLife))2 -
!rant
I am teaching some friends python, so i would you comment here challenges to do in it (eg. Python TicTacToe). All difficulties would be appreciated.7 -
Opinion: Julia will not catch on, because the two language problem is not a big issue for most people in the industry, and most python data scientist will refuse to migrate.
-
Guy blackmails the whole scrum team that he wants to work on a python user story, because he loves python and that's what he's good at.
Then in a week writes about a hundred lines of code, didn't hear about pep8 and complains about the speed of the code.
Used re.seach instead of re.match. In half an hour there is a 100x speed-up. He loves python.3 -
The amount of digits Python can handle is staggering...
I stopped at 100 000, because I felt that I had proven my point. That's approximately 330 000 bits! (And yes, I had to use Python to be able to calculate that number)
Doesn't work with floats, though...4 -
I see a lot of hatred for Python all over the place, so I have to ask: Why? What do people hate so much about Python? It's fantastic for my use-case (interacting with and managing AWS resources), so is it just a case of "good for this one thing, bad for everything else," or something different?25
-
Removes an control statement or a loop statement in python code ......
Fucks up entire code below it due to indentation error..
Sit and remove the indentation line by line
PYTHON IS LIFE3 -
Any people using Julia here for something real. Like analysis or building applications? Is it worth learning or should I stick to python and cpp ?2
-
We have a school project where we're supposed to develop a project for a company. In order to finish the project before our presentation I put in over 40h per week (on top of other classes). The only thing missing is the design, only placeholder buttons at the moment. Ask the designer 2 weeks in advance if he'll be able to provide me with the design: "Sure, I'll do it soon".
And now the presentation is in one day and the app looks like shit because we don't have any design for it. -
Say what you want about npm and node_modules, it is much better than other package management systems like pip.
Least I don't need to create an entirely new installation of nodejs every time I want to build something new that might depend on some packages that depends on an 0.0.1 version lower of another package that is used by a different project I currently have to also maintain.
P.s. I do love python overall and it's ecosystem, the package management and version control are sheer garbage.2 -
A mix of both python 2 and python 3. 4 entry points (although, this was done for the sake of microservices).
All in 1 big monorepo. Hosting a site in mostly static form (i.e each page had it's own index.html with completely different headers and footers, no templates). -
Python can be a bit weird when it comes to the scope of variables. I once spent a weekend banging my head over an issue in the code, only to figure out on the following Monday that I hadn't passed a variable to the function, and it was picking up that variable and a different value of it from somewhere else... WHERE AND HOW1
-
Began learning PyQt5 a few months ago and noticed the rather "lack of online resources" as compared to Tkinter (which I had learnt earlier). Infact, multiple tutorials that showed up on the first result were actually for PyQt4.
Anyways, I made my own PyQt5 tutorial over the course of this month. This is the link to the main page for the tutorial.
https://coderslegacy.com/python/...
Still got a few things to add (like layout managers) but the main part is complete. Some feedback would be helpful! You can go head directly to a widget tutorial with this link.
https://coderslegacy.com/python/...5 -
What is Python good for? (I had to use it for the first time today and used it to process some audio input but i don't know what else to do with it)
-
I've been stuck with bootstrap in the last projects at work but I wish to break free. Been looking a bit on material design. What other UI frameworks do you guys use?10
-
Python Developers, if you are working on a python project or Library developers(python)(3rd party) please move to Python3 there's no need to get stuck on python2. it's fucking horrible when those dependencies break.
-
Just found this glorious rant about a controversy I completely missed in 2016.
https://eev.ee/blog/2016/... -
Am learning python programming; any pointer to exercises, challenges or projects i can use for practice.5
-
I just finished my first commit of "3D Rendering Engine" <-- Best way I can call it I think.
QUESTION:
If I have a list of nodes with x, y, z values that I am projecting to a 2D plane, how would I rotate the whole list around the top (y) axis?
I am using python
If you are interested, here's the GitHub Repo:
https://github.com/hamolicious/...10 -
What is must important to know for python beginner? I'm new new about it just start it Print and calculate, so what i have to know first to start python programming??2
-
Anyone give some fucking good instruction to learn python, i really want to learn it :(( maybe there is some secret to learn it??4
-
A TRIBUTE TO CODERS WHO JUST STARTED MAKING DISCORD BOTS USING PYTHON WITH PYTHON 3.9
When you just got the hype of making Discord Bots using Python ...
You update to Python 3.9 ... And then Go to CMD (for windows users) and type ... "pip install discord.py" ... You are very happy ... thinking finally You can add your custom bot to your server and then ... even pip tells you that you are noob at discord.py1 -
Exponent of string,
What tf does this mean?.. I'm currently learning python in our university's elab and one of the questions, asks me to do this... Can someone tell me what is it?.. I've never heard something like that😐9 -
Hey guys, how do you feel about the death of Python 2. As a stupid person I love Python and it's the only language I can somewhat understand 10% of. What's going to change by moving to 3? Any of you guys adversely affected by any of this?? Broken projects? Lack of support? I really regret not teaching myself programming when my brain was still spongey.....it's just a ball of poop right now.6
-
Working on a batch image editor in python as my most recent time killer project. Started out using PIL for py2. Port over to pillow on py3, and one of the core pillow functions exploded my computer.
It memory leaked and took every last kb of unused memory!
Guess Im stuck using py2 -
2 hours after resolving compatibility issues:
The following specifications were found to be in conflict:
- opencv==3.2.0 -> *[track_features=blas_openblas]
- opencv==3.2.0 -> harfbuzz=1.3 -> freetype[version='2.7|2.7.*'] -> libpng[version='>=1.6.22,<1.6.31']
- pillow==6.0.0
Well done for today. I'm going for a beer. Ah..almost forgot. Fuck you Anaconda and fuck you Python docs.1 -
I have this weird problem when I try to call a shell command with python. I'm trying make a path o linux with forward slashes but once the string gets built it either has no forward slashes or too many or non-uniform slashes across the whole path. This is so frustrating. Eventually the path doesn't get recognized at all.
-
Working on image identifier program on python want to add machine learning in the program need help.....suggestion plz1
-
Hi everyone i was not on cause i was busy making mod menus on scratch LOL i decided no more and cut off the scratch for a bit and learn some python on scrimba maybe make a print spammer or some text adventure quest game or try making a website game with python, these ideas poped up in my head :) just had some weird ideas of learning it
cause why not? its easy you can probably build bots with it or troll your friends on discrod. -
Learning Python from some days back, and have confused about Python Array and Python Lists, please help me to understand this.
Thank You.5 -
Does anyone know a good way to retrieve back the indexes of elements in the unsorted list after sorting that list in python?
Let's say for example I want to find the largest element in a list, so I sort it and find the last element(as it will be the largest), now I want to retrieve its original position in the unsorted list.13 -
I want to print the first number in the Fibonacci sequence to contain over 1000 digits. I got fibbonaci to work but I cannot seem to figure out how to implement the "Contain over 1000 digits".
Do I make a list to store the fibbonaci numbers in then do a statement?
My Python 3 Code:
def fibonacci(num):
if num == 2 or num ==1:
return 1
return sum([fibonacci(num - 2), fibonacci(num - 1)])
print(fibonacci(7))7