HN user

nov21b

50 karma
Posts0
Comments34
View on HN
No posts found.

Interesting move. I'm also considering Remix.js. It's either an internal Next.js rewrite from Page Router to App Router, or a framework switch to Remix.js

I liked Remix.js even though I found the Action (kinda like Server Actions in Next.js) a bit limiting and formData hard to type (in TypeScript)

Third party plugins make an up-to-date WP install insecure. I think Core WordPress is probably more battle tested than any other framework. One could argue the core should protect against bad plugins, but a secure plugin API would mean a non-functional API.

- "War against JavaScript"

- "It's extremely complex for someone with 0 experience to work with JavaScript tools"

- "JavaScript is terrible anything else than manipulating the DOM"

I guess the main issue was not liking / embracing JavaScript/TypeScript. Which is fine, but doesn't really make for a convincing article.

Another thing I would have loved to see was all the issues you ran into with htmx (apart from the ID collisions you expect to get). As we all know, everything is a tradeoff, there are no silver bullets.

I have the Airthings Wave+ and one thing that bugs me is the relative humidity threshold. Anything above 60% will give a yellow led warning. If you have many indoor plants, live in a forest, or even just ventilate a lot on rainy days the sensor will show an air quality warning. I would like to take humidity out of the equation as I much rather focus on CO2, VOC and Radon. Otherwise a great sensor that was easy to integrate in my own scripts as you can easily get all sensor readings over bluetooth.

Don't mindlessly follow your framework du jour's way of handling state mutations. It's healthy to keep these isolated. I've switched from Vue to React and kept my API server as is. If you intertwine mutations deeply inside Next.js server actions you will have a hard time adapting to new requirements.

Where are the open source folks in Node.js producing equivalents of WordPress and Magento and Drupal?

I can't speak for the community at large, but I specifically switched from large opinionated frameworks to Node.js/TypeScript and a carefully selected stack and modules. Once you reach a certain level of complexity, these frameworks start to get in the way. For me, Node.js/TypeScript gives me type safety, easy refactors, an ergonomic language, and a large community.

On the other hand, if you have to churn out projects for clients, a rigid opinionated framework is probably more appropriate as it makes project handover easy and cuts down on decision fatigue.

I use an old Android phone with a long deprecated app called MobileWebCam (still available on certain sites) I removed the battery and connected the charger directly. It uploads a picture every minute, a Node.js backend creates the timelapse with ffmpeg. Currently experimenting with a TP-Link C520 cam and a Raspberry Pi. You can point the camera to different positions using ONVIF, use ffmpeg to grab the stream and take a snapshot, then process this again on the server. Downside is the wide angle / fish eye lens and occasionally a corrupted stream snapshot.

This may be the hardest part, especially for technical founders. I was able to bootstrap a profitable subscription based service. In hindsight most credit should go to my wife for getting in the first users by engaging family, social media, forum posts and what not. Another major factor were my subscribers, who write site content on a daily basis, this generated a ton of organic traffic to my site and made a big difference vs having to write a couple of static SEO optimized pages and hope for the best. Writing the actual code was probably the least important part (but the most fun for sure)

Just started using the append only feature to prevent a potential hacker from wiping out backups that live on a remote ssh server. Combined with restricted ssh access this can be made quite secure. I also tested writing backups to my Android phone (as a backup target) using Termux and Wireguard, worked flawlessly with a bit of tuning (keeping the vpn alive)

I did some research into the best way to treat a third degree ankle sprain (after a mountainbike accident). From what I've gathered ice can still be beneficial in the first 8 hours or so. But shouldn't be used later on as it may hamper blood flow and thereby recovery. Compression, elevation, moderate use of an anti inflammatory and exercising just up to inducing more swelling is the best way to recover. I found "walking" exercises in a pool to be very helpful as the cool water plus pressure reduced pain and the buoyancy reduces much of your body weight.

Before deciding on these very dev-oriented metrics, one should probably define the goals of the site/app. Is it a community site where easy content editing / contributions should be prioritized. Or is this a landing page that should have stellar SEO and load blazing fast. What language / framework am I or my team familiar with. The raw performance metrics should probably come last.

On the upside, Twitter has reinstated scientists talking sense about Covid. I may not agree with everything Elon but I welcome this new wind of change.

Drupal Is Dying 4 years ago

I ditched Drupal for a Node.js based setup during the 7 to 8 migration. The writing of Drupal's decline was on the wall at that time and in hindsight switching was a good decision.