Joined devRant on 3/1/2018
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
I am just not mature enough to be a developer. At least half a dozen times per day I go like:
hehe.. hehe.. pubic function4
Virtual reality home entertainment gear is humanity's revenge against domestic cats who have purposefully stared on empty spots on the wall for centuries.1
I hate to write clutter comments! Honestly, comment every method is fucking stupid.
If I have a method that is called "getCalendar" that takes as parameter "timestamp: Timestamp" and returns "Calendar", then I don't need to write:
* Create a calendar from the given timestamp
* @param timestamp Timestamp from which the calendar is created
* @return Calendar Calendar returned
I understand why we do that in older PHP versions, in which we need that for IDE support.
I understand why we do that if the javadocs are automatically created.
But that's not the case here. It's just a coding convention and all it does is make me not read comments anymore. Because they are everywhere. The code is often shorter. And I chose the name getCalendar because it already describes perfectly what it does.
There is a time and place for a comment. Something like this:
def getCalendar(timestamp: Timestamp = Timestamp("2018-03-14 00:00:00")): Calendar
Here I'd like to read a comment like:
Defaults to 2018-03-14 because that is the founding day of the company. No timestamp can ever be earlier until we have invented time machines and in that case stop me from writing this comment.
Okay, being serious, a default date that like that warrants a comment. Comments have their place. But when you put them everywhere, I stop reading them. And you just devalued important comments by cluttering everything redundantly.
Oh, and guess what happens when you change what this method does... You will forget to update the comment.
Fuck clutter comments.16
I'm moving. While doing so I found my old bread boards and arduinos. Maybe I should use them again. Program like our ancient cave dwelling ancestors, get in touch with my primitive side.1
I just accidentally deleted a file. Nothing major. But I just never assumed this command was dangerous and could lead to file loss used like this:
rsync -aP --remove-source-files path/to/file ./
My mistake you might ask? Well... I accidentally fired the command while being in the same path as the file.
Well, just another 10 minutes of downloading again, but still. Damn. Unexpected.3
A coworker explained his idea for a startup and asked me to co-found it. I believe it non-viable, so I declined after some deliberation.
And whenever I think of it, I secretly hope that he will fail. I mean, imagine how stupid I will feel if the startup works out.9
Hey, just because I am interested in a correlation.
Vim (or vi or neo vim or vim control scheme) users and true touch typists.
A true touch typist is someone who actually learned about positions and trained hitting the right keys close to what a piano player might do as opposed to someone using all ten fingers but just learned it by the way and does what feels naturally. E. G: Hitting the q with your left index finger would disqualify you as a true touch typist.
But I am also interested if there is a correlation between people who who are almost touch typists and vim users, so post that, too, please6
I love DataGrip. But has anyone a database management software that's better? Just to keep my options open.5
I mean. He saved the world. Literally. Made first contact. And second contact. And third contact. Literally lives coding. And nobody said the bloke must be real.2
I hate it when it turns out my bug was in my local environment. Database charset reverted to Swedish... That's why you develop international ready even if you're not in the US my dear Swedish mysql developers5
Using squeryl as my orm. And what do I do when a query doesn't work? I print out the sql to see what's wrong.
Somehow that wasn't the promise. The promise was compiler supported syntax.2
Fullstack, Frontend, Backend, Bullstack!
Honestly, times have changed. There is no frontend developer any more. I mean, don't take that as an absolute, obviously there are enough left. Or rather, they probably have never existed. But I cannot fathom how someone can claim he works only frontend, can send off an http request, receive the JSON, put it into a model object, take the model object and put it in a tree and then write logic to search through the tree...
...and at the same time cannot create an endpoint where he would receive a JSON in the backend, put it into a model and save it via ORM to the database.
Or the other way around for all the people who only do backend.
What I get is: Not knowing the language and not knowing the framework. That's why I do Play, Flask, Zend, and Vue.js, but I do not do React.
But if the need arises I am willing to learn a new framework or language.
I hate fiddling with something until it looks just right. I really hate it. But even as a backend developer you cannot escape that. Server-side rendering is not yet dead and it happens in the backend. Or the distinction is kind of mute here.
So I guess what frontend dev vs backend dev actually wants to say is: Design-focused or logic-focused coder. Why don't we use those terms. If we did we could actually connect design focused devs closer to designers and put some of that into their curriculum. But at the moment, all the frontend devs I know keep repeating that they are not professional designers.5
Looking at AI and regarding the stop button problem. (computerphile video about the stop button problem: https://youtube.com/watch/...)
And looking at Skynet from Terminator.
There is some chance that the goal condition for the AI was that humans don't press the stop button.
And Skynet's biggest goal is to prevent humanity to press this button by exterminating humanity.
So, the film writers are actually this one time totally justified to have a heavily guarded room with nothing but a big red button which instantly brings victory for humanity when pressed.
Critics will hate this "deux ex machina", but computer scientists and AI researchers will be like: "Ehm, actually, that makes a lot of sense."
I just ran "sudo chown 755 /my/file" and couldn't run...
I checked the file and it said "-rw-r--r-- 1 755". And I was like: That looks like a 644, why does it say it is 755. I stared at it for a minute until it suddenly clicked. Hey, normally that does not show me a bitmask! It only shows it as r,w,x!
Yep... I ran chown instead of chmod. The 755 was my user now. Fuck I need vacation.1
Am I a bad programmer or is the framework at fault which has surely hundreds of successful users?
It must be the framework!1
I am running:
while true; do sshpass -f ../pass rsync -aP -e 'ssh -p12222 -o ServerAliveInterval=3 -o Se rverAliveCountMax=2' user@someServer:///usr/home/....\* . && break; done
Now guess why I have to do it so complicated...6
It is not vim. It is vim mode. IntelliJ. VsCode. They have great vim modes. Not perfect, but great. I am happy as long as I can write my vim macros. Do you know what else has vim mode? Vim! Granted, it is far harder to turn vim mode off in the latter. But to be quite honest, I usually only use vim itself to modify config files.
Getting real sick of working in the home office. Actually getting real sick of working on my laptop with one screen only, so I thought I'd set up a work environment on my Desktop.
I setup a dual boot to Linux, encrypted that hard drive. And so on. But besides that it is a virgin system. Because my wife was using the computer to play Skyrim.
She lay in bed and I asked her if she wanted to use the computer. She said no. So I booted to Linux. I just opened my terminal when I hear her saying: "I want to play."
I suspect I am married to Andy Pipkin, but I am afraid that if I confront her with that she will answer: "Yes, I know."7
Lovecraft was afraid of ancient horrors and mixed races. He would be terrified if he only knew the true ancient evil: CSS4
Alright... I just delete my work laptop. Accidentally.
I am working on a framework where you have to delete a tmp directory. So I wrote a script to delete it and bound it to a shortcut. Well... I adjusted the script to a different project and hit it... Suddenly my home directory was gone...
And even worse. It synchronised it to the cloud drive where our shared directory is...
Well... fuck... Luckily I could restore the cloud drive from the browser... Now just to restore my laptop.
Normally I'd say I just have my backup back on it... Well, the backup is two weeks old and is at the company. Disadvantages of working from home. And I have a few credential files on it I don't want to lose. The rest is all secure in git.
Well.. let's try extundelete.. Wish me luck.2
Finally gigabit speed in my new flat... If any of my laptops had more than a 100mbit network card, I'd use it :(6
What the fuck is different in vscode's light mode?
I use light mode everywhere. Much to the annoyance of everyone around me. But I cannot use the integrated light mode from vscode. Neither its own theme nor the solarised version.
This is a legitimate question for people who understand what make colours work as they do, because I definitely don't understand colours: Why is this one actually painful to my eyes? What is special about this light mode?8
Just saw a post of lolcube that he lost 20 bucks.
Made me think how digital money should work. I mean, is it possible? Bitcoins are a great idea, but putting the environment under huge stress. Is there any way of digitalising your money, without handing over a government the means of completely shutting your purchase power down remotely? And doing so without being an environmental nightmare?
I actually know little about crypto currencies, so enlighten me, devranters!3
I just tried to tell my laptop how boring raising elephants is... And my laptop ignored me. I tried it again. And it did it again. Why can it ignore me? Why is that possible? Is this my flavour of Debian? Is this my laptop model? I don't get it. I had to hold down the power button instead!
Just reinstalled my laptop. Went from Elementary's Gnome Desktop to i3 Window manager. It's nothing new. Used it before. But I love how it feels like a completely new device.2
I use my windows computer usually for nothing but games. It's even a shared computer with my wife. But today I have to code something for this computer so I installed IntelliJ on it. And when it was done installing, it asked me to reboot the computer.
Honestly, I feel so nostalgic. Like I am a child again. Thank you IntelliJ or reminding me about my childhood.13
With all the handwashing my hands are getting dry. Just complained about that to my wife, to which she replied: "You scream." No, I don't. But she insisted "just you scream."
I spoke normally, but that almost made me scream.5
If the sultan in 1001 nights was a programmer, call me Scheherazade, because I can tell a lot of stories why I hate PHP.
Tonight's story: func_get_args
I checked the function arguments eight times, every time thinking it doesn't take any arguments, so this cannot be the right function. But PHP allows to hide argument in the middle of the method. I don't want to read the whole function to figure out what's happening. Plus, functions are far too long. Can't we channel our inner Robert C. Martin a little more?3
Most people's corona panic reaction: Buy toilette paper. Because in a crisis we want to have enough toilette paper.
My corona panic reaction: Buy a car. Just bought one. Half a year earlier than I actually planned to have a car but if corona forces me to take the long and arduous journey from the city to the countryside where my parents live, I want to be ready.
Now that I have a car, I might quit on the home office and return to the office again. Less distraction. No one will be there but me.