Details
-
AboutJust a guy who likes Python a little too much
-
SkillsPython PowerShell Bash GoLang C# Lua SQL Java Docker Markdown
-
LocationLong Island NY
-
Github
Joined devRant on 12/20/2020
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
-
Manager: Hey how come you left so many comments on my PR?
Dev: Well you’ve just recently learned how to code so there’s going to be a lot of things to learn beyond what you’ve picked up in your online coding tutorials. Don’t worry it’s only minor things like you put everything all in one function, left outdated comments in the code, have if statements 4 levels deep, have a console.log after every line of code some of which log .env variables, skipped error handling, cast to “any” a bunch instead of using more specific types, didn’t write any tests and some unrelated tests are now failing due to a circular dependancy.
Manager: THAT IS SO DISRESPECTFUL!!APPROVE MY PR IMMEDIATELY. IT WASN’T EVEN EASY FOR ME TO CREATE THE PR, NOW I HAVE TO MAKE AN UPDATE!? YOU’RE THE DEV, YOU SHOULD FIX IT NOT ME!! NEVER COMMENT ON ANY OF MY PRS AGAIN.10 -
"In the presence of good rationale, maintainers should be willing to change their mind often." - Havoc Pennington
-
* Create S3 Bucket
* Enable versioning
* Setup lifecycle to delete small temporary objects after 7 days
* Wait 7 years
* Say "Wow, I was fucking stupid, and I've learned a lot since then."
* Write devRant post
* Profit with lower monthly AWS bill1 -
Good code is a lie imho.
When you see a project as code, there are 3 variables in most cases:
- time
- people / human resources
- rules
Every variable plays a certain role in how the code (project) evolves.
Time - two different forms: when certain parts of code are either changed in a high frequency or a very low frequency, it's a bad omen.
Too high - somehow this area seems to be relentless. Be it features, regressions or bugs - it takes usually in larger code bases 3 - 4 weeks till all code pathes were triggered.
Too low - it can be a good sign. But it should be on the radar imho. Code that never changes should be reviewed at an - depending on size of codebase - max. yearly audit. Git / VCS is very helpful here.
Why? Mostly because the chances are very high that the code was once written for a completely different requirement set. Hence the audit - check if this code still is doing the right job or if you have a ticking time bomb that needs to be defused.
People
If a project has only person working on it, it most certainly isn't verified by another person. Meaning that only one person worked on it - I'd say it's pretty bad to bad, as no discussion / review / verification was done. The author did the best he / she could do, but maybe another person would have had an better idea?
Too many people working on one thing is only bad when there are no rules ;)
Rules. There are two different kind of rules.
Styling / Organisation / Dokumentation - everything that has not much to do with coding itself. These should be enforced at a certain point, otherwise the code will become a hot glued mess noone wants to work on.
Coding itself. This is a very critical thing.
Do: Forbid things that are known to be problematic in the programming language itself. Eg. usage of variables in variables, reflection, deprecated features.
Do: Define a feature set for each language. Feature set not meaning every feature you want to use! Rather a fixed minimum version every developer must use and - in case of library / module / plugin support - which additional extras are supported.
Every extra costs. Most developers don't want to realize this... And a code base that evolves over time should have minimal dependencies. Every new version of an extra can have bugs, breakages, incompabilties and so on.
Don't: don't specify a way of coding. Most coding guidelines are horrific copy pastures from some books some smart people wrote who have no fucking clue what you're doing and why.
If you don't know how to operate on people, standing in an OR and doing what a book told you to do would end in dead person pretty sure. Same for code.
Learn from mistakes and experience, respect knowledge from other persons, but always reflect on wether this makes sense at this specific area of code.
There are very few things which are applicable to a large codebase on a global level. Even DRY / SOLID and what ever you can come up with can be at a certain point completely wrong.
Good code is a lie - because it can only exist at a certain point of time.
A codebase should be a living thing - when certain parts rot, other parts will be affected too.
The reason for the length of the comment was to give some hints on what my principles are that code stays in an "okayish" state, but good is a very rare state -
Client: Why doesn't this process work?
Me: For the exact fucking reasons I said it wasn't fucking possible like three fucking times in two separate fucking meetings you fucking retard.11 -
I hate devrant''s 2 hours limitation for posting :( atleast give option save as draft or set publish time (even it after two hours just disable the timer for two hour)7
-
My laptop battery is absolute rat-shit, it drains half of itself when I try to copy a large file...16
-
A Java, Python, and C++ programmer are shown a glass that is half-full.
Java programmer - This glass is half-full.
Python programmer - This glass is half-empty.
C++ programmer - This glass is twice as large as necessary.11 -
Learning C has taught me one thing; I hate C.
Actually I think the only language I've learnt that didn't make me angry doing so was python, and that was because I was 14 a didn't think I was hot shit at programming yet...12 -
I use DevRant daily at this point and was wondering what are the benefits of supporting it through subscription.3
-
Some people want to watch the world burn.
Me, i want to add the line ".gitignore" to .gitignore, force push it and fuck off to holidays with a phone turned off.7 -
> be me
> create profile in dating app because pandemic rules make meeting people at irl events impossible
> match with cute girl
> start to talk about interesting stuff
> mention being a software developer
> her: 'pls help me I have a not activated windows 10 on my laptop and can't do stuff since the last update'
> fml20 -
Well, guess I'm eating my shoe it seems .-.
(Trying to get font rendering working in SDL2 and for whatever reason, loading a direct TTF file works but as soon as I load it into RWops and pass to SDL, it suits the bed)9 -
!dev related whatsoever fuck off if this bothers you
Just got into a big argument with my brother in law because the little bitch was exposing my father and mother in law(which I adore) to the virus by virtue of this little shit partying every other fucking day, going out with people etc and then having my in laws pick him up etc.
I am not gonna lie, I love the kid, but this shit pisses me the fuck off, my in laws are over 60 each and I ain't about to fuck with the chances of my child's grandparents dying because some fucktard thinks partying is more important.
Been wishing for the motherfucker that would since a while now, just hope it's not this kid.5