Readit News logoReadit News
ryeats commented on Cognitive load is what matters   github.com/zakirullin/cog... · Posted by u/nromiun
pkolaczk · a day ago
An obvious example of that is defining named constants and referring them by name instead of repeating the same value in N places. This is also DRY and good kind of DRY.
ryeats · 20 hours ago
This is actually a particular pet pieve of mine because I worked with the Camel framework which has a lot of boilerplate in strings but if you start using constants for the common parts you now have an unreadable mess of constants concatenated together that buys you nothing.
ryeats commented on Cognitive load is what matters   github.com/zakirullin/cog... · Posted by u/nromiun
zahlman · a day ago
DRY isn't about not reimplementing things; it's about not literally copying and pasting code. Which I have seen all the time, and which some might find easier now but will definitely make the system harder to change (correctly) at some point later on.
ryeats · a day ago
This is a trap junior devs fall into DRY isn't free it can be premature optimization since in order to avoid copying code you often add both an abstraction AND couple components together that are logically separate. The issues are at some point they may have slightly different requirements and if done repeatedly you can get to a point that you have all these small layers of abstraction that are cross cutting concerns and making changes have a bigger blast radius than you can intuit easily.
ryeats commented on The Deletion of Docker.io/Bitnami   community.broadcom.com/ta... · Posted by u/zdkaster
wilonth · 4 days ago
I never understood the point of Bitnami. Every time I tried one of their image / package, it's a complicated mess full of custom and strange stuff, really hard to work with.

Instead of a simple package of the software based on some familiar base, you get some weird enterprise garbage that follows strange conventions and a nightmare when you need to customize anything.

ryeats · 4 days ago
What are some resources for these conventions? As far as I can tell everyone else rolls their own bespoke images based off of of a projects image in order to customize the configuration.
ryeats commented on A visual introduction to big O notation   samwho.dev/big-o/... · Posted by u/samwho
ryeats · 6 days ago
O(1) in many cases involves a hashing function which is a non-trivial but constant cost. For smaller values of N it can be outperformed in terms of wall clock time by n^2 worst case algorithms.
ryeats commented on Exile Economics: If Globalisation Fails   lrb.co.uk/the-paper/v47/n... · Posted by u/mitchbob
ryeats · 19 days ago
Would be more interesting if someone came at this debate from a game theory perspective with bad actors ignoring IP laws, manipulating currency values and implementing tariffs through policies that aren't directly taxing products but restricting who can play in markets. Yes tariffs are bad in a vacuum and I am not saying this article is false even when it's strawmanning some arguments to make it's case but it's seems a bit one sided and possibly nieve without including the context in which these policies are being made so I still remain on the fence as to whether tariffs can be used as leverage.
ryeats commented on Compression culture is making you stupid and uninteresting   maalvika.substack.com/p/c... · Posted by u/kjhughes
mathiaspoint · a month ago
I disagree. Most articles on the web are very shallow and kind of tend to terminate searches for more knowledge while LLMs are fantastic at pointing you to more nuance on subjects you're unfamiliar with if you know how to ask them.
ryeats · a month ago
However since it doesn't actually reason you have to be familiar enough with the subject that you can tell when it is and isn't hallucinating since it's extrapolating from those same shallow articles.
ryeats commented on I avoid using LLMs as a publisher and writer   lifehacky.net/prompt-0b95... · Posted by u/tombarys
billy99k · a month ago
You can think that..and you will eventually be left behind. AI is not going anywhere and can be used as a performance booster. Eventually, it will be a requirement for most tech-based jobs.
ryeats · a month ago
I was being a bit melodramatic, I'll use it occasionally and If AI gets better it can join my team again I don't love writing boilerplate I just know it's not good at writing maintainable code yet.
ryeats commented on I avoid using LLMs as a publisher and writer   lifehacky.net/prompt-0b95... · Posted by u/tombarys
threatripper · a month ago
I see. In my experience current LLMs are great for generating boilerplate code for basic UIs but fail at polishing UI and business logic. If it's important you need to rewrite the core logic completely because they may introduce subtle bugs due to misunderstandings or sloppiness.
ryeats · a month ago
Yep you are also right, some amount of boilerplate code is perfectly reasonable since some problems are similar but just different enough and unique enough they don't merit designing an architecture that gets rid of the boilerplate. this is probably the most useful thing that AI could do for us. I think I am more worried as a maintainer that we won't see that we are copying all that boilerplate too often and it's subtle bugs are multiplied and now we have to maintain all that code because AI doesn't yet do that.
ryeats commented on I avoid using LLMs as a publisher and writer   lifehacky.net/prompt-0b95... · Posted by u/tombarys
threatripper · a month ago
You sound bitter. Did you try using more AI for the bug fixing? It gets better and better.
ryeats · a month ago
My interest tend to be bleeding edge where there is little training data. I do use AI to rubber duck but can rarely use it's output directly.
ryeats commented on I avoid using LLMs as a publisher and writer   lifehacky.net/prompt-0b95... · Posted by u/tombarys
moregrist · a month ago
Have you looked for:

- Writing groups. They often have sessions that provide feedback and also help writers find/build a sense of community. Your son would also get to listen to other writers talk about their work, problems they’ve run into and overcome, and other aspects of their craft.

- School (sometimes library) writing workshops. This helps students develop bonds with their peers and helps both students: the ones giving feedback are learning to be better editors.

Both of these offer a lot of value in terms of community building and also getting feedback from people vested in the the craft of writing.

ryeats · a month ago
The open question is will someone who learns this way actually develope taste and mastery. I think the answer is mixed because some will use it as a crutch but it will also be able to give them a little bit of insight beyond what they could learn by reading and inquisitive minds will be able to grow discerning.

u/ryeats

KarmaCake day89May 7, 2025View Original