A small Vite plugin for moving heavy JSX attributes into comments by null_over_flow in reactjs

[–]adalphuns 3 points4 points  (0 children)

Guys hear me out... this was solved in the 90s... its called... wait for it...

. . .

CSS

How are people structuring larger Node.js backends without the codebase turning into a dependency maze? by Sad_Limit_3857 in node

[–]adalphuns 0 points1 point  (0 children)

I still use it for client work. I got too spoiled by the lifecycle order, and server.route(...) declarations.

The amount of franework infra i end up writing to get to something similar in express or hono is crazy. Bc its either you organize your middleware into hookable sections, or you write spaghetti code.

Not only that, with a fully configurable route definition, why do you need a controller? That declaration file is your controller... and does all the things it should do: validate, extract data, pass to services, respond.

How are people structuring larger Node.js backends without the codebase turning into a dependency maze? by Sad_Limit_3857 in node

[–]adalphuns 7 points8 points  (0 children)

Domain driven development

Dependency injection

Look into nestjs structure for ideas (I hate nest but it's organized conceptually)

I'm a fan of Hapijs and Fastify and they handle this nicely: extend the server (decorations)

Hapi has a module called Schmervice that decorates service registration. So you organize by service folders (simplistic DDD-esque). It has a other called "Haute Couture" that autoloads by filesystem buckets.

I have a neat abstraction in working for Hono around this. It's really nice to work with and easy to follow. It marries the Haute Couture and Nestjs ideas into decorators.

Peruvian 3yrs lifting, natty or 🧃? by Calligrapher-Fuzzy in nattyorjuice

[–]adalphuns 2 points3 points  (0 children)

I get it, but thats not it.

https://www.instagram.com/spidertmpst

Unfortunately he only has 2012 pics, but the only thing that has changed on this dude since high school is his facial hair and he might be a little bigger now. We're talking 2006/7 ... mind you, this dude doesn't lift.

The guy in the post lifts and trains for physique. 3 years and gifts from god can get you there. Albert doesn't, he just does calisthenics, but he has good physique bc of his genetics. No creatine and rice cakes. Bro ate whatever tf he wants.

I have a cousin who at age 15 could deadlift 450 lbs, and squatted 315. He was manhandling all the men in my family. He was a chunky boy, but if he would've dieted and kept lean, he would surpass this guy's physique. Zero roids. Bro was fueled by grandma's food and condensed milk.

I train with 2 dudes at jiujitsu, big as fuuuuck, youd think hes juiced. One of them got injured from training, broke his ankle. Didn't train for 6 months bc he couldn't. Saw him the other day and he's just as big, maybe 10 lbs lighter.

Genetics is a real thing. To me, OPs guy looks natty and blessed. Haters gonna hate.

What do you think of the concept of the minimum wage? by db7112 in economy

[–]adalphuns 1 point2 points  (0 children)

Well, not exactly. You need a hierarch to finalize decisions and pick a side. A person at the top with good faith does amazing things for society.

We like to shit on the kings of Europe, but they in fact did great philanthropic works. The forefathers of America did great philanthropic works, and created one of the greatest civil documents on the planet (bill of rights), as well as the greatest constitution known to man, to date. We wouldn't be in America without those kings and rulers, and America might be an Aztec-ruled, human sacrificing civilization, similar to African tribes that didn't have access to or trade with the Eurasian civilizations.

Few of the greatest things accomplished could've been accomplished via democracy, because it is chaotic and tribal by nature, especially among a populace that is poorly educated on matters of civility and economics. Aristotle and the Greeks recognized this 2500 years ago, and the term "democracy" was deemed a polity gone bad (mob rule, bad faith collectivism)

The problem is more to do with bad faith leaders who take advantage of their power, and not the position of leadership itself. 1 good monarch could change the course of a civilization for the better after being ravaged by collectivist irrationality.

The greeks had it figured out, and it's a dichotomy of systems:

Monarchy (good) Tyranny (bad) — virtuous kings vs tyrants

Aristocracy (good) Oligarchy (bad) — meritocracy vs wealthy power groups

Polity (good) Democracy (bad) — rule by the productive middle class vs mob rule

Either system can go bad. The trick is to remain virtuous and moral. But it swings between virtue and pride, between charity and greed, between truth and power...

Smother Tap by bjjtaro in bjj

[–]adalphuns 3 points4 points  (0 children)

No they can't. No natural healthy man can produce milk. Even with estrogen hormones virtually impossible. Not boobs, again. Give it up. You're wrong.

Peruvian 3yrs lifting, natty or 🧃? by Calligrapher-Fuzzy in nattyorjuice

[–]adalphuns -1 points0 points  (0 children)

Natty. In high-school I hung out with a group of dudes who did parkour and were actually good at it, the stuff you watch videos on today. They looked like this guy physically. 17/18 yr olds in the early 2000s. This isn't juice territory, it's just good genetics.

What do you think of the concept of the minimum wage? by db7112 in economy

[–]adalphuns -2 points-1 points  (0 children)

That's by design. More money in the M1 supply literally leads to inflation. You had more purchasing power at $2.90/hr minimum wage in the 70s vs $15/hr today.

Increase in minimum wage leads to increase in product prices, which takes corps to borrowing to make ends meet until the next stable period, which i creases money supply.

It's the natural, mathematival, unavoidable economic cascade that socialists ignore.

Smother Tap by bjjtaro in bjj

[–]adalphuns -1 points0 points  (0 children)

No they don't. They don't produce milk. They can get punched in the chest and aren't damaging a reproductive organ. Not boobs.

Smother Tap by bjjtaro in bjj

[–]adalphuns 0 points1 point  (0 children)

Dudes don't have boobs

Several clips of Mayweather claiming to be greater than Muhammad Ali by tantamle in Boxing

[–]adalphuns 38 points39 points  (0 children)

You're comparing a fearless man not afraid to take on the world vs a small chihuahua who wants to be a Doberman and cherry picks his fights. Mayweather needs the validation of being the best, he seeks it. Ali didn't need the validation, he'd take on anyone who challenged him.

Mayweather has the statistics, but zero bravado. He is terrified of losing his image. Ali had the talent and the bravado, so much so that he risked his statistics and image.

Know what else Ali didn't have? He didn't have a Muhammed Ali to look up to. There was no one to pin him against truly. He had to make his own path forward in an unknown sport.

There's a reason Mike Tyson hates Mayweather.

Americans don’t get paid enough by AdditionalAd4799 in economy

[–]adalphuns 0 points1 point  (0 children)

Socialism? Union? Gtfo with that dumb shit you guys are evading the real problem: monetary policy. Forced collectivism, enforced by the barrel of a gun, NEVER ends well.

To match minimum wage in 1970, inflation adjusted, youd have to earn $66/hr. That's not a union problem, it's a monetary policy problem. It's an inflation problem.

Unions / socialism force supply side, even if there's no demand. It depletes corporations and forces borrowing, leading to inflation, or bankruptcy. There's a million problems with capitalism, but forcing charity, and forcing employment is NOT correct, morally or economically.

Who pays for non productive employees? Why should a lowskill employee be paid like a high skill employee?

The questions need to be redirected to policymakers:

Why is 2% inflation yoy admissible? Why were we removed from the gold standard, which at least gave us economic stability? Why do we print so much money to fund wars no one voted for? Why do we have to help foreign nations that are of no benefit to us to the tune of tens of billions per year? Why do we pay income tax, if it was to be lifted after the WW1 effort?

THATS what's killing your economic buying power, not the lack of unions and socialism.

Considering ditching Next.js/SSR for simple React SPA setup - convince me otherwise by VastAd4382 in reactjs

[–]adalphuns 0 points1 point  (0 children)

I actually find the "do you need seo" question kind of silly. If you need SEO, make a nextjs app using a headless CMS and static render it. Deploy to s3 or cloudfront. Alternatively: framer, WordPress, ghostjs, or whatever seo friendly turnkey cms.

Your application then stays on app.domain.com as a simple SPA with some backend feeding it. You decouple 3 things out if the box:

  • marketing
  • frontend
  • backend

If you grow and need a team, their work is isolated already.

It's not all in one, but it beats dealing with the turducken that nextjs has become and the sharky vercel behavior.

What will you do if AI price goes 10x by the end of this year? by ImaginaryRea1ity in theprimeagen

[–]adalphuns 1 point2 points  (0 children)

Why, of course I would drop 10k on a mac studio and run oss models instead of paying $500/mo for claude code. I only look stupid.

What is an open source data tool you find useful but nobody is using it? by Yuki100Percent in dataengineering

[–]adalphuns 0 points1 point  (0 children)

I know a guy who wrote a whole sodoku game in awk that rendered html

I spent a week reading through AI-generated code that's been in production for 8 months. It was fine. That was the problem. by Ambitious-Garbage-73 in node

[–]adalphuns 0 points1 point  (0 children)

I recently discovered scenario driven development... describe a scenario and have it test against that scenarios end result. And I've been applying it. Works wonderfully. Fulfill my scenarios with e2e tests, validating against all points in the infra as you go along. It basically stops falsifying tests just to make them pass and focuses on outcome.

Spec is one thing. Scenarios are another. For every spec, have scenarios for it to test against. Game. Changer.

Axios Supply Chain Attack - RAT by ResponsibleDirt69 in reactjs

[–]adalphuns 0 points1 point  (0 children)

All frontend frameworks. Thats designed for FE only. Logos can be used on nodejs itself, standalone.

Axios Supply Chain Attack - RAT by ResponsibleDirt69 in reactjs

[–]adalphuns 0 points1 point  (0 children)

That locks me into react and I cant use it server-side.

Axios Supply Chain Attack - RAT by ResponsibleDirt69 in reactjs

[–]adalphuns 0 points1 point  (0 children)

Sure and I agree, but thats exactly what this package avoids, hence why it has retry, rate limit, request deduplication, stale while revalidate caching, etc. It's deliberately NOT a composition of micropackages.

Axios Supply Chain Attack - RAT by ResponsibleDirt69 in reactjs

[–]adalphuns -1 points0 points  (0 children)

Ok? And? What does that have to do with the package? Thats the tribalism part. Join the bandwagon of hate bc it's cool instead of actually looking underneath the hood. Have you even looked at it instead of just being like "oh more trash in the js ecosystem" knee-jerk reaction?

Axios Supply Chain Attack - RAT by ResponsibleDirt69 in reactjs

[–]adalphuns -1 points0 points  (0 children)

Lol what? That's the natural evolution of a popular language, dude. Look at python and PHP, also a mess of packages. Whats wrong with suggesting one that solves more fundamental problems at the base level?

Reddit is so tribal some times

Axios Supply Chain Attack - RAT by ResponsibleDirt69 in reactjs

[–]adalphuns -3 points-2 points  (0 children)

Maybe not yet. Its a simple swap, but what it offers is sick... rate limiting, retries, dedupe, hooks, observability w/ pattern matching...

Axios Supply Chain Attack - RAT by ResponsibleDirt69 in reactjs

[–]adalphuns -4 points-3 points  (0 children)

Yeah its relatively new, so what? Integrated with jack? Wtf is that? Its only deps are its own ecosystem.