Better HN
topnewbestaskshowjobs
Log inSign up

louissm_it

150 karma · joined Aug 2, 2019 (7y ago) · 56 submissions

Submissions

comment 2y ago · link · parent

I think we're at the point where the people who are going to throw trash are going to throw trash, and I don't believe something like the ocean cleanup will increase how much trash people throw into nature.

You can make the same argument that you shouldn't clean your own house because that will just encourage others to make it dirty again. And thats obviously not how it works. Some people throw trash and some don't.

We should clean it up anyways.

comment 2y ago · link · parent

I don't understand why people (Greenpeace) are so against The Ocean Cleanup - complaining that we need to fix the problem at the root instead of cleaning up the mess afterwards. Why can't we do both?

comment 3y ago · link · parent

Kicking and screaming, I finally succumbed to TypeScript on the server. I used to do everything with Phoenix or Rails, but nowadays its hard to fight the full-stack type safety (even if its mostly an illusion) of something like Remix/Hono with React + Drizzle/Kysely.

I hate having to wire everything together, and how I might have to rewrite it next month, and how there is no standardised way to do anything, and how I have to install a library for everything and figure out how to make them work together.

But the types won me over.

comment 4y ago · link · parent

Storing the data directly inside the application still means you need to store it somewhere, likely a SQL database (such as PostgreSQL). These databases are insanely well engineered and very very fast, but compared to a key value store such as Redis and Memchached they are comparatively slow and resource hungry (because they are optimized for different things).

So if you can fetch some cached data from a Redis key, even if on the same machine, it will cost you significantly less than querying a relational database.

comment 4y ago · link · parent

As someone who upgraded from an Intel Mac to an M1 mac, the memory is a non-issue. Three years ago I would have laughed if you said I would be happy with "only" 8GB, but now I am.

comment 4y ago · link · parent

React is * old * (in the frontend world), stable and very very well known. It is a solid, responsible choice to build your framework on top of React in 2022.

You can upgrade a 7 year old React app with very little fuss. Unfortunately, you cannot say the same about Vue or any of the modern libraries. They also have no track record to indicate they will exist 10 years down the line, but I'm pretty sure my React apps will still be fine.

That being said, I'm very excited about SolidJS[1] and the other modern libraries that use JSX.

[1] https://www.solidjs.com

comment 4y ago · link · parent

I found this[1] on the documentation. But in general staging environments, continuous integration and continuous delivery are not built into frameworks (Rails, Phoenix, etc).

[1] - https://redwoodjs.com/docs/deployment/index

comment 4y ago · link · parent

Alright, that is a very good point. If the possibility of other nodes interacting with your service is high (ie “you’re gonna need an API eventually”), this might well be the best option.

comment 4y ago · link · parent

Congrats! I've been keeping up with Redwood since the original announcement, and the progress they've made has been incredible. The generators and command line utilities are top notch (compared to Rails, thats a high bar to clear) and the general structure of everything seems very well thought out. Still missing a good official solution for background jobs, but I see there is a workaround in the 'How To' section on the documentation. The core team members are super nice and the community is very welcoming.

I'm not convinced the "client side app + Graphql server" is the best model for most startups, however. I tend to lean more on server rendered pages with a little bit of progressive enhancement. But I assume the people who made Redwood are more knowledgeable than me :)

comment 4y ago · link · parent

Fly is compelling enough to use without all the global deployment options they offer[1] but it's assuring to know if you ever do need to deploy globally, they can support that better than most.

[1] - https://github.com/superfly/fly-ruby

comment 4y ago · link · parent

Fantastic. I did not expect to enjoy using the custom widgets or "Kinos" this much.

comment 5y ago · link · parent

You nailed it. I work with Ruby, TypeScript (React, Node) and Elixir.

While Elixir has more than enough uses and I love it dearly, nothing comes close to the productivity and expressiveness of Ruby (+ Rails).

I have very high hopes for JS/TS. Using a single isomorphic language for web development must have some benefits, but I'm afraid it's not there yet.

comment 5y ago · link · parent

