Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
TOP 10 PROGRAMMING BEST PRACTICES
#1 Start numbering from 0.
#10 Sort elements in lexicographic order for readability.
#2 Use consistent indentation.
#3 use Consistent Casing.
#4.000000000000001 Use floating-point arithmetic only where necessary.
#5 Not avoiding double negations is not smart.
#6 Not recommended is Yoda style.
#7 See rule #7.
#8 Avoid deadlocks.
#9 ISO-8859 is passÃ© - Use UTF-8 if you ▯ Unicode.
#A Prefer base 10 for human-readable messages.
#10 See rule #7.
#10 Don't repeat yourself.8
* The app is almost ready, boss asked me to show the progress.
Boss: The design is bad, I don't like it 🤔
Me: I just implemented the design, which is approved
Boss: Really? because I "feel" that the design is bad on the screen.
Me: Okay 😐, can you tell me what exactly the part to change?
Boss: I don't know, *calls the designer
Designer: *showing his PSDs* yes it is the same, and you [the boss] approved it.
Boss: Ok make some changes to make it feel better.
Me: (Inside: 😡 ) ok, have you some suggestions?
Me: at least tell me what is wrong with it
Me in the last 6 months:
Lost interest in games
Lost interest in work
Lost interest in guys
Lost interest in girls
Lost interest in coding
Lost interest in planning new projects
Lost interest in devRant
Lost interest in computers and technology in general
Regained interest in girls
Regained interest in guys
Regained interest in devRant
Regained interest in games
Regained interest in coding
Can't be fucked coding anymore though, so I just think about it
Regained interest in planning new projects, but can't be fucked doing it, so I just think about it.
Now interested in becoming a pastor, but, ...that'll take too long and I don't think the world is stable enough right now to even bother.39
Trying to login...
"Sorry your password is expired. You have to change the password every 60 days".
«Oooh, c'mon...» Inserting a new password...
"The password must contain at least 1 lowercase letter, 1 uppercase letter, 2 numbers and 1 non-alphanumeric character.
«Please, fuck off and die...» Typing again and eventually entering to private area...
My phone vibrate, there is a new SMS: "Your new password is H0lySh1t!"
WTF. Are you serious?12
I am so damn happy right now 😁! Finally I 🎉 released 🎉my own PHP Framework after countless sleepless nights. I'm happy that I want to spend more time looking at my open source project, surfing on same pages than going to bed. LOL! 🤣
Anyway if you're interested please pay a visit on the link below. I will humbly ask your support—a few stars and forks will keep me motivated 🔥 on improving my project. Thank you everyone!
When it comes to PHP frameworks one is forced to choose not the best one, but the least evil.
So apparently using utf8 with LaTeX isn't enough to get € symbol working, I have to include two more packages for that (two, because one handles the character, and the other one makes it look "not weird"). How hard can it be to just use a single utf8 font, and have it work with whatever utf8 character you type in? And apparently there are at least 3 packages specifically for euro symbol - a certain XKCD comic comes to mind...11
I've had 3 interviews with the same company. The first two interviews went pretty well, they looked interested, on the third they tell me "your CV says you are not graduated yet, we can't hire you now".
SO WHY THE FUCK DID YOU HAD TO WASTE MY TIME?
You've had my CV before the first interview, why the hell didn't you read that I am still a student? Is the first thing it's written on it! Stupid fuckers.5
Woohoo! 32k achieved!!! Finally I can post some new rant without risking some sudden overshoot 😁
So putting celebrations aside for a minute, a while ago I've noticed a tingle when I stroke my finger across metal areas of my tablet, or the sides of my phone (which probably has metal near it too) while it's charging. And it's been bugging me ever since.
Now, some things to note are that it only happens when my feet are touching the ground though slippers, and that the frequency is so low that I can actually feel the tingle when I slide my finger across the material. This to me at least seems like electricity flows through me into ground, and touching the ground directly provides a path so easy for the electrons to run away that I don't feel it at all. But if I lift my feet off the ground entirely, I just get charged up and after that, nothing else happens.
So those are my ideas. The answers on the subject on the other hand.. absolute cancer. Unsurprisingly, most of them came from Apple users. Here's some of them.
- I've not noticed it, but if you're concerned bring the phone to Apple for evaluation.
- Me too facing same problem.. did u visit apple care?
And one good answer at least...
- google emf sensitivity, its real. You are right, there is a small current flowing through your body, try to limit your usage. The problem with this issue is those who aren't affected (lucky ones for now) will tell you these products are 100% safe. To a degree they are, i used my ipod touch for about 2 years straight vwith virtually no symptoms. then the tingling started and it gets worse.You will get more sensitive to progressively less powerful things. I dont want to scare you but just limit your usage like i didnt do 🙂
Overall that discussion was pretty good actually, aside from "bring it to the Genius Bar, they'll know for sure and not just sell you another unit". But then there's Reddit.
- Ok, real reason is probably that the extension cord and/or outlet is probably not grounded correctly. Either that or you are using a cheap knockoff charger.
Either use a surge protector and/or use the authentic Apple Charger.
- It's not the volts that hurt you, it's the amps
- I think you are in deep love with your phone. That tingling sensation is usually referred to as "love" in human language.
- Do less acid, I would advise.
Okay, so that's the real cancer. Grounding issue sounds reasonable despite it being wrong. Grounding is actually not needed when your charging appliance doesn't have any exposed metal parts. And isolation from high voltage to low voltage side actually happens through things like routering holes into the PCB, creating spark gaps, and using galvanic isolation through things like optocouplers. As for a surge protector? I'm using them to protect my PC and my servers, but the only purpose they serve is to protect from.. you guessed it.. voltage surges, like lightning bolts hitting the grid. They don't do shit for grounding or reducing this tingle! What a fucking tool.
It's not the volts that kill, it's the amps.. yeah I'm sure that the debunking of that is easy to find. Not gonna explain that here. And the rest of it.. yeah it's just fucking cancer.
Now what's the real issue with this tingle? It's actually a Class-Y rated (i.e. kV rated) capacitor that's on the transformer of any switch-mode power supply, including phone chargers. If memory serves me right, it helps with decoupling the switching noise and so on. But as it's connected to the primary side of the transformer, if the cap is sufficiently large and you are sufficiently sensitive, it can actually cause that tingle by passing a fraction of the mains electricity into your body. It's totally safe though, as the power that these caps pass is very small. But to some, it's noticeable.
Hope you found this interesting! And thanks a lot for bringing me to 2^15. I really appreciate it ♥️27
A little while ago, the concierge of my apartment building came to me about some issue with the central heating system. Totally unaware about the issue, I let him check some things in the apartment. Then he told me that apparently my thermostat has been turned off all the time. So I think that my servers may very well have been the primary source of heat for this apartment for several weeks. Servers, the new type of central heating system that even does useful work in the process!! Can we get some wanketeers on this to make it a product? 🙃10
Got laid off on Friday because of a workforce reduction. When I was in the office with my boss, someone went into my cubicle and confiscated my laptop. My badge was immediately revoked as was my access to network resources such as email and file storage. I then had to pack up my cubicle, which filled up the entire bed of my pickup truck, with a chaperone from Human Resources looking suspiciously over my shoulder the whole time. They promised to get me a thumb drive of my personal data. This all happens before the Holidays are over. I feel like I was speed-raped by the Flash and am only just now starting to feel less sick to the stomach. I wanted to stay with this company for the long haul, but I guess in the software engineering world, there is no such thing as job security and things are constantly shifting. Anyone have stories/tips to make me feel better? Perhaps how you have gotten through it? 😔😑😐15
> le server suddenly stops working, no boot, no POST, no beeps, no video
*le frantic cursing on how perhaps that's why the fucking thing was only €60 🤬*
*takes out RAM*
> le server still not booting
*places RAM back without doing anything else*
> le server boots up again
Is this what they mean with things like "compile it again and somehow the compiler will not complain anymore after a while"?14
The following just happened in the bus:
A woman took a beautiful Enpora flip phone from 2008 out of her pocket. While she did that a small yellow paper fell on the ground. My eyes pointed at the paper and I saw multiple usernames, passwords and codes on it.
I didn't even hesitate and tapped on her shoulder and gave it back.
She was frightened! Couldn't thank me enough and told me how important it was to have that with her. She said she couldn't remember all her passwords and that if she would've lost it, she didn't know how to log in and unlock her phone anymore.
I gladly told her that it wasn't very safe but ofcourse I understoot that it can be hard to remember everything.
Also I almost told her that she could start using a password manager but with a flipphone you can't use that of course ;)7
Started working on a pihole alternative a while ago.
I like pihole a lot but one of the features I am missing is to be able to define a list of mass surveillance related domains (Snowden leaks; PRISM program and such) and show statistics based on dns queries containing blacklisted domains, prases/words and surveillance-related domains/words (google/facebook/microsoft/apple etc).
Started working on one based on an existing (php based) dns server which is open source and slowly but surely developed something which worked.
Then, I found out that the php resolving function (dns resolving) uses the system default, which can, of course, be google's dns as well. Changing this would be ideal but while the documentation suggested that it could be done some way, it didn't work for me so I chose a library which can do it with specific dns servers (to use as external dns servers).
This library used a different way of showing the retrieved dns query results and really wasn't in for converting everything by hand so i kinda quit the project a while ago.
A few days ago I thought fuck it and started again.
Now have a working version based on the new dns resolving library and made some other good improvements.
For those who are wondering why I chose PHP for this: why the fuck not?
Happy happy happy.17
“We want to make a marketplace”
“We need an ordering system”
“We need the system so that our partners (company that sells the products) can easily plug and play into our system”
Soo, have you any idea on how the flow should be?
[our current app]
[the thing you will build]
[partner’s web app]
Eehh, what’s the [...] ?
“Dunno, whatever it is, people obviously, to monitor and manage the orders”
Aand why do we need people in there?
“Because our partners doesn’t have any APIs that we can use”
I’ll try to get this straight,
You guys want to make a marketplace, but the partners’ system doesn’t support what you want and doesn’t have any APIs we can use, so we make some kind of admin system, that “someone” will use and manage it,
So when a user put an order from our app, it will show in the admin interface, then “someone” will manually direct the order to the partners’ system, and manually update it including tracking the whole transaction?
I can’t explain it better, but basically the last paragraph sums it up, am I an idiot for assuming that these guys are idiots?11
FKING. LANDLORD. FKING LANDLORD THINKS MY LAN CABLE SLOWS THE FKING INTERNET BACK TO THE 1990s.
I'm renting at a place that looks good af. But the fking wifi is so slow, 80% of the time you can't even send an empty http request.
- Chapter 1
Okay, maybe it's my laptop. *plugs in cable*. Now the requests fail 10% of the time. Better than nothing. 2 hours later, gets a text saying other housemates are having slow internet because of me. FUCK. Unplugs, LAN cable, uses mobile data and cries to sleep.
- Chapter 2
Tries again after a few days. Barely uses the internet (I'm only using it to play games, not even download it and I used more than this with a 2mbps internet). No videos, no music, just small data exchange with a low ping. GETS A FKING TEXT AGAIN
- CHAPTER 3
My sis comes over and complains that the net is slow af. Plugs in LAN cable while no one is around, everything is fine. Sis leaves, I roll up my end of the LAN cable in my room but leave the cable plugged in on the outside of the room. Next morning, it's unplugged. Plugged it back in before I go to work and when I come back, guess what? ITS FKING UNPLUGGED. AGAIN. AND IM NOT EVEN USING IT.
SOMEONE PLEASE STOP ME FROM GOING ON A RAMPAGE SHOVING THE FKING CABLE AND THE ROUTER UP PEOPLE'S ASSES. LAN FUCKING CABLES DONT SLOW THE INTERNET BACK TO THE PREVIOUS CENTURY. ESPECIALLY WHEN THEY'RE NOT EVEN PLUGGED IN ON THE OTHER SIDE. FUCK.21
Working in an open plan office containing the whole company, hr, hardware,it, marketing, Devs etc. so it's a pretty close company everyone knows and chats to everyone.
One day the company decides to open an office at the other end of the country, and to offer current employees a relocation package to be the founding residents.
The girls from HR host a drop in consultancy in the corner of the office which no one attends.
As the office is open plan we can all see the lack of interest so a guy goes over has a chat about the lack of interest (he wasn't even going because he was interested in the relocation) then decides to return to his desk and send an email to the affect of "no one is attending the drop in because Devs are scared to talk to girls".
Dumbass forgot that he was the only male in the room without a wife or girlfriend. Also forgot we spoke to these girls everyday and that half the developers he emailed were female.
But we had to laugh when we realised he'd sent it to the company wide email group and not the developers group.... Oh how higher management have a way with words when it comes to calling someone an arseholes in an open office5
Mobile app crashed a lot after latest release. Everyone called for a meeting to discuss the issue and find resolutions.
Engineering lead for backend team: well part of our problem is we haven’t had time to test everything fully. Maybe product could give us a list of all the features that can’t go down and we’ll prioritize those for testing?
Product: ... ... ... all of them?
Me: laughing hysterically while on mute4
+++ Thank you for 1000+'s! +++
So guys we did it! We've reached our first big milestone!
This account was created about a month ago, and we are already this far!
Thanks to all authors (@DLMousey, @filthyranter, @baewulff) who are putting a lot of work and time into their articles and help this account to further grow in size!
To make this article at least a bit informative, here's how we publish our posts:
When I started this account, I hadn't thought of how articles were going to be published. Should I give the password to all writers? Should I post the articles manually?
Well, after I've started the devNews Discord Server, @olback suggested making a Discord Bot, that helps us to publish our stuff.
After surprisingly few hours, @olback already got a prototype working.
We have a special channel and whoever writes stuff in it, updates the current article. Later, I took on the work, @olback has done and switched to LowDB, to be able to let multiple users have their own articles they are working on and much more. (Like special signatures)
And that's how it is now.
We have a channel for draft, where we write our stuff and a channel for publishing, where the bot listens to what we write and then publishes the articles with a command.
That's all of it.
Thank you for reading!8
I need to step up my game.
I was at work, and some old guy came in.
He said he needed to quickly check a password before we started working on his computer, and he opened up a full msDOS prompt and started a custom password manager that he wrote in basic..
It had a ton of graphical stuff built in and could hide / show logins with various keyboard commands.
Visual Studio Code.
I've tried you because of hearing a lot of good stuff about you. I'd switch back to netbeans regardless because I love netbeans and I always try to use as little as possible from companies like Google/microsoft/facebook (and others) but what you're pulling right now is un-fucking-believable.
I've disabled ANY AND EVERY form of calling home I could (find) in your settings. Crash reports, automatic updates, metrics, you name it. I've searched all the fucking settings but I can't find any other home calling thing that's enabled and yet:
I'm monitoring every goddamn DNS request (through my own DNS server) and I'm still seeing calls to a Microsoft owned domain. Closed all my browser sessions and you as well and it stopped. Started browser again but not you, nothing.
Started you again: BAM. Calls to that damned Microsoft owned domain again.
If you can't honour my decision for disabling any form of home calls, go fuck yourself.
Netbeans, I'm back, I've missed you 💜40