Better HN
topnewbestaskshowjobs
Log inSign up

fragile_frogs

135 karma · joined Jan 24, 2021 (5y ago) · 86 submissions

Submissions

1.

Show HN: Schema First React Router(werkbank.dev ↗)

1 points · by fragile_frogs · 10mo ago · discuss

comment 1y ago · link · parent

> So what to do? Go to nearest coffee shop. You’re lucky if they don’t play tasteless trendy music. You’re lucky if a waiter doesn’t keep asking if you need anything, isn’t intrusive, and doesn’t subtly let you know when it’s time to leave by checking on you constantly . You’re lucky if no teenagers talking loudly about their-whatever-teens-talk-about-these-days.

I used to work from coffee shops until I realized how annoying it is to have a café full of people working on their laptops. A once lively place that was supposed to be an escape to relax, meet friends or read a book has turned into a soulless office environment. I want to go to a café to escape work, not to be reminded of it by constant keyboard sounds or video calls.

> You’re lucky if a waiter doesn’t keep asking if you need anything, isn’t intrusive, and doesn’t subtly let you know when it’s time to leave by checking on you constantly .

> Oh, by the way, pay a lot of money to be here and to drink a nice cup of burnt coffe.

How entitled can you be to think that you can occupy a table for the whole day and expect to only buy one coffee?

> Then rent an office or subscribe to a co-working space? What? I get paid to work, not to pay for it.

Yes, that is exactly you are supposed to do. If you are working remotely and can´t afford a co-working space you are probably underpaid. Your salary should either include that expense or your employer should cover that for you.

comment 2y ago · link · parent

> Andrew Clark’s vision of using more compiler magic to solve for React’s shortcomings is indeed a very Facebook-esque approach to solving problems with performance and suitability

and

> Much of the innovation in the UI space is now happening around the edges of the React ecosystem: Solid.js, Preact.js, Svelte.js, Vue.js, Astro.js, Qwik.js, Marko.js

- Solid.js requires *babel-preset-solid* [1]

- Selvte has a compiler

- Astro components are custom `.astro` files

- Qwik.js ships an optimizing compiler [2]

- Vue has `@vue/compiler-sfc` [3]

React is fine, stable and easy to upgrade

[1] https://www.solidjs.com/guides/getting-started

[2] https://qwik.dev/docs/advanced/optimizer/

[3] https://vuejs.org/guide/scaling-up/tooling#lower-level-packa...

comment 3y ago · link · parent

I have been using Sublime Text for about 8 years now, I have tried multiple different editors in the mean time including VS Code, Atom, Fleet and I always went back to Sublime Text.

After years of using ST for free, I finally bought a license about two years ago when ST 4 came out, I am also a paid user of Sublime Merge, which is the best git client I have tried.

comment 3y ago · link · parent

I ride BMX, road bikes and Mountain Bikes. I've tried a VanMoof two years ago and the build quality was terrible. You couldn't pay me to ride one.

comment 3y ago · link · parent

I bought the BlackBerry Classic a while ago and I also own the Key 2.

The BB Classic is everything I want in a smartphone, the build quality is great, the keyboard is amazing in and BB OS is really intuitive and fluid to use.

Such a shame that every smartphone nowadays is just a rectangle with a screen and nothing else...

comment 3y ago · link · parent

I want something like ReQL[1] but as a language itself

[1] https://rethinkdb.com/docs/sql-to-reql/javascript/

8.

Ask HN: Why is there no database with a functional query language?

5 points · by fragile_frogs · 3y ago · 5 comments

comment 4y ago · link · parent

> I might make an exception for RethinkDB since I loved it so dearly.

Don't get my hopes up... I haven't used RethinkDB in ages and have fully moved to Postgres though

comment 4y ago · link · parent

You could combine styled-components/emotion with something like open-props[0]. You get all the power that comes with CSS and a set of variables to help you create a consistent design. That's how I manage my styling.

[0] https://open-props.style

comment 4y ago · link · parent

I've been looking for someone to mention open-props and I really enjoy using it.

comment 4y ago · link · parent

Yeah, you would have to raise the one-time payment constantly in order to keep up with your own recurring costs, the more users you have the greater your costs will be.

comment 4y ago · link · parent

I used to work at Starbucks for about a year and a half and it all depends how busy it is. Unless it's busy, those random conversations with customers where the best part of the job, at least for me.

comment 4y ago · link · parent

