News for hackers. Stuff that matters.
Re:Write Libraries, Not Frameworks by thomk on Friday May 08, 2020 @11:22PM (#23121975)
Stuff like that always makes me feel like someone has turned off their logical reasoning and they are just basically creating code that fills in some personal mental gap that somehow 'completes the set' of the things they are working on at the moment.
Re:Write Libraries, Not Frameworks by smitty1e on Friday May 08, 2020 @11:33PM (#23122051)
I always figured that Java folks were

- paid per class

- sought to reduce the number of executable lines per class to 1.

Re:Write Libraries, Not Frameworks by overgard on Saturday May 09, 2020 @10:49AM (#23125126)
I actually knew a guy that argued that one method per class is ideal. He never quite got that at that point you're really just writing a function with a manual closure (the constructor).
Re:Write Libraries, Not Frameworks by UK-Al05 on Saturday May 09, 2020 @05:30AM (#23123302)
Tbh that was Alan Kay's vision of object oriented programming. Lots of tiny objects collaborating via messages.
Re:Write Libraries, Not Frameworks by goatlover on Sunday May 10, 2020 @02:21AM (#23130681)
Was it tiny objects or tiny messages, or both? And I wonder how much of the Smalltalk system was made that way. I think at some point your class needs to handle some complexity that isn't easily broken into smaller classes.
Re:Write Libraries, Not Frameworks by AmericanChopper on Saturday May 09, 2020 @12:20AM (#23122285)
But that’s just OOP in general. You can choose a language that defaults to not using OOP-style abstractions, but then people will question why you choose python/node/ruby over a proper language like Go (or whatever else)
Re:Write Libraries, Not Frameworks by oreally on Saturday May 09, 2020 @04:25AM (#23123095)
> But that’s just OOP in general.

Nope, that's OOP taken to extremes rather. Java does that with enforcing things to be classes.

Re:Write Libraries, Not Frameworks by AmericanChopper on Saturday May 09, 2020 @05:14AM (#23123252)
The OOP paradigm itself requires rather heavy use of abstraction. You can deviate from those patterns to an extent, you can add more polymorphism if you want to, you can be selective in using some design patterns like DTOs. But most of the complaints I hear about Java would apply equally to most of the C# projects I’ve worked on, because those are just the annoying bits of OOP. I’d agree the Java is a bit more inflexible, but it’s not like the other OOP languages aren’t also full of boilerplate and layer upon layer of abstractions.
Re:Write Libraries, Not Frameworks by mewpmewp2 on Saturday May 09, 2020 @01:58AM (#23122643)
I will be honest and tell them it is because these are more productive and I enjoy being productive
Re:Write Libraries, Not Frameworks by AmericanChopper on Saturday May 09, 2020 @02:08AM (#23122672)
How productive you are with any particular tool really depends on what you’re trying to do with it.
Re:Write Libraries, Not Frameworks by danielscrubs on Saturday May 09, 2020 @02:13AM (#23122693)
Exactly! Almost nothing in the naming based on something with a very precise definition.

It's the unruly mind coming up with generalised words.