Details
-
AboutCS grad, wasting time starting projects that will never be finished.
-
Skillsjava, js, php, c#, c++, Python, erlang
-
LocationKent, United Kingdom
Joined devRant on 10/27/2016
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
-
Finally the pc is coming together nicely. After waiting so many months and dead cpu issue.
Can't wait to play game in 4k ultra.9 -
/***********************************
/* a temporary hack, fix it later *
***********************************/
That was 7 years ago. I mean it was last edited 7 years ago when a temporary hack was created. It is now a permanent solution as nobody know what we are supposed to fix
.... Nothing is more permanent than a temporary fix. Not even clean refactored and tested code.13 -
If all you have is a hammer, everything looks like a nail!
This was something which my tech lead used to tell me when I was so obsessed with nosql databases a few years back. I would try to find problems to solve that has a use case for nosql databases or even try to convince me(I didn’t realise it back then) that I need to use nosql db for this new idea that I have, without really thinking deep enough whether the data in question is better represented using an sql schema or not.
Now, leading a team of young developers, I come across similar suggestions from few of my team members who just discovered this new and shiny tech and want to use it in production projects.
While I am not against new and shiny, it’s not a good practice to jump right in to it without exploring it deep enough or considering all the shortcomings. The most important question to ask is, whether some of the problems you are trying to solve can be solved with the current stack.
Modifying your stack requires more than just a week’s experience of playing around with the getting started guide and stack overflow replies. This is something which need to be carefully considered after taking inputs from the people who would be supporting it, that include operations, sysadmins and teams that are gonna interface with your stack indirectly.
I am not talking about delaying adoption by waiting for long list of approvals to get some thing that would bring immediate value, but a carefully orchestrated plan for why and how to migrate to a new stack.
Just because one of the tech giants made a move to a new stack and wrote about it in their engineering blog doesn’t mean that you need to make a switch in the same direction. Take a moment to analyse the possible reasons that motivated them to do it, ask yourself if your organisation is struggling with the exact same problems, observe how others facing the same issue are addressing it, and then make an informed decision.
Collect enough data to support your proposal.
Ask yourself again if you are the one holding the hammer.
If the answer is no, forge ahead!9 -
I hate that, not only did this error happen, but they weren’t smart enough to hide the MySQL stack trace13
-
Boss: “Do you think you can work on Saturday? We really need the help.”
Me: “Yes, of course.”
Boss: “Great, thank you.”
Me: “I’ll probably be late, though, as public transport is slow on the weekends.”
Boss: “Okay, when do you think you will be at the office?”
Me: “Monday”.17 -
Copy my private ssh key to multiple machines so I only have to configure one key in github, gitlab, bitbucket etc.3
-
Three days I'm not there, three bloody days and the 2nd sys admin has managed to:
Destroy the auto load balancing that I have scripted and implemented
Fuck up the backups to the cloud, and to a tape drive.
Overload a physical server (in pic, #1 and #2 are hypervisors). This is just one smaller site, I would hate to know what he has done elsewhere.
This is why I'm moving into dev.5 -
Focus? What focus? Its easier for me to define what ISN'T my focus. I don't do web UI/UX. Pretty much anything else is fair game.1
-
Being asked (or more accurately made!) to travel Mon-Fri (i.e. staying away from home) for at least 2 months to a customer's site to work on a completely insane project that had no design, formal requirements, preparation or support. It was just a "friendly side project" 2 friendly managers concocted.
After some research, the project wasn't actually technically possible, but the customer wanted it so I had to try to find a solution.
The complication for me was that my wife was almost 8 months pregnant with our first kid and I made it clear I really wanted to be at home. Was left to feel I had little choice but to go. Project runs over but damnit I'm taking my 3 weeks parental leave entitlement.
Day before I'm due to go back to work, I get an email saying "You'll be travelling tomorrow for the next few weeks". At that point, I replied with the most angry work email I've ever sent and threatened that if that was the case I wouldn't be back. Plans were changed.
I ended up leaving within a couple of months anyway.2 -
*yesterday*
Client: "Perfect! How did you do this so quickly?"
Me: "I used a library"
*today*
Me: "I'm still debugging. It will take some time"
Client: "Well, it has already taken too long...I can hear Mozart in the background. Maybe you need to go to a library to get some quiet and get it done fast. Visit the one you used yesterday."
Me: "Library?...Ah, I meant plugin...like, code...a library is a bunch of packaged code"5 -
When even core C# implementations break some of the SOLID principles.
ReadOnlyCollection<T>, MembershipProvider, ... -
So I was with my friends on the subway and we were talking about an assigment we have due this week with trees in Java. I got to say, the face on the old ladie next to us when we said "we must kill all the children left in the tree" was just epic! She must thought we were talking about beating some little kids or something... 😅3
-
If you had
one language
One framework
To code everything you want
Would you learn it or let it pass
His code is heavy,
arms are weak,
mind is bending.
It's all spaghetti.
He is nervous but looks calm and ready
to go now
but he keeps on forgetting
what he wrote down.
The manager is getting loud
He moves his mouse but the bugs won't got out
They are features now
Time to ship
Over blaow!18 -
Why in the flying motherfuck can't people remember the fact that other people might have to read their code?! If you're not gonna name things properly, and mess everything up with utterly useless and garbage comments (all comments are useless and garbage), then the least you can do is fucking format and indent it properly!! GAWD FAKKIN' DAMNIT!!4
-
If you need to learn/teach object orientation, these are my approaches (I hate that classic "car" example):
1) Keep in mind games like Warcraft, Starcraft, Civilization, Age of Empires (yes, I am old school). They are a good example of having classes to use, instantiating objects (creatures) and putting them to work together. As in a real system.
2) Think of your program as an office that has a job to do, or a factory that has something to deliver. Classes are the roles/jobs and objects are the workers/employees. They don't need to be complex, but their purpose must be really (really, really) well defined. Just like in a real office / factory.
3) Even better (or crazier), see your classes and objects as real beings, digital creatures in a abstract world, and yourself as a kind of god, who creates species (define classes) with wisdom. Give life when it is the time for them to come into the world (instantiate object) and kill them when they are done with their mission (dispose an object). Give them behavior, logic, conditions to work with, situations where they take action, and when they don't. Make them kinda "smart". Build them able to make decisions and take actions based on conditions. Give them life. Think on your program as an ecossystem. There must be balance, connection, species must be well defined and creatures must work together to achieve a common objective. Don't just throw code and pray for it to run. Plan it.
-----
When I talk about my classes like they are real beings, and programs as mini-worlds, some people say I am crazy, some others say that's passion.
It is both! @__@3 -
Hey everyone - please help get devRant on stage at the TNW Momentum Conference that we will have a booth at!
We need your votes which you can place here: http://thenextweb.com/scale/vote/...
If you're going to be at the conference, please stop by as we'd like to meet any devRant community members that are there :)
Thank you and please let me know if you have any questions. We appreciate the help!
Edit: if you want to track our competition/where we stand, the leaderboard is here: http://thenextweb.com/scale/vote91