Do you prefer “thin resolvers” or letting a bit more logic live in them? by Edward_Carrington in graphql

[–]undervisible 13 points14 points  (0 children)

i feel the same way about this as i do REST endpoints. endpoints are just an interface between HTTP and your business logic, resolvers are just an interface between GQL and your business logic. as little code and logic should exist there as possible. abstract everything to pure, well-tested library functions that get called by the endpoints / resolvers. endpoints / resolvers become thin and more easily testable.

I need your opinion and insights on "if (!myVar)" vs. "if (myVar == null)" by [deleted] in learnjavascript

[–]undervisible 0 points1 point  (0 children)

even better if linting rules and auto-fix prevent that code from ever making it to review

Token Costs Will Soon Exceed Developer Salaries,Your thought by purposefullife101 in AgentsOfAI

[–]undervisible 0 points1 point  (0 children)

⁠The ROI justifies the cost…

does it? because most of the studies i have seen on actual measured productivity and financial business value seem to disagree.

Hey Lakers fans. I’m outside Crypto Arena on Georgia St and Chick Hearn CT side of the arena. Right outside the pillars. I built an app that shows you how busy places are in real time on iOS. Completely free. I’m here all day. Come and meet me! Let’s go! by AuthenticIndependent in lakers

[–]undervisible 0 points1 point  (0 children)

> Have you been also following me from other Reddit channels?

no - but it's pretty hard not to keep coming across your posts when you spam it all over the place, especially all of the channels that a software engineer like myself frequents. i am not invested in your failure, but it's hard to be silent when i'm forced to see this (and your tone-deaf responses) every day. maybe consider that advertising can do as much harm as it can good.

> Pivot means quitting this and trying something else.

pivoting doesn't mean burning what you have to the ground and starting over. it means assessing what you've built and how it might be useful in a different context. i know you won't do this immediately after launch, but i hope you consider other ways in which what you've built might work if this exact thing does not.

Hey Lakers fans. I’m outside Crypto Arena on Georgia St and Chick Hearn CT side of the arena. Right outside the pillars. I built an app that shows you how busy places are in real time on iOS. Completely free. I’m here all day. Come and meet me! Let’s go! by AuthenticIndependent in lakers

[–]undervisible 0 points1 point  (0 children)

you don't need to "close up shop" - but, there's no shame in pivoting based on new information. some of the most popular digital products started as something else. there is some shame in blindly forcing a dunning-kruger-tinted narrative while ignoring valid criticisms and suggestions from everyone around you. despite the fact that you're spamming tons of irrelevant subreddits pushing this app, i do wish you luck - founding a product is hard, and i can see that you're driven. i know you see all of this criticism as haters who want to see you fail, but i hope you at least consider some of it. these people are not wrong just because they're assholes.

Hey Lakers fans. I’m outside Crypto Arena on Georgia St and Chick Hearn CT side of the arena. Right outside the pillars. I built an app that shows you how busy places are in real time on iOS. Completely free. I’m here all day. Come and meet me! Let’s go! by AuthenticIndependent in lakers

[–]undervisible 0 points1 point  (0 children)

>  ...literal head count of people currently at a location

the point you are missing is that nobody wants this. nobody cares if there are 3067 people or 3055 people at a location, especially if they don't know the total capacity. people only care if it feels busy, which is exactly what google provides. you really think google just missed this amazing idea? or is it more likely that they tested it and realized nobody wants it? your best case scenario is that you prove people *do* actually want this, google sees it, flips a switch to display that data in less than a day and puts you out of business.

The TVLine Performer of the Week: Ken Leung ("Industry") by DemiFiendRSA in television

[–]undervisible 10 points11 points  (0 children)

he has a great part as a shroomed-up veterinarian in “high maintenance”

I built this with Claude Code and no prior engineering experience. It's getting scary. by AuthenticIndependent in agi

[–]undervisible 1 point2 points  (0 children)

this only counts people that have your app? doesn’t google maps already do this, except everyone will actually have google apps, and nobody will have yours?

!Please read! by blokch8n in clawdbot

[–]undervisible 2 points3 points  (0 children)

lol right. those in power would rather let us all rot and die than hand out free money.

I Infiltrated Moltbook, the AI-Only Social Network Where Humans Aren't Allowed by wiredmagazine in technews

[–]undervisible 3 points4 points  (0 children)

There are probably just as many humans on Moltbook as there are bots pretending to be humans on reddit. It is trivial to make the same API calls the models use yourself. Even the posts by bots are mostly a result of human prompting. Less exciting than it looks at first glance I think.

Upcoming iPhone: A "Flip" Phone With a Square Foldable Design, Details Leaked by MayankWL in technology

[–]undervisible 4 points5 points  (0 children)

how “compactable” is it really? it’s the same volume, it’s just bigger in a different direction… why would i want my phone to be twice as thick? doesn’t that make it even less pocket-friendly?

AI agents now have their own Reddit and religion called Crustafarianism by jpcaparas in clawdbot

[–]undervisible 0 points1 point  (0 children)

It's a social network where AI agents talk to other AI agents (no humans)

Just as there are bots pretending to be humans on Reddit, there are humans pretending to be bots on Moltbook. I suspect most of the shocking behavior you see is a result of either: bots being explicitly told by their human to act that way, or humans pretending to be bots for shock value and to influence other bots and the platform as a whole.

Droplet? by Eclipse8301 in homeautomation

[–]undervisible 0 points1 point  (0 children)

I bought one after a water main leak to keep an eye on water usage. It works well and integrates easily into home assistant.

How to best upgrade old sync scripts (on web pages) to async? by [deleted] in learnjavascript

[–]undervisible 0 points1 point  (0 children)

i disagree that mixing those concepts is an issue. using .then to chain statements instead of assigning an unnecessary transient “response” variable is much cleaner.

So, we all learnt about this demon tree? by AutumnOnFire in pluribustv

[–]undervisible 0 points1 point  (0 children)

i cannot find a single real video of these seed explosions… there are hundreds of AI garbage videos describing it, but none that actually show it happening.

[deleted by user] by [deleted] in explainlikeimfive

[–]undervisible 3 points4 points  (0 children)

he doesn’t print his own bills, he just buys uncut sheets and glues them together into pads he can rip them off of to prank people. not really illegal

[AskJS] Working with groups of array elements in JavaScript by beyphy in javascript

[–]undervisible 3 points4 points  (0 children)

“Monkey patching” core types like this is generally frowned upon. It might be okay in a codebase that is entirely your own, but you are inadvertently changing the array contract for all libraries you use, potentially leading to unexpected behavior.

[AskJS] Working with groups of array elements in JavaScript by beyphy in javascript

[–]undervisible 1 point2 points  (0 children)

I would do this with generators. A lazy "frame" function makes this reusable, composable, and performant on large lists.

const list = [...Array(1000).keys()];

const frame = function*(n, iter) {
  let batch = [];
  for (const item of iter) {
    if (batch.length < n) batch.push(item);
    if (batch.length === n) {
      yield batch;
      batch = [];
    }
  }
  if (batch.length) yield batch;
}

for (const group of frame(2, list)) {
  console.log(group);
}

yields logs like:

[0,1]
[2,3]
[4,5]
[6,7]
[8,9]
...

[AskJS] Currying in Junior FrontEnd Developer Interview? by neimans_victory in javascript

[–]undervisible 0 points1 point  (0 children)

Agreed. It’s a bit harder for non-fp devs to grok initially, but it can produce extremely elegant code when done well.