Recent comments in /f/InternetIsBeautiful
jobe_br t1_ir5slha wrote
Reply to comment by trekhleb in Interactive sketches to illustrate SOLID programming principles by trekhleb
You’re going to have a strained analogy either way, but you might be able to come up with something that is more person centric. Your analogy focuses on the functionality of the spoon, fork, and spork, not the person’s needs - I could argue that a single person’s concerns are encapsulated by the spork, and as such it doesn’t need to be split up. Realistically, the existence of the spork gives credence to this - it wouldn’t exist if a separate spoon and fork were superior for all user needs.
Definitely change the text, though, either way.
TheGerk t1_ir5sa78 wrote
Reply to comment by RockstarArtisan in Interactive sketches to illustrate SOLID programming principles by trekhleb
Yeah. Maybe I just have a bone to pick, but I've always thought solid was pretty awful programming. There's some good ideas in there, but largely I've seen this make code bases worse.
Ok-Butterscotch-6829 t1_ir5rulv wrote
Reply to comment by RockstarArtisan in Interactive sketches to illustrate SOLID programming principles by trekhleb
Good to know thanks
jobe_br t1_ir5rts1 wrote
Reply to comment by daedalus91 in Interactive sketches to illustrate SOLID programming principles by trekhleb
The analogy is gonna be strained, but the real problem is the way SRP is stated as “only one potential change in the software’s specification” - this is not person centric. The way OP started this is more the way SRP was initially misinterpreted as a module should do one thing and only one thing. That’s actually more the Unix cli philosophy of “do one thing and one thing well” — but it’s not SRP.
Internally, we don’t try to pre-determine if a module follows SRP, we use actual changes being made to the system to identify modules that are changing as a result of different actors/people. We then refactor a module to split it so that it once again is aligned to one axis of change.
RockstarArtisan t1_ir5q7om wrote
Reply to comment by Ok-Butterscotch-6829 in Interactive sketches to illustrate SOLID programming principles by trekhleb
Well, it is widely known and established, but many people disagree about being good. Some of the advice is applicable in the context of a framework, but the author insists it should be used everywhere which results in bloated designs that people hate. The popularity of this in the Java community is mostly what's responsible for all the hate Java gets online - bloat, overabstraction, complicated designs exemplified by the most SOLID frameworks of them all - Spring - with it's AbstractSingletonProxyFactoryBean https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/aop/framework/AbstractSingletonProxyFactoryBean.html
earrgames t1_ir5pmor wrote
Good old tracker modules does ir for me, seamless loop by default in most tracks, and unlimited supply at modarchive.org. The downside of online streaming is being one click away from distractions. No internet is the best way to focus.
[deleted] t1_ir5msmj wrote
[deleted]
klesus t1_ir5kc37 wrote
Reply to comment by jobe_br in Interactive sketches to illustrate SOLID programming principles by trekhleb
So if there's more than one reason to change a module then you shouldn't change it?
TheOneTrueZippy8 t1_ir5k7d2 wrote
I will have an (extended) listen. This might make a change from just putting an Eno playlist on shuffle.
Smiffsten t1_ir5ivr5 wrote
Reply to comment by jobe_br in Interactive sketches to illustrate SOLID programming principles by trekhleb
Is it? What is your take on it?
AndrewZabar t1_ir5f0q6 wrote
Reply to comment by P12oooF in Interactive sketches to illustrate SOLID programming principles by trekhleb
Hisssssssssss! You work for Black Mesa!
AndrewZabar t1_ir5em70 wrote
Reply to comment by rainindrain in Interactive sketches to illustrate SOLID programming principles by trekhleb
They finally did it. The sons of bitches.
TheBeardofGilgamesh t1_ir5c9yr wrote
Reply to comment by Rwagstaff84 in Interactive sketches to illustrate SOLID programming principles by trekhleb
Worst code based I have ever encountered where people with a Clean Code book on their desks. Uncle Bob has no real experience in software development he just does the conference circuit and gives lectures.
Ok-Butterscotch-6829 t1_ir5c4cc wrote
Reply to comment by RockstarArtisan in Interactive sketches to illustrate SOLID programming principles by trekhleb
Why was it downvoted there? I thought SOLID was accepted as good practice in OOP?
TheBeardofGilgamesh t1_ir5bvia wrote
Reply to comment by jobe_br in Interactive sketches to illustrate SOLID programming principles by trekhleb
Ah yes uncle Bob a guy who has not done any software development in decades is the perfect person to listen to.
i_got_skrimps t1_ir5axyw wrote
Reply to comment by trekhleb in Interactive sketches to illustrate SOLID programming principles by trekhleb
I like it. I think people are getting hung up on interpretation and semantics here. It's a great site.
rainindrain t1_ir59748 wrote
Reply to comment by itjy in Interactive sketches to illustrate SOLID programming principles by trekhleb
Clickable links are already here!? I must be living in the past.
ImDrewpy OP t1_ir58ux4 wrote
Hey Reddit,
I made this site, Flowful, which generates ambient music for you in your browser.
I've recently been working on a bunch of new features & tracks so figured I would share it with Reddit now that school and university have started another year.
This is something I wish I'd had when I was a student (and even now that I'm a software engineer), so hopefully you find it useful! :)
Cheers,
Drew
Lma_Roe t1_ir58ost wrote
Reply to comment by pblokhout in An anonymous polling site for sensitive topics, with live stats and a heatmap (NEW: add your own questions!) by bowelcrusher
Lmao no
RockstarArtisan t1_ir57u2i wrote
Reply to comment by Ok-Butterscotch-6829 in Interactive sketches to illustrate SOLID programming principles by trekhleb
There're reasons why this got upvoted in a nonprogramming subreddit and downvoted in r/programming :P
Ok-Butterscotch-6829 t1_ir57i4x wrote
Reply to comment by [deleted] in Interactive sketches to illustrate SOLID programming principles by trekhleb
It’s probably your phone/wifi/data because it’s running fine for me
Ok-Butterscotch-6829 t1_ir572rd wrote
Reply to comment by MikeCampo in Interactive sketches to illustrate SOLID programming principles by trekhleb
How so? Seems like it makes sense to me.
Ok-Butterscotch-6829 t1_ir56t5n wrote
This is actually really helpful. I’m starting to interview again and want to be able to intelligently answer using SOLID principles.
RockstarArtisan t1_ir53gm6 wrote
Reply to comment by Cogadh in Interactive sketches to illustrate SOLID programming principles by trekhleb
No, there's just no insight in the principle whatshowever (see my other comment in this thread). This is engineering, not bible studies, if you need to repeat the wording exactly for it to sound convincing, there's probably an issue with the advice.
jobe_br t1_ir5ssti wrote
Reply to comment by TheBeardofGilgamesh in Interactive sketches to illustrate SOLID programming principles by trekhleb
I’m not gonna defend Uncle Bob, but I’d advise against attacking his technical mettle, personally.