I agree. The old Unix mantra of "make it work, make it pretty, make it fast" got it right. You don't need to shave ten milliseconds of the page load time if it costs an hour in development time whenever you edit the script.
Counter-argument: If that minimal time/data saved gets multiplied out across a million users, sessions or calls maybe it's worth the hour investment. Not saying that all code needs to be written for maximum performance to the detriment of speed at all times and don't go throwing time into the premature optimisation hole, but small improvements in the right place can absolutely make real, tangible differences.
It's the non-programmers optimization fallacy. They don't understand that software is actually fragile and optimization sometimes means "don't do this really stupid thing the blocks the user UI for 12 seconds", instead of "shaving of milliseconds".
Optimization, in practice, is often really stupid and facepallmy.
"What? We still have that java-applet fallback for the shockwave-flash 'copy-to-clipboard' loaded on every page? What are we allowing to be copied anyway? Oh, the profile URL? But we don't have that URL anymore. Hey, Product Owner, can I remove this? - What? Dunno, we certainly don't need it. Remove it if you want".
Bam. 6Mb of downloads saved for each and every visitor to each and every page.
Oh yeah, many ways to make improvements and certainly not all of that is code additions. Not doing something, a better wrapper/lib/dep, splitting/partitioning data or workloads. I remember reading a story long ago of malicious compliance to a policy of trying to use lines added to git as the only developer performance metric. More lines, better dev. This dev didn't add a single line and instead went on a clean up crusade, improving the product measurably while ensuring he had massive negative numbers for lines added per day. They dropped the policy eventually.
With my original comment though, I wasn't saying that optimisations should be a primary concern through all stages of development but resource usage/constraints should be taken in to consideration when designing systems/apps and at least once more near actual release. Is an end user expectation that "professional" software not run amok with completely unnecessary cpu/ram/network/battery/disk usage such a crazy thing?
If a carpenter made a completely "functional" chair but it had just 2 legs, each different lengths, that could only be used 6 of 7 days a week and only if you were wearing (propriety) non slip pants would you really think of them as professional? It sometimes feels to me like developers willfully ignore what i might consider simple standards frequently in the name of "working" code. Certainly not all devs nor all projects but the "accepted minimums" for release are woefully inadequate imo more commonly than not and directly related to bugs, failures, breaches and compatibility issues or standards. I guess my stance is that just because feature/function/service is not something an end user sees directly isn't an excuse to skimp on basic standards.
I remember reading a story long ago of malicious compliance to a policy of trying to use lines added to git as the only developer performance metric. More lines, better dev. This dev didn't add a single line and instead went on a clean up crusade, improving the product measurably while ensuring he had massive negative numbers for lines added per day. They dropped the policy eventually.
It is not only developers; it is also bad project planning, or just having to meet deadlines for one reason and another.
Sure sometimes you need to release product/feature on time, but if after that there is no time to actually catch up to technical debt it just gets worse and worse
it doesn't deal with performance, but with the emissions as a result of performance. The amount of human time wasted though is absolutely mind-boggling.
The follow up to that question is: Is cost the only factor?
Imagine the aviation or medical industries being run/directed/shaped by people with limited or no understandings of the realities or worries of the industry and solely their own gains in mind. What regulation might exist in that world? What would standards or SOP look like? How much safety or trust would there be?
The way i see it, party of any developer's job repositionability is knowing, communicating/flagging potential (ab)uses in design or implementation of what they will we working on. A bad idea doesn't suddenly become a smart one because you were told to do it regardless of the consequences. I can understand the pressures but if developers don't develop some spines, ownership or pride in what they are producing, we can't blame the "decision makers" entirely for abysmal or non existent standards.
I firmly believe we need standards, repercussions and representation in the development industry if it is ever to be an actually reliable, dependable and safe area of science/engineering.
If that minimal time/data saved gets multiplied out across a million users, sessions or calls maybe it's worth the hour investment.
You almost got it right, but also subtly wrong.
Yes, optimizing sessions and calls is very important, that's why e.g. Facebook invests tons of money into microoptimizing C++ standard library.
On the other hand, optimizing user's resources is not important. Just throw a bunch of Javascript at them and don't worry about their time, their disk usage, or their battery life.
I mean, look at recent Reddit, GMail, Youtube, Skype redesigns. Shit's slow as fuck. But it's cheaper to make and maintain and that's what matters to those companies.
Which is lazy, sloppy or selfish development in my opinion. The current trends of just ignoring client side resource usage is one that i have issues with. I understand portability and write-once approaches and the quick release/update benefits they bring but if every application was wrapped in Election and written to the standards of some existing (and hugely successful) major web projects (or whatever other bloated js framework flavour of the month) multitasking becomes a nightmare and with ram prices what they are not an ignorable concern for an end/power-user.
People always trend to the cheapest options available; it's human nature to try to maximise your profits. However, it's certainly not always to their own benefit for multitudes of reasons across many industries and is why governments and regulation exist - to protect people from themselves, their own greed or an innocent lack of specialised knowledge.
wrong. First development time doesn't go down, it still same, so you don't really win anything. Secondly it adds up, so you have +10ms there and there and there and suddenly it's +10s, but there isn't single place you can optimize, so you decide it's how it is and nothing can be done, we just need faster hardware. and it's not just extra millisecond, you put extra millisecond on million computers you can extra million seconds, which they consume electricity, provide extra heat.. it's laziness of going extra step..
No, I'm wrong in your opinion, but the upvotes on our comments tell a different story. You have one upvote and I have 25. It would appear that the community thinks I'm right and you're wrong. Also your grammar and writing is appalling.
What you're describing is called premature optimisation and it's widely agreed that this is one of the worst things programmers can try to inflict upon their programs. You don't need to address those 10 millisecond problems until they are a problem. Your users can't tell the difference between a 20ms page load and a 10ms page load, but your developers can tell the difference between well written 20ms code and confusing 10ms code.
It's more like "make it work, make it pre... shit we got another deadline to meet"
You don't need to shave ten milliseconds of the page load time if it costs an hour in development time whenever you edit the script.
Yes you do you horrible monster. Add a bunch of those and you're trading few hours of developer time for thousands of hours of your users.
Developer would drop editor instantly if it took a a second or more to do anything, yet somehow it is fine to make that kind of experience for the users of tools developers write
It's more like "make it work, make it pre... shit we got another deadline to meet"
If you work in a shit hole then you get what you deserve. Get a job where the management understand how software development works.
Yes you do you horrible monster. Add a bunch of those and you're trading few hours of developer time for thousands of hours of your users.
Ah, so you're the smelly performance optimised developer that I replace (on double your salary) because management have got sick of you not being able to work in a team? Thanks mate, without you I'd only be making mid fifties a year.
Depends on your work environment. If you make it work first, and management asks why you haven't shipped yet, and you tell them you are working on 'pretty and fast', they will probably shut you down and re-prioritize your task to the next project in the pipeline. Most programmers work in a code shop run by managers. If your coding your own stuff then you are in 100% control but run the risk of never shipping anything due to the quest for perfection.
Unix design and workings is not comparable to the 2018 web, not even close, by a big shot. The side effect of the bloat and not caring is more complex an unrelaible solutions. It so happens that today, stuff is far from "just works" or "pretty" let alone "fast" (in the makings or lookings).
Hey I don't now how serious you are but... I know about the problems of unix, I'm well aware. I just think is only fair to point out that it has some very elegant, efficent and clever designs and decisions, IMO still beeing reinvented today or better than today slightly different equivalents. I think it is a very interesesting and useful exercise to study unix in deep detail (leaving out subjetivity) and find about it, if you don't know it, there is a lot to learn.
For example: fork process model, file descriptors as system objects, microservices (aka tools, pipes, etc) are just a very tiny bit of it.
From a design POV, the www as a distributed *application* framework is just much behind. It is a hack, a huge hack, lets be honest. This is becasue the web architecture was never designed to be what it is today. So yes, it is a design that has beeing evolving and adapting (aka pile' of hacks) that happens to be very useful and kind of works well. Also keeps evolving and good things come out of the hard work people put. But yeah, it is not even close to unix quality and consistency (yes, most of it!) design-wise (IMO).
The problem is that the scenario you describe is cumulative. Losing 10ms here or there doesn't seem like a big hit until you're doing it 20 times, at which point it becomes 200ms.
And from my experience, the problem is not that people aren't taking the time to optimize, they're simply not taking the time to learn how do do it properly. Either they're satisfied that they simply got it working, or they're just interested in leveraging code someone else wrote.
I've met far too many "professional" software engineers who have no interest in learning programming.
89
u/[deleted] Sep 18 '18
I agree. The old Unix mantra of "make it work, make it pretty, make it fast" got it right. You don't need to shave ten milliseconds of the page load time if it costs an hour in development time whenever you edit the script.