I’m genuinely curious, how would that solve the problem? The real world event - say, delivery a purchased good - would still have to be flagged by both parties as “delivered” before the smart contract can execute. If you only allow the receiver to flag, then the problem inverts! Now the receiver can just deny the item was delivered.

Middlemen are useful, as annoying as they may be. I’d love to be proven wrong here.

comment 5y ago · link · parent

Fair enough :) Growing up there you never consider it like that.

comment 5y ago · link · parent

Cool. I've only been to London once, but I distinctly remember being disturbed by how dead everything was. I'm not sure how accurate the stat, but I recall Table Mountain having more floral species than the entire UK.

comment 5y ago · link · parent

The 20% is (according to the IPO atleast) worth 20 billion dollars, not 20% of 20 billion dollars.

comment 5y ago · link · parent

While advice like this might have been alright if it was in a self-help book where the OP was looking for ways to approach the situation, it is completely uncalled for and inappropriate in this situation.

comment 5y ago · link · parent

Upgraded M1. No issues, super snappy, looks great.

comment 5y ago · link · parent

I've always found that when people say they dislike SPAs they actually mean they dislike APIs and the whole circus of how to handle building, consuming, validating, error handling, network errors, etc.

Not affiliated, but Inertiajs[1] has been a fantastic middle ground between MVC goodness and using React/Vue/Svelte for client side interactivity. It even plugins in with your Rails/Laravel errors for form handling.

[1] - https://inertiajs.com

comment 5y ago · link · parent

I have high hopes that Rails 7 will be much saner. Importmaps are such a Railsy solution, and if you need anything more jsbundling-rails will provide easy starters for ESbuild, Rollup and Webpack.

comment 5y ago · link · parent

Yes 100% - I’m actually using Vite Ruby in a project as I really wanted to use Inertia + React and that was by far the easiest way to get everything up and running.

I’d go so far as to say I wish -j vite was an option in js-bundling :)

comment 5y ago · link · parent

I think it’s a fantastic default. I’d argue most server rendered applications can get away with it. And if you ever need ESBuild you can install the js-bundling gem or pass “-j esbuild” for new Rails 7 apps.

comment 5y ago · link · parent

1. It does a few things and does them really well (not taking on the complexity of ie Webpack)

2. It’s written in Go

comment 5y ago · link · parent

ESbuild is getting fantastic traction. It’s the default in Phoenix from 1.6 and comes as a default option in the current alpha of Rails 7, which you can get with a simple

rails new your_app -j esbuild

The only sort of issue I’ve had with it so far is you can’t use it with Inertiajs[1] as it does not support dynamic imports out of the box. Although I’m hesitant to call it an issue if its not in the scope of the project. Perhaps there are plugins I can use.

[1] - https://inertiajs.com

comment 5y ago · link · parent

I’m sorry but no. The future costs of nuclear are comparatively irrelevant if you consider the immediate doom our climate and thousands and thousands of species are facing because of burning fossil. If a 100 nuclear disasters happen in the next 5 years it will still do less damage than coal.

There is simply no more time, the only option is to stop burning at any and all costs.

comment 5y ago · link · parent

Awesome. I’m noticing a ton of “alternative” front end development tools these days: Hotwire, Stimulus Reflex, LiveView, Livewire, etc.

However I don’t think javascript is the fundamental blocker. When people say they dislike building SPAs, they probably mean they dislike APIs and the whole circus of double validations, error catching, form handling and cache invalidations that come with a React/Vue SPA.

Inertiajs[1] is a really solid middle ground of MVC goodness and client side interactivity.

[1] - https://inertiajs.com

comment 5y ago · link · parent

Probably yeah :) The builds fail at the "npm audit" command, so I incorrectly made the link.

comment 5y ago · link · parent

Weird, it's breaking Vercel builds too.

comment 5y ago · link · parent

Multiple points of entry to a SQL database is the root of all evil if I’ve ever seen it.

comment 5y ago · link · parent

LiveView has built in re-connection logic! I think he means if theres no internet connection theres nothing to re-connect too.
12