> Only downside of SEPA is that it is a lot less common outside EU/Europe

SEPA stands for "Single Euro Payments Area" and was build for the EU/Europe, I don't think it's available outside of Europe.

comment 4y ago · link · parent

IMO where Parcel shines is when you are building client side single page apps or JS/TS libraries.

I could see that it won't be the right tool for a multi page server rendered app.

comment 4y ago · link · parent

> I’m still searching for a zero-conf full-stack pipeline which could manage both frontend and backend in a single project under a single watch command

I did create a proof of concept how this could be done in parcel https://github.com/mochicode/parcel-fullstack-poc.

The /src folder contains:

1. /api => backend

2. /app => react frontend

3. /shared => shared code

Once everything is installed, just run "npm start" and it will:

1. build and watch your src folder

2. react hmr/fast-refresh works

3. nodemon will reload your node server when things change

4. serve your react app on localhost:8000/frontend, currently hard coded, but I could also load this from the package.json file.

Not zero-config, but it almost gets you there.

comment 4y ago · link · parent

I think this could benefit Rome. Both projects are written in Rust and so far they have a linter and a formatter and now they can integrate Turbopack, package it behind "rome build" and don't have to build their own bundler and transpiler.

comment 4y ago · link · parent

I think this might have just made their lives easier, from the projects website:

> Rome is designed to replace Babel, ESLint, webpack, Prettier, Jest, and others.

Since both projects are written in Rust, the Rome team could use Tubopack to build/bundle projects and focus on the other features they are planing: https://rome.tools/#supported-features

comment 4y ago · link · parent

> I just wanna `script/build` or `yarn dev` and not think about it anymore.

Parcel might be a good fit for you: https://parceljs.org/

comment 4y ago · link · parent

And when you try to upgrade just one plugin everything breaks and you have to upgrade everything.

comment 4y ago · link · parent

After years of configuring webpack for various projects I have finally decided to migrate all my projects to Parcel[1] manly because I got tired of creating and maintaining hundreds of lines of webpack.config.js files, I wanted something that just works. I am really happy with that decision.

Parcel is plenty fast and is pretty much zero config, I can use it to build libraries[2] as well as applications[3] for the browser and node.

I am manly building client side react applications, so your mileage may vary.

[1] https://parceljs.org/

[2] https://parceljs.org/getting-started/library/

[3] https://parceljs.org/getting-started/webapp/

comment 4y ago · link · parent

While the founders are from Europe, GitLab is a US company [1] and the SaaS offering is based in the US [2].

[1] https://about.gitlab.com/blog/2015/07/01/operating-as-gitlab...

[2] https://about.gitlab.com/handbook/engineering/infrastructure...

comment 4y ago · link · parent

yugabyte looks quite interesting in that space. From what I can tell their OSS product allows for "Row-level geo-partitioning" https://docs.yugabyte.com/preview/explore/multi-region-deplo...

I haven't used it for anything yet, so I don't know how well it works.

comment 4y ago · link · parent

This is what I do in postgres:

  insert into your_table(id, created_at, uri, project_id)
  select id
       , created_at
       , endpoint as uri
       , project_id 
    from jsonb_to_recordset($1)
      as x(
          id uuid
        , created_at timestamptz
        , endpoint text
        , project_id uuid
      )

comment 4y ago · link · parent

Protonmail is awesome. Even though I have been a paid customer for years, mostly to support them, I only recently started to actually use the products and they are really good and I love the focus on privacy.

comment 4y ago · link · parent

https://github.com/vercel/ncc

27.

Ask HN: What are you looking for when evaluating an open source project?

1 points · by fragile_frogs · 4y ago · 1 comment

comment 4y ago · link · parent

Convex queries remind me of RethinkDB's query language (ReQL). RethinkDB also had the horizon project[0], looking at todays projects like Convex, Thin[1] and supabase[2], kinda makes me wonder what the RethinkDB guys could have build.

RethinkDB was such a great project.

[0] https://rethinkdb.com/blog/horizon-release

[1] https://thin.dev/

[2] https://supabase.com

29.

Show HN: Effortless Authentication for Your Web Application

6 points · by fragile_frogs · 4y ago · discuss

comment 4y ago · link · parent

You can actually securely store a key pair inside of indexeddb by setting extractable to false [1]. You can then get a reference to the key and perform your allowed key usages without JS touching the key.

[1] https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypt...

123