r/programming • u/fagnerbrack • Nov 18 '18
Many software communities do not value the need to reduce the mental load for developers
https://dev.to/ben/many-software-communities-do-not-value-the-need-to-reduce-the-mental-load-for-developers-dcj50
u/iceixia Nov 18 '18
Can we ban this bloody site already? All it is is low quality drivel.
13
u/more_oil Nov 18 '18
There's a higher than 90% chance that any given dev.to submission is content-free promotion/"SEO" for the writers' companies or their own brand as developers.
46
u/icantthinkofone Nov 18 '18 edited Nov 18 '18
dev.to is the home of frustrated redditors who want to stand out from the crowd. Do NOT reference anything from there. It makes you look bad.
EDIT: Yep. And it's just a link to a YouTube. It would have been more valuable to link directly to YouTube.
4
20
u/a_marklar Nov 18 '18
It's not like 'reducing the mental load' is a straightforward win, it's a tradeoff. It makes the easy/common things easier, but the less common become harder. For something like Rails that is absolutely the right choice since Rails sites are more alike than different. For other tech it's absolutely the wrong choice.
1
u/CountOfMonteCarlo Nov 18 '18
I'd rather like to use a larger screen. I have a nice Philips 40' screen at home and I cringe every time I think how much money it is costing the organization I work at to use those old 27 inch screens. Everything which isn't on the screen must be remembered. Everything that must be remembered needs to trickle into long-term memory first, and even for a small 20,000 line project, that does cost an enormous amount of time, especially if one is switching tasks.
1
u/pirate694 Nov 18 '18
Ask for another screen?
1
u/CountOfMonteCarlo Nov 18 '18
Sigh.
But, I see my answer above is out of place, I was still thinking in the IDE / debugger thing. In respect to the efforts of the Ruby community to make the language friendlier and easy to use, I totally agree. Ruby is a friendly community and this is a result of attitude and, I think, also friendly and competent leadership. And, I am very much in favour of choosing the best tools for each job - and letting developers decide themselves what they are going to use.
16
u/hu6Bi5To Nov 18 '18
Yes, this is true, and some are worse than others.
Rails isn't perfect, and the wider Ruby community is worse, but Rails was revolutionary (when it was new) because of it's "convention over configuration" which definitely helps as it means there's a common reference of how Rails apps should be organised. Of course, many years later, when an ancient app has been half-upgraded, all that benefit is long gone, but still, it's a good place to start. A newbie developer can be productive in Rails in an amazingly short period of time. Nothing that's come through since is anywhere near as fast, it takes even experienced developers longer than that to just setup webpack, for instance.
The opposite example would be something like Clojure, where there's a widespread perverse sense of pride in creating minimalistic but incomprehensible libraries[1] which a newcomer would only understand by going back to day one and reading every commit to see how it's been put together. Many JavaScript projects the same. They fail at abstracting because they see abstraction as a sin, the user is expected to understand the constant changing internals to get the most out of it.
I think it's inevitable that this happens. Abstraction is a dirty word to many developers, so they avoid it. And the reason they're sceptical about it is that a bad-abstraction is worse than no-abstraction. Yet, ironically, the people who denounce abstractions the most are those developers who work on the most abstract systems, like Clojure or JavaScript. (Well, JavaScript isn't that abstract in itself, but React is; React is a very good example of how to do abstractions well, the end-developer only has to think about components, and have an awareness of the implementation, they don't need any understanding of how it's actually implemented to get things done.) It's like learned helplessness.
[1] - it's simple, it's just an map, everything's just data, there's no types, that's what makes it simple! All you need to know is to specify the :content-type-negotiation flag to true, but only when the :override-default-fn is set to a closure that matches the mylibrary.beta.composition.utils/default2-2018 function!
8
u/gered Nov 18 '18
The "everything is just a map" thing with the Clojure world, and how it tends to spiral out into (somewhat) incomprehensible application architecture being strung together by many different libraries bothers me more and more as the years go by (I've been working primarily with Clojure for about 5-6 years now). I initially found it quite freeing and was excited by it. Experience, however, has turned my opinion on it completely around.
Of course when you try to point out that abstraction is not a bad thing, many Clojure developers (including one or two whom I work with) point to late-90's/early-2000's style Java OOP hell as if that's the only alternative. Clearly yes, that's the only alternative. There could not possibly be some kind of middle-ground. No siree! </sarcasm>
These types of developers are usually (in my experience) the same types of developers who just dive into code and start banging it out without planning anything out (or barely anything...) in advance, but then hilariously, 6-12+ months later don't seem to realize that they've written a big ball of mud. And hey, look, Clojure/whatever-other-new-fangled-hype-FOTM-language didn't save you from doing that... nor did simply splitting up your code into many different libraries. You actually have to think and plan upfront, and be disciplined in your approach to writing new code in order to achieve a clean architecture. Who would've thought ....
I'm picking on Clojure a lot in my post (because it's the most recent experience I have to draw from), but certainly it's not the only language that suffers from this problem. I don't think either that the fault is purely the languages themselves, but is absolutely shared with the developers.
The problem I think, when using these languages, is one of discipline. I've come to realize over the past several years that languages like Clojure, Javascript, and Ruby really have an almost exponentially proportional relationship between size of the project and developer discipline. These languages are initially exciting because once you learn the basics you can accomplish a lot with little code (especially the case with Clojure), but this is also the trap unfortunately.
9
u/earthboundkid Nov 18 '18
The thing that always strikes me when I setup Webpack is that my needs aren’t interesting or unique but I still need a half dozen installs to express them. They’re so obsessed with making small tools that they don’t make useful ones.
6
Nov 18 '18
a bad-abstraction is worse than no-abstraction
In my main hobby chess, and this comes from a military context, the saying is the other way around: a bad plan is better than no plan at all. I think it depends on how bad the abstraction is.
16
4
Nov 18 '18
Abstractions aren't plans. "No abstraction" means having multiple, slightly different plans. "Bad abstraction" is usually the result of trying to hide that you don't have a plan for as long as possible.
3
1
0
u/exorxor Nov 18 '18
Ruby and Rails have always been complete shit. It's just that the people who think it's not endured greater shit.
1
u/longoverdue Nov 18 '18
Many X do not value the need to reduce the Y load for Z. It’s called “work.”
3
1
u/GrinningPariah Nov 18 '18
The hardest thing to teach new devs is that just because you can get slightly better performance by mangling the shit out of the code doesn't mean you should.
Everything we do has network calls, calls to the DB, calls to other services. So if we burn a few processor cycles in the name of readability, that's okay.
4
Nov 19 '18
Everything we do has network calls, calls to the DB, calls to other services.
Speak for yourself. In quite a few domains this is not even remotely true.
0
u/shevegen Nov 18 '18
While I agree that reducing the mental load is useful and important, I disagree to this:
Rails does not get everything right (nobody does), but I think they get this right big time.
I actually think that Rails does not understand ruby. The rails code that I usually see is just awful. Partially because the people who write it do not really know ruby; but also partially because the idioms that are rampant in rails are so ... rails specific.
It may well be that this is super-useful to the rails folks who use rails, but I find that rails makes things more complicated than it ought to be. The whole www stack is like that - things are so split up and disparate, orthogonal and often quite ugly or abysmal (in particular when it comes to JavaScript).
I find that the JavaScript community proliferates new "useful" technology without giving as much thought to the mental overhead
Yes, JavaScript is awful, but let's also remember that many rails changes originate from JavaScript simply because of how important JS is. I find that awful too - I don't want and don't let my ruby code be tainted by abysmal JS; though I also use jquery for www-related code that I use in ruby (not rails though).
It is not a good situation since JS can beat other languages out of the room. That is NOT good. JS in this way replaces the need for alternatives, and rails suffers from this too, as does PHP and others, if you look how JS grew.
Rails has a pretty healthy BDFL model which has created some structure that other communities may lack
I do not have anything against DHH, but I am sorry - I stick to matz as BDFL in ruby and simply ignore everyone else. And that has served me very well for almost 20 years (ok ok ... 15 years), in regards to ruby.
I also don't think that I am the only one among the ruby community that feels that rails is more alien code than it is ruby code.
often fails to benefit quickly from the latest and greatest tools or architecture principles.
That has NOTHING at all to do with any BDFL or not. That has simply to do a lot with inertia; and also how awful a given language is. When change takes a lot of effort then evidently you will see little to no real change. Or you may simply lack the manpower - look at perl5 versus perl6 and tell me that this situation is healthy.
I would say this is the quality that most keeps me excited about the stack I continue to do most of my work with.
Rails excites anyone? Still? :)
I think ruby is great but rails ... it does not directly affect me whether it exists or not. That is not to say I have anything as such against rails - but I don't have invested much energy into rails or depend on it. So it's more like a "cool that it exists but I can avoid it without a problem". Avoiding JS on the other hand is harder, since I would lose certain functionality.
I try not to be too much of a fanboy of the tech itself or the people involved
I am a fan - of ruby.
I do not feel that there is anything wrong with that. If I would not care about the language I could use PHP. Or Perl. Or JavaScript. Or lots of languages that aren't a lot of fun - the grunt languages.
3
Nov 18 '18
[removed] — view removed comment
2
u/luckystarr Nov 19 '18
TIL "pit of success". This is such a brilliant metaphor. Did this work out as intended over time?
1
Nov 19 '18
[removed] — view removed comment
1
u/luckystarr Nov 19 '18
Thanks for the tip with the FDG. Will read this. As someone from the Python camp it's great to learn and get inspirations from the successes of other languages.
125
u/[deleted] Nov 18 '18
How is up-voted 50+ times, there's literally almost nothing to it.