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 - "gem"
-
Logic Gem found at work today.
if (value != null) {
return value;
} else {
return null;
}
😂 😂😂😂😂😂10 -
Received "emergency update" code from internal enterprise security team. Wasn't given time to do code review; was assured code was reviewed and solid.
Pushed code to over 6k lower-level servers before finding this gem buried deep within:
...
cd /foo; rm -rf *; cd /
...
(This ran as root, and yes, the cwd was / from earlier in the code).
/foo, of course, did not exist on some servers.
Now, it is those servers which do not exist.
FMLundefined security root linux file not found directory structure rm -rf / directory not found fml rm15 -
While reading through the Elasticsearch (Java search engine) source code a while ago I found this gem:
return i == -1? -1: i;
I think someone should stop drinking while coding.
Some other nice lines:
int i = 0;
return j + 1000 * i;
Are these guys high?11 -
I'm converting some old stylesheets to sass and found this gem. How drunk I must have been to write something like this o.012
-
Just finished reading this gem from start to end. It is over 20 years old and it is crazy how it is still up to date and applicable. Great work.8
-
So this other senior dev got seriously ill a couple of weeks ago and the project he was working on was assigned to me. His code was so aesthetic, loved his work, the structured code helped me a lot in meeting the deadlines. He returned a few days back and now the company has given him two weeks notice because "his pace is slow". I am frustrated, PM is frustrated. The guy is such a gem that he is still helping with all the new requirements client is throwing at us.8
-
Someone is wondering how to get this piece of code working as expected on StackOverflow:
for (var i = 1; i <= 2; i++) { setTimeout(function() { alert(i) }, 100); }
Found this gem in answers. :D14 -
Just got a job description from a recruiter with this little gem:
"maintain internet using MS Visual Studio"
If I have to use VS to keep your internet up, your company has some serious technical challenges ahead.8 -
Needed to download all my music from Google music, their download manager is crap (on ubuntu)
Decided to use their API, found a gem that works perfectly. Started downloading it.
Told my GF how I wanted to code something cool but gound someone else did, her response:
So why doesn't google make something ?
Me:They did, but it sucks in linux, and they have their API's which work fine.
And how are normal people supposed to make it work then?
Me: well it works, jut have to install this and run the CLI with.... wait.. am I not normal?
I guess we are not normal in the eyes of some people.18 -
Just found this precious gem in the legacy code I am maintaining! How do you check if a string is empty :-D ?5
-
Reading some of the wk50 rants makes my blood run cold. brrrrr. They're terrifying.
While my story goes just like this.
Didn't know our manager(let's call him R) messaged us in our group chat that he won't make it to office for that day.
My account replied "Let's have moment of silence for those who left us. R, you will be missed. :'( Thank you for everything.".
I didn't notice the message until lunch time and my co-devs (with much back-slapping and laughing) told me I'm a gem. -_-
I just went to get some coffee, forgot to lock my unit and came back a murderer.
AND It was only my 2nd month on the job.6 -
Just found this gem on Twitters API...
When your app gets too excited they return status code 420 to tell you to chill! 😂😂😂
Fyi : For the non web-devs out there 420 is an invalid http code.5 -
This is a funny one:
I found this gem in SO.
Why is it funny? Well, PDVSA is the state-owned company for oil production of my country (Petróleos De Venezuela).
This little intern decided that it was a good idea to publish in SO an answer with actual code, showing database and tables names to everyone.
Priceless.8 -
found this gem today.
P.S.
captcha - Completely Automated Public Turing test to tell Computers and Humans Apart.
ahh, seems promising!!3 -
I am in tears.
My manager had a lot of pressure to relocate to the US.
She wasn't able to do so and had to leave the company on mutual terms.
Not only we'll be working with someone new but also my manager was fucking amazing person.
A gem who walked into my life, flipped my life and now goes away.
Why the good people have to leave...
I was so wrong to think about her the wrong way even when I saw this coming.
I really hope that I stay in touch with these awesome people and grow along with them for a long time.
It hurts me when I lose good connections.
Fuck me! Can't even think clearly right now.6 -
So I was studying for a test using a quizlet my social studies teacher made, and I came across this gem. 99% sure my social studies teacher didn't read what it said/understand what it means.9
-
Was updating a legacy website when I came across this gem... Gotta wonder what was going on back then2
-
If some of you missed this gem in stackoverflow answers, I bring it once again!
More fun @ http://meta.stackoverflow.com/q/...6 -
Came across this gem a few months ago ago. The only thing I can think of is the recruiter had his favorite pornsearch phrase in his clipboard manager and hit the wrong hotkey.7
-
Just surfin aroung in C# job offers and found this gem, a joboffer from a german bank:
"Sie verfügen über Erfahrung in der Entwicklung individueller .NET-Lösungen auf Basis von C "Hashtag"."
which translates to
"... and you have excperience with C "hashtag"..."
Lol'ed harder then I should have...2 -
So, should I refactor this into a .greatGreatGrandParent() method, or should I just go hang myself?
(Thanks former colleague for this gem)10 -
I'm fixing a security exploit, and it's a goddamn mountain of fuckups.
First, some idiot (read: the legendary dev himself) decided to use a gem to do some basic fucking searching instead of writing a simple fucking query.
Second, security ... didn't just drop the ball, they shit on it and flushed it down the toilet. The gem in question allows users to search by FUCKING EVERYTHING on EVERY FUCKING TABLE IN THE DB using really nice tools, actually, that let you do fancy things like traverse all the internal associations to find the users table, then list all users whose password reset hashes begin with "a" then "ab" then "abc" ... Want to steal an account? Hell, want to automate stealing all accounts? Only takes a few hundred requests apiece! Oooh, there's CC data, too, and its encryption keys!
Third, the gem does actually allow whitelisting associations, methods, etc. but ... well, the documentation actually recommends against it for whatever fucking reason, and that whitelisting is about as fine-grained as a club. You wanna restrict it to accessing the "name" column, but it needs to access both the "site" and "user" tables? Cool, users can now access site.name AND user.name... which is PII and totally leads to hefty fines. Thanks!
Fourth. If the gem can't access something thanks to the whitelist, it doesn't catch the exception and give you a useful error message or anything, no way. It just throws NoMethodErrors because fuck you. Good luck figuring out what they mean, especially if you have no idea you're even using the fucking thing.
Fifth. Thanks to the follower mentality prevalent in this hellhole, this shit is now used in a lot of places (and all indirectly!) so there's no searching for uses. Once I banhammer everything... well, loads of shit is going to break, and I won't have a fucking clue where because very few of these brainless sheep write decent test coverage (or even fucking write view tests), so I'll be doing tons of manual fucking testing. Oh, and I only have a week to finish everything, because fucking of course.
So, in summary. The stupid and lazy (and legendary!) dev fucked up. The stupid gem's author fucked up, and kept fucking up. The stupid devs followed the first fuckup's lead and repeated his fuck up, and fucked up on their own some more. It's fuckups all the fucking way down.rant security exploit root swears a lot actually root swears oh my stupid fucking people what the fuck fucking stupid fucking people20 -
I'm doing a migration where I have to move like 200+ old-old websites. Stuff was never touched for ages and we kinda moved it 'into the cloud' now.
So after a few sites I check graylog (where all the logs are stored) and I saw this gem:
stderr: PHP message: PHP Warning: file_get_contents(http://tinyurl.com/api-create.php/... Online Viagra/): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
And I was like, wtf? Is this site hacked?
Ok the sadness starts now. Behold the following:
function getTinyUrl($url) {
$tinyurl = file_get_contents("http://tinyurl.com/api-create.php/...);
return $tinyurl;
}
This function gets executed for the current link AND every dynamic href on the page.. EVERY pageload.
I was not even mad.2 -
Beginning of a Hackaton and the CTO calls everyone up and tries to instigate everyone with this gem:
"Challenge yourself and what we have. For example, instead of AWS use Swagger."
🤨
Nobody says anything but has the same WTF expression ... How do these person become tech lead?2 -
While debugging some java code by our Senior Architect, I found this gem: 5000 padding done manually.
PS: Jr Developer here.7 -
Just found this little gem when I ducked RBL.. must be a super high quality bank with that meta description :32
-
!dev
!!politics (kinda)
Here’s a gem from our recent harassment and diversity training at work:
Speaker: “All of these things are protected from discrimination in California! Wow! It’s a huge list, isn’t it? Now let me ask you a question: is a single white male under 40 protected?”
Everyone: *crickets*
Fucking really?
After immediately jumping on all of the other speaker’s questions, you can’t answer this one?
And later, here’s another gem:
Speaker: “If you witness an employee harassing another employee outside of work and work hours, completely unrelated to work, should you report it? What if you ask the person being harassed and she says no?”
Speaker: “Always report it! While it’s not *technically* required by law, you must report it! Why? Because you have the same protections she would! And maybe it’s easier for you to say something than for her.” (Surprise gendering was her own addition)
Fair on that last point, but against the person’s wishes? Totally not cool. Maybe it wasn’t harassment, or you don’t know the situation. Heads up: you probably don’t. Or maybe it wasn’t a big deal at all, but you think it’s earth-shattering. But all that reporting it against someone’s wishes does is create drama and possibly legal trouble. And if it wasn’t harassment or the case goes poorly, you just created enemies for yourself, or for one or both of them if you’re reporting it anonymously, and possibly even ruined one or both of their jobs/careers by doing so. Good fucking job, asshole.
Snitches get stitches.16 -
!dev at all
Was chilling with my t mobile rep trying to get some issues resolved regarding what Verizon's bitchass was trying to do after i left their shitty company.
While i was there and my dude was working his magic i noticed this smoking chick walking around the store waiting for someone to help her out. So being that everyone was busy and sorta scared of talking to her( i can sense that shit) i told my boy to go and pick her as his customer, to be flirty and cool and shit.
My poor dude was all like "nah man I dunno how to talk to girls...."
I was telling him "bro, you ain't bad looking, just go, introduce yo ass and tell her that you'll take care of her in a min!"
"But i get all anxious and shit"
"Nah man, just talk to her like you did to me when we first met, she is just a customer, i aint telling you to ask her out on a date, just i dunno practice talking to girls! No harm with that! Specially this one b look at them leeeeeeegs!"
Now, why did I care? The reason is that he mentioned to me after seeing my wife (total babe) that he pictures me as a player. Which I was but that is beyond the point. And he said that he had always had trouble talking to girls.
So i told him what to do, said to be calm and confident. Ninja is an alpha salesman, and great with t mobile services, so he has that confidence, told him to exude that shit as if he was talking to a guy.
Homeboy got ballsy, drank 5 gallons of man the fuck up and went and did what I did. Then she went ahead and stand next to us, and i put on the good words for my dude "ah you got the best rep right here! G boy is bomb with everything!!" She was laughing saying that she hopes that he can help her with her phone.
"Don't worry, i got you, its just a small thing and if you want i'll show you what to do for future occasions"
"Oh so you don't want me to come back if it happens?"
"Haha you can come back any time as long as I am the one helping you out"
DAAAAAAAAAAAMN son!!
"Ok, but only if its you"
Daaaaaaaaaamn
Went better than expected. The dude needs more confidence, he aint bad looking at all and don't want him missing out on some of the babes we got walking around town.
Lord knows I had my fun with them.10 -
Found this gem in some old piece of code:
public static void printStackTrace(Exception e){
e.printStackTrace();
}3 -
Fond this gem in teams code;
Var temp = "",
Var tmp = "",
Var tmp2 = "",
Var tmpIDK = "";
Asked the creator only 4 hours after the commit what his code does. The answer; I have no idea, but it works, don't touch it.2 -
Found this little gem today in some legacy code at work.
Apparently this is the best way to split a datetime (hh:mm:ss mm/dd/yyy).
If only there was a function that could split a string by keying off characters.
Oh wait there is....
I decided to give it a comment memorial.7 -
I got fucking scammed.
Too bad that I just realized it.
As most of you know, I am in Cappadocia atm. We had a balloon flight. Yada yada yada.
Then I took a green tour that was provided from an travel agency that was a Partner of the hotel I am in.
[Skip]
The guide brought us to a stone seller. At the jewellry store, we were told that they have a special kind of gem. It gets mined in Mugla(Turkey).
Thus we thought that the stones they sell are mined natural gems called Zultanit.
Oh boy were we fucking wrong.
The zultanit gems are able to change their color depending on the light it receives. We were all fascinated at the demonstration. They told us that it is the second Turkish gem. First comes Turquoise.
I bough a zultanit bracelet for myself. And a zultanit ring for my mum.
It took me about 635 Lira which is about 95 Euro.
I was like damn. They are so damn valuable. It maked sense to me, because it was changing its colors at differentt areas.
Now guess what...
I went onto the internet and checked reviews about that shop. They were mostly saying that these are not real, but lab created gems. I was deeply shocked.
I checked the "certificate" that I got from them. It matched. My gems are lab created and not mined as they told to us tourists ffs.
I am crying internally.
How could I be that dumb to believe that?
Guys, never buy anything they tell you. Check everything to its detail.
The "zultanite" is a real gem. They even have their own trademark, but we were sold a "zultanit (lbrt)".
They did not show the certificate before buying it.10 -
I have now worked on integrating Stripe, Razorpay and PayPal on our app.
While Stripe has an absolute gem of a documentation.
Reading PayPal's documentation has been one of the most torturous week of my dev life.3 -
If you discount all the usual sql injections the most blatant was not our but a system one customer switched to after complaining over cost.
The new system was a bit more bare bones featurewize but the real gem was the profile page for their customers.
The only security was an id param pointing to the users primary key, which was an auto incrementing integer :)
And not only could you access all customer data but you could change it to.
But since the new system was built by their it chief’s son we realized it was not much we could do.2 -
Found this gem yesterday...
function justNumber(BigDecimal n) {
string negative_sign = "-";
BigDecimal response = BigDecimal.valueOf(n.toString().replace(negative_sign, ""));
return response;
}11 -
Dunning-Kruger effect is strong with me.
Thankfully, one of the most important skills that I learned is active listening. I am less vocal about my silly thoughts and shitty opinions these days.
I don't feel dumb. Instead, I realise that I AM dumb.
The people in my new org are exceptionally smart and talented. Each everyone is a hand picked gem. This isn't a coincidence. Rather it's evident that they hire folks very carefully.
In my previous org, I used to be the one driving everything. Like the smartest guy in the room.
But here, I am just quiet in every meeting and I enjoy working 12 hours a day. I am the dumbest guy in the room surrounded by people who are brilliant and humble.
I truly feel fortunate and grateful to be part of such an amazing org and wonderful team. One of the best decisions I made in my career and life.8 -
This gem of a game. Partly cause i'm a contributor, partly cause i'm a space junkie.
Is this advertising? maybe.
Am i in love? definitely.7 -
That moment when you’re asked to shift the entire project from arduino to raspberry pi because your professor likes jazzed up crap.
Arduino so freaking reliable. A gem in a box.
Raspberry Pi is flashy hollow shiz.7 -
I just received this gem this morning.
First of let me start by saying that I am against scammers and all this Nigerian prince crap.
But some of this shit is so bad that it actually pisses me off. My intelligence feels insulted.
Look at this email. These fuckers spent hours perfecting the Hotmail feel to it. The logo, design and even font are in par. As I started reading the shit, the spelling mistakes are so obvious that I wondered; do these nut suckers know that whatever email editor they use, it autocorrects for you? Are they just ignoring the recommendations? I mean they could've even used the "Did you mean" feature in Google. Or any of the freely available grammatical check sites out there.
Think of this as plagiarism. It's bad but a majority of us can appreciate a well planned out one.
I'm yet to encounter a really good scam email that almost had me click their link. There's always an obvious stand out! Is there like a copyright holder to a perfectly well put scam email?!
(And yes, you just read a rant about someone complaining that scammers aren't doing a great job)4 -
Searching for local jobs, I found this gem:
- At least 4 years of experience in Unity3D with HTC Vive and Oculus devices.
Then people ask me why I want to work on another country...1 -
Casually perusing some online job postings and happened upon this gem. This is at best gloriously naive...2
-
Today,I found this gem:
static function getConfig(){
$cacheKey = 'foobar';
try {
$config = $this->repository->getConfig();
$this->cache->set($cacheKey, $config);
}
catch(Exception $e){
try{
$config = $this->repository->getConfig();
$this->cache->set($cacheKey, $config);
}
catch(Exception $e){}
}
}
I don't want to live on this planet anymore...!7 -
So I went with a friend to a printing company today and asked this gem: "so , will you print the white too?"
Before he answered I realized my momentary retardness and said: "wtf, what a stupid question."
I think I need some rest 😂😂2 -
Another gem during my studies: Senior professor in early class. Suddenly a phone is ringing. After a while he pulls out a huge inflatable phone and yells:"I can't talk right now I am in class. Bye.". Then he steps towards the board writes down "stupid joke" ticks it and says in a dead serious voice:"That's done".
-
Boss: <Commits odd and breaking changes to my specs>
Boss: How did these specs of yours ever pass!?
Boss: That's not how this gem works!
Boss: <Doesn't mention that the gem was updated well after I finished the ticket>
Boss: Go fix your specs!
...2 -
Found this gem 😂
TRANSLATION
Java for believing programmers
For who?
Young male,
which want to pray together,
and at the same time make first
steps in programming
How old you need to be?
Up to 25 years
What do you need?
Holy Bible
Laptop
*you just need 500 mb RAM and WinXP6 -
Computer related shit follows me everywhere, I swear. Went to a friends house and low and behold - this gem. I knew someone smelt like what I imagined a domain smelling like...1
-
!rant
I was fiddling around on a website for a bar near me with an arcade. Friends and I already discovered that you could input the konami code on the homepage and be brought to a little easter egg with a chance to win a free beer, free pizza, or nothing.
This evening I was looking at the site a little more and decided to try to find the js code they're using to manage this because I thought it was an ingenious idea. When Looking at the source, I found this little gem. I'm very pleased and wish I had built this site.2 -
Just stumbled across this gem last night. You guys know how biggest online games site in my country (also backed up by largest ISP) handles reset password requests?
After clicking "Forgot password", it asks you to login to Gmail (cause everyone is assumed to have and use one, right?) and then opens "New Email" window prefilled with some template data which you're expected to finish (in screenshot below).
And I just wanted to play some Ludo with my friends.. 🙄🙈2 -
Found this gem of a comment in a code base written 4 years back.
/*
Invoke <Service Base URL>/asset/v2/details/<SN> to get asset details
Feeling very bad to include this call, but we really need to use this !!!
This call is gonna take ~20s to respond. I've even increased the overall timeout of this module, just for this call !!!
So, if you are looking to debug any performance issue, I wish you jump directly here,
remove this call and just use master data management (MDM)
P.S: It is not that simple, as MDM and this asset DB (both asset masters) has differences in how the asset is defined :(
*/
Still trying to understand how to remove this costly time-consuming call and replace with an efficient one !!
And, of-course, the original author left 2 years back :(3 -
Came across this gem. Thought more people ought to see it. 😂 Guess no one in that repo had a sense of humor.
-
Still have access to my last companies github. Went snooping and saw main branches ahead and behind in commits from dev branches.
Decided to look into the PRs, and found this gem from my incompetent old VP of engineering.
Same guy who fired all the developers to save on money, and then contracted us back to do our jobs at 3x the rate. Basically a business savant!4 -
Found this little gem in the AMD64 reference manual:
"When PCIDs are enabled the system software can store 12-bit PCIDs in CR3 for different address spaces. Subsequently, when system software switches address spaces (**by writing the page table base pointer in CR3[62:12]**), the processor **may use TLB mappings previously stored for that address space and PCID**".
later:
"Updates to the CR3 register cause the entire TLB to be invalidated except for global pages."
So let me get this straight: PCIDs allow you to reuse TLB entries (instead of flushing the entire TLB) when writing a new address space to CR3 but writing to CR3 always flushes the entire TLB anyways
Just why 🤦♂️7 -
I was depressed doing a course I hated.
3 years in and I switched to Computer Science.
Best decision ever!3 -
After googling "fuck whoever thought of open plan offices" out of pure rage, I found this gem of a website, now I'm happily surprised I'm not alone. :)11
-
Found this gem today
public findHM(int height, int height2) {
if (height < height2) return height;
return findHM(height - 1, height2);
}4 -
Came across a gem today...part of a stored procedure that sits under our erp software. This explains a lot7
-
Today, I found this gem here in the codebase I've taken over:
#define BYTE unsigned char
FFS, use typedef, it's there for a reason. Solving the puzzle in the first comment.6 -
Found this gem today while looking through confluence.
Goals:
Can the candidate use Slack?
Ask follow up questions if missed anything.
Ask the questions that tell a lot about someone without directly asking it (i.e. Have you ever met someone famous? (Telling what the candidate values in life) What are your hobbies? (Telling if candidate has a work life balance). If you were a crayon, what color would you be and why? (Highlights prominent aspects of candidate’s personality) Please don’t just use these, be creative.)
A crayon???? Das when I hang up5 -
OK I've just got an idea that I think would be quite neat:
How about a virtual rubber duck that sits in the corner of your editor? Just like the gem in old Word, if you remember. It's yellow and quacks sometimes, and nods understandingly when you talk to it (mic monitoring).
And it also monitors your typing and says (popup text bubble) things like:
"those parentheses doesn't look balanced to me"
"did you really initialize that variable?"
"you wrote JASON again"
"you forgot the ;"
You get the point.
I don't have time to implement, feel free to steal my idea and become a millionaire.5 -
So i was working on ruby gem that wraps the libarchive C library which can be used to read and write archives of many different formats.
I was stuck for few days with a segfault and for the life of me, i couldn't find the problem.
So, i took a break and went to visit my grandparent, grandpa saw me so zoned out. So he was like, whats happening? I was like, "Frakinn program, keeps crashing".
He looked at me and said, "Garbage in Garbage out, Computers don't make mistakes" and went back to finish his game.
Then it him me the FRAKINN Ruby Garbage collector is freeing in-use objects and suddenly everything make sense.
Thank you grandpa :D3 -
THIS FUCKING RECAPTCHA GEM! WHY THE FUCK MUST I DEBUG YOUR FUCKING PRODUCTION CODE AND WORK AROUND YOUR FUCKING BLUNDERS?
VERY LITTLE PISSES ME OFF MORE THAN SUFFERING FROM SOMEONE ELSE'S FUCKING STUPIDITY5 -
Found this gem while cleaning up code:
.colorNavy { color: navy; }
This needs to be printed on a navy tshirt.3 -
Recently did a fresh installation of brothers laptop of windows 10 and found this gem at after installing chrome and running it for the first time
chrome://welcome-win10/
suck it micro$oftundefined tags i am awesome windows chrome ok seriously back to tags microsoft google windows10 win$hit1 -
Trying to investigate why the team of new Devs are reporting a particular set of modules is not properly maintainable, found this little gem at the root, written in 2014.4
-
Worst Jira ticket I've ever seen:
Title: "It looks f#?$ed"
Description: ""
This gem was opened by the project producer. When asked about it, it was just a mismatch in text margins. -
I am planning to build a list of Gem companies.
Would crowdsource the details.
Definition: Gem companies are NOT FAANG but companies with better ethics, culture, WLB, and good salary.
Will structure it as follows:
1. Name
2. Location(s)
3. Domain
4. Website
5. Jobs page
Make this public for anyone who wants to refer. This list can be used by any job hunter to search, apply, and land a decent job.10 -
Another gem from same co-worker who is a "Senior Developer". Unnecessary function that fills a dropdown box(?!) with numbers 1-100. I really really hate this guy.
Bonus: Best Practice Example of Naming Variables...4 -
Today’s DevOps public service announcement... don’t test your server provisioning scripts locally. Especially when this gem is in there:
rm -f ~/.ssh/id_rsa
echo ‘vault secret/ssh_key’ > ~/.ssh/id_rsa
Well, I no longer have my key, but the script works! I’m sitting with a very locked down server key6 -
I just saw the equalizer 2 at the cinema and about half way through there is a phone with "military grade encryption" on it. We see the phone screen showing the encryption and what is it? Freaking JQuery!3
-
A beautiful gem ticket from a manager today:
Title: "Check Stripe "Snippet APK" that might help for integration into the app to track pricing easily."
Alright, it's very clear this particular individual has no idea what they are talking about, but, I'll give them the benefit of the doubt and read the ticket description!
Description: "I think stripe offers some sort of snippet that can be implemented into the app similar to FB pixel. (I could be wrong here..) let’s briefly check this, if it’s of value for our A/B-Tests → e.g. if it makes your life easier = good otherwise it’s not important."
...
I might as well replace the management team with GPT-3 at this point.
Or even just a simple Markov chain; that'd probably be more accurate if you want to match the ticket quality more exactly of this ABSOLUTE PILE OF HORSESHIT WASTE OF TIME I GET FED EVERY SINGLE FUCKING DAY.
🤡4 -
I know politics is not allowed here, but I have to share this gem with you.
One day before the election for the European parliament the website of the German city Bochum showed a wrong bar diagram with false results of the election for a few seconds.
Everyone was loling. But I was like WTF? They were testing in production. And also they included data were the party AFD had about 50% of the votes. Are they retarded or so?4 -
Found this gem today (and there is not anything else defined as "any") WTF are you kidding me? Some people should not be allowed to program2
-
Found this today! For someone like me who has 30+ tabs open on an average, this is an absolute gem!7
-
Just came across this absolute gem:
https://developer.blender.org/T5323...
"Yeah it's slow but it was _designed_ to be slow therefore it's no problem whatsoever"6 -
Just came across this gem. What's wrong with it??
Yes, the threat of SQL injection here is a legit response, but in this particular case that's not the answer I'm looking for.
Hint: This method gets called a lot!15 -
I keep telling myself I'll start to learn native android development but everytime I even attempt, it's just so overwhelming!
Just purchased a moto 360 gem 2 so I want to get into watch app development or even just watch faces but can't even work out how to do anything :-(
Ugh, guess I'll have to swallow my pride and tutorial it up!2 -
Just found this gem:
<a href="..." onclick="if (! confirm("Are you sure you want to log out?")) return false;">Log out</a> -
https://devrant.com/rants/4408042/...
Another one. Next phone is definitely an Android. Fuck this shit.10 -
When someone asks me a tecnical question in something i'm interested in:
"It works like this ... Oh i also should explain you how processors work ... Anyway, when a bufferoverflow arises ... And thats how crypthography works ... and so does blockchain work ... anf thats why bitcoin is causing way too many stress on the power grid."7 -
Found this gem in a comment from a couple of years previously:
// This shouldn't be here - needs moved to a separate handler. Likely to cause all sorts of weird bugs
No shit, Sherlock! Like the one I'm bloody trying to make sense of now!1 -
After many days of fighting with gem and bundle surrounding logstash plugins, I can officially say I hate Ruby.2
-
I really couldn't help but laugh when I found this gem of an error message. I mean, I'd literally know just as much if it served me a blank page.
If you can't describe your own god damned error message without calling it 'generic', IT IS NOT A GOOD ERROR MESSAGE!
I'm glad they informed me it's an application error though. HERE I WAS THINKING MY TOASTER WAS THE PROBLEM.2 -
Looking at some new dev tools I spotted this gem:
"If install fails, keep trying to install a few times."
Thanks for the tip!1 -
Damn frontend crap.
The fact that you have to mask all of the disease with processable versions of css, html & js is bad enough, but there are like 6 dialects of each bandaid, and every project has traces of each.
The the design kid tells me to run this grunt script, frontender number two screams "no, dont use grunt, we use gulp! or was it bower? I guess just run it through yeoman, it's easy!", after which the third fucking shitty hipster yells "No that's outdated, just edit the webpack file, and then run yarn install... oh but run npm upgrade --global yarn first"
Did you just fucking tell me to upgrade a fucking package manager with another package manager?
Composer, gem or cargo are not always without problems. But at least us backenders have our fucking shit together. The worst we have to deal with is choosing Python 2 vs 3, or porting some old code so the server can migrate to PHP7.
The next person to tell me they found this awesome tool to manage his other tools... I'll fucking throw your latte all over your wacom tablet.2 -
So was walking through a display homes with my partner and found this gem...
Edit: I have no idea why this rotated1 -
!dev
So, here I am browsing steam for something new to play.
Thanks kwilliams for a solid 30 hours of gameplay 🤘
But anyway, I was just scrolling through and came across and old gem.
https://store.steampowered.com/app/...
And it got me thinking, if anyone else used to play this old bad boi around here.
It's not High Def or modern, although it does 1920x1080, but damn it's a trip down nostalgic lane.2 -
None in the last few years. But my supervisor was a gem that I wished I could pack in a bag and take with me elsewhere.
However, I can recall an old job that had a lot of "weekly" meetings that I used to sleep at. If you have a weekly meeting without an agreed upon or relevant agenda, chances are it's a snooze fest.3 -
So I am managing some legacy code and I found quite the gem last week.
The code went something like this :
IF(methodA()&&methodB())
However, methodB returned ! methodA...2 -
Another gem from the cunt I used to call my senior.
.nav-tabs > li > a, .nav-tabs > li > a, .nav-tabs > li > a { font-size: 7pt !important; line-height: 30px !important; font-weight: normal !important; }
.nav-tabs > li > a, .nav-tabs > li > a, .nav-tabs > li > a { font-size: 6pt !important; }
.nav-tabs > li > a, .nav-tabs > li > a, .nav-tabs > li > a { font-size: 7pt !important; }
These are all on the same level (not in media queries) and only a couple of other lines of css between them.
I swear this jackass just wanted to watch the world burn.5 -
So I'm pretty accustomed to German "professional" websites. As a tourist, I was just looking up tourist stuff online and I stumbled across this gem
http://eisenbahn-spielzeug-museum.de/...
I was like, yeah, okay, maybe this is just a really unfortunate mistake, although I was clearly having in mind the "easy" navigation DB offers both on their app and their website
So continuing my tourist search, I found several sightseeing objectives on decent websites, took the info from there, planned my trip and when I reached the place I was told completely different info that didn't exist on their website, which mostly messed up my visit to those touristic sites
Maybe I should just go search for answers on some forums and print out people's advice9 -
Just had a recruiter contact me, and found this gem in their text:
"We work with MS stack and SQL Server, but we really think JavaScript is the way of the future"
Motherfucker, JavaScript can hardly tell basic types apart, how the fuck you gon' run a relational database with it!? And if you're not, then why the fuck are you running a relational database in the first place!?
Fuck outta here!2 -
what a gem i found on the side of screen while viewing stack overflow :https://meta.stackoverflow.com/ques...
Long story short, a teacher gave a sassy reply to his student's question , the answer got viral on reddit and SO admins are going bonkers 😂😂4 -
Found this gem when trying to figure out what transclusion is in Angular. Didn't we all learn in like, 3rd grade not to use a form of the same word in a word's definition?
"ngTransclude
- directive in module ng
Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion."1 -
shiiiet i was looking for some ascii art to include in my html found this gem
http://www.asciiartfarts.com/
There's some really weird shit there ...1 -
"Did I seriously just use brew to install NPM so that I could install bower so that I could use a Ruby gem?"3
-
Developer problems:
6 different package managers to keep up to date.
Gem
Pip
Npm
Emacs
Homebrew
Aptitude
Good thing bash scripts and cron jobs exist5 -
Just stumbled on this little gem.
Apple's logic: 1+2+3 = 23
At this point I think Apple has just given up on quality. They are all about aesthetics nowadays.
#onlyApplewillmessupacalculator11 -
Unpopular opinion: Firefox is a better web debugger/ development tool than Google Chrome... so many functionalities packed in that sweet gem.11
-
Found this gem in my news feed yesterday and can't get it off my mind: catch exception, sleep, goto try-block and, well, try again:
$attempts = 0;
start:
try {
$attempts++;
// (...)
} catch (Exception $e) {
if ($attempts <= 10) {
usleep(100000);
goto start;
)
}
Did we go full-circle? Is "goto" the next big thing? Is this a late april fools joke? What am I missing here? This can't be real.
Source: https://blog.frankdejonge.nl/back-t...4 -
bug comment in the tracker, from the new junior dev, during her first week:
"probably fixed by [other dev]".
Among the unhelpful comments, this was a special gem. really special. a What the Fuck did you mean by that special. Was it fixed or not? who fixed it? [other dev]? someone else?
it was better not to have any comment at all.
later that junior became a really good dev... -
Refactoring/cleaning old code.. Found this gem:
$hour = substr($obj->hour, 0, - 3);
Turns out, hour was saved in the database as a TIME field(DATE was saved in another column) , and the previous genius dev was trying to output time in a H:i format...
No wonder php has such a bad reputation...2 -
More WTFery from official corporate training.
This gem of a quiz comes right after the slide saying not to click on or open emails you suspect are spam. To reinforce the idea, click on the spam!
It's the kind of test that makes me go, "is this a trick question?" -
I only just started learning Js. And it's going smoothly. In two weeks, I should have gone past the Beginner's level. Then what next?7
-
I saw a lot of rants about StackOverflow and its community.
I really couldn't understand, I always found friendly comments and answers, so it was hard for me to imagine why the community was tagged as "sadist assholes".
Then I found this gem and all was suddenly clear.1 -
/** Null until this web socket is connected. Used for writes, pings, and close timeouts. */
private ScheduledExecutorService executor;
Dear boys and girls.
If you ever do this again and release this as a public library (even better - an official client of your solution, e.g. kuber-fucking-netes), I will get my way into dR's gateway servers, trace down your IP in nginx's logs, find your location, probably use some means to get your first and last name (you prolly have a domain registered under your IP anyways...), buy a ticket to your town, get to your home and wait for night to fall. Once it's dark and you're asleep, I'll make sure to leave a real nice, warm and extraordinarily smelly turd on your doorstep (I'll also make sure the process of manufacturing that gem is as noisy as it gets - you just have to bend the right way, and....).
Gents. If you really, REALLY want to make writes asynchronous, at least provide a way to either get a notification once the write is synchronized, or allow the user to handle the threads/executors himself!
https://youtube.com/watch/...5 -
Cleaning up a CSS file that was becoming out of hand... Found this gem:
.main-content .panel-body .alert {
margin: -19px -16px 20px -16px;
margin: -19px -16px 00px -16px;
}4 -
I've been having a tough time at work recently. I've been struggling with what I have become and what I want to do.
My voice used to carry quite a bit of weight, but as of late I'm no longer being kept in the loop of changes that are happening to my product.
Realizing that I'm slowing being phased out was like a punch to the scrotum. It has made me depressingly aware of the time I have wasted on this company.
All while I was wallowing in my own self-pity, as if on command, Youtube spit this gem out to me. It made me realize that I'm still that bright eyed eager developer just a bit older and a bit wiser. It reminded me of something that I thought I lost, but what I've always had.
https://youtu.be/cNbnef_eXBM
What we do is an art, it takes years of dedication and study to hone our skills. Don't let the bastards get you down, and just like Bowie said -- Never play to the gallery.
You got this. -
Tired of the same old boring progress bars in my applications, so I made this little gem to keep users busy during slow operations. Bonus: no more complaints about things taking too long. (personal high score is 119)4
-
This rant can basically be boiled down to the name of the software in use/question:
FileMaker Pro 8.5
Please chime in if you have ever had the privelege of working with this gem of a database program, especially the scripting capabilities...
Trying to make it print/save/export an individual PDF file into a folder specified/created by one field with the filename set from another field. Will probably get it to work but the drag and drop scripting style reminds me of setting up an autoclicker for runescape; so fricken painful. Love to hear your comments.
Also happens to be running on an ancient PPC G5 iMac with 1 Gig of RAM running 10.4.11 hidden in the back room of an old warehouse with extra creepy flickering lights...
EFFF EMMM ELLL
So yeah thats my rainy Friday rant, hope you all are having this much fun.5 -
Learning React Native tonight, and I find this gem in their tutorial... "In accordance with the ancient traditions of our people, we must first build an app that does nothing except say "Hello world"."
-
Last week me and my friend have been changed from a legacy PHP project to new Ruby on Rails-based setup. What, in first instance, looked like a great improvement, now becomes a nightmare.
All this convention-over-configuration is awesome - but only if you already know the conventions, or if somebody told'em to you.
And everything is going even more out of control because the damn project is based upon Spree gem and several other extensions, that MUST be changed to meet out company needs.
I'm getting really mad with all this pressure. Ruby seems to be a great language, but I'd rather be working with Laravel. Its overall organization, the centralization of CLI commands in artisan, and the astoundingly clear, eloquent, direct and well-designed documentation made my adoption curve there a little more pleasant.
I mean, legacy PHP systems are awful, but Laravel framework sounds way more easy-to-learn and well-constructed when compared to rails.
But given all this nightmare, I really want to be proved the opposite.1 -
I wish python had a better package and environment manager. Everybody has their own way around this, but nothing without bugs or 10 steps to install a package in the env. it just sucks...4
-
Let's all take a moment and appreciate this LKML gem that happened before 4.20
https://lkml.org/lkml/2018/...1 -
How is it that 4 years after the start of this project we still have to tell people that their dedicated cloud storage is for their projects and not their 8TB server backups or 600000+ vacation pictures…
We literally have processes sending you mails that keep telling you should sort your crap and you still manage not to listen. And then we get support tickets like “cloud storage abnormally slow” “bug in performances” etc… The last gem being a small company CEO that contacted our CEO about this “problem”, he had syncd his entire workstation and told his employees to do the same…
I’m not sure how to convey the stack of feelings I have regarding all of this. I want not to care but I can’t. I want to get angry but what’s the point.2 -
Thought I'd share this gem with you. Overwriting a value by itself. Why would you even do this? It's not a single occurrence, but happens 3 times even in the same class.3
-
I just woke up and on my computer screen there’s big announcement.
Github launching code package registry beta program.
Available repositories: npm, gem, mvn, docker, nuget.1 -
Just feel like going to a raised platform over my town and scream, "AHHHHHHHhhhhhhhhhhhhhhhhhh....!!!"
-
So back to the stories of the gentleman with his master's degree who's job I wasn't qualified for. Hope you all enjoy this gem I found in his stored procedure.
Select distinct *
From(
Select * from a inner join b on a.id=b.id
Union
Select * from a full join b on a.id=b.id
Where b.id is null
)
An inner join unioned to a full join where you exclude null values in right table creates a.....left join you fucking idiot!5 -
$ rails new [old side project but this time I will finish it (sikes)]
$ cd [project]
[ Inserting "gem 'webpacker' ~> '3.0.0'" in Gemfile ]
$ bundle install
$ rails webpacker:install
$ rails webpacker:install:react
node_modules weights 97.4 mo 🙄3 -
So to keep me going through the day I sometimes entertain myself by adding funny comments to my pull requests. I sit there giggling to myself like some sort of lunatic and the rest of the office probably think I'm a nutcase.
Todays gem was:
Added timeout to prevent hanging. Bet they wish they'd had this feature in the 16th century
Honestly I think my talents are wasted here...1 -
Another tale of the legacy app, so I'm redoing the user roles using the cancancan gem.
Hop into a meeting to go over why I'm re-doing the authorisation, currently, the app is using the rails-authorization-plugin, yes from Rails 2.0.
me: *explains why this is the way to do it*
other dev: "Can we just fix the custom code we have added in that plugin?"
me: "Well given that it's a massively out of date plugin and we have a ton of deprecations, probably not"
other dev: "so let's try and fix it"
Christ, why are we still clinging onto 10+-year-old plugins if were going to keep getting errors when we upgrade?27 -
Just found this javascript one-liner gem:
array.sort((a, b) => ([...new Set([...this.strip(a.name), ...a.tags])].filter(x => inKeywords.includes(x))).length == ([...new Set([...this.strip(b.name), ...b.tags])].filter(x => inKeywords.includes(x))).length ? 0 : (([...new Set([...this.strip(a.name), ...a.tags])].filter(x => inKeywords.includes(x))).length < ([...new Set([...this.strip(b.name), ...b.tags])].filter(x => inKeywords.includes(x))).length ? 1 : -1))
If that doesn't make you angry you might be in a coma11 -
Still remember my first year of university, listening to the full professor (i. e. she has a frickin PhD). She couldn't explain the difference between ++i and i++. When I tried to tell her what they meant, she dropped this gem: "oh, I just wrap them in parentheses to be safe so it makes no difference which one I use."
Luckily, future profs were much better.1 -
Found this gem a while ago that made my day
if ( $this->isExternal() ) {
// This probably shouldn't even happen. ohh man, oh yuck.
// But for interwiki transclusion it sometimes does.
// Shit. Shit shit shit.
//
// Use the canonical namespaces if possible to try to
// resolve a foreign namespace.
if ( MWNamespace::exists( $this->mNamespace ) ) {
return MWNamespace::getCanonicalName( $this->mNamespace );
}
In a not too old version for mediawiki, the codebase for Wikipedia.
https://phabricator.wikimedia.org/s... -
One of my very first PR's didn't even get a comment and I worked hard on it...
Feels bad man, all I need is some kind of yes, thanks for this, or no, this doesn't fit the project goals.
After patiently waiting, went ahead and created my own gem! No response sucks.
Why does this happen?1 -
Just came accross this gem, now I know what these guys look like.
Short Video: https://twitter.com/devrantapp/...
Original Rant: https://www.devrant.io/rants/289520 -
Today I played with GitHub Actions. Since I couldn't test anything without making a commit and pushing it to GitHub to trigger the workflow, my commit history now chronicles my slow descent into madness. Thank God it's a private repo. I'm gonna squash it if I ever make it public.
This gem is from hour two of my four-hour struggle:6 -
!rant
Emacs vs Vim? Why not both!
I found a gem of an editor called Spacemacs which combines the power of Emacs and the editing capabilities of Vim! Already replaced intelliJ with spacemacs for my scala and Java projects :)21 -
!rant
If repost sorry for that. Today Im checking /r/AskReddit .
I found this gem - https://reddit.com/r/AskReddit/...
"Today you.... tomorrow me."2 -
I cannot for the life of me get the debugger working in RubyMine because debase gem wont install. WHY AM I WASTING TIME DEBUGGING THE DEBUGGER INSTALLATION?1
-
Here is a gem I found when looking at the previous offshore team's database.
So apparently they didn't know that SQL has an ALTER TABLE command to add new columns. So they created a brand new table, version 2, THEN migrated all the data over, every single time a new field was needed.
Then of course they had to update all their code that previously looked at the original table and the clients had to resync data onto the tablets as well.
Maybe they thought it was a good solution since they don't know what database versioning is (something they also manually implemented) or that ORMs exist.
**Sanitized the table names but kept the general structure, casing, etc
CREATE TABLE [dbo].[TVP_NameHere] AS TABLE(
[NameTime] [datetime] NULL,
[NameId] [int] NULL,
[somethingId] [int] NULL,
[fooId] [int] NULL,
[Time] [int] NULL
)
CREATE TABLE [dbo].[TVP_NameHereV002] AS TABLE(
[NewColumnHere] [int] NULL,
[NameTime] [datetime] NULL,
[NameId] [int] NULL,
[somethingId] [int] NULL,
[fooId] [int] NULL,
[Time] [int] NULL
)3 -
I just witnessed Microsoft trolling preview setup.
Let me set the scene for you. I was in Visual Studio and saw the notifications and I had a minute so I decided to check them and saw there were updates, this one being one of them. I went to update and first it asked me to close all instances of VS. Fair enough, I close VS and continue. Instead of taking a minute at most to install it took ~10 minutes which is insane, but fine, I stopped my work for it... And then I'm greeted by this gem. Restart your computer for freaking .NET core and trolling.. I'm sorry, tooling... Preview... What the actual fuck Microsoft?2 -
"I use arch btw"
Now I can say it too.
(On the mac, using the terminal)
arch -arch x86_64 gem install5 -
As there was a lot of talk on the last times about JDK / Java and the release of JDK 17… found this gem via Planet KDE.
JDK 8 - JDK 17 Summary with Examples
https://advancedweb.hu/a-categorize...
Thanks to the author!
Thanks to Kevin Ottens for having weekly something interesting to read, too:
https://ervin.ipsquad.net/blog/...4 -
Lately, I've been working in a web security company (mainly as a Support guy).
Going through tickets, I've found one golden gem, which helped me realising how dum customers are.
Since he's our customer, we try to keep stuff up-and-running at all times. If something goes bad, we fix it, and we need their passwords for stuff.
After the customer (somehow) got hacked again, he changed the password in panic.
Note the initial password was really, really good.
He emailed us the new password for "just in case".
The password is "hard-to-guess".
What. The. Actuall. Fuck.
What's next?
Setting the password "12345", activating 2-step-authentication and sending his phone in, along with his finger so we can unlock it with touch id?2 -
What are you currently working on? You can be as vague as possible and let others try to figure it out.
I’m currently working on something to make pelican based blogs look a bit decent.7 -
Dependencies suck.
I wanted a ruby gem and needed an older version of ruby to run it. Fine, what's the best way to get multiple ruby versions on one system, apparently rvm.
Now I want rvm.
I can't have rvm without getting gnupg first though.
Before I can get gnupg I need brew.
Now I have brew setting my computer on fire compiling god knows what so it can get gnupg so I can get rvm so I can get the ruby version I want to get the gem I want!
It's been running for quite a while...
This isn't the first or last time that the convenience of packages and versions leads to a maze like trail of prerequisites you need to follow.
I'm sure there's some tool that would've helped with my problem, but the problem shouldn't be this bad to begin with!
I understand why it happens but it still sucks and it's a lot of wasted time.
Frankly I'm expecting some people will have gotten so used to this kind of insanity that they won't get why I'm renting about it, oh well, it made me feel better and gave me something to do while brew is melting my machine.3 -
Hey all ruby devs! I've recently made a redux gem implemented in native ruby, that allows you to completely decouple state from your code. If any of you like the redux design structure and want to use it in your backend, check out https://github.com/alexdovzhanyn/...
-
Client's WordPress powered site has gone down due to influx of traffic. Site is cached and whatnot, the server it's on is simply underpowered and not coping. Whilst I'm frantically trying to spin up new servers and load balance and get things back online, client keeps interrupting with emails like "URGENT - Website is down", "How long is this going to take please?", and "Hello! Do you know whats going on?!". I reply cordially to each, secretly growing increasingly enraged. "Yes I am already aware and working on it.", "Difficult to estimate, but I'm hoping no more than 20 minutes.", "Yes. I'm working on it.", "Yes, I know. I'm working on it."
And then I receive this gem: "Perhaps call Word press?"
AARRGGHHH
This scene from Clerks springs to mind: https://youtube.com/watch/...2 -
How long does it take to start writing codes without having to do “too much” looking up of some context?
I’m quite at the intermediate level and I fear I do a lot of cramming(and pouring) than actual coding.
I want to code all on my own, or at least tons of lines before having to check something up.
How do you guys do it? How do I become ‘pro’?6 -
- Discover new metal song or metal VGM like finding a hidden gem.
- Playing fast paced, hack/slash JRPG game even though I don't really good at it
Not sure if those are geeky 🙄2 -
Found this gem while I going through Salesforce Workbench's disclaimer.
PS: I don't know why I was going through the disclaimer.2 -
Just wanted to share this gem with the community here. Best 30 mins ever spent 😆
Kung Fury
https://youtu.be/bS5P_LAqiVg
. -
Make good progress on Orchid, my pet project, the functional programming language that has no syntax apart from what the macros define. A type system, an interpreter and provisions for a compiler would be nice for a start.
Finish my bachelor's degree on some unspecified part of Orchid, at the current pace that would most likely be just the Hindley-Milner algorithm.
Don't get fired from the gem of a job I have, and move to London because I'm a city rat and the only way I can sleep well apparently is with a tram or drunken people screaming under my window.2 -
Found another gem in the code-base I've been given to troubleshoot.
Let's call recv(), get the TLS encrypted message, and then call BIO_write() and SSL_read() instead of offloading it to OpenSSL.5 -
'we don't develop with quality just for the sake of it, just push it to finish the sprint'
Another gem from my scrum master -
Fucking Ruby.
Installed my new job's codebase on my machine and it's fucked everything.
While trying to get the database working, someone's dropped my User table, so I can't log in as 'Josh' anymore.
Now I can't compile scss assets without a fucking gem error.
I'M IN A PYTHON ENVIRONMENT, FUCK OFF!
GRR.1 -
Was assigned a ticket to figure out why some links disappeared when you navigated back and forth through the web application... After a few hours of digging and a bunch of var_dumps later, I find a gem buried in the newer part of the codebase that basically equated to:
$active = "get active flag from DB later";
I confronted the blamed developer and was told: "That statement is truthy, it works."
Another hour or two of passing session data through the obtuse class structure of this monolithic PHP app and the wonky behavior was fixed. -
Stack overflow people are all so fucking annoying, but every now and again you get a rare gem that ACTUALLY helps you, and doesn't just close your question for no reason or downvote without an answer. Like, I'm sorry I didn't spend my entire like learning computer science, I just have some questions!2
-
Worst dev tech, it has to be MS Word. Apparently they follow the OOXML guidelines to create a Word doc but they have to put in their own shit-flavored ingredients to increase a developer's misery. Parsing that document is pure agony.
I was looking for a way to find the default font size of the document and found this gem https://social.msdn.microsoft.com/F... -
After nearly four days of fighting with Ruby, Gem, Bundle and a dash of JRuby just to make a plugin for logstash install, I can officially say I feel like Ken Mattingly.
It is all about the sequence, and a metric ton of RAM and CPU cycles and patience.1 -
So when I started at my current company, I was the second developer in the company. My job is to handle the embedded development side of our product. The existing code base? Made in fucking China. All of the comments were in Chinese too. They had implemented Huffman compression incorrectly and AES CBC encryption incorrectly as well. It was seriously some of the worst code I've ever seen. I remember one gem I found:
Int header = *(*int) "MGIK";
😫1 -
Cleaning up some old. NET code and found this gem. At least it might be readable once it is rendered to the browser.1
-
I'm currently making an internship at a medical software company and today i found this gem in a js file:
/*
the server does not check if the element was deleted or not; it will return success, no matter what; **it's not a bug, it's a feature**
*/ -
I'm a self taught web developer, I know I can develop great apps, but my code doesn't feel structured... It gets messier as I add more features, and this makes it harder to develop and keep track of everything.
How can I improve this, are there any processes to follow?5 -
Except COVID-19, Airport security is also scanning preflight requests and incoming traffic for CORS with its dated test kit (found this unused gem in an old PHP codebase):
-
Didn’t think I would run into issue because I was using Apple Silicon macs - something borked my ruby gems installation, and reinstalling made matter worse by Bundler installing gems that apparently linked to whatever arch they liked. Now if I run bundle exec there was that one f*<king gem that died of mismatching arch until I intervened.
-
Being a developer allows you to enjoy using most of the creative skills artists also put to use (writing structured prose, design, semantics, ergonomics, ethics), while adding logic, job safety, and a decent paycheck to the mix.
Also: puts you in a good position to readily take advantage of new digital goodies (eg bitcoin), and to understand the gem that is developer humor -
New crm system is a gem. Teaching people to use it is just so easy. Fixing and finding all the problems though... glad for the automations being done by colleuge 👍
-
I am accessing the development server via remote desktop, currently maintaining a win forms app on visual studio. there is that one form which when a break point is hit the whole screen freeze and doesn't respond until you minimize the remote desktop and maximize back. just in this form, not the others. it's reproducable.
it's a gem if you ask me, I show it to everyone I know. -
Did a "harmless" upgrade of our build Mac's os yesterday morning so we could follow up with an XCode upgrade. At 4pm I was still trying to get all the builds working.
The upgrade had borked Mono, the gem installer and lits of other stuff without saying anything. And XCode had invented a new build warning which it felt was a breaking change for no damn reason T_T -
https://youtu.be/f5d8pVg3Qtg Found this gem on YouTube for all you rubber duck fanatics out there :)
-
Working with Python, one annoyance is, it does not have a solid dependency management. Sticking to hand writing requirements.txt and manually maintaining and upgrading dependencies and also manually updating requirements.txt is a horrible pain in the ass.
Wish there was a better way to do this similar to npm and gem.3 -
The name of this game is: Identify the Context.
Found this gem of a quote:
"There is enough space between shaft and belt to sneak."
Now, identify the context!11 -
New guy taking over senior software developer since the last one seemed to burn out / got tired of all the bullshit. His coming replacement has a habit of making 'software walkthroughs' for every repository we have. The project organization is so badly managed and we only ever work on requirements when we have something concrete. After Outlook-declining one of the walkthroughs I get this little gem from him in an IM:
Guy: <Old Snr Dev> felt that you built the base for it and it would be good if you are there as you might take it forward is what <Manager> told me
Me: yeh but it is like so straightforward
and basically there are other projects on github which do the exact same thing
Guy: okay, just that I have not seen the code yet. Or anyone else to take it forward
Me: i think - go through it when you need to
if there are problems, then ask
WTF? You didn't even check it yourself and you want me to handhold you as a senior software developer? Totally nuts.2 -
While I was looking through a [physical] newspaper for an AP Micro project, I stumbled across this gem
-
It is currently 5:30 AM, I've been trying to upgrade a server by one single major OS release for the last 3.5 hours. All major apps were no issue, except one.
Redmine.
That thing runs on Ruby.
Ruby, as it turns out, doesn't really like the way Debian handles package management.
And now, I have Redmine that, even if I completely uninstall / reinstall, won't start
I went down several rabbit holes, trying to operatively find what the issue is. But I never got to the key issue.
Fuck ruby. Fuck Redmine. Fuck nothing-saying error messages. Fuck bundle. Fuck gem. Fuck it all.
I'm redirecting the Redmine domain onto the server backup I've made. Upgrading that thing is a nightmare.
Maybe now I can finally go to bed...5 -
6 hours of manually testing a new library will save you 5 min of reading the documentation for sure!1
-
I want to develop a Web App for fun, but can't quite get my mind set on something interesting.
Any app suggestions I could try to make?
--This just for training purposes.2 -
okay let's put a platform tag at the end of a gem in the gemfile, because it only works when you don't use the mingw platform on windows:
gem 'eventmachine', platform: :ruby
so far so good. Now lets remove the gemfile.lock and let bundle rebuild the dependency tree again (to make sure nothing gets left there):
bundle install
Resolving Dependencies.....
...
Fetching eventmachine 1.2.7 (x64-mingw32)
...
Why bundle, why?? :(
Now to fix that, i have to:
gem uninstall eventmachine
and:
gem install eventmachine --platform=ruby
every fucking time.4 -
WinUI looks nice and performs really well, I'm not a Windows fan but that's definitely a hidden Microsoft gem. It's a same which Microsoft was really late to the desktop development game and kept providing ugly frameworks until few years ago otherwise we could had a nice ecosystem on desktop apps on Windows as we have on macOS instead of tons of ugly and slow Electron based apps.3
-
Hi dev!, how do you deal with the dilemma of choosing between using a library (gem, package, plugins...) to implement a solution or building from scratch...
Use case: you are working on project x, you need to implement a feature, but stuck between importing a library ( however you will need to customize the library to fit in requirement) and building feature from scratch ( this may take you more time but you have more control).
I have been in both scenarios, whereby I use a library but spent 2 days on customizing, only for me to discard it and implement feature within 2 hours.
I had been in a situation where I build the feature from scratch, only to discover, a one-liner from a library could have saved me hours and whole stress.
I NEED YOUR EXPERIENCE.
THANKS IN ADVANCE4 -
I was scrolling through my past rants and found this gem
https://devrant.com/rants/2305697/...
I posted it when images were not loading due to expired ssl. Looks like everyone who saw this got tricked!! -
Has anyone forked (not fucked) a github project/gem just because the owner no longer gives a fuck to make those PR's?2
-
Gonna excavate a gem, polish into a Shiny RubyGem! Even if it becomes a shoddy idea later, I'm sure gonna enjoy the bundler. With those adventurous minitests, rake made my life soothing itself!
https://github.com/mash-97/shpg