Better HN
topnewbestaskshowjobs
Log inSign up

efields

1,277 karma · joined Nov 2, 2010 (16y ago) · 431 submissions

Submissions

comment 3y ago · link · parent

This is refreshing, and not unlike what Stimulus is trying to do in the RoR space. This is simpler than Stimulus, IMHO.

So much about modern FE dev requires knowing stuff that was intentionally abstracted to purer forms years if not _decades_ ago and easy to pull off in a browser<>server relationship with a little bit of JS for state management or swapping content. The author even uses the phrase "AJAX," which I feel like I haven't seen used in earnest in years. This library is for the OGs.

Obviously, trade offs etc etc. If you're starting a new web based project, something that's just submitting forms and showing results, why would you really use anything more complicated than this? It's sorta hilarious that JSX took off; it shows that the declarative nature of HTML was right all along.

comment 3y ago · link · parent

Congrats to Svelte. More than a couple years ago, I gave my team the opportunity to go React, Vue or Svelte after giving them time to test them out. React was basically the legacy code that we were familiar with. This was right around the first hooks release and after using it for a while, and we had a nasty redux state manager, and nothing about React felt truly great for DX besides JSX, and that was everywhere already.

I'm happy with Vue but every time I look at Svelte code I get a bit jealous. Its a very nice environment, one I would pick up for personal projects if that time was there, and I wish Svelte godspeed and a huge adoption curve.

comment 3y ago · link · parent

seeing these numbers just now unlocked something inside of me

comment 3y ago · link · parent

I'm listening. I've heard this three times in the last week. But I haven't been ELI5'd what this really means for the rest of my adulthood. I only know a "Globalized World". I was in elementary school when Bill Clinton was elected and globalization (economically) started, right?

So is this a reversion? Is it socially bad but economically good? Does the $1 slice become the $2 slice in a couple years?

Or are we trying to say something worse?

comment 3y ago · link · parent

More than anything else.

If you took oil out of the meta, it’s not like humanity would die off. It’d just be very different. We’d still be thriving. We’d still likely have scientific breakthroughs that increase quality of life. It’d just be so very different.

comment 3y ago · link · parent

Zeihan has been prescient for a while but is rarely quoted in anything mainstream, which makes me feel like I’m missing something about him.

comment 4y ago · link · parent

The exchange is NFT for eth. In order to do that, it requires gas. That is a fee imposed on the user, meaning they have to pay something in order to pursue a digital transaction for digital goods. Payments in iOS for digital goods and services must go through the App Store. It's right there in the developer terms, and has largely not changed since the App Store was introduced.

Doesn't matter that it's gas. It's a purchase the user is trying to make. The rules apply.

Coinbase may think it's unfair, but that's what they agreed to when they put the app in the App Store. Apple can continue to enforce this rule as long as they're legally allowed to, which doesn't seem to be changing anytime soon.

No sympathy for Coinbase here. They chose to whine in public when they could just sue Apple like a grown up.

comment 4y ago · link · parent

> Can I modify my page after it's been published?

> Not currently, but we're thinking about it. Very rarely do you need to update a page once it's been posted

… what?

edit: I literally had to edit this post because the quote formatting was off

comment 4y ago · link · parent

A million years ago (2019 or so) I bought a Pi on eBay preloaded with PiHole. It's worked well ever since.

comment 4y ago · link · parent

Aw man. Sorry you have no friends.

comment 4y ago · link · parent

BM is probably something that should have been acquired by a larger food company. Their product line is really limited for a public corporation.

comment 4y ago · link · parent

We shred all cardboard that's not shiny. Generally you can feel if there's a coating. I will also be picking out plastic from our soil for years, but you use the resources you have. It's a worthwhile tradeoff IMHO.

comment 4y ago · link · parent

yes and?

comment 4y ago · link · parent

that is… a small number

comment 4y ago · link · parent

I have a Genius Bar appointment I've rescheduled twice to discuss this, but it sounds like i really have no reason to believe there's anything "wrong" with my phone. I do hope software fixes can help, but maybe there's just some expectations in my head I need to recalibrate.

comment 4y ago · link · parent

Incoming rant: I’ve had to do more hands-on hydration work as I explore static site generators and I’m just deeply unhappy with the state of front end tooling. I now have a taste for

* directory based routing and opinionated defaults that give you the basics to string together html pages with reusable partials and be production ready in minutes (think rails)

* postcss (css tooling)

* reusable and compostable components

* hmr-style dx

* serverside generated pages, as inlined as possible — fastest experience for end user, avoids js if not needed

* not having to think how and where css or images get compiled

Vitejs looked headed that way but recenty dove into it and… it ain’t it yet. Getting something to render on a server then “turn on” with react in the browser is not straightforward.

Remember how much sense $(document).ready() made? Hydration should be that easy and it is not.

comment 4y ago · link · parent

Sure. Just violate the TOS of YouTube and you can do all kinds of fun.

comment 4y ago · link · parent

I use none of those tools mentioned but have tried different flavors of them. macOS has also felt pretty baked for years. I mostly use a mac today the same way I have for the last 15 years. Every improvement in productivity or moment of delight has largely been around search: I type a word into spotlight, or Photos.app, or a web browser and get what I want pretty much instantly.

