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 - "the solution"
-
Finally I found a webpage related to my bug.
The page is from 2004.
*keeps reading*
"Yes, yes! This is exactly the problem I'm having"
*Carefully reading each comments*
*Looking at scroll bar with stress*
*Almost coming to end, no signs of solution*
At the end the thread creator say: "Ah finally I've fixed the problem. Thanks everyone for helping"
*moment of silence*
WHY U NO SHARE THE GOD DAMN SOLUTION? YOU FUCKING IDIOT17 -
This is fucking annoying with some clients.
Client calls:
Me: Hello, how can I help you?
Client: *explains problem*
Me: *tells possible solution*
Client: you sound young, could you connect me to a more senior person?
Me: Sure.
Collegue: Hello, how can I help you?
Client: *explains problem again*
Collegue: *gives same solution as me*
Client: Oh uhm but that's the same solution the boy I had on the phone before you told me.
Collegue: Yeah......?
Client: well he sounded so young...
Collegue: Being young does not equal being inexperienced/less knowing about something.39 -
OMFG! I just figured out the solution for low fps in every gaming console!
I hope this piece of (genius) code get to microsoft/sony!!!19 -
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.5
-
Boss - gives tasks to me. Timeline: 10 days.
Me - work hard and finish the solution in 3 days.
Boss- wtf is this. Do it properly.
Me - chills for 15 days. Submit the same earlier solution after that.
Boss - yes this looks nice now! Much better than your earlier work!
Me - dude seriously what kind of stuff do you smoke before coming to work?10 -
IF YOU WRITE IN A FORUM ABOUT A PROBLEM AND YOU SOLVED THE PROBLEM, TELL US THE FUCKING SOLUTION YOU MORRON! YOU TOOK THE EFFORT TO JUST WRITE "I SOLVED THE PROBLEM" WITHOUT WRITING A WORD ON HOW THE FUCK YOU DID IT. DO YOU THINK I READ THIS FUCKING TOPIC FOR FUN? I AM ONLY INTERESTED IN THE SOLUTION, I DON'T GIVE A SHIT IF YOU SOLVED IT OR NOT!!!12
-
That feeling when you Google for a solution and the answer that works for everybody doesn't work for you...3
-
If you update your stack overflow question with the solution once you find it then you're the real MVP2
-
> be me
> last hour in office
> trying to figure out solution
> figured out a plausible solution
> write the code
> power outage before I compile
¯\_(ツ)_/¯
Well, on the bright side I committed it locally...9 -
boss: please look into tools that do X.
fullstackchris: Ah, here's a solution we can use!
boss: I don't want to use it because it is too complicated.
fullstackchris: ok, that's fine with me...
[one week later] boss: oh I found this nice site that does X, can we do X?
fullstackchris: YES, THAT'S EXACTLY THE SOLUTION I ALREADY FOUND, *AFTER* YOU ASKED ME TO LOOK FOR A SOLUTION, AND IN THE END YOU DIDN'T WANT TO DO IT. OH HAVE YOU CHANGED YOUR MIND?!?!
F*@#! *%*#8 -
Manager: I need you to come up with a quick, temporary solution.
Me: Ok...but it will be kind of hackish and ugly.
Manager: Yes that's completely understandable.
Me: So again you say this is just temporary right?
Manager: Yes we will come up with a permanent solution soon.
*that was over a year ago and the "temporary" solution is not-so-temporary it seems*10 -
When you show the senior developer your clever solution to a problem and they come back with "you can also do XYZ" and his solution is much more elegant. Appreciate your superiors kids.4
-
After some searching I found a solution on stackexchange.
The solution was a reference to a patch that I created a couple of years ago :)1 -
A friend of mine has a PC that was overheating. His solution: Dumping the entire mobo and components in a box with Olive oil.
Pros:
+ Decrease heat by 15℃
+ Low cost solution
Cons:
- Hard to maintain components
- Dust can't be cleaned from the box
- House smells like an Italian kitchen 😂7 -
That feeling when you finally celebrate closing your browser tabs because you know you've found the solution for your error.... best Feeling ever
-
Currently trying to write a dark theme solution for the security blog in pure JavaScript (no jquery).
This is way easier than I thought!108 -
Just had chat with Microsoft support to solve a issue. I accepted remote session request. She did something and couldn't find proper a solution to my problem. Finally, she told a temporary solution and quit the chat.
When I was about to give feedback that she wasn't helpful, SHE CLOSED FEEDBACK WINDOW and then ended remote session. Lmao4 -
MD: The client doesn't care how sloppy your code is. They're not paying for the solution, they're paying for the result. If there's a quick and dirty option take it.3
-
Solving a problem with a different, simpler solution than the one the professor intended and having to go back and recode it the way he wanted6
-
One of my favourite, encryption puzzles is this:
ITuyVT93oUZtLKWyVT5iqPO3nTS0VUEbMKxtp2IyoD==
Answer is plain text string in english. Good luck, post solution in the comments!18 -
You don't have a problem if you go to stack overflow to find a solution to something. You have a problem if you go to stack overflow and CANT FIND the solution.4
-
Those rare times when stackoverflow doesn't have the solution to your problems and when you finally do come up with a solution on your own, you feel like a goddamn king2
-
Sometimes the best solution is the simplest
But sometimes it takes 20 hours of debugging to figure that out
😧1 -
Just spent 20 minutes implementing a utility class.... then realized I don't need it...
The solution is actually much simpler... only takes 1 line of code...7 -
One of the bigger and more important IT projects this fall. Technical solution proposal needs to be ready by Thursday morning but is far from complete. Solution? The responsible person for this went on a two day mindfulness training. Apparently totally oblivious to the term "sense of urgency". Must be a citizen of procrastiNATION.3
-
I always get a little angry when I'm looking for the solution to a problem I have with JavaScript and the answerer has the solution in JQuery. Like, not everyone uses that people!5
-
I’m so happy right now, I love doing this. Now just gotta wait for the 10Gbit switch so I can start working on the 150TB storage server solutionrant screw the old network guy the new network guy he left all ports open in the gateway ubiquti god i hate him so much unifi ubnt21
-
do you ever get that feeling when you suddenly wake up from sleep and immediately have the solution that has been bothering you for weeks or is it just me?
it happened to me today. woke up and magically had a solution to a problem I had with unity (it works now).6 -
WTF!! I want a JavaScript solution.. not jQuery!! When JavaScript mentioned in the question, why the hell people answer with jQuery solution and also same solution multiple times.15
-
When the doctor says "take this and comeback in 2 weeks" he is literally debugging his solution in your body.
I'm a bit freaked out.6 -
How to be a successful developer:
1. Identify a problem that you don't know the answer to.
2. Spend 10 minutes searching Google for a solution, trying various keyword combos.
3. Click the link to the solution in Stackoverflow.
4. Find the solution with the most +1's.
5a. If solution looks good, implement the solution in your code.
5b. If solution is not applicable, return to step 2.
6. Test your implementation.
7a. If the problem is solved, bask in the glory of success and return to step 1.
7b. If the problem is not solved, move your hand vigorously through your hair, pulling out several strands. Exhale loudly. Next return to step 2.4 -
Humble Request:
If you are going to close the issue please have the courtesy to share your solution first 😒4 -
XML is like violence. Once you start using it, the solution to any problem will be just more XML.13
-
I did a job interview recently for a company and the test was something like this.
In ruby, write a web server that will serve a specific line number from a text file.
I thought up a simple solution and a more advanced solution, but I opted to go with the simple solution and submit my work quickly. I made a nice web server with tests and everything and it used the sed command to get the line number from the file.
Now, they had various instructions, like it had to perform. They asked how it'd perform with 10G, 100G files. I thought "Eh... it'll be alright."
The solution they were looking for was the "advanced" solution that I thought up, which involved storing a binary file of 32/64 bit integers that reference the byte-offset of the line they're looking for. Basically a binary index file.
This violates all of my sensibilities, because I would never build a database indexer like this using ruby, of all things.
I thought it was a stupid test, and how do these companies honestly expect me to spend hours coding and then tell me I didn't go far enough? It's unethical.
I actually followed-up with the "advanced" solution a couple hours after hearing I was out, just to show them that their process is flawed.2 -
Closing 10+ tabs after finding the solution is like flushing the toilet, you don't even look back.6
-
Every time I see this picture here on devRant I think of my annoying ass for a co-worker.
Not only does he refuse to listen to me and whines all the time, but when I show him a solution he copies my work right to the last semicolon. And proclaims himself to be God for "coming up with the solution".
Hubris much? -
That feeling when you dream about the perfect solution of the programming problem you just had, you get up and just start coding for hours.
-
IT'S TWO THOUSANDS FUCKING NINETEEN VERSION AND YES VISUAL STUDIO IS STILL FREEZING WHEN COPYING AND PASTING A SIMPLE FUCKING TEXT FILE INSIDE THE SOLUTION14
-
I just had a brainfuck moment...
Why do I charge my phone via PC USB at work (slowly) when I actually have a power bar on my desk...2 -
We have a huge codebase, built during the last 10 years, with a lot of problems caused by legacy dependencies. We are trying to modernize this gradually but it is very challenging because we have a lot of features to maintain and test coverage is low.
Today, a guy hired three days ago just proposed to rebuilt everything from scratch stating that he did the same thing in his personal project, so it wouldn't take too much to develop what we need.
Manager gently invited him having a quick call. I would pay to listen that conversation.8 -
devRant, got a code challenge for you.
Manager calls at 18:00...
Write an algorithm that gives the optimum result!
I'll go first with my O(1) solution:
Don't answer.
I'd be interested to see whoever can beat the big O of my solution!!!!!
#moreclownwellnessthirstythursdays20 -
How weird is this?
I was working on a project. I wasn't able to find solution for a particular sub problem. It was late so I thought of sleeping.
I dreamt about the problem. I solved it in my dream. When I woke up in the morning, I remembered the solution and I solved it.4 -
On a serious note, what is the solution to this problem ? Leave and Join a smaller company ? Or give the boss a blowjob ?4
-
A shitty solution isn't better than no solution, but a solution found when taking a shit... now that is always the right solution.2
-
Found three questions on different websites, each describing exactly the problem I'm having right now. Neither one of them has a solution... FUCK.4
-
Three days thinking of a solution to a problem in HackerRank...
Came up with a very elegant O(n+m) solution... failing several test cases...
Check here, there, over there. Everything seems flawless...
Re-read the problem statement letter by letter. There it is, I misread the requirement. FML8 -
I am currently refactoring my code:
1. 200 errors
2. fixed them!!!!
3. build the solution...
4. wait for the build to complete...
5. 300 errors
6. FML5 -
They:Why didn't you come up with this solution 2 years ago?
Me: The framework on which the new solution is proposed DID NOT exist 2 years ago.
This industry is fun!3 -
tfw going to bed with some unsolved coding problems and waking up at night with a solution... i love the human brain.4
-
These two!!!
Sherlock giving the motivation to do detective work and find the bugs. Dumbledore giving the motivation to use magic and code the solution. :D8 -
After 2 months of changes the pm finally landed on the solution that the Dev team proposed at the start of the project.4
-
*compiled a program but got lots of errors*
My Solution:
Recompile the program 5 times without changing anything hoping that it will solve the fucking problem.3 -
That awkward moment when you can't figure out the shortest solution in the Google Code For Kids doodle thingy.4
-
The great thing about coding is, every problem can be solved with logic. And the simplest solution is often the best one.
Often when I don't know what to do, I just keep thinking about what I want to have and break down what I need for that and in the end I always come to a good solution. And it gets easier from time to time. -
When i'm stuck on a problem for hours, as soon as someone asks me what the problem is the solution hits me like a brick wall mid explanation.6
-
When answer has 180 points on stackoverflow and it isn't even an accurate solution for the posted problem.3
-
Who's got time to be an imposter. 🤷♂️
I am out of my depth 90% of the time, always diving into areas that are foreign to me, you just need to enjoy the buzz of knowing you are coming out the other side more knowledgeable then you did going in.
But if you do get overwhelmed with this condition, step back, take a breather, and use that moment to think things through at the big picture level before moving forward again, sometimes the right solution is hard to think off when you're to focused and drowning your way through a bad one.4 -
There are 2 kinds of programmers.
people who searches Google and CAN find the solution.
people who searches Google and still CANNOT find the solution.4 -
iEscape, the solution for missing keys in your MacBook Pro Late 2016.
Vim users, Apple have you covered!3 -
Life of a developer. Wake up in the middle of the night on a weekend and have the solution for the problem at work.3
-
When your company buys a third party solution and you spend all your time emailing them about bugs in their system.
Seriously, I even sent you the exact line of the bug in your JavaScript with a suggested solution, and deployed a new stack with your latest (broken) fix so you can test out that solution. Then you email back saying it is fixed but it is clearly still broken. If I email you a fixed version of your file will you deploy it? OMG!1 -
Remember to always implement a backup solution if the first one fails.
Don’t break the experience for the user. 😉5 -
- draw/write down your problem, You'll pretty much guarantee that you'll find the solution.
- don't overcomplicate how you program, do what works for you. -
I just thougt what could we do so the people start reading the terms and conditions. Finaly I have the solution we have to ask questions about the terms they just read. 😂3
-
Best "short-term" solution that is still in production.
By best, I mean the one that you regret seeing but too afraid to touch1 -
!rant Scheduled Slack message from myself after hours to myself during work hours:
“Hey idiot,
The thing you need to do is [solution]. Trust me.
Sincerely,
Past you
PS: Drink some gd water.”
*followed by panicked double-checking I’d actually sent it to myself and not a coworker*2 -
Learn enough docker to convince my coworker that it is not the solution to EVERY problem, especially not to our problem8
-
Task:
Prevent users deleting items from the tokenInput.
Solution:
onDelete: function(item){
$("#token_input").tokenInput("add",item);
} -
That feel when my solution runs way faster than world average
PS: the puzzle is SAWAYAMA WONDERDISC3 -
The people on Youtube... Rarely seen this much appreciation on Stackoverflow. I dont remember posting that solution but it was definently worth it :)3
-
StackOverflow.
The solution to almost all your coding problems.
The solution to all my "coding" ego. 😂 -
The shortcut to search solution explorer in Visual Studio is probably a choise made by PM after exceeding the project budget for the functionality.3
-
I was pair programming today with one of the seniors in VS. He thought it was weird that I had docked solution explorer to the left side instead of the default right. This makes me wonder, why is solution explorer docked to the right side by default when in almost every other editor (even VS Code), the "document overview" is always on the left?5
-
Getting nugets and dependencies of a big project to restore properly (most of the time the dev fcks his solution up - it works for 'him')
-
Sales sold to a new enterprise client ecommerce solution tailored for small/local businesses as enterprise solution.
That software is able to handle hundreds of products, but we are trying to insert over 200k+ of them.
After inserting around 10k, the whole system dies and nothing works because all requests time out.7 -
I was looking for a solution in some piece of code for half an hour but then I had to go. I took a photo of the code with my phone and then figured out the solution while I was on the bus :D5
-
A swedish insurance company has two different solution for logging in to their system.
1. An advanced high security single sign on solution involving active directory, verification of the network the request came from etc etc.
2. Using a link and passing your credentials in the query string!!! Like: insurancecompany.com?username=admin&password=password.
Solution 2 works with admin accounts from anywhere.4 -
Worst part of being a dev,
When you find a problem that is very similar to the one you have on stackoverflow, but it's slightly different and the solution doesn't work for you.
So then you ask your specific question and you immediately get some downvotes and comments referring to that solution that didn't work.
And then after weighing all the options, you decide to rewrite the whole program or script or whatever.1 -
Surrender
Cry myself to sleep in the corner of my ofgice table and have a dream about how to solve all my issues
Wake up
Forget the solution
Repeat1 -
that moment when you finally find the solution and you feel like I've done great work today.. enough of coding :D3
-
Repository maintainers that close the issues without much explanation or a good solution just to lower the number of open issues...(┛ಸ_ಸ)┛彡┻━┻4
-
When you are searching a solution for your problem so desperately that Google sends you to the Russian version of Stackoverflow.com (and you don't speak Russian).13
-
When you think about a so complex algorithm for your project that you don't think anyone did this before but find the perfectly fitting solution on the internet3
-
I love when you stare at a problem for like an hour, then go eat a burrito, ten come back and instantly realise the solution
-
Solution for all the problems... Even global warming
Have you tried turning it off and on again...!?? 😌2 -
Build failed
Click build solution again
Build works.
I can't tell if it's me, the code, windows updates or visual studio updates but something fucked up.1 -
Internet connnection gone.
Windows-help: Search online for a solution.
Thanks Microsoft for the good idea!1 -
Fun drinking game: Every time the solution to a coding issue is the one you refrained from trying, take a shot5
-
That moment when you simply can't find a solution to a specific dev problem and you urgently need to finish your code..... I know the feeling.1
-
The solution to missing esc key is to map it to caps lock, like we were ever using the caps lock......
Now cut the ranting, you have a solution8 -
When ActiveX is proposed as a solution for a staff facing web application, but all the staff run Windows 10 and use Edge or Chrome...2
-
If you give the client a choice of:
- Quick and dirty solution which results in tech debt
- Better solution that would be cheaper in long run
They will always choose the first without fail..2 -
After a week of logs investigation, we finally found a solution for performance issue. Just scaled up the app vertically to the next tier plan in Azure.4
-
I genuinely just found solution to a dev problem in an xkcd comic.
I defy anyone to come up with a geekier solution to a problem than the Peter Carre map projection.1 -
Tech interview prep on leetCode... I solved this but wanted to read the optimal solution. I check the Solution page..... 😟 🙁 ☹️ 😣 😖 😖 😫 😩 😩 😦 😧 😮 😬 😬 😵
https://leetcode.com/problems/...
The way I solved it, basically just did a merge of the 2 lists as is iterates thru them...
Ialright i need a break after i try to understand this...
btw, tech/CS workers, when you approach a real problem do you think like this? Solve the problems in Big O and math symbols?7 -
Asking you to find the bug. You find it and the solution for it. You tell them your solution and tell what you found. AND THEY JUST WON'T BELIEVE YOU. Just find the friggin' bug yourselves faggots.2
-
Sleep.
Usually, after sleeping, the clearing of the mind opens up a lot of possibilities and more often than not, a solution comes quickly after. Happens to me all the time.5 -
Time Wasted: 30 Minutes
Problem: Put the .add(myObject) statement OUTSIDE the for loop.
Solution: Today.Quit() || Coffee.Make();2 -
What the best database solution for web and smartphones dev?
Is mysql the good choice?
I’m an “old” dev with old usage, php-mysql-JavaScript.
Is it a 2018 solution or am i a dinosaur?
All data will be stored on server side. Web and smartphone app as client.
Thanks for your experience sharing.6 -
The development department got an order to remove certain functionality from our current server monitoring solution, so that we had to use a new, still very in development solution, that is full of bugs and super unreliable.
End result? We now have to have two windows open all the time, while also hoping the new solution actually works, as it tends to stop refreshing randomly, and tends to give false positives a lot. -
Me: I tested solution in all popular browsers and on each looks great.
Tester: I checked on the Safari. It doesn't even look....
Me: .....5 -
When you get busy figuring out Google's 'Celebrating 50 Years of Kids' Coding' and finding the shortest solution.
This. is. fuuuuuun. :D -
When you spend more than 1 hour trying to find a solution to your code project and then the solution was way to simple to work and it works at first try 😨 (feeling stupid right now 😢)1
-
Worst Hackathon Experience ever!
Had been to SAP for a hackathon last year. Built a complete solution for our challenge. Due to no sleep and 48 hours of non stop coding, my team mate who was supposed to present our solution screwed it up in the last minute. Now we blame ourselves for losing because of our bad presentation. -
Spent 3 weeks working on an issue (raised by dev A) by following the suggested solution stated in the issue.
Pushed a PR and got told by dev B that it's not the correct solution.
Dude, I am just an intern here and following whatever they told me to do. If you have a problem with the solution, please discuss it with dev A.
Now I may have to let go of the issue completely because it turns out to be much more complicated, not for someone with intern level skill.
FML, I guess this won't be the last time I had this right?7 -
Me: Ah, that solved my problem. Let me share what worked for me by adding a comment to the already posted solution. Seeing that the solution didn't completely solve my particular issue, maybe it will help another poor soul.
Stack Overflow: You need a reputation of 50 to comment. You're reputation is only 25, you are crap and nobody wants to hear your solution that could "help another poor soul". It would probably just add clutter and help nobody. You are crap and nobody likes you. Good day to you." -
Getting really annoying how I think of the perfect solution on a project after leaving the office.
Now I need to wait 15 hours to implement it 😭😭7 -
Customer give me a broken iPad. The screen was pink or green with a not wanted 3D effect. Solution? Just kick it on the back side where the the screen connector is. That’s a so funny solution 🤣
-
Just because it's popular, doesn't mean it's good.
An overengineered solution can usually be simplified without breaking anything important. An oversimplified solution can rarely be upgraded without major breaking changes.
Not everything needs to follow the "best practices" - if it's not a part of the core functionality, diminishing returns often kick in quite fast.2 -
"Good design is finding a solution to a problem. Great design is finding the simplest solution to the same problem." - Nicholas Petersen2
-
If you think you found a solution, think twice.
If the implementation is taking too long (too many changes in different functions and classes to fix a single bug) there may be a better solution, it's never too late to reverse the changes and start again, it's not a shame, in the worst case you will reimplement the same solution, but better, in the best you'll find an easier and better one.
Don't run, even if there's a deadline.
It's much worse having to deal with negative feedbacks later. -
A moment of silence for all the times we were excited about finding the solution for an algorithm only for it to not work.
-
I sometimes think back to that asshole on stackoverflow that said "op wants a solution like that" after I, the op, told him I don't like that solution.2
-
Reading the documentation instead of blindly guessing how it works until something that resembles the solution appears
-
When you cannot find the solution to the Linux problem on Google but also don't wanna roll back to windows, so you gotta reinstall Linux for the 4th time. FML10
-
I did some investigation on Jira board. There was a story in Oct to design solution for a problem and a senior engineer has commented saying it was done.
The same story opened again in December and another senior engineer has commented saying "canonical and solution is designed"
But FUCKING IDIOTS didn't do anything! Last sprint I got the development story for same and I have been fucking waiting for them to give me solution. But idiots are way too lazy to do any work! -
After a few days of debugging why sessions where getting lost in some versions of IE11 when all the other browsers where working just fine.
I found the solution in giving IE a potato.
Solution:
header ('P3P: CP='Potato')1 -
“Much like power drills, cats can both be the problem _and_ the solution.”
Inside joke between mates.1 -
Everytime I face a new bug, my innerself tries to convince me that I can never find a solution to this.
But my gut feelings know that sooner or later I've always found a solution.
Thanks to all the devs sharing their problems in the internet. -
Worst thing happening to a developer can be when your manager tells you how to do you your job. Fucking tell me whats's the solution and i'll figure out a solution.1
-
The solution for if you're at breakfast but suddenly need to solve a whole family of problems... :')2
-
Ever had a colleague who nosed into what solution you brought to a problem and then stole your credit, telling the CEO how they found the solution and not you?
Yeah.2 -
So many people ranting about devRant needing to be more secret when at work?
I've got a solution coming up somewhere in the next 4 hours.7 -
I think rubber duck debugging is too old now. The next big thing is stress ball debugging. Squish your ball(s) till you get the solution to your problems.3
-
got a new macbookpro with my new job. awesome. but no usb port so i need a dongle to use my good mouse.
my solution: pickup the dongle myself from down the street and expense it
company solution: order it through complicated website, wait for 3 people to approve it, and wait 4+ weeks for it to come in (still waiting) -
The worst part about working for a big company is that whatever is the problem that you google the solution is always like "try changing this global parameter that only the CEO has the privileges to change" or "the only solution is to raze to the ground your 1 year old technology and use this state-of-the-art edge solution".
And it looks like I'm the only one that complains about this.
I mean, really do people have no constraints when they work?1 -
I need to shoot some QAs out of a cannon. Not being trained in artillery ballistics, this is a challenge. Does any kind soul have suggestions for correct charge quantities, caliber, and trajectory projections? Thanks in advance.6
-
Someone is having the same problem with VBCSCompiler on Visual Studio???? Every time I need to rebuild solution I must kill the VBCSCompiler.exe task before that.2
-
TL;DR - I came up with an ingenious version of a solution to a problem and still got 0 marks.
In my bachelor's degree we learned about abstraction, as usual for CS degree students.
In a later exam, a coding question asked us to swap two variables values without using a third variable and print the before and after on the screen.
You can read the question above again, because wait for it....
So this is what I wrote basically (JS equivalent solution),
class Solution {
constructor(obj) {
this.var1 = obj.var1;
this.var2 = obj.var2;
}
swap() {
return {"var1": this.var2, "var2": this.var1};
}
}
let input = {"var1":5, "var2": 7}
let object = new Solution(input);
console.log('Before');
console.log(input);
let solution = object.swap();
console.log('After');
console.log(solution);
Now look, before your boomer asses jump in and say "aCkChUaLlY tHiS iS iNcORrEcT"
I did include all kinds of comments that this is abstracted. The swap function is hidden away and the object variable doesn't need to know what it's doing.
In the context of this question, this is absolutely acceptable as a solution since the end-goal is to print the results on the screen and the user wouldn't see the source code.
I still got 0 on that question and I still get pissed about it sometimes, when I remember it, like just now.16 -
Why does the sqlite SUM function round down values?? WHY?
10333.03 is printed as 10333
This has caused me so many problems?
What is the solution to this?2 -
Updating 4K rows in a table with 4M using Libreoffice Calc to generate the queries.
I know, it's not the best solution, but I'm afraid of the single query solution.
Please, forgive me.3 -
I've just discovered by accident that the dumbest way of solving the Hash Code practice problem is way better than my previous solution.
(medium 49509, big 897164)4 -
How to create an application using kivy.
- Install Kivy
- Open PyCharm and create your first application
- Follow the documentation
- Try to start the application
- The application crash for a arg that the run() method doesn't require
- Go to google to find the solution
- Don't find any solution
This is what I have done in the last 3 hours
Thanks Kivy3 -
Watching someone browse stackoverflow for the solution to a question. Copy and paste the most upvoted answer. Discover that it works, but fail to acknowledge or at least pay respect by also upvoted the answer they are using.
Even after they found a solution so quickly due to the fact that others had upvoted it and as a result it was at the top of the page.2 -
What is the most straightforwardest solution in the entire history of the world..??
My head : Putting prints all over the fucking universe ..
If at all debugging was algorithmic like that.. -
Friend: "Heyyy, I want a custom IT solution. Can you make it for me?"
Me: "Okay sure."
Friend: "Heyyy I don't want the program to do it for me, I want to learn it myself."
Me: "What the fuck.. sigh."
I ended up giving them some third-party boilerplate solution and now they're happy. Peasants..1 -
The solution to the Java-JavaScript problem:
Rename JS to something else, like WebScript or HypertextScript.6 -
Is there any solution to the “Preparing Automatic Repair” error in windows?
It has gone in an infinite loop.
I have Lenovo Ideapad 300.7 -
I really love JavaScript but the most fustrating thing is solving IE bugs and finding only solution by using jQuery... Yes even in 2016.2
-
What do you think an official solution for the "Year 2038 problem" is going to be as most systems have different solutions?5
-
One day lost checking each letter in code, and a horrible error with no visible solution.
Answer: A colon in the place of a semicolon.1 -
1. Closed a solution.
2. Opened same solution, other branch.
3. "Get Latest" on the whole solution.
4. Build solution => Build errors (probably because some project needed be built before another).
5. Right-clicked a project => Build.
6. Nothing happened and VS2017 became completely unresponsive. Has been like that for like 10+ minutes now.
Nice? Nej, bajs.3 -
If you write a solution to something at work, then the company most likely holds ownership with whatever license they have.
However if you rewrite that solution in your spare time, into a package that solves the same problem but different then replace (with permission to) the original implementation with the new one..
Can said company then claim ownership on your package?3 -
when my Git Bash got "died waiting for dll loading" issue, and the only solution is to shutdown cygserver2
-
The offizial guide to install Tensorflow(Python) on windows is BS. The stackoverflow solution only adds the package, but it wouldn't work.
Time to build it myself... -
Posting (ranting) about your problems or emotions online might be an instant anesthetic to the problem but it diverges one away from the issue and the solution.4
-
I am just beating around the bush since I started this project, hoping that one day I got lucky and found the shiny solution.
/*sigh*/1 -
The next time I have the brilliant idea to make a visual studio multi solution template, will someone please slap me? What a fucking nightmare.
-
I was not sleeping, I was thinking about the solution to our biggest problem.
What would your excuse be if you are caught sleeping at work?4 -
Do you think Auth0 is a good solution for smaller projects? Is it easy to replace in the future? Know any good (and preferably cheap) alternatives?7
-
How ofte are you guys absolutely sure that you've picked the right solution for a specific problem? As a novice programmer it bugs me to death that I sometimes don't know if I'm using a "best practice" solution4
-
I changed my shirt and now it looks like we're evil rivals.
I remember him telling me he has the dilemma of "clean css solution" and "quick and dirty js solution" and he always takes the second one.
My dilemma is the other way around: "Clean js solution" or "hacky, dirty css solution". I always take the second one if possible..6 -
Machine learning be like...
"You gotta solve this problem. These are possible things you can think of, but find your solution"
And the ML model surprises you with their solution.
Crap. Rewrite!
#wk74 -
Going to completely blow a deadline? I have a solution, but the entire dev team on the project. That'll solve the problem!7
-
When your project is actually implemented in real world solving real problem with the solution you created
-
"Good design is finding a solution to a problem. Great design is finding the simplest solution to the same problem." - Nicholas Petersen
-
Six months ago, I architected a solution that I thought was pretty darn good. Of course my boss didn't agree and basically twisted my arm until I agreed to go along with his approach. Today, he's walking back on it.. and telling us we can refactor the solution if it doesn't make sense anymore.. so back to my original solution?
If only he listened in the first place.. -
C# and VS have the worst packaging system of any language. I have errors about packages not being found from WITHIN THE SAME SOLUTION1
-
The day when you wake up and realize you have committed to building a ecommerce solution, crm & a form management system.1
-
Spot a mistake in the code.. Should i:
1. live with it and continue to build on top of it.. Do a special validation just for this special case.. Which is a quick solution
2. or rebuild that component.. But have to rewrite the 4 controllers that is using that component.. Which is a long solution
The daily dilemma of taking over someone elses project.. 。・゜・(ノД`)・゜・。4 -
Do you ever come to a solution but forget what the original problem you were solving for was?
I just tried to do a large number multiplication in my head but now forgot what I needed it for...
And after plugging the solution into Google and what I can recall... Seems the answer is wrong as it's indivisible by one of the terms that was involved in the multiplication...2 -
on an interview the interviewer said that there's a question on the test that seems simple but actually has a more sophisticated solution. and all i thought of and wrote was a simple solution. hmm1
-
Solution to issue at redhat.com: "Subscriber exclusive content. An active red hat subscription is required to participate" (and read the solution)
What the hell is this kind of bullshit?! Don't say that you have the solution if you won't share. -
I'm really sick of people saying "WE USE SCRUM" like that was the solution for their shitty code or their "business core"5
-
When overtime gradually becomes the norm and the solution to all problems. Made the nearly quit several times. Eventually did and opened my own business.
-
Is it unreasonable to refuse the tickets and to demand that the dev who came up with the God awful solution should make it work?1
-
The buses in my town has started stopping 2 meters after the bus stop, making people hop on through the back doors. Quite a clever solution tbf.
-
Why the hell i find solution to every string problem with simple dictionary!
i m worried about my problem solving skills1 -
I'm about to release my first .net core API solution (that relies on multiple separate projects under the solution if that matters) with an SQL database. I've never released anything before and could use some advice.
I want to use a cloud solution like aws or azure - any guidance please? I'm trying to find as decent a solution as possible for free, or next to free, as right now it's just a first stage release with next to no features.
Thanks
PS it also uses Hangfire. I really don't know enough to know if that's a factor.7 -
Always estimating for the best possible, quality solution. I refuse to write anything less than perfect. Also I estimate the time based on how I feel that day lol.7
-
So yesterday night, I went to sleep thinking of this unfinished task. I did wake up with an awesome solution in my head, but now as I reached office, I forgot the fucking solution and how I arrived to that stage. fml
-
Hmm. My wireless mouse stopped working when I connected my phone to the USB port.
Solution: have phone fully charged before connecting it.1 -
That moment when "client developer" tell you how to do this and that but in fact you know that their solution is not a good solution. In the worst case scenario, they just don't take you justification.1
-
the problem
https://cdn.discordapp.com/attachme...
the reasonable solution
https://i.imgur.com/tA3KG67.png
MY SOLUTION >:D
https://i.imgur.com/h0IHruK.png4 -
That moment when you find solution for a problem outdated, you fix the issues but too lazy to post it on internet for others.
-
The CORS implementation has made the web overall less secure. It insists on the 99% pain in the ass solution rather than the 98% easy to use solution. So what happens? People work *around* it a lot, and that degrades web security overall.
Had *.mydomain been available as a header value, it would have been fine. Update your CORS headers? Good luck when your users' browsers have a cached copies of the old headers. Instant CORS violations.4 -
Overestimating the solution, trying it, failing, underestimating it, errors, "this is impossible", quitting...😔
-
The moment I find the solution I get so happy that I tell myself let's solve this problem another time. Then afterwards I get depressed because I was wrong.1
-
Learning Java in online course...
Have to do an assignment..
Thinking hard and stressing my mind to find the solution for past two days. Today, don't know how it happened. I just coded and got solution...
The moment my code passed the tests, All of my pain vanished.
I'm happy that I chose programming field 😇... Still lot to learn !!!!1 -
Design patterns a solution to a problem, not a solution for the sake of a solution.
It comes from years of developers banging their head agains a problem and iterating a solution. It was not done person sitting down and thinking about rules for good (general) software development. -
I'm thinking I know why the approximation graph of my ML goes sideways.
It can never reach the solution set completely because the solution set has decimal places to the 1x10^(-12)2 -
I need to figure out a way uniquely identify each computer which visits the web site I am creating. Does anybody have any advice on how to achieve this?
Because i want the solution to work on all machines and all browsers (within reason) I am trying to create a solution using javascript.
I appreciate the help. Thanks.
EDIT:
Cookies will not do.17 -
Working. Finding a bug. Quick-fix. New bug. New bug. New bug. Spending 1 hour looking for Quick easy solution. Getting distracted with a more complicated solution. Spending 1 hour researching. Back to problem, one more hour bruteforcing the problem. Finding it was just about a configuration problem. Fix in 5 minutes. Repeat everyday.1
-
Do you guys prefer one cloud storage solution over the others? Dropbox, Google drive, mircosoft onedrive. ✨✨✨11
-
Dear genie, make me take more notes. My brain is overconfident and thinks (hah) it can do/remember more than 1 thing at once. It's just a whole lotta "Hey, this is the solution to your problem! Also, look at that butterfly! By the way, I have no idea what the solution could be."4
-
Interviewer can you write down program to perform custom lexical sorting?
10-15mins later writing code...
..
Can you code it in linear time ?
Me: if I knew the linear time solution why wouldn't I code that.
Note. I know a linear time solution but couldn't come up in 10mins of solving -
Brain.exe has stopped working... ... ... ... ...
-> | Check Online For the Solution |
-> | Close Program |
-> | Wait the Program to Respond |
v View problem details1 -
Every-time you build a solution on ASP.NET. The session get's destroyed like WTF man. I'know what's causing it but still WTF man.
-
I do all this work to make an elegant solution to, frankly, a dumb requirement. And a newer dumber requirement comes out that requires someone to modify my solution. Normally not a problem. But this is a backend solution given to a frontend developer to modify. I told them how my solution works since it did 90% of what she needed. But instead, they reinvent the wheel and I have to fix it. I was supposed to be done with this 3 hours ago, but unraveling this knot is taking for fucking ever.2
-
The final hour of mental torture among many of finding a complex solution to an otherwise simple problem in a React/Typescript project:5
-
When you come up with a solution to a programmer game that is shorter than the game devs had imagined (game is called Human Resource Engine)9
-
You ever want to keep figuring out a nested loop solution so it executes beautifully, but a deadline forces you to use a cheap solution outside the loop (module import) instead?
-
Any easy solution to solve the rubix cube? I saw some videos on YouTube but dint find any convincing algo which is easy to remember..3
-
Project has been in flight for months. Solution design complete. Last minute major scope change by management. And I'm about to start rewriting a high level solution design doc to reflect their sudden change now. Due first thing in the morning. Its almost 12:30am local time.
Kill me!1 -
What do you do when you're stuck at a piece of code ?
When you've tried every possible solution you can think of.
When you've been through all the options/discussion over the Internet regarding the thing and haven't found any solution.
And specially when you're working alone.
Is it happening to me only? Or anyone else have faced this too.7 -
When some knob head at work convinces himself and the team that 100 projects in one solution is a good idea.2
-
Finished my programming quiz but couldn't fix the bug.
Right after submission, found the solution to fix the bug and it was just to remove "-1" -
!rant
That remote contractor life is waiting for work, feeling super unproductive.
Solution? Shorts and shirt in the glorious weather with a spliff. -
What do you do when you get stuck on your task? Do you have any unusual ways to approach the solution?6
-
An engineer's clinging focus on the dualistic right and wrong will prevent them from seeing the middle way, the way of the solution, the way of balance between all trade-offs.2
-
In true Roko’s Basilisk fashion I would just do whatever the AI told me to do, because "IF YOU'RE NOT PART OF THE SOLUTION, YOU'RE PART OF THE PROBLEM!"
-
Nhot vectors are fucking lifesavers.
For me it's the difference between searching a (2500*70)^n solution space, vs 64220*m solution space.1 -
stdclass arrays of php are a good solution to work with data from the database but sometimes they can be a pain in the ass...7
-
Started a new project for .NET core. Spent the last 2 hours creating a new solution and trying to "make a great solution structure this time"...
Ended up with the same project structure of my previous projects.
If it ain't broke, don't fix it I suppose. -
Redo the leetcode from yesterday
https://leetcode.com/problems/...
other people's answer: https://leetcode.com/problems/...-time-O(1)-space
I converted the java solution to javascript. -
In those learning days the universal solution to all systems issues -
'restart and see if that fixes' -
And here comes the next solution ...
exec("wget ".$foo." > /dev/null 2>&1 &");
$foo contains data from the users query ...1 -
When you discussed something with the whole team, let someone implement it and see almost opposite solution as the result
-
need help with android automation. no where on the enire internet is there a solution for taping the "Done" button on the soft keyboard
-
Just get through the end of the day alive, and then coming home. The next day I usually find the solution around 12 o'clock 😀
-
New Android N Beta build just dropped. Runs great so far and they fixed the VPN problem I was having with the VPN solution we use at work.
-
I believe everything has a solution. It's just not visible at the time. So I just leave that part and go home ( or work on something else if I feel like it ). It never happened that some kind of solution didn't come to my mind when I'm thinking afresh.
-
why is the solution to everything having to do with react-navigation, "Just wrap it in another navigator."
-
It's quite fun when you have slides from your talk which answer the customer's question about the technical solution used in the project:)
-
Hello world!
I have a question about which the best solution to send message verify to number phone in WordPress??🤔10 -
Solution for some reason doesn't work correctly on dotnet core so I try with framework => works. Develop a bit further, not touching anything that happens BEFORE the broken point. Then done far enough that actually have to seriously think about deployment. Framework solution is a headache => decide to try dotnet core again and hopefully find a fix for the broken part => magically everything works. What? WHAT?
-
The way we keep running the code, when we mess around with the code and try to find a solution, has so much in common with machine learning1
-
Why are people so weirdly stupidly grotesquely nuts these days ?
Inquiring minds want to know
Well the solution anyway -
😢I can't find a solution on stack overflow. All hope is lost!
😽have you tried reading the documentation?
😧oh... there it is. -
how does one solve what would likely qualify as a paradoxical situation ?
where the solution which is obvious is prevented and the only temporary solution is completely unaccepatble morally, spiritually, ethically, etc ? -
I really can't find a good and light open source ecommerce solution that doesn't require Wordpress or any other bloated framework.
I got a small company which I just work as a microelectronics/programming teacher and I want an automated solution where people can order and pay for preconfigured kits.
I usually use Nginx with Nodejs. I had a look at Reaction Commerce however it requires 1.5GB RAM as of now (I got a 512mb RAM server). And I don't see how a few visitors should mitigate the use of such an overpowered solution.
How do other developers do ecommerce solutions without using bloaty software? As of now I'm considering to just create a solution myself with a template engine and an API.2 -
What's the term for a problem with no specific optimal solution?
I'm thinking null complete/complex but doesn't seem to be it....5 -
You can build an entire solution which takes days/weeks, nobody cares. You miss a full-strength in the copy, clients lose their minds!
-
My solution to transfering files over the same network.
Zip required folders
sudo service apache2 start
Finally: http://my-ugly-io/2 -
I changed the nividia driver on ubuntu from nouveau to nividia ... but ubuntu now doesn't boot...is there any solution for that ?4