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 - "how often do you commit"
-
When you stare into git, git stares back.
It's fucking infinite.
Me 2 years ago:
"uh was it git fetch or git pull?"
Me 1 year ago:
"Look, I printed these 5 git commands on a laptop sticker, this is all I need for my workflow! branch, pull, commit, merge, push! Git is easy!"
Me now:
"Hold my beer, I'll just do git format-patch -k --stdout HEAD..feature -- script.js | git am -3 -k to steal that file from your branch, then git rebase master && git rebase -i HEAD~$(git rev-list --count master..HEAD) to clean up the commit messages, and a git branch --merged | grep -v "\*" | xargs -n 1 git branch -d to clean up the branches, oh lets see how many words you've added with git diff --word-diff=porcelain | grep -e '^+[^+]' | wc -w, hmm maybe I should alias some of this stuff..."
Do you have any git tricks/favorites which you use so often that you've aliased them?50 -
TL; DR: Bringing up quantum computing is going to be the next catchall for everything and I'm already fucking sick of it.
Actual convo i had:
"You should really secure your AWS instance."
"Isnt my SSH key alone a good enough barrier?"
"There are hundreds of thousands of incidents where people either get hacked or commit it to github."
"Well i wont"
"Just start using IP/CIDR based filtering, or i will take your instance down."
"But SSH keys are going to be useless in a couple years due to QUANTUM FUCKING COMPUTING, so why wouldnt IP spoofing get even better?"
"Listen motherfucker, i may actually kill you, because today i dont have time for this. The whole point of IP-based security is that you cant look on Shodan for machines with open SSH ports. You want to talk about quantum computing??!! Lets fucking roll motherfucker. I dont think it will be in the next thousand years that we will even come close to fault-tolerant quantum computing.
And even if it did, there have been vulnerabilities in SSH before. How often do you update your instance? I can see the uptime is 395 days, so probably not fucking often! I bet you "dont have anything important anyways" on there! No stored passwords, no stored keys, no nothing, right (she absolutely did)? If you actually think I'm going to back down on this when i sit in the same room as the dude with the root keys to our account, you can kindly take your keyboard and shove it up your ass.
Christ, I bet that the reason you like quantum computing so much is because then you'll be able to get your deepfakes of miley cyrus easier you perv."9 -
"Couldn't have written it better myself"
"You might be Taylor Swift because damn you commit often"
"These commit messages are so helpful i could find my way through the Paris catacombs with them"
"Damn we might need to open-source this... How are people living without it??"
"It would be interesting to see if everyone feels as comfortable with this UI as i do"
"Doesn't matter how long this takes, just do it the way you do it." -
I hate the idea of dog whistles.
For those who do not know what I am talking about: A dog whistle, next to being a physical object you blow in that makes a sound dogs can hear, but is too high in frequency for most humans to hear, can also refer to a hidden sign for a group or ideology that is supposed to be only known by its members.
Here, in Germany, we usually use it for Nazi groups. Hey, 88 is a dog whistle for Nazis, because, the 8th letter in the alphabet is the 'H', and 'HH' stands for Heil Hitler. Alright, got it.
But how the fuck am I supposed to know it? I am not a member of those groups. Well, other people, who look at them tell closely, told me. In a way, you want me to keep up with them, so I can know the newest dog whistles to avoid them?
Another famous one is the attempt to claim the okay sign is a symbol for white power. But here I stand and say, no. I was making this sign all along. I did not signal white power. I was signalling that everything is okay.
And isn't that racist in the first place. Black people cannot swim stereotype. And then they choose the white power signal from diver's sign language? Because they knew, no black person was a diver? Don't mind me, I am just taking the piss.
Then there was Elon Musk. I don't like Elon, I think he's an idiot. I also think that he made it possible for lots of tax money to flow into SpaceX and pay really smart people to work on rockets, which I like. Somehow, in a modern world, we have to do that instead of just funding NASA. Anyway, he is accused of doing a Nazi salute.
But if that was a Nazi salute, that was the sloppiest Nazi salute ever. It was akin to a dog whistle to a Nazi salute. Every proper Nazi should tell him how embarrassing his salute was. But instead, the Overton window on a Nazi salute widens.
We should make fun of him not being capable of doing it right. He would then obviously publicly state he is no Nazi. And some Nazis will believe them.
Ever wondered why in war some national leaders will tout obvious lies? That's because, often due to an information bubble, sometimes because of confirmation bias, many will believe them. If they said the truth, every single one listening would know the truth. If they lied, there is a substantial part of the population ill-informed or invested enough who wants to believe them. And if that's a preferable state, a leader will lie.
Why do we assume that dog whistles are just something we don't understand, but somehow, without writing publicly available guides or news broadcast spelling it out, the subgroup that uses that dog whistle, perfectly understands its meaning.
Recently AfD, German right wing party, had a party conference, and the number and position of the flags on stage was somehow aligned with the number of... what was it... SS branches or something in the third reich? Come one, you're reaching now. You tell me that right wingers are so well informed history buffs that they would ace any history exam about it and equate every subliminal message?
I probably had a dozen dog whistles in this text that I don't know of. Do you know how those groups actually learn about their own dog whistles? Standard media tells them that is their groups dog whistle and they copy it. Copy cat. Funny side note, that's how satanism actually started. Copy cats from stories from the church. They tried to scare people about those evildoers. At least that's one popular hypothesis. Aleister Crowley, not Church of Satan satanism.
Anyway, I hate dog whistles. We commit them constantly, we cannot avoid it and it incriminates everyone. It keeps broadening the definition of every forbidden/frowned upon action. It's shit. If you argue dog whistle, I think you're a moron.46 -
I'd argue to say that committing often, even if the commits aren't always meaningful, has saved me numerous times from bad code gone awry.
-
!tech
I am yet to start the phase of life where i am more than just a student but i often see things around and have some thoughts. Recently i was feeling that the 2 biggest crimes a person could commit is being repetitively irresponsible or being always dependent.
Like, if i am a father , a husband , a sole earner or have someone dependent on me, i could not afford to make simple everyday mistakes that i often do in my current youth age and people ignore. These days i sleep at 5 am after watching movies, wake up at 3pm , knowing that mom has already made me food, my college mates have already made assignment, and there's nothing better that i could do . Life is relaxing.
But my dad cannot afford mu luxurious lifestyle. He cannot waltz on the bike at 90, he can't sleep till 3 , he can't afford to watch long webseries. Heck, he can't even afford to have a platform like this and rant or post stuff. He has to run at 6 am in morning to get groceries for our restaurant. I wonder how he or any other mature person relaxes their mind.
Similarly everyone has to show some boss characters in life. You can't rely on a stick forever, you got to have your own spine. Dad used to have a biz partner who took most of our restaurant decisions, but then business went low and he ran away. So at the end dad himself had to take up all the things in his hand.
I on the other hand am totally spinless. Clg has taken the decision for me that i gotta give papers that's why am studying. Later company will take decision to fuck me up and work infinitely and i might just do that . I usually never come up with a good innovative app idea with a solid vision and therefore end up following other people's ideas , visions, etc and that too rather incompetently.
I wish i had more courage.
'Responsible' people of devrant (bread earners, family runners, etc you know if you are one) , would you like to share your life tips or let me know if my thoughts are wrong?2 -
I need some advice to avoid stressing myself out. I'm in a situation where I feel stuck between a rock and a hard place at work, and it feels like there's no one to turn to. This is a long one, because context is needed.
I've been working on a fairly big CMS based website for a few years that's turned into multiple solutions that I'm more or less responsible for. During that time I've been optimizing the code base with proper design patterns, setting up continuous delivery, updating packaging etc. because I care that the next developer can quickly grasp what's going on, should they take over the project in the future. During that time I've been accused of over-engineering, which to an extent is true. It's something I've gotten a lot better at over the years, but I'm only human and error prone, so sometimes that's just how it is.
Anyways, after a few years of working on the project I get a new colleague that's going to help me on my CMS projects. It doesn't take long for me to realize that their code style is a mess. Inconsistent line breaks and naming conventions, really god awful anti-pattern code. There's no attempt to mimic the code style I've been using throughout the project, it's just complete chaos. The code "works", although it's not something I'd call production code. But they're new and learning, so I just sort of deal with it and remain patient, pointing out where they could optimize their code, teaching them basic object oriented design patterns like... just using freaking objects once in a while.
Fast forward a few years until now. They've learned nothing. Every time I read their code it's the same mess it's always been.
Concrete example: a part of the project uses Vue to render some common components in the frontend. Looking through the code, there is currently *no* attempt to include any air between functions, or any part of the code for that matter. Everything gets transpiled and minified so there's absolutely NO REASON to "compress" the code like this. Furthermore, they have often directly manipulated the DOM from the JavaScript code rather than rendering the component based on the model state. Completely rendering the use of Vue pointless.
And this is just the frontend part of the code. The backend is often orders of magnitude worse. They will - COMPLETELY RANDOMLY - sometimes leave in 5-10 lines of whitespace for no discernable reason. It frustrates me to no end. I keep asking them to verify their staged changes before every commit, but nothing changes. They also blatantly copy/paste bits of my code to other components without thinking about what they do. So I'll have this random bit of backend code that injects 3-5 dependencies there's simply no reason for and aren't being used. When I ask why they put them there I simply get a “I don't know, I just did it like you did it”.
I simply cannot trust this person to write production code, and the more I let them take over things, the more the technical debt we accumulate. I have talked to my boss about this, and things have improved, but nowhere near where I need it to be.
On the other side of this are my project manager and my boss. They, of course, both want me to implement solutions with low estimates, and as fast and simply as possible. Which would be fine if I wasn't the only person fighting against this technical debt on my team. Add in the fact that specs are oftentimes VERY implicit, so I'm stuck guessing what we actually need and having to constantly ask if this or that feature should exist.
And then, out of nowhere, I get assigned a another project after some colleague quits, during a time I’m already overbooked. The project is very complex and I'm expected to give estimates on tasks that would take me several hours just to research.
I'm super stressed and have no one I can turn to for help, hence this post. I haven't put the people in this post in the best light, but they're honestly good people that I genuinely like. I just want to write good code, but it's like I have to fight for my right to do it.1