Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Search - "<3"
During my first-ever technical interview, the interviewer asked me "Do you know the FizzBuzz problem?"
"Uhh, not really." (I was just thinking ok this problem has a name, must be some algorithm problem)
"So the problem is basically to give you the numbers 1 to 100, if the number is divisible by 3, print 'Fizz', if divisible by 5, print 'Buzz', if divisible by 3 and 5, print 'FizzBuzz'. For other numbers just print out the number itself."
After hearing the problem, I felt so many ideas popping out of my stressed brain.
I thought for a bit and said "ok, so if the digit sum of a number is a multiple of 3, then the number is divisible by 3, and if the last digit is either 0 or 5, it's divisible by 5."
Then I started to code out my solution until the interviewer said "there's an easier solution. Can you think of it?"
This stressed me out even more.
I thought for a bit and said "well, starting from 3, keep a counter that records how many iterations are done after 3. When the counter hits 3, that number would be divisible by 3 for sure. Should I try this solution?"
The interviewer said "Sure." So I started again.
However, I struggled for about another 3min until I realized this solution is a lot harder to implement. The interviewer probably saw my struggle too.
This was the point where he stepped in and asked me "Ummmm there's an easy way of solving this. Have you heard of the MODULO OPERATOR?"
In sheer embarrassment, I finished the code in 30s.
Of course, there was no further question after this, and I felt the need to seriously reevaluate my intelligence afterwards.12
Nothing is as boring and frustrating as cloning a ripo from GitHub
run it then you get 3, 4 syntax errors
you fix them
then boom a library throws a hug ass exception
at that point I just delete the damn thing2
1) Read the wiki on git. I probably have enough shorthands and test methods that you won't need much other shit to debug issues.
2) when debugging, remember that if it is there, there's a good reason why I put it there.
3) commented-out code is probably useful for maintenance. I left it there for a good reason. 😛
4) chances are whatever I wrote, was the state of the art at the time I wrote it. There might be better ways to do it now tho.
5) I always work modular. First, understand the structure. (probably also documented on wiki) DO NOT fuck up the structure. If you change it, you document it.
6) If you feel I wrote shit, it's probably because management annoyed the living shit out of me. Pun intended.
7) Your confusion is normal. I don't do dumb shit.4
I'm truly surprised how well Linux is coping with my 32GB RAM dev laptop :)
Currently open and actively used:
1. 2x Chrome windows (70-100 tabs total)
2. 5x IntelliJ Idea projects
3. 3x AndroidStudio projects
4. 2x different grade daemons
Still snappy, still quick af!
I wonder how windows would handle that. From my xp 2 IDEs already were a struggle35
Got some detailed feedback from Booking.com, upon asking.
I answered all the questions right. But they said I am not ready for a Sr PM role (which might be true).
Here are three points that I captured from the feedback:
1. Focus on details
2. Clear and better reasoning for WHY
3. Realistic over idealistic scenarios
While it makes me feel low that I didn't make it but this feedback will surely help me overcome the challenges and clear interviews in future.
On to the next one now. Let's see what comes my way..
One thing for sure, there is lots and lots to learn for me yet.
One thing I surely lack is articulating my thoughts and keeping things crisp while conveying the information aptly.
Anyone has any tips/resources on how to improve in this area?14
the new job is coming up with utter shittyness and I don't care if that's even a word
- tomorrow is my LWD in current job. next week, i will be doing work for a company whose sdk my current company's code uses, with which i interact on daily basis. today a bug came in most trivial usecase of that sdk, and i was totally lost. i had 0 fucking clues regarding why that happened, and this is the company that am about to work with, from consumer to being a developer :/
- today my dad had a heated argument with his boss and maybe about to lose their job. at the very delightful time, when the only other source of income for the family , i.e me , is on a thin thread from the finances point of view.
- my relatives came yesterday. we are a small family of 3 (+2 cats out of which 1 is physically handicapped) with a very busy life and a very tiny house. and when suddenly 6 more fat asses squeezed themselves in, one of my cat got scared and ran to the terrace. its more than 24 hours since that fiasco, and my poor boy hasn't returned :"""( . He is a baby kitten, just 11 months old
my mood is now below the deepest points in sea level. hope y'all are doing good3
So they finally implemented vaccination certificates here that are apparently "WHO recognized" and you can generate it online. We used to only have vaccination cards. Guess what?
1. There's a data privacy section that's supposed to be step 1 but when you load the page, you're on step 2 where you have to enter your details. Step 1 is not clickable, you advanced child! You're skipping grades, congrats.
2. They have questions that can be answered with "yes" or "no", the question itself is a drop-down and wait, clicking it opens a dialog box that has two radio buttons for "yes" or "no". Amazin'.
3. Some words are capitalized for no fucking reason. It's so random, it makes you wonder if such entities exist and you just don't know about them.
4. There's minimal validation for the dates and even the bare minimum doesn't make sense.
5. You have to enter each detail in perfect order, otherwise it will assume you didn't enter anything.
6. Some of the fields are required but it allows you to proceed anyway. Well, it's your fault, get fucked.
7. Their version of CAPTCHA is literally a dialog box with random texts on it. TEXTS. If you enter it wrong, it doesn't generate a new one so take your time, dear. You'll get it right.
8. When it tells you that you did something wrong (rare), it flashes a black box at the top of the page that says "Oops, that's incorrect!" A literal fucking high school project.
9. When you finally reach the last page, it proudly informs you that they have successfully looked you up except your name is wrong. You know it's you from the first and last name, the date of birth, the vaccine brand, the vaccination site, time, and date. For some reason, the middle name is wrong and it's not a matter of "John" and "Jhon" or "Louise" and "Louis". They got the first two syllables right, removed one, and made up the few others. HOW?
I remember going to the vaccination site and seeing the brand new tablets they struggle to use. They even have keyboards and some slick leatherette casing for each. There's not a single scratch on those things. They have the best of the best tools while typing with one hand. Okay, maybe it's not the best tool but it's ages away from the typical pen and paper oops-i-lost-it system they had before. I chastised myself for being a cunt. "Come on, they're trying."
This is where our taxes go. High end tools for the damn fools. Even the website, just like every other government website, looks like a high school student's project. I thought the last bullshit I'll ever see was that stupid OTP crap that doesn't actually send you an OTP, it just writes the numbers on the textbox and all you have to do is press the OK button.
God have mercy.2
Question - is this meaningful or is this retarded?
2*3 = 6
2*2 = 4
2*1 = 2
2*0 = 0
2*-1 = -2
then why doesnt this work?
6/3 = 2
6/2 = 3
6/1 = 6
6/0 = 0
6/-1 = -6
if n/0 is forbidden and 1/n returns the inverse of n, why shouldn't zero be its own inverse?
If we're talking "0" as in an infinitely precise definition of zero, then 1/n (where n is arbitrarily close to 0), then the result is an arbitrarily large answer, close to infinite, because any floating point number beneath zero (like an infinitely precise approximation of zero) when inverted, produces a number equal to or greater than 1.
If the multiplicative identity, 1, covers the entire set of integers, then why shouldn't division by zero be the inverse of the multiplicative identity, excluding the entire set? It ONLY returns 0, while anything n*1 ONLY returns n.
This puts even the multiplicative identity in the set covered by its inverse.
Ergo, division by zero produces either 0 or infinity. When theres an infinity in an formula, it sometimes indicates theres been
some misunderstanding or the system isn't fully understood. The simpler approach here would be to say therefore the answer is
not infinity, but zero. Now 'simpler' doesn't always mean "correct", only more elegant.
But if we represent the result of a division as BOTH an integer and mantissa
1.234567 or 0.1234567,
i.e. a float, we can say the integer component is the quotient, and the mantissa
is the remainder.
Logically it makes sense then that division by zero is equivalent to taking the numerator, and leaving it "undistributed".
I.e. shunting it to the remainder, and leaving the quotient as zero.
If we treat this as equivalent of an inversion, we can effectively represent the quotient from denominators of n/0 as 1/n
Meaning even 1/0 has a representation, it just happens to be 0.000...
(n * (n/0)) = 1
the multiplicative identity
(n* (n/0)) == (n * ( 1/n ))
People who math. Is this a yea or nay in your book?26
I was in a company (if you can call it that) for 3 months but I didn't exactly have a good selection process and I was even afraid to get paid for the first month. They made me install Hubstaff (or new slavery), I was in a project that mixed too many technologies, we were not clear who was making the decisions and finally they fired me this week, you don't know how happy I am.1
If not understanding code, read the documentation or debug the code. When trying to modify...
1. Follow proper indentation.
2. Don't make spelling mistakes and follow naming convention.
3. Don't try to write all the code in one line (based on line length set)
4. Simplify if else statements if possible.
5. If value of method call need to be used once, don't store it in a variable. Directly use where ever it is needed.
6. If there is duplicated code, put it in separate method and re-use it if possible.1
I formatted this code with my own code and one day I will format my formatting code with itself.
Chicken and egg *intensifies*
Also look at my stupid color scheme.
54 characters per row.
3 cool 5 me.2
Job offer, searching for somebody with (amongst others):
- React, Angular
- Azure, Kubernetes, Redis
- Mongo, MySQL
Why do they want to fill 3-4 positions with a single person? I'm afraid I'm only 2 of those people they're searching for.8
"my greatest fear in life is my best not being good enough."
Currently, I am building my second business around blockchain.
I am stacking on using the popularity of cryptocurrency and it's novelty to push the product universal.
My limitation (what I think):
1. My environment - unfortunately I live in a third world country
2. Naivety: I have never scaled a business, failed in my first attempt(this is my second).
3. Lack of fund: my budget is pretty low, and no I dont have a family support to raise any for marekting and promoting the business, so I am let with option of scaling it organically ( what "organically" means is spamming social media, forum's comments section to grow customers
4. Really the only option present: most folks here wont know what it means to be in a state of "survival", failing will cause you suffering.
5. Poor network: My friends, or the people around dont understand, cant comprehen what this means.
1. I get to know what it means to carry your idea to the world again, this I hope will improve my knowledge base on business and make me less naive.
2. Portfolio boost: "wow!" that should be people's reaction when I tell them about the project.
3. If I succed, I hope the incentive will take me out of this shit hole.
4. I really want to get out of this shit hole - this should work!