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 - "pep"
-
So I told my wife one week ago: "Yeah, you should totally learn to code as well!"
Yesterday a package arrived, containing a really beautiful hardcover book bound in leather, with a gold foil image of a snake debossed into the cover, with the text "In the face of ambiguity -- Refuse the temptation to guess" on it.
Well, OK, that's weird.
My wife snatches it and says: "I had that custom made by a book binder". I flip through it. It contains the Python 3.9 language reference, and the PEP 8 styleguide.
While I usually dislike paper dev books because they become outdated over time, I'm perplexed by this one, because of how much effort and craftsmanship went in to it. I'm even a little jealous.
So, this morning I was putting dishes into the dishwasher, and she says: "Please let me do that". I ask: "Am I doing anything wrong?"
Wife responds: "Well, it's not necessarily wrong, I mean, it works, doesn't it? But your methods aren't very pythonic. Your conventions aren't elegant at all". I don't think I've heard anyone say the word "pythonic" to me in over a decade.
And just now my wife was looking over my shoulder as I was debugging some lower level Rust code filled with network buffers and hex literals, and she says: "Pffffff unbelievable, I thought you were a senior developer. That code is really bad, there are way too many abbreviated things. Readability counts! I bet if you used Python, your code would actually work!"
I think I might have released something really evil upon the world.29 -
New senior dev joined the project today.
Senior dev: "There's no way for me to test my changes before I merge this into develop"
Me: "Can you at least run our test suite?"
An hour later the develop branch is fucked and everyone who has merged it locally has pages of red errors splattered across their screens whenever they run any tests.
Start looking into what the fuck is going on.
Notice that all the errors are related to changes the new guy made.
Ask him if he ran the tests..
Senior dev: "Nah they wouldn't catch anything locally "
Stare at the stream of red text running down my screen.
Normally I wouldn't care but we were trying to prepare a release... RUN THE FUCKING TESTS ASSHOLE.9 -
It's disheartening to see a senior member of my team shitting on the code of less mature developers. Don't just say "this is unacceptable", elaborate, teach them. How are they going to action anything from that feedback?
Take the time to respond to their questions when they ask for clarification on what you're saying. Don't berate them.
Honestly some developers need to learn a thing or two about code etiquette.
There's no room for good cop / bad cop behaviour.10 -
So I dual booted my pc with Ubuntu a few weeks back. And I came to a conclusion today.
Um, windows needs to go.23 -
KISS.
Keep it simple, stupid.
At the beginning the project is nothing but an idea. If you get it off the ground, that's already a huge success. Rich features and code quality should be the last of your worries in this case.
Throw out any secondary functionality out the window from day 0. Make it work, then add flowers and shit (note to self: need to make way for flowers and shit).
Nevertheless code quality is an important factor, if you can afford it. The top important things I outline in any new non-trivial project:
1. Spend 1-2 days bootstrapping it for best fit to the task, and well designed security, mocking, testing and extensibility.
2. Choose a stack that you'll most likely find good cheap devs for, in that region where you'll look in, but also a stack that will allow you to spend most of your time writing software rather than learning to code in it.
3. Talk to peers. Listen when they tell that your idea is stupid. Listen to why it's stupid, re-assess, because it most probably is stupid in this case.
4. Give yourself a good pep talk every morning, convincing you that the choices you've made starting this project are the right ones and that they'll bring you to success. Because if you started such a project already, the most efficient way to kill it is to doubt your core decisions.
Once it's working badly and with a ton of bugs, you've already succeeded in actually making it work, and then you can tackle the bugs and improvements.
Some dev is going to hate you for creating something horrific, but that horrific thing will work, and it's what will give another developer a maintenance job. Which is FAR, far more than most would get by focusing on quality and features from day 0.9 -
Initial steps of learning any new programming language :
*heck yeah I created a calculator. Guess I'll show my family that I actually can code! *
-hey mom, dad look I made a simple calculator using python B)
- uhm... That's great son but dont we already have one of those?
- yeah but like... this is completely different it uses a different programming language than what you and I have been using all this time.
- ah I see. Good for you then
*muttering to each other*
-are you sure he's got the aptitude to be a cse?
-at this point we can just hope.
Me:*stares blindly in my dark room contemplating why I'm alive*7 -
Surprise surprise, that unrealistic deadline you set even when the engineering team told you that it wasn't going to work has backfired! Maybe you wouldn't be so stressed if you learnt to listen? It's a pretty basic skill, or at least I thought so.
Oh and when you say "we have two options, stay late or work weekends" you have a critical bug in your conditional. Your missing option 3, go the fuck home. Time to enjoy my weekend with friends and family.4 -
"The client has an important meeting next week! You have two days!"
If it's that important why are we just hearing about it...6 -
There’s a special place in hell for fuckwits who create tickets and don’t include the fucking error message.8
-
!rant. Encouragement for those feeing impostor syndrome like I am right now with a new employer. Source +
Bonus Panel: goo.gl/mhOvDs -
People around me be like "Why you never take a break?? I see you work all the time. Doesn't your company offer you a paid holiday??"
Yeah they do offer a paid holiday, but even on holiday I still have to work because I'm the IT manager, full stack developer, database admin, helpdesk and everything that is related to IT.
:(26 -
I got stuck with a small task for days, today I just have the courage to ask for help and a senior literally gave me the code for the problem! I'm not sure if I should be happy for finishing the task or embarrassed for couldn't solve the problem by myself. 😄😥5
-
The whole company [cult]ure bullshit has really gotten out of hand. When management sets new deadlines that only put stress on the devs then decide to have some cringe AF company bonding soirée in the middle of the work day who benefits from this? The rebranded HR platoon thinks all employees want to participate in basically mandatory chum-it-up gatherings. Don’t get me wrong I love to party and enjoy myself, but I go to work to do just that. Work. And when other departments whose main responsibility is setting up events for the technical staff, they never seem to consider these work loads or what other people actually want. It might seem all fun and dandy on the surface but when you hear tales of people talking in the closed offices about so-and-so because they aren’t reflecting the cultural values, it starts to seem very fucking problematic. Like why would anyone ever say anything when you would probably just get the boot for just being too different, even though all this sits on top of some guise of, “a diverse work environment”. All in all I hope this [cult]ure shit summers down sooner than later. And I’m in a right to work state, so transparency be damned.1
-
Had a PHP test for a job application yesterday. The test contains nearly 20 questions, most are 2 points. I had to write the answer into a word file and cannot use search engine. I thought I did okay because most of the questions were asking like 'what is php', 'what is isset', etc. which I could answer all of them and pretty confident that I answered correctly but the recruiter contacted back today that I failed...:(
It's my first time applying for a programing job after been working in the field for almost 3 years. Feel so bad.. Feel so unqualified 😥😥7 -
I have an exam in 4 hours. I've been studying all night and now I can't seem to retain anything.
I'm fuckin screwed.10 -
So f*king stressed out!
3 weeks passed at new job and I still feel like I don't know what I'm doing. My PRs got tons of comments and I still can't finish a tiny ticket that should be very easy but it's in a stack that I have almost 0 knowledge about. I feel so incompetent and afraid that I won't pass the probation. 😥
The stress hit so hard that I can't eat, feeling nausea every morning and can't sleep well at all. I question myself if I'm too stupid to be a developer, should I just give up?
😭😰😱😥😵
Argh this is so bad!10 -
That feeling when the CEO gives a really positive pep talk about his future plans for the company but, deep inside you know your just caught up in a monkey shit fight that can never achieve the goals he’s laid out.
-
People should have mandatory lessons in vector processing.
In canteen, after lunch, there were 4 places you could place your trays. But only small, one-way corridor, for one person at a time to get there.
Every person picked the first place and while they were placing the tray, people behind them had to wait. Huge line started to form. If they, instead, always picked the last empty place, all tray places would be occupied for longer and the processing speed could increase almost 4 times.
Textbook vector processing example.2 -
why is everyone hating on python lately?
I know it's not perfect, and it takes care of a lot of shit for you. and it's slow, and doesn't have a decent compiler, and PEP 8 encroaches on everything good in the world, and mandatory whitespace, etc.
yea. it's got some issues. but it's still a good language imo. and it's easy to write, it's fun to write, it looks nice (not Ruby level nice but ehh). not worthy of all the "fuck python!" talk.21 -
Fuck this I need to ventilate.
Thinking about job change because maintaining and extending 3 years old codebase (flask project) is FUCKIN exhausting. It was badly written since start by someone who obviously didn't know much about python. (Going by commit history.)
Examples:
- if var != None / if var == None
- if var is not None / if var is None (well..)
- Returning self-parsed obscure JSONs from dict variable
- Serializing dictionaries into database by str() (both sqlalchemy and mysql support JSON format) - THEY ARE ALMOST UNUSABLE OTHER WAY AROUND (luckily, python can deal even with that)
- celery tasks, the way they are called they BLOCK the whole flask (not bad in itself, but if connection breaks there are no errors, nothing it just hangs)
- obscure generator/yielding that contains return of flask's response in itself
- creating fifteen thousands of variables one by one where they would look so nicely as dict keys, and hey they are then both MANUALLY SERIALIZED into returning dict by "%s" (string formatting) [okey, some of them are objecst like datetime but MATE WTF]
- many, many more, PEP lint shall not pass
I would rather deal with fresh startup owners wanting me to program unicorns in one week then trying to extend and manage zombie-like projects.
Nothing personal against the firm I actually like the place.3 -
The fuck is up with venv, conda, pip, pip3, python3, CRYPTOGRAPHY_OPENSSL_NO_LEGACY and "you can't install packages in docker based environments" DUDE STOP WHAT THE FUCK
How the fuck is that the scripting language of choice? It has by far the most confusing and messy runtime setup. Like it's easier to make sense of Javas version-shenanigans than this bullshit.
And then you think well what gives. Runs > python ...
"This environment is externally managed and you can go kill yourself, JUST LOOK UP PEP-666" LIKE NO YOU FUCK, JUST RUN THE FUCKING SCRIPT!
It's nice you thought about separation of versions but DOCKRR DOCKER DOCKER THERE ARE CONTAINERS WHY THE FUCK DO YOU DO SOME BULLSHIT WITH ENVS IN FOLDERS REQUIRING SOME RUNTIME BULLSHIT WHAT NO STOP WWHYYY7 -
This will definetly be an unpopular rant but god damn it I hate to work with untreated depressed people. It's fucking nearly impossible to convince them to try out something new. They are always pessimistic or think that they know everything. They don't care about new things happening around them. Every time in work when we encounter some obstacle it looks like the world has ended for them and every god damn time I need to give pep talks to them like we are in some war and I feel like I need to inspire soldiers to fight even though they are 100% convinced that they will die.
Im done with being a therapist for them. I don't have unlimited amounts of tolerance and energy, I am a human also. I can't keep sugarcoating what I see and I can't continue walking like on eggshels just because somebody is too weak to even take a constructive criticism without becoming passive agressive for days or weeks. I realized that their negative pessimism has started to rub off on me and I think it's time to put an end to this.
Please if you have depression get some help, don't expect that new workplace or employer will motivate you enough to turn your life around. Don't expect that putting on a mask will actually hide who you are and that your condition will not impact others around you in work. Just stop pretending and get some actual help. Start from yourself.8 -
can't believe it but things actually have started to fall into place on their own, career-wise. feels unreal. need to work enough to afford a cottage with a cobblestone path & my life will be complete2
-
what is the point of having massive HR departments if something as expected and frequent as university hiring can't go smoothly?
i managed to reach the interview round for a big 4 firm only for the interviewer to not show up for 4 hours from my time slot (i waited the entire time - took periodic screenshots for proof), HR to say "we'll reschedule your interview, this happened because of internal miscommunication" more than THREE months ago, and dip. until december they'd repeat the same. now they've ghosted. thanks, virtual hiring.
how is it the candidate's fault? found out this isn't rare by speaking to a few others from my network who i knew were interviewing for the same firm. for students whose lives can change completely based on the outcome of an opportunity that they came across due to sheer luck and could definitely make use of because of their hard work - this is so heartbreaking and demotivating.1 -
First day at work and after seeing the codebase and how everyone's talking about the code, I'm pretty sure I don't have imposter syndrome, I'm just that bad...13
-
The creators of the Python language are giving some thought to a new proposition, PEP 622, that would finally bring a Pattern Matching statement structure to Python. PEP 622 proposes a method for matching an expression against various kinds of patterns using a match/case (simply like switch/case in C) language structure :
match some_expression:
case pattern_1:
...
case pattern_2:
...
It includes literals, names, constant values, mapping, a class or a mixture of the above.
Source : https://python.org/dev/peps/...6 -
Nothing shits me more than being interrupted every two hours for a "huddle". Shove your buzzword up your ass and fuck off so I can actually get some work done. What am I currently working on? The same fucking thing I was doing before you interrupted me again for a status update.1
-
I was always a bit confused by the naming schemes in official python libraries. So I decided to lookup the official naming conventions, according to PEP 8. Lo and behold, the very first sentence:
> The naming conventions of Python’s library are a bit of a mess [...]3 -
every day my boss says he'll review the requirements for our product. every day he forgets to do so. every day he asks where the update for the next stage is. every day i remind him. every day he forg ---2
-
Stop shoving Django admin down everyones throat as a client facing solution every time we need any admin functionality.
It’s great at first but then you have to dick around customising it when you could build the same thing with any modern frontend framework and REST API easily.
Not to mention Django admin couples the models to the view it provides you (inlining particular models given their relationships) -
!rant
I'm a rather young developer, self-learned everything and started when I was 13 (now 20) but I still feel like I'm a total beginner since I have not yet mastered the things I am OK at.
Php (laravel, since it makes things much easier), js (jquery, bad at vanilla, have used angular and ember but not mastered), node, linux, html, css, photoshop, illustrator, sql, mongo and windows servers
I know little about many things, can create things that are asked of me but the methods I use are rather bad imo.. ex: I finish coding a section of a site, but when I need to add a new feature I find myself rewriting most of the stuff to add the new feature and in the end still feeling like the code could be optimized further, even though I have no idea how.
TL;DR I write bad code, but things work as long as I am monitoring them. I know little about alot of stuff but mastered none of them.
What should I do? Go to school for programming?8 -
Had my first ever final interview as a developer after passing the first ever coding assignment, now can't stop thinking if I should have answered the questions differently.
I was very honest to my answer when they asked "How do you test your application?" As I started building the app with 0 knowledge about software development and know nothing about software testing. So I just told them the truth that I did not do any proper test, I just used a checklist and manual test to test my app and the app that I created for the assignment was the first app that I write a proper test cases and implement an automated test. The same goes to other questions like automated deployment and OOP experience. I just told them the honest truth even though I know that they are not the best practice. Did I just f*cked up the interview??
Arghh can't stop thinking2 -
Our business partner just tried to deliver a motivational pep-talk to the dev team that ended up sounding more like a sermon. Instead of hearing we did a good job, we heard we could be doing a better job. Never mind that the project is rushed, lacking funding and built on an unstable codebase inherited from a proof of concept demo. I just lost all respect for the guy, who I thought appreciated how hard we've been working. Apparently he's just another administrative cog who wants to climb the ladder of success while standing on other people's hard work.
Right, no more extra miles for this project. Time to just coast on and see it sink in its own excrement. -
var longRant = true;
I am dextel2, if you know me, might as well know that I'm facing from quite issues, work issues personal issues and health issues
Recently broke up with my girlfriend, because I was or may be am too coward to carry on or maybe too scared from the future or our future. Initially, the break-up was mutual and understandable, this naturally affected my focus on work.
To overcome this and work issues it took me a week or so, meanwhile I mailed her few gifts for her birthday (2 weeks before her birthday), I didn't or nearly didn't wished and after wishing her she said something which affected me even worse, I don't know if we are even friends, this incident took place 3 days before, and its still fresh for me but somehow I'll overcome.
Maybe that's why I changed my username.
My parents, especially my mother knows there's something wrong with me and advised my to be happy (funny, right? because this was after I changed my username) .
I was not able to focus on work, the boss called in and gave me "improve yourself or if" pep talk, and while that duration (maybe before) I've been partially blind (thanks to my meds for epilepsy), I'll consult soon to my doctor when he is back from his vacation.
As of now, writing this rant I have no regrets so far, the only thing is that I want to be happy, maybe I am depressed, maybe this is due to her (can't really blame her).
Please help, how would you handle such stress and be happy?5 -
Many people say that it's easy to pass probation, so I wonder what would make someone not pass a probation in your opinion?9
-
We have our product's second release this week. And my manager was like... I don't want anyone to be absent in the coming days.
But he concluded the pep talk with an announcement that he is off work for the next 5 days.
I think he meant - idgaf even if our PROD burns down before I return !! -_- -
When the code reviewers ask for waYyYyY too much testing information and you end up doing all the QE heavy-lifting.....
-
So in PEP 594 of Python, some standard library modules are getting deprecated. Sorry for anyone who still uses aifc or crypt.
-
what are personal projects if not the daughters of hackathon solutions that never saw the light of day6
-
As a self-thought python dev I feel like my code isn't very effective.
Using Atom with a python plugin I get pep-recommendations but Im thinking more program-flow and other things that a good book,l or a course would provide.
I like videos like on youtube but im never sure if they really know what theyre talking about or if theyre just spewing out tutorials for ads or whatever.
Does anyone have recommendations on material thatll help out -- and doesnt treat you like a fresh beginner with no experience?1 -
Can’t wait for python 3.8 and pep-p572 Assignment expressions 👏👏
https://python.org/dev/peps/...
while chunk := file.read(1024):
process(chunk)3 -
Code review time.
"How come this line has been removed? PEP 8 likes to have two lines between imports and the first bit of code"
What I replied: Thanks. I'll put it back.
What I wanted to reply: Go fuck yourself you anal moron, who the fuck gives a shit about bollocks like that. We got fucking proper work to do, so get the fuck over yourself, let the fucking PEP shit lie, and make some fucking USEFUL comments.5 -
I'm new to Python and have been using PyCharm. I like it. I've tried just about every IDE on the market now excluding maybe a couple of the ones who don't have free versions and I always end up back to Pycharm.
I like how it's strict about formatting. My opinion it builds good habits. I watch a lot of tutorials on youtube among other things and I'm learning slowly but still I getting there.
My conclusion is that their seems to be a complete lack of consistency in the Python community regarding PEP and formatting standards. One person does it this way. Another does it that way. Makes it extremely frustrating when trying to learn because you have all these people doing things slightly different.
One guy says dont use camelCase another says yes. Granted some of these tutorial are a couple of years old and I know things change but I can't imagine it changes that much from 2 to 3 yeah but when you can't even be consistent with your spacing of your print functions or comments it's like nails on a chalkboard.
And thats just the beginning. I'm a tabs guy some are spaces. That's a whole other rant or whatever. Hardly the point really. Lots of different inconsistencies but I'm running out of characters.
Maybe im just not finding good videos. They all act like they know what they are doing and to an extent I suppose they do.
It takes a lot of guts to put yourself out their like they do ready to be scrutinized so you have to at least have a clue of what your doing. Some of these people have 10s of thousands of subs and I find myself picking apart every little thing they are doing and find many times they are teaching wrong standards. At least that's how I see it from the little experience I have now.
I'm just beyond frustrated and would appreciate any advice that a person wants to give. Keep in my I'm new and may just be misguided so try not to be to harsh if I've drawn an incorrect conclusion.13 -
need more experience for good entry-level jobs, need a good entry-level job for more experience. yay4
-
For a while my social life was fuck all due to death marches and poorly managed projects. I’d be so exhausted by the time the weekend rolled around that I just didn’t want to do anything.
Sticking to a healthy work schedule and prioritising family and friends after an 8 hour workday did wonders.
On weekends I just tell me wife that I want to look at technology x for a couple of hours and we plan our day around that.
Also, finding social events I want to attend like DnD made a huge difference. -
which is the best cloud provider for a complete beginner (user/dev) in terms of community support, employer preference and user-friendliness?
i know that understanding the tech and concepts behind it matters more than getting familiarized with a specific platform, but i'm looking to build a more diverse profile and have noticed many positions asking for AWS/Azure experience.
since i'll be starting from scratch, any provider with easy-to-follow documentation, online help and certifications that don't leave you broke (would have to pay myself, earn very less as a student from a third-world country, parents/current employer can't support) would work.8 -
Le débouchage est un procédé utilisé pour Debouchage Charleroi les drains et les canalisations. Ce processus est généralement effectué par un professionnel qui dispose des outils et de l'équipement appropriés pour effectuer le travail. Il existe de nombreux types de services de débouchage disponibles, mais ils ne sont pas tous créés égaux. Certaines entreprises peuvent offrir un prix moins cher, mais elles peuvent ne pas avoir l'expérience ou l'équipement approprié pour faire le travail correctement. Efficient Debouchage Charleroi Services est une entreprise qui propose une grande variété de services de débouchage. Ils sont en affaires depuis plus de 20 ans et ont l'expérience et l'équipement nécessaires pour bien faire le travail. Ils offrent une variété de services, y compris le nettoyage des canalisations, le nettoyage des canalisations et le nettoyage des fosses septiques. Ils offrent également une garantie de satisfaction satisfait ou remboursé afin que vous puissiez être sûr que vous serez satisfait des résultats.
my-dep.be/debouchage-charleroi/