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
Search - "priceless"
When I finished my studies, I was looking for a job and had an interview at a smallish company.
Boss: can you do C?
Me: yes, I have already done some stuff in C.
Boss: I mean, are you really good in C?
Me, growing suspicious: well yes I already have been using it - but anyway, there's also the project documentation for looking up, right?
Boss: uhm, the code IS the documentation.
I envisioned myself being drowned in undocumented spaghetti code and wasn't really keen on that job anymore, but my following question pretty much ended the interview:
Me: oh, I see. Do you have any roadmap for getting your development to a more professional base?
His looks, priceless! He was just shocked when he realised that he had failed my interview, and that I was a fresher made it even harder to digest for him.30
There's this guy that sits next to me in a class.
Guy: Hey, you're a hacker right?
Me: I'm a programmer.
Guy: Can you hack into my email account?
Me: Nope, I work in a different field of computer science.
In reality, I want to give him a piece of my mind.
I already know his email so I open up the login page and enter it. I click "forgot password", and it asks for his favorite teacher's name. Keep in mind that he made this account this year.
Me: So anyways, who's your favorite teacher?
Guy: *proceeds to give me favorite teacher's name*
I change his password and log into his account. After that, I show him and tell him about how he should keep his account secure.
He left class with a priceless look on his face.14
The moment when a client dumps you for a "cheaper solution" and after a year his site get hacked and calls you to rescue him. Priceless.6
During the second year of my graduation we had a subject called C & Data Structures. This asshole of a teacher (who taught programming by just reading the programs out of the textbook ) came to somehow know that I had learnt C & was good at it (some student had gossiped about me in front of him). Everyday when he came in for the lecture he used to call my name & say - "You think you are very smart please come in front & teach C to everyone" for no apparent reason. (I had never showed him that I was good in programming). For almost complete semester I kept silence & he used to laugh & keep me standing for the complete lecture. But one day I was particularly not in a very good mood & he came & said the same thing. I went & taught for the whole lecture & the whole class applauded at the end. The look on his face was priceless 🤣7
The look on a client's face when they realised that I program[med] sex toys for a living was pretty priceless.
Their attitude change, however, cost them a contract. Programming sex toys is no different from programming anything else.
Why do you have to bring in your religious views or my previous contracts into the conversation? All I'm doing is a network audit for your company. I'm not gonna hide a dildo in your closet, or something. I'm supposed to only be around for a few days, too.
Guess I had too many cooties, with how harsh they burnt that contract and bridge.
Just solved a bug I was trying to solve for hours.
Oh, the pleasure of closing 12 tabs at once without wanting to recover them for the next session.
Gonna have a good night's sleep.3
I worked at a place where the help desk guys did the good ol' "I'll send an email from your laptop if you walk away without locking it and tell everyone lunch is on you" routine. After it happened to me about 3 times I was like, "I gotta get this help desk prick back!" So after several failed attempts at walking by his pc when he walked away it instantly hit me how I can punk him back.....SO, I logged onto SQL Server, clicked open a new query window and typed up a dbmail command and on the @from parameter I set it to the help desk guy's email address. His face was PRICELESS when I was shooting off emails to the entire IT dept on behalf of him WHILE he was sitting in front of his PC. Lesson is: don't fuck with dev help desk dude! 😎😜2
There is a group of ladies who work in the accounting department at my job who have made it their mission to decorate the cubicle of whoever has a birthday on a given day. They come in at 6 am on someones birthday and decorate, leaving a mess of balloons and streamers, which is a nice surprise the first time it happens (they do it every year). Well, we in the IT office decided it would be fun to booby trap one of our cubicles so that when our birthday rolled in, they would receive a surprise of their own. So we set up a webcam as a motion detector, and had the computer speakers turned up as loud as possible, so that when motion was detected, the honorable Admiral Akbar would yell "It's A Trap!". We succeeded in scaring the pants off of them, and also annoying them because the sound did not stop until the program was exited, so they had to listen to it the entire time they did their setup. It was priceless xD4
We had the most fucking retarded client today. No, seriously, if you ever beat their level you have a serious mental issue.
They had a mail problem for which they'd need to check at the side of another company since we don't have those fucking logs.
- they entered an email address In the text field of mail-tester.com and were furious that they didn't get the results sent.
Note: it says right on that page that YOU JUST NEED TO SEND THE EMAIL ADDRESS WHICH IS PRE-ENTRRED IN THAT TEXT FIELD AN EMAIL.
- their company has been a reputable 'conservative' company which hasn't done anything wrong since 19xx so the fact that they'd end up on a blacklist was FUCKING OUTRAGEOUS and bullshit.
- our support wasn't willing to help and only willing to tell them outrageous lies.
- the other it company was only reachable at a premium number and thus expensive to call.
Emails back and forth and finally they CC'd the other company. They're reply was fucking priceless:
"we never had a premium number. Feel free to call us on *number* any time during the week between *time* and *time*.
Then he told us that we should just go back to sleep.
It was way worse than that but due to privacy and my own memory this is all I can tell.
::Update about Hugh Jackman's meet & greet::
As some of you read this week, I'm a CEO on a Comic Book portal and I've made an app for the Logan movie campaign. Inside of the package, today we would have an opportunity to interview him.
It happened. We watched the movie (which is fucking awesome), I went into the press conference but Fox messed up big time in the end. At the time of the personal interview with him, after 3 hours of waiting, just one person of the company could go talk with him.
I'm a huge fan of Hugh and he was supposed to be my very first contact with someone this famous.
But I was with one of my best employees. I couldn't live with myself giving such a huge disappointment for him if I went there on his place. So I sent him instead and waited outside.
I won't tell you guys that I'm not sad. I am. It is a one time experience for life. But seeing the bright on his eyes leaving his first interview, so glad for me letting him go and so happy for doing something this big, is priceless.
Simon Sinek was right: Leaders eat last.
There will be plenty of other opportunities in the future. Now, I have a contributor that will work with blood, sweat and tears together with us to build something even stronger and open up new possibilities 😉
Thanks for all the hype on the other post guys! 😆8
@dfox I just want to say thank you !
Most of my friends are not devs at all. Thanks to you, I can share my adventures to people that actually understand what I'm talking about.
This is priceless.10
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.
*after 4 hours of trying to debug a crash on the samsung s8 specifically, without a single error or log showing*
Me: reckon jumping out the window from this height will be a good alternative to continueing with this?
Colleague: sure, atleast it will probably be painless at the least.
New intern: *stares at us with wide open eyes*
Me: yeah take a good look son, this is the future you've signed up for.
The look on his face? Priceless1
It's how my co-workers and I quit,
When the incompetent COO joined the previous company I worked for (my previous rants contain stories about him)
Five of us from a seven people team found better jobs (salaries and company wise)
Walked up to the CEO and handed the resignations one after another, stating our reasons for leaving
COO's face was like a coin that got run over by a train2
Client: "Something is missing, like a type of BOOM or some fancy stuff, but I can't pinpoint what exactly. Do you know what I mean?"
Me: "Sure, give me one sec."
Changes font of a single word on a Web page to italic.
My face: Priceless and trying not to laugh out loud.3
Oh, that feeling when you learn the entry level dev, with no useful knowledge, gets paid more than you...
I think this is so far one of the most priceless WTF moments I encountered at my current work:
A coworker of mine came up to me explaining the problem he had with russian characters in the filename. He explained in detail that everything works ok (the other part of the code he was fixing) if he changes the name of the file to test1.xlsx for example which doesn't use russian characters. OK great.
Then he goes on to show me how he fixed the other stuff and of course everything blows up. The file he used for demonstration was of course the original file our cusotomer provided, he just deleted the obvious russian chars and left the rest.
МТС != MTC
I cracked up: but you still have russian chars in the name.
The guy: no way, I deleted them all.
Me: but what about that МТС in the name?! Guy: what about it?
Me: did you actually typed that in or you left it there?! Those are russian chars that are fucking things up for you.
Guy: no way, it's MTC.
Me: checked the logs, you have ??? In the filename instead of МТС..don't you find that at least a little bit suspicious?!
Guy: but it looks the same. How does it (the computer) know it is in russian?!? //Why doesn't it understand?!
O.o I still can't believe it.. Is it just me & my high standards, or should it be normal for coders to know things such as character encoding & stuff?!?
I almost died of laughter, he and some other guy had problems finding customers in the software due to not being able to type the russian chars << happened more then once before, even after I told them about a quick hack on how to use google translate onboard keyboard & other stuff to make proper chars so they can get a match..
I think when they bury me, I'll still be facepalming and laughing over this incident. 🤣🤣🤣🤣🤣🤣🤣7
Even after our last cd="exit" alias prank, my co-worker forgot to lock his computer today.
I told him he had forgot to lock it.
His facial expression was priceless.
You could literally see the paranoia rising in his eyes.
Let's see if he finds anything funny with his computer....6
Catch a sysadmin's laptop unguarded. Put fakeupdate.net on windows 10. I never saw so much pain on a man's face. Priceless!1
Just told a colleague that I don't own a PC, laptop or tablet for home use. Look on his face was priceless, like he couldn't fathom how I live with nothing more than a low end Android phone. I would have taken a picture but the camera app takes like two minutes to load and shoot.9
What a shame with asus. You open a new bought laptop and you see some bunch of CDs but your laptop doesn't have the CD reader. Priceless... :)3
The feeling, when you realize that devRant uses PHP as main language... priceless..
haters gonna hate :D
Has anyone looked at the linux kernel 1.0?
I am amazed with this! And the comments are priceless
/* I hope this returns what I want. */
* 14.02.92: changed it to sync dirty buffers a bit: better performance
* when the filesystem starts to get full of dirty blocks (I hope).
I already ranted about the elevator at home being stoooopid for opening doors on way up when you wanna go down..
But our work elevator is awesome!
I figured today that I can play with the authorisation light with the chip for the home elevator.. so from orange to green (work card) to red (home chip) to green to red... OMG!!! Awesome!!
Also the look of horror on coworker's face was priceless (work elevators have a tendency to malfunction as it is, without me playing with them)!!! xD xD xD16
A professor once told me he loved being a CS professor because "you can't smoke and then code well." I laughed my butt off because a solid majority of his class smoked right before class every day.
The look on his face when I told him the truth about his students was priceless. I feel bad about shattering his world view. Kind of.3
Friend wanted to get into my lappy. I was so damn happy that i hid GRUB by default unless shift and added password to it yeasterday because otherwise he would get into my system. Damn the face when he realized that i secured my GRUB was priceless.12
This is just priceless. I submitted my thesis to an academic congress, which sent me this confirmation email. They are so 'concerned about security' that they assured me the email is legitimate by including MY PASSWORD.3
Mechanical Engineer friend took Machine Learning as an elective subject in college thinking that it had something to do with the Physical machines.
His reaction during the class was priceless.3
So, my boss is pretty cool. Two of my colleagues made a review of my code (me being new, also on job training). We three were sitting in front of my code, me explaining enthusiastically my code, one of my colleagues looked a bit confused. My boss listening to the whole conversation, he said: "Her code works perfectly". But the way he said it, priceless! I swear, he had a very 'bitchy' voice and also waved while saying that. He looked proud, and we started to laugh.4
So this JUST happened.
I do what I've been doing since its release, that is go through devRant in my spare time.
My girlfriend is right here working on her project and notices me looking intently into my phone, unaware of what I'm up to and literally snatches my phone asking me which girl i was messaging and checks it to see devRant open! The look on her face after that was priceless :D
EVEN NOW as I type this Rant she looked at me and asked "Who is that you're messaging? Your 'girlfriend'?" xD
God bless devRant xD2
1. high severity production incident was asked to look into at the end of the day.
2. needed fix in ui.
3. fixed and deployed in 1 hour.
4. issue remained. debugging began.
5. gave up at 1 AM and went to sleep.
6. woke up at 6 and after debugging for 2 hours, identified to be a back end issue.
7. worked with back end team for the fix, and 6 hours and 3 deployments later, it worked.
8. third party vendor reported they are still not receiving one parameter from us.
9. back end team realised they forgot to ask ui to send another parameter.
10. added the parameter in ui, redeployed ui.
11. build and deployment tool broke down. got it fixed. delay of 1.5 hours.
12. finally things are in place. total time 26 hours.
13. found half bottle of vodka, leftover from last weekend. *Priceless*1
So to start off, I am a hipster. Guilty as charged. A few months ago.
Me and my work's programming team decided to enter a hackathon. Note, I had never stayed awake for 48 hours straight programming before.
It was late and I was waiting on programmer 1 to finish writing a class so I can finish a part of the network code. We were all working on the same git repository, same branch for some reason at the time.
So I started just writing in random comments in the code while waiting. I finally got to complete the network and committed my work.
They both made a pull about the same time and both my boss and coworker turned around at the same time.
I had written a comment
// Ya know those glasses I wear to work everyday? They're not prescription. They're fake.
The look of disappointment just staring me down was absolutely priceless. And the fact that they both read the comment at the same time.. 😂😂😂😂😂😂😂
Just over heard, Dev A was reviewing another team's code ...
Senior Dev A: "I don't understand this teams code. I hate WebAPI. Wish we could use X."
Senior Dev B: "Why can't we use X?"
Senior Dev A: "It's frowned upon."
Senior Dev B: "By whom?"
- couple of seconds of silence -
Senior Dev A: "X is not a Microsoft technology"
- few more seconds of awkward silence -
Senior Dev A: "X is magnitudes slower than WebAPI anyway."
Senior Dev C: "What? How much slower?"
- caught off guard..didn't know Senior Dev C didn't have his headphones on -
Senior Dev A: "Um...I don't know, that is what you told me."
Senior Dev C: "I never said that. I've never used X. I prefer WebAPI anyway, but both WebAPI and X use REST based protocols, I doubt X is magnitudes slower. Actually, I think you told me WebAPI was slower."
Senior Dev A: "Different paradigm."
- second or two of silence -
Senior Dev B: "What?"
Senior Dev A: "Hey, did you see on twitter ..."
Have no idea where he thought that conversation was going. Maybe he was hoping the other devs would dog-pile/attack the code. Pretty funny it backfired. His face when Dev C said 'I never said that' was priceless. Like "Oh -bleep- ..how do I lie out of this one? ...quick, distract with random words or a twitter post"
When the house is one fire, and all the devs are running in circles, trying to fix it, and you overhear the PM (while prepearing your 8th cup of coffee) complaining on their phone, about how hard he/she has to work, because the devs fucked up... priceless.2
"Do you want me to remember your password?"
FX [ Clicks.. ]
FX [ Time Passes . . . ]
(Bonus points to anyone that gets that reference..)
"Please enter your password"
Why is it so hard for some applications/etc. to do this, whilst others I've had the same password remembered for over a decade !
"Check email for password verfication."
That'll be the, it takes 4 hours for the email to arrive email server..
Or the email server will be down at that moment.
Or so full of unread messages it takes you half an hour to find the one you want..
Or they just don't send the email. :-)
I just wanna log in !
Sometimes its just something like a game, you know, not a national priceless treasure that needs protecting by a dozen layers of security.
Whatever happens to a desktop short that just loads the game and plays it..
But no, we have to have an internet enabled game to cut down piracy (Even though you can download it someplace with that bit disabled..), and when the company goes out of business, or stops selling that game, oh dear it doesn't work anymore, even though you paid for it !
"I'm a very bad girl" she said, biting her lip. "I need to be punished hard" she said and crawled toward him.
He said "Oh yes I will punish you in a way you can't imagine!" and installed windows 10 on her laptop.
Priceless advice to all. Never agree to work on a project where graphic designers are overseeing it. You will be installing a scripty handwritten font the week before go live, changing out images but the ecommerce portion has not yet been implemented much less tested. I thought I would be implementing a typical Shopify site but no it is "story telling" they say. Oh yeah go live is 4 days away.5
I was asked to check something today that was handed over on a USB stick. "Could you check that the file structure is correct". Of course I said. Then I prepared my camera, changed the insides of the stick to my rubber ducky, wrote a little script and uploaded it. Oh yea and corrected the structure.
The face of the colleague was priceless when I brought back the stick and he sticked it right into his computer.
The script was roughly:
- open browser
- open history
- search "porn"
- select second row
=D office pranks <32
I would have to say the first start-up I worked with had the worst recruiters. Albeit they were seniors of mine, and not full fledged professionals, but this was pretty ridiculous.
So at the interview(which I won by winning a hackathon in college), they asked me the standard questions about my current knowledge and what I hope to achieve in the company. When they asked me my tech questions, one program that they thought was tough, I solved in 2 minutes. I was interviewing with 3 other people whom hadn't gotten the answer. Naturally I doubt myself due to the lack of answers being produced. The recruiters themselves didnt understand my answer initially. So much so that they were convinced I was wrong(at this time the others were coming up with, and submitting their answers, which the recruiters naturally expected from us). So to give me the benefit of the doubt, they whip out a laptop to run my code, and guess what? It worked, and had NOTICABLY lesser computation speed.
Needless to say I got the job, but the look on my recruiters' faces after exclaiming I was wrong, then they themselves being proven wrong? Priceless. xD4
Ad blocker blocker...
Random news website: "Please disable ad blocker" or pay us $10 a month
Me: nope... chrome dev tools... delete tpmodal crap... overflow? nope. $0 a month
reading someone else's newspaper they left behind... priceless5
My best prank: A year ago I was at my friends flat, which he finally rented with his new girlfriend. He is a kind of person, which has like constantly opened 110 tabs in chrome, three or four instances of chrome running, torrenting at full speed and in the meanwhile a few films having opened to "watch" later. He is very very secure about his computer and NEVER leaves me or anyone else alone with his computer. That day we were just talking in the same room, and he goes for some food. I was like yeah thats my chance to prank him. So I opened a new tab and came with an idea - what If I change his desktop background to some random chick, to prank both him and his gf. I knew she will not be mad but his reaction would be priceless (it was his first gf). So I started googling, found a three pretty naked chicks. This was like soft porn, they were still "dressed" but not much. I did not wanted to use a porn for this.
So I was about to download image - right click - save as - little window opened and..
...what the hell, that guy had literally like terabytes of porn in download folder, all totally in one chaos, thousands of images, millions of downloaded videos, all categories just everything from gangbang to milfs or old/ young, what the fuck that computer was like cursed station of porn.
In that point I was like fuck that. This prank has no sense then. So I just closed that little window and did nothing. Prank failed.
Nowdays, He still does not know what I know about his "hobbies". And I will never say him lol. About a months after he broke with his gf and moved to different house. He has now three monitors attached to his computer and 4tb of space. He is still complaining about "lack of space" and "too big downloaded movies" but we all know what is going on lol. We call his "working deck" a sacred porn station.1
To those of you who don't know about this, if you have a Microsoft account, you can sign up for Visual Studio Dev Essentials with it. Doing that gives you 3 months free access to Pluralsights, which is a really nice website to learn new stuff. Do check it out.2
Installing OS onto server
Configurations and Updates
Won't boot up and keyboards not functioning till after grub...
"A start job is running for Wait for Plymouth Boot Screen to Quit" can go fuck itself.4
Not a rant!
Reaction when a person responds your joke with " I will go home, figure it out, laugh and will text you!!!!"
Four and half months,
Hundreds of hundreds PRs and one additional product cluster
By 6 Engineers..
To 500+ micro services
Which has no timezone or currency context,
Created by 250+ engineers,
To launch in a new country...
It didn't make me happy.
But the feedback from customers and drivers is priceless and #heartwhelming14
6 people sitting on a table having a few beers Friday evening.
3 Devs and 3 non-Dev people. The devs were talking about stories and problems with customer service...
So far so good... Suddenly one dev came up and said:
Hey guys! I have a very funny and interesting "GoDaddy" story to tell!
The faces of the non dev people were priceless because they imagined a totally different story.....5
telling your girlfriend's younger brother you've hacked his Minecraft account is evil but his reaction is priceless
Solved my first sizeable bug ever.. The Euphoria is priceless .. I better enjoy this till team mates say this is another normal bug..
You constantly see these professional profiles with labels such as 'Expert'/10 years experience/senior/CTO/CIO/Consultant.
I think it's very unfair because they attract employers and they even get hired, while some of us with veteran knowledge in several fields don't get considered for a job.
May I add that it's always the funny guys who get a job. Apparently being a relatable frat bro at an interview is more important than having priceless expert knowledge.
My goal as a intern achieved, my dream of being able to understand 113,000 lines of code for their website priceless.2
"The ability to change on a dime is one thing small teams have by default that big teams can never have. This is where the big guys envy the little guys. What might take a big team in a huge organization weeks to change may only take a day in a small, lean organization. That advantage is priceless." - Andrew Hunt
i like to code because:
- it's challenging
- it's very personal, it's my way to solve the problem
- in the end i might have something cool that i did myself and that's priceless
To me this is one of the most interesting topics. I always dream about creating the perfect programming class (not aimed at absolute beginners though, in the end there should be some usable software artifact), because I had to teach myself at least half of the skills I need everyday.
The goal of the class, which has at least to be a semester long, is to be able to create industry-ready software projects with a distributed architecture (i.e. client-server).
The important thing is to have a central theme over the whole class. Which means you should go through the software lifecycle at least once.
Let's say the class consists of 10 Units à ~3 hours (with breaks ofc) and takes place once a week, because that is the absolute minimum time to enable the students to do their homework.
1. Project setup, explanation of the whole toolchain. Init repositories, create SSH keys for github/bitbucket, git crash course (provide a cheat sheet).
Create a hello world web app with $framework. Run the web server, let the students poke around with it. Let them push their projects to their repositories.
The remainder of the lesson is for Q&A, technical problems and so on.
Homework: Read the docs of $framework. Do some commits, just alter the HTML & CSS a bit, give them your personal touch.
For the homework, provide a $chat channel/forum/mailing list or whatever for questions where not only the the teacher should help, but also the students help each other.
2. Setup of CI/Build automation. This is one of the hardest parts for the teacher/uni because the university must provide the necessary hardware for it, which costs money. But the students faces when they see that a push to master automatically triggers a build and deploys it to the right place where they can reach it from the web is priceless.
This is one recurring point over the whole course, as there will be more software artifacts beside the web app, which need to be added to the build process. I do not want to go deeper here, whether you use Jenkins, or Travis or whatev and Ansible or Puppet or whatev for automation. You probably have some docker container set up for this, because this is a very tedious task for initial setup, probably way out of proportion. But in the end there needs to be a running web service for every student which they can reach over a personal URL. Depending on the students interest on the topic it may be also better to setup this already before the first class starts and only introduce them to all the concepts in a theory block and do some more coding in the second half.
Homework: Use $framework to extend your web app. Make it a bit more user interactive with buttons, forms or the like. As we still have no backend here, you can output to alert or something.
3. Create a minimal backend with $backendFramework. Only to have something which speaks with the frontend so you can create API calls going back and forth. Also create a DB, relational or not. Discuss DB schema/model and answer student questions.
Homework: Create a form which gets transformed into JSON and sent to the backend, backend stores the user information in the DB and should also provide a query to view the entry.
4. Introduce mobile apps. As it would probably too much to introduce them both to iOS and Android, something like React Native (or whatever the most popular platform-agnostic framework is then) may come in handy. Do the same as with the minimal web app and add the build artifacts to CI. Also talk about getting software to the app/play store (a common question) and signing apps.
Homework: Use the view API call from the backend to show the data on the mobile. Play around with the mobile project to display it in a nice way.
5. Introduction to refactoring (yes, really), if we are really talking about JS here, mention things like typescript, flow, elm, reason and everything with types which compiles to JS. Types make it so much easier to refactor growing codebases and imho everybody should use it.
Flowtype would make it probably easier to get gradually introduced in the already existing codebase (and it plays nice with react native) but I want to be abstract here, so that is just a suggestion (and 100% typed languages such as ELM or Reason have so much nicer errors).
Also discuss other helpful tools like linters, formatters.
Homework: Introduce types to all your API calls and some important functions.
6. Introduction to (unit) tests. Similar as above.
Homework: Write a unit test for your form.
The last 3 days I was working on a module that extends a built-in module to add extra functionalities. It was half a success cause the last feature was causing errors.
After spending all day debugging, I closed the IDE to leave work with disappointment. Then I noticed that the whole platform was throwing the last exception on every page, making it completely unusable.
Took me 5 minutes to fix it, just to make the platform usable again. And then I realized that I actually fixed the whole thing that took me all day to fix.
Leaving work Friday after completing pending long tasks.. Priceless!3
Passed Out on my keyboard and woke up to fucken errors that cannot be undone.
Then I saw the importance of source control
When there's a dev on your team that's infamous for throwing code over the fence and you're always the one cleaning it up.. priceless.
Week3: An april fools website listing people who commited minor offenses like j-walking and speeding. the reactions we got to publish on april foola day were priceless!
The awesome feeling, when you finally tag your open source project with `1.0.0`, priceless ...2
that moment when your coworker doesn't know about shift+tab and uses backspace to untab blocks of code :') priceless guess i won't show let him know.
That moment you update your ui library, to find out this update has a small align-items css prop that breaks every form on every page.... imagine the impression when you see it all broken... priceless
Get a bug report, look at the code: it was fix a month ago by... Me. The look on the face of my colleague like I'm a wizard or something: priceless1
I am currently busy with a project for a university module where we have to create a computer based implementation of the original Cluedo board game that can be played with 4 to 6 players over a network. My main responsibility is the network, but due to my love for data structures I volunteered to create a class that implements the actual game board as a graph in order to provide pathfinding for our AI player as well as validation for moves and paths of players playing the game. In the original project description all players started on their own tile, but this was changed recently.
Dus to the original specification and due to the rule that a player may not move through the center room, I simply made that the center room only has a path to it, not from it (thus no children in the graph node). When the project changed I forgot about this and we started getting errors that the server says a move is invalid everytime the game starts, because naturally the pathfinding says that the distance of any path from the center room is infinite and thus (distance > playerDiceRoll).
We quickly needed a work around, without changing everything or the structure of the graph, due to the face that a player shouldn't move through the center. My solution to this was that in the validate move function, I simply check whether the player is in the center room and then return whether a move from any of the for exit blocks from the center to the desired destination with the current dice roll value is valid (because moving to any block from the center a human player would take the shortest path, using the exit closest to their desired destination.
My result code was basically:
if (in center && target != destination)
return validMove(exit1, destination, rollValue) || validMove(exit2, destination, rollValue) || .......;
My friends immediately didn't think it will work, but I sat there with a smile and compiled my code with full confidence. Their faces were priceless!
Happy Engineers' Day to all engineers here!
Sir M. Visvesvaraya, one of the greatest engineers of all time, was born this day in 1861. His contributions to the society through engineering is priceless. We celebrate his birthday as engineers' day here in India.