Then there’s stock utilities that are under-hyped to this day. Measure.app is fairly accurate for “how big is my shed” or “what’s the area of this rectangle”. I point my phone at the world and receive data I want now in seconds; why bother with window management?

comment 4y ago · link · parent

Lol at the fact that this is unreadable on a phone.

comment 4y ago · link · parent

That’s a good point about Apple’s own resource reallocation necessary in the short term. iOS feels _pretty good_ these days compared to where it was not too long ago, but having to “unlock” APIs that were built to be private but now have to be public will also expose new bugs (both inherent and new).

comment 4y ago · link · parent

Let’s start the list of UX that could be built if apple followed these rules starting tomorrow. What will be available to me that I don’t have now, and how will it benefit me, Joe P. Consumer? Keep in mind, I have no idea what a software developer does all day — I just want my email to work and these internet pop ups to be easier to close. What am I missing out on?

comment 4y ago · link · parent

As a regular user, I have no intention of side loading anything! Don’t feel like I’m missing out on anything! Enlighten me.

comment 4y ago · link · parent

Louder, louder for the people in the back.

The market controlling genetics in plant propagation has consistently lead to favoring bigger, more uniform, more shelf-stable, and this has always lead to less nutrition, over-consumption, and more waste.

The same thing is happening with BOTH drug cannabis and industrial (CBD) hemp. The low threshold of .3% THC for hemp to be legal for any grower in the US is an arbitrary ass number, so by breeding to it who knows what’s getting lost in the genetic dustbin.

Growing your own is liberating, if not still legally dubious in the US. Repealing the prohibition against growing would likely get more people inquiring about their cannabis, just like when you go to a farmers market and enjoy substantially better quality vegetables. You can learn what went into it.

Of course the dispensary business is on the verge of becoming an entrenched lobby, and would likely rebuff any effort to legalize growing.

comment 4y ago · link · parent

20 year payback horizon for us in MD, USA. And that's still would only covering 20-40% of our annual electric usage. We have a fully electric house.

It doesn't take more than a couple trees in the wrong place to make you a lousy candidate for solar.

comment 4y ago · link · parent

Act. It's so simple.

comment 4y ago · link · parent

We moved early-covid to a neighborhood in my wife's hometown. Got twice the space inside and outside for the same price we sold (moving from major metro -> minor metro). In a few short months, our bff neighbors were gone, meeting new neighbors was hard, bars closed and spontaneity was gone, so we settled into Covid life. I was watching a lot of Monty Don and so I did the most logical thing to do to a new backyard: I ripped up a huge chunk of grass on the southern side of the house, built soil with lasagna gardening techniques, and hand-laid a bluestone path.

Sure, gardening is some privileged shit in this day and age, but I basically put myself down a 5 year path determined by seasons, weather, microbiology and how much I was willing to learn in my spare time. It's beautiful chaos half the time, but it's starting to surprise and delight everyone who visits.

It's also a place to be less serious about life. You need some humility. Sometimes being off by two weeks can ruin a plant. LOL let's try again next year. No biggie.

Americans need more of that. It doesn't have to be gardening of course, but please go out of your way to find something that can introduce more surprising and rewarding variables into your life that you enjoy figuring out.

comment 4y ago · link · parent

You can have both long grasses that establish and preserve natural habitats and also have places for humans and their companions to walk and play.

If you have a half acre backyard and only play in the 2/3 closest to your house, mow that grass and keep it neat, but let the other 1/3 go wild and/or install habitat-building plantings.

Small steps.

comment 4y ago · link · parent

Don't multi-task and have work you want to do.

If you're multi-tasking then you're doing a lot of crap work that should be automated, or at least processed sequentially. One at a time. Use a list, don't go to the next one until the task is done. If it can't be completed put it on a new list with reasons why. Follow-up. Prioritize.

If you keep getting work you don't want to do, change that. Distraction gets the best of me when I have no interest in what I'm assigned. (edit: clarity)

If you don't like what you're doing, change your relationship with it. Don't go through life just coping with your responsibilities, try to shape them to be responsibilities you enjoy doing. That might be at a new employer, new city, new significant other, etc.

Use tools (medication, timers, etc) to help build the path, but they shouldn't be the wheels you depend on to move through life. Use your head and your own two feet.

comment 4y ago · link · parent

Raising the age minimum on digital services from 13 to 16 or 17 would probably fix a lot of the ills caused by it. And/or teach media literacy from a young age.

And anyone here who reduces teenage digital addictions to “bad parenting” can pound sand. Nothing about parenting is simply the result of “the parents” and their methods. Raising a child is an impossibly multi-variate occupation and you only have so many knobs to turn and hours in the day.

comment 4y ago · link · parent

> How do I deal with my feelings? Should I seek professional help?

Simply yes to question 2, as others have said. Feelings are real and need to be managed, just like anything else. Depressive feelings will slowly (or quickly) spill over into all areas of life and sap the light away from everything you love.

At 37, I have a job that pays the bills for my family, allows us to save adequately, and gives me time throughout the week to tend to the things that I want to (family, gardening, video games, p much in that order these days).

I've also been through 3 anti-depressants before finding one that worked. My goal is to get to a point in life where I can titrate off of it. The dose is low and my therapist says it shouldn't be hard, but not to be rushed.

Feelings do a lot of psychic work, good and bad. The body keeps the score. Find balance.

1
101112
15