Readit News logoReadit News
nycdotnet commented on Why is everything so scalable?   stavros.io/posts/why-is-e... · Posted by u/kunley
_ZeD_ · 2 months ago
Honestly, in my experience, the only good reason to have microservices in a "software solution" is to be able to match 1 service -> 1 mantainer/team and have a big (read "nested", with multiple level of middle-managers) group of teams, each that may have different goals. In this way it's very easy to "map" a manager/team to a "place" in the solution map, with very explicit and documented interactions between them
nycdotnet · 2 months ago
This is Conway’s Law: You ship your org chart.
nycdotnet commented on Evolving the Multi-User Spaceport   spacex.com/updates#multiu... · Posted by u/thsName
philipallstar · 3 months ago
The shuttle's rockets were not reusable.
nycdotnet · 3 months ago
The shuttle’s solid rocket boosters splashed down in the ocean via parachute, and were recovered and reused. The main engines and thrusters/rcs were also reused. Only the external tank was disposed. The issue with the shuttle (among many) was that the reuse was not actually economical due to the maintenance required between each launch.
nycdotnet commented on Cognitive load is what matters   github.com/zakirullin/cog... · Posted by u/nromiun
srcreigh · 4 months ago
What do you mean about “people get really tired of optimization of code that is directly in the call stack they have to breakpoint in”? What’s the context where everybody else is using breakpoints?
nycdotnet · 4 months ago
In some software platforms, the tooling makes it really easy to use a debugger to see what’s happening, so it’s common for everyone on the team to use them all the time.

The comment you’re responding to mentioned pulling code into a function. As an example, if there’s a clever algorithm or technique that optimizes a particular calculation, it’s fine to write code more for the machine to be fast than the human to read as long as it’s tidy in a function that a dev using a debugger can just step over or out of.

nycdotnet commented on Reading Neuromancer for the first time in 2025   mbh4h.substack.com/p/neur... · Posted by u/keiferski
nycdotnet · 5 months ago
If you want to experience the Neuromancer vibe (but not story line), in 2025, from a contemporaneous source, I can’t recommend the Commodore 64 adaptation enough.
nycdotnet commented on They Might Be Giants Flood EPK Promo (1990) [video]   youtube.com/watch?v=C-tQS... · Posted by u/CaliforniaKarl
nycdotnet · 9 months ago
Saw these guys on JoCo a few weeks ago. Great set. Birdhouse in your soul was one of our wedding songs. Hard to believe Flood is 35 years old. Thanks for linking this.
nycdotnet commented on Two new PebbleOS watches   ericmigi.com/blog/introdu... · Posted by u/griffinli
erohead · 9 months ago
I'll be hanging out here - happy to answer any questions you have!
nycdotnet · 9 months ago
Excited for this release! Have you heard from Intel yet? “Core 2 Duo” was the name of one of their processors in the early days of multicore on a single package.

Edit: preordered!

nycdotnet commented on You probably don't need query builders   mattrighetti.com/2025/01/... · Posted by u/mattrighetti
pocketarc · a year ago
This is actually an incredible way of articulating something that's been on my mind for quite a while. Thank you for this, I will use this.

The received wisdom is, of course, to lean on the DB as much as possible, put all the business logic in SQL because of course the DB is much more efficient. I myself have always been a big proponent of it.

But, as you rightly point out, you're using up one of your infrastructure's most scarce and hard-to-scale resources - the DB's CPU.

nycdotnet · a year ago
This is Brent Ozar's old theme.
nycdotnet commented on You probably don't need query builders   mattrighetti.com/2025/01/... · Posted by u/mattrighetti
hyperpape · a year ago
You are right. If that’s the query you need to write, you’ll be ok.

That said, I don’t think I’ve ever had occasion to write a query quite like that. I’ve written

  select * from blah where id in (1,2,3…) and condition
or

  select * from blah where condition1 and condition2
but never a query quite like this. Do you know of use cases for it?

Given that most queries don't look like that, I think my criticism is reasonable. For most use cases, this query will have performance downsides, even if it doesn't for some very narrow use-cases.

nycdotnet · a year ago
Record selector to drive a data grid. Ex: Filter employees by location, or active/terminated, or salary/hourly, etc. and let the user choose one or many of these filters.
nycdotnet commented on You probably don't need query builders   mattrighetti.com/2025/01/... · Posted by u/mattrighetti
hyperpape · a year ago
The recommended approach is to generate SQL that looks like:

    SELECT \* FROM users
    WHERE id = $1
        AND ($2 IS NULL OR username = $2)
        AND ($3 IS NULL OR age > $3)
        AND ($4 IS NULL OR age < $4)

It's worth noting that this approach has significant dangers for execution performance--it creates a significant chance that you'll get a query plan that doesn't match your actual query. See: https://use-the-index-luke.com/sql/where-clause/obfuscation/... for some related material.

nycdotnet · a year ago
Agree. With patterns like this you are leaning on your db server’s CPU - among your most scarce resources - versus doing this work on the client on a relatively cheap app server. At query time your app server knows if $2 or $3 or $4 is null and can elide those query args. Feels bad to use a fast language like Rust on your app servers and then your perf still sucks because your single DB server is asked to contemplate all possibilities on queries like this instead of doing such simple work on your plentiful and cheap app servers.
nycdotnet commented on Is XYplorer really written in VB6?   xyplorer.com/faq-topic.ph... · Posted by u/ethanpil
DanielHB · a year ago
There are lasting languages and good languages, but there are no lasting good languages.
nycdotnet · a year ago
“There are only two kinds of languages: the ones people complain about and the ones nobody uses.”. Bjarne Stroustrup

u/nycdotnet

KarmaCake day400June 15, 2016View Original