5 ms·
Not to be rude or anything but if you continue down this road productivity might be the only thing going for you and you'll soon realise you are the only one wh
by kovac 7y ago
Not to be rude or anything but if you continue down this road productivity might be the only thing going for you and you'll soon realise you are the only one who can work with your code.
Substitute software engineering with any other engineering descipline with "I stopped worrying about best practices" and you will be able to see what's wrong with your approach. But then again, if it's php, your domain doesn't require too much care.
- readme 7y agoExactly. I had coworkers like this, and their code was impossible to understand. To make a simple change to it, it would require days of refactoring just to know you weren't going to introduce a bug. It's not being more productive, it just seems that you're getting things done faster because you're taking out a loan on the quality of your software (i.e. technical debt) with every line you write.
- gonzo41 7y agoHow old is the software and what's the change that needed. If the software is past it's ROI and changes are happening due to scope creep then days of refactoring isn't refactoring it's just days of dev work against new requirements. It's just happening on an old product. Management may be willing to spend that time and not be unhappy with what you perceive as time wasted because they have seen greater than expected ROI on the product already so it's not a loss to them.
- bcrosby95 7y agoI've ran into these problems with software that wasn't even released yet. Some of these practices will likely bite you in the ass in months or even weeks, not years.
- fiddlerwoaroof 7y agoThey generally get the next person to work in the code without understanding what was going through your head: and 90% of the time, that’s you, three days from now.
- kovac 7y ago"It's not being more productive, it just seems that you're getting things done faster because you're taking out a loan on the quality of your software (i.e. technical debt) with every line you write." This. When someone does this in a hurry or because they didn't know better, it's understandable. But when someone thinks that this style of working is superior, that's a huge problem.
- Drakar1903 7y agoPaying down tech debt is like brushing your teeth, if you don't do it regularly, you'll end up with more pain and a higher bill at the end.
- abiogenesis 7y agoAlthough I agree in general, a 10 line for loop is usually more readable than a clever one liner.
- collyw 7y agoSure but 10 lines is often more places for bugs to hide.
- gryz 7y agoIf it is decomposed one-liner -- then likely not often
- yakshaving_jgt 7y agoWhat about a dumb one liner? Or, you know, using HOFs.
- CraneWorm 7y agoI agree with your point but I find the dig at programming in PHP devaluating it.
- kovac 7y agoI apologise for that. Actually that wasn't my intention. I meant to type "May be it doesn't require too much care" but I was typing on a mobile and I missed it. I do not look down on any programming language. What I meant there was that php is often used for Web applications. Not server side performant critical or security critical components or systems programming. There's also a practical reality that some kind of coding doesn't require too much regulation on how we need to write code. I realised that bit came out wrong but I couldn't edit it.
- LandR 7y agoI like Joe Armstrongs 7 deadly sins. 1. Code you wrote you cannot understand a week later - no comments. 2. Code with no specifications. 3. Code that is shipped as soon as it runs and before it's beautiful. 4. Code with added features. 5. Code that is very very very fast and very obscure. 6. Code that is not beautiful. 7. Code you wrote without understanding the problem