HN user

fernandohur

452 karma

Hacking on https://synthql.dev, a type-safe http client for PostgreSQL

Posts36
Comments27
View on HN
fhur.me 6mo ago

Maybe the database got it right

fernandohur
7pts0
fhur.me 6mo ago

Change is the root of all (evil) bugs

fernandohur
2pts0
news.ycombinator.com 1y ago

Ask HN: What AI tools are you using to boost developer productivity?

fernandohur
4pts3
fhur.me 1y ago

Why you shouldn't default to positional parameters

fernandohur
2pts0
fhur.me 1y ago

That's not an abstraction, that's just a layer of indirection

fernandohur
10pts2
fhur.me 1y ago

Why strength training? A programmer's perspective

fernandohur
86pts161
fhur.me 1y ago

Oh shit: AI works The story of my "AI wake-up" moment

fernandohur
3pts0
fhur.me 2y ago

The Internet Has Changed

fernandohur
2pts3
news.ycombinator.com 2y ago

Show HN: A small tool for visualising option chains

fernandohur
1pts0
kysely.dev 3y ago

Show HN: Kysely, a type-safe SQL query builder for TypeScript

fernandohur
90pts63
fhur.me 3y ago

Do you want your children to be like you? A programmer's perspective

fernandohur
36pts62
your-docusaurus-test-site.com 3y ago

Show HN: Kysely, a type-safe SQL query builder for TypeScript

fernandohur
1pts0
fhur.me 3y ago

I Choose Optimism

fernandohur
1pts0
fhur.me 3y ago

Don't wait for interview feedback, introspect instead

fernandohur
2pts0
fhur.me 3y ago

The phyrric victory: a lesson in product management

fernandohur
1pts0
fhur.me 3y ago

Always use [closed, open) intervals

fernandohur
8pts0
fhur.me 3y ago

Why Read Dostoevsky?

fernandohur
2pts0
fhur.me 4y ago

More States, More Bugs

fernandohur
3pts0
paulbutler.org 4y ago

The WebAssembly app gap (2020)

fernandohur
2pts0
fhur.me 4y ago

There's no such thing as a one line change

fernandohur
3pts0
fhur.me 4y ago

Knowledge is like a house of cards

fernandohur
132pts63
fhur.github.io 5y ago

Kelly Criterion – how to calculate optimal bet sizes

fernandohur
272pts129
news.ycombinator.com 5y ago

Ask HN: Best resources for learning applied probability?

fernandohur
3pts0
news.ycombinator.com 5y ago

Ask HN: Good resources for learning probability? (pref. real world applications)

fernandohur
3pts0
news.ycombinator.com 7y ago

Ask HN: Moving to Sales, Any Advice?

fernandohur
3pts1
news.ycombinator.com 8y ago

Ask HN: Most compelling evidence of climate change?

fernandohur
2pts1
journals.plos.org 8y ago

The Effect of Cold Showering on Health and Work

fernandohur
2pts0
www.daiyi.co 8y ago

A smol comic about Clojure(script)

fernandohur
4pts0
www.reddit.com 8y ago

What are your thoughts on using Clojure for more than 2 years?

fernandohur
46pts11
getbootstrap.com 8y ago

Bootstrap v4.0.0-beta is here

fernandohur
1pts0

https://synthql.dev: An alternative to PostgREST focused on the React-Node-PG stack. Main advantage right now is it gives you end to end type safety: you can write type-safe queries straight from your component that directly access your database.

Why SynthQL? My experience working for +10 years on enterprise SaaS is that a quite often you just want a database and a way to fetch data from it. Backends will quite often get in the way adding abstractions and layers upon layers of transformation between DB objects to domain objects to DTOs.

If you ever feel like you just want to talk to the database directly, give SynthQL a try :)

An open-source, type-safe http client to your postgresql database. It let's you access your database directly from your react components. It's fast, safe and performant. Think Graphql but you don't need to implement resolvers, it's all generated from your database schema.

If this sounds interesting to you, ping me (email on my profile) :)

Assuming the context is for solving real-world problems, not textbook problems:

1. Try to solve the smallest (but similar) problem you can think of. You'll learn a lot along the way and might figure out if it is doable or not. As a reminder, just because a problem is solvable doesn't mean it's solvable at an acceptable level of cost/time/effort. Solving a similar, but smaller problem will help you estimate the feasibility of the larger problem.

2. If the problem is worth solving, it's probably affecting people who in turn have tried to solve it before and are using either approximations or imperfect solutions. Talk to them, understand what they've tried, what works and what doesn't. If the problem affects enough people It's very likely that a solution exists already, it just hasn't been generalised, productised, or automated yet.

Why Not Mars 4 years ago

Moving to Mars is analogous to a full app re-write.

Instead of dealing with the "technical debt" that we've built on earth over the past couple thousand years, the proposal is that we start off with a clean slate.

I'm not saying it can't work, but if software engineering has thought us anything at all it's that full app re-writes are generally a terrible idea. The sheer complexity and vast amount of unknown unknowns is what generally kills these projects and what would also kill any attempt at re-building civilisation in a foreign planet.

Don't re-write, refactor and fix the bugs on earth.

There's a difference between not drinking and not being a drinker. If you are able to create an association in your mind between "me" and "not a drinker" it will make it easier over time to reject a drink, either when your friends or colleagues offer one or when you yourself offer one to you.

Do you want a drink? No, I'm not someone who drinks.

This technique is not specific to alcohol, I used it to stop smoking many years ago. I believe it has roots in Buddhism. The idea is to dissociate the "I" with the habit that you want to get rid of.

Nassim Taleb's Black Swan is also a great read on the instability (or in his words, fragility) of knowledge. A single observation is quite often enough to break what has been considered solid knowledge for years.

Interesting, thanks for sharing. I've just setup the site so I think it's more likely the error is on my end. Can't say I know the answer but I'll try to figure it out :) and again, thanks for sharing the screenshot!

Show HN: Darklang 7 years ago

Thanks for the quick reply :)

A few more questions

# Maintenance costs & agility

You're not just building a programming language, you're also building an IDE, and now a version management system (through feature flags).

Each of these tasks are hard problems individually, what gives you the confidence that a small startup can build all of them? All of this while trying to make your company profitable.

# Ecosystem

If your language is not hosted, how do you plan on building an eco-system around it. (I know you come from a Clojure background so you've probably seen the wonders of being able to re-use Java's ecosystem).

The Land of Lisp 9 years ago

"Simple but refined, guaranteed to blow your mind, the land of lisp"

This guy is a genius :D