HNHacker News
TopNewBestAskShowJobs

zaiste

1,614 karma · joined February 12, 2011

https://zaiste.net

[ my public key: https://keybase.io/zaiste; my proof: https://keybase.io/zaiste/sigs/EvUDW0OkIcaybj9B5OAXMpTK-lPm2Z9UV_KTLidKjso ]

submissionscomments
zaiste··on Flutter 2
If you're new to Flutter and looking for a gentle, yet practical introduction, there's this (free) video tutorial on YouTube: https://www.youtube.com/playlist?list=PLhXZp00uXBk5TSY6YOdmp...

(disclaimer: I'm the author)

zaiste··on Zero-Bundle-Size React Server Components
There's also Kretes¹ that comes with a React.js template. It pre-configures few popular libraries such as React Query, React Hook Form, built-in REST & GraphQL API, authorization/authentication, etc - so you can (relatively) quickly create a «full-stack» (TypeScript) app

[1]: https://kretes.dev

zaiste··on Vercel raise $40M Series B
Congrats Guillermo and the whole team at Vercel!

Initially I was a bit skeptical about Next.js, but nowadays I really like this all-in-one experience. There are still some rough edges, but it's understandable given the scope of this project. I'd love to see more focus on TypeScript, integration with something like esbuild or Snowpack or maybe even a Deno version (there's already Aleph.js). What may not be obvious at first glance is their dedication to solve those little, often difficult problems on the web. I like their next/image component. I was surprised to see AMP support. Their approach for blending frontend with backend is not only interesting, but practical. The future will be interesting for sure.

Contrary to other commenters, I find Next.js docs pretty good. You can see there was a lot of effort put into writing their tutorial. Rough edges are mostly related to everything that supplements the framework, i.e. 3rd party libraries. I think eventually they will be expanding to cover these various scenarios.

Also, I'm working on a 12-week video course about React.js / Next.js. When I noticed this announcement on HN, I figured it could be a good way to promote it. ;) It's not yet ready (early WIP). I plan to finalize details next week. So if you're looking for a React.js/Next.js jump-start, check it out at https://reactnextaz.com

zaiste··on Why not use GraphQL?
Thanks for the clarification
zaiste··on Why not use GraphQL?
I didn't know WunderGraph, but this sounds similar to OneGraph [1], i.e. you write your GraphQL query, identify its input if needed, then persist (once) the query on the server. This returns a unique query ID that can be used to execute that query server side. In OneGraph, you can use just HTTP for that, no need for a GraphQL client library. You can use any HTTP client to trigger a POST request with the persisted query ID and its input params in the request body. This way it seems a bit easier and simpler that your approach with RPC in WunderGraph. I need to read your docs to have a full picture though. ;)

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

zaiste··on Org Mode's new site
I also switched from Vim to Emacs specifically for Org Mode and Magit. I found the Doom Emacs configuration to be a perfect match for my muscle memory. ;)

I document my learnings about the Emacs/Doom ecosystem (including Org Mode, Magit et al) in a form of short videos on YouTube [1]. Maybe it will help in your journey...

[1]: https://zaiste.net/courses/emacs-doom/

zaiste··on Videos for learning Org Mode
I'm doing a video series about Org Mode as well, using Emacs Doom - so there's a little Vim vibe to it. ;)

https://www.youtube.com/playlist?list=PLhXZp00uXBk4np17N39Wv...

zaiste··on Show HN: Kretes – Build full-stack applications in TypeScript and PostgreSQL
Yes, our discussion a few weeks ago pushed me further to explore this topic. JOOQ is exactly what I'm looking for JavaScript/TypeScript. It's just a matter of having enough time ;)

Thanks for the proposition regarding Hasura integration. Happy to chat soon. Good luck with everything.

zaiste··on Show HN: Kretes – Build full-stack applications in TypeScript and PostgreSQL
Yes, they are essentially identical, it's about giving a choice. Also, those libraries focus (mostly) on the front-end part. In Kretes, I'd like to provide tools/methods that cover the whole stack so to speak. This is especially visible for newcomers. A Vue.js tutorial may show you how to build the UI, but then you need to figure out how to bring in and persist the data, or how to connect to an API, etc. This isn't to say that such article should cover everything, but I have an impression that the industry requires or rather forces specialization too early, i.e. before people have a chance to understand the big picture. Kretes is about arranging different pieces together so that they are ready to use right away, even if you know how to configure them on your own, you don't need to and can focus on solving the actual business needs of your application.

Disclaimer: As the project is in early alpha, this promise is not yet fully fulfilled. :)

zaiste··on Show HN: Kretes – Build full-stack applications in TypeScript and PostgreSQL
Thanks!

The environments introduced by Smalltalk, Self - and Racket, if we talk Lisp ;) - are one of major inspirations for this project. Another idea is to focus more on the JavaScript prototypical nature, instead of adapting solutions or design patterns from programming languages such as Java or C# as OOP is different in JavaScript.

The project, however, is in early alpha, still far from being close to a programming environment per se.

zaiste··on Show HN: Kretes – Build full-stack applications in TypeScript and PostgreSQL
Wow! That would be awesome. I'd like to finish with the on-the-fly compilation that uses ESBuild. This approach is similar to Vite and Snowpack. I wanted to integrate it with React/Preact and Solid.js in the next few weeks. Any help with that would be appreciated.

I also plan to rewrite the core to Deno. It will be relatively simple, but a bit mundane. ;)

zaiste··on Show HN: Kretes – Build full-stack applications in TypeScript and PostgreSQL
I'd like to tightly combine a semi-visual programming editor, the tooling and the runtime/infrastructure into one «thing» as shown in this video [1]. You write a bit of code, you drag and drop another bit, and almost instantly it becomes «online» - the compilation / the deployment process are somehow hidden and the configuration is minimal. It just works, so you can focus on solving the actual business needs of your application - but that's a long term vision... ;)

I must mention DarkLang [2] that seems to have a similar goal, but a different approach: Kretes builds on top of VS Code, and uses one of the most popular programming languages while DarkLang builds not only their editor from scratch, but they also introduced a new programming language. I find their project ambitious and inspiring - a potential game changer imho

[1]: https://www.youtube.com/watch?v=Ox5P7QyL774 [2]: https://darklang.com/

zaiste··on Show HN: Kretes – Build full-stack applications in TypeScript and PostgreSQL
Hello Tanmai :) Yes, exactly. It's not typed and also not actively maintained. The goal is to have a fully typed query builder that's adapted only to PostgreSQL. Here's the preliminary work for that [1]. I would also like to find a way to fully integrate with Hasura

[1]: https://github.com/typeofweb/functional-orm

zaiste··on Show HN: Kretes – Build full-stack applications in TypeScript and PostgreSQL
Thanks for the kind words!

1. I'm working on the admin panel, but it's not yet ready. I'm still hesitating how to approach the persistence layer without introducing too many abstractions. Generally speaking, I'd like to avoid ORMs as much as possible. :) 2. I use the node-pg-migrate [1] for migrations at the moment, but I plan to tightly integrate with Postgraphile / Hasura to give another approach for that part. 3. You need to add them manually, but the architecture is pretty close to Vite [2]. You have just one Node process for both front-end & back-end: in development I compile assets on the fly using ESBuild [4], in production I bundle them using Rollup. I should probably describe that in the docs more clearly :) In contrast to Vite, Kretes also provide a REST API out-of-the-box, and a relatively simple path for adding a GraphQL endpoint. 4. The current query builder - sqorn [5] - has a nice syntax as it uses the same vocabulary as SQL, but it's not typed. My goal is to create a fully typed TypeScript query builder that's adapted only for PostgreSQL. Here's the preliminary work for that [3] 5. I'm still working on the docs. I'll fix the things you mentioned right away.

[1]: https://github.com/salsita/node-pg-migrate [2]: https://github.com/vitejs/vite [3]: https://github.com/typeofweb/functional-orm [4]: https://github.com/evanw/esbuild [5]: https://sqorn.org/docs/about.html

zaiste··on Show HN: Kretes – Build full-stack applications in TypeScript and PostgreSQL
Hey HN, author here. Kretes is a tool for building full-stack applications in TypeScript and PostgreSQL with a goal to provide an integrated, battery-included and open-source solution for web development. It combines a web framework - similar to Rails, Django or Laravel - with a UI being built on top of the VS Code editor. It comes with a (eventually large) standard library of built-in modules that are developed in a coherent way e.g. authentication, authorization, admin panel [1] etc.

This project explores the ideas introduced by the Self programming language and aims to bring them to the current age. The ultimate goal is to create a semi-visual tool for building web apps in a more intuitive way using just one programming language - TypeScript - on the client & on the server, and without the accidental complexity.

The project started as a way to arrange my knowledge around JavaScript. Inspired by the past, I decided to replicate to some extend what Sun Microsystems did in ’95 with the Self programming language (a project I find underrated and ahead of its time), but using modern, popular tools such as JavaScript/TypeScript, VS Code, WebAssembly, PostgreSQL, etc.

The project is in early alpha stage with the bus factor of (strong) 1. :)

Happy to answer any questions here or at oh@zaiste.net*

PS. I’m creating a todo app using Kretes on YouTube [2] to explain the bigger picture of building full-stack applications. IMHO it’s good to have a general understanding of how web applications work before* specializing in front-end or back-end - that’s the goal for this video series, and for Kretes.

[1] not yet public

[2] https://www.youtube.com/watch?v=rLAElFkRrWI&list=PLhXZp00uXB...

zaiste··on Ask HN: What's your quarantine side project?
Kretes (https://kretes.dev/) - a boilerplate on steroids for building full-stack TypeScript applications faster and without accidental complexity whenever possible.
zaiste··on Show HN: Kretes, Self-inspired IDE for TypeScript built on top of VS Code
I made this short video with Preact and Snowpack: https://www.youtube.com/watch?v=2ESEH1sQdcM The project was formerly known as Huncwot. Let me know if that helps!
zaiste··on Show HN: Kretes, Self-inspired IDE for TypeScript built on top of VS Code
Hey HN, author here. Kretes is an integrated programming environment for TypeScript & Node.js, built on top of Visual Studio Code. It combines a web framework - similar to Rails/Django - with a UI layer built inside of the VS Code editor.

This project explores the ideas introduced by the Self programming language and aims to bring them to the current age. The ultimate goal is to create a semi-visual tool for building web apps in a more intuitive way using the same programming language (TypeScript) on the client & on the server, and without the accidental complexity. :)

The project started as a way to arrange my knowledge/toolset around JavaScript. Inspired by the past, I decided to (somehow) replicate what Sun Microsystems did in ’95 with Self (a project I find both underrated and ahead of its time), but using modern, popular tools (VS Code, JavaScript/TypeScript, WebAssembly, PostgreSQL, etc).

Happy to answer any questions here or at oh@zaiste.net

zaiste··on Vercel, formerly Zeit, raises $21M Series A
That's also the objective of Kretes [1], a programming environment for TypeScript & Node.js (soon Deno) with built-in support for plain SQL and GraphQL

[1]: https://kretes.dev/

zaiste··on Ask HN: What is your blog and why should I read it?
https://zaiste.net/programming/

It's partly a blog, partly a wiki about programming. I try to combine those two parts with the wiki part being (somehow timeless) definitions and the blog part covering the current trends while referencing those definitions.

I aim for concise, matter-of-fact, no fluff writing.

The website is on GitHub, so that potential mistakes could be easily fixed with pull requests.

zaiste··on Prisma 2.0 Beta: Type-safe Database Access
Those, who prefer a more old-school approach, may find PgTyped [1] interesting: you write SQL and you have typings in TypeScript. Still very alpha, but promising.

I'm working on integrating PgTyped into Huncwot [2]

[1]: https://github.com/adelsz/pgtyped [2]: https://github.com/huncwotjs/huncwot

zaiste··on Ask HN: What projects are you working on now?
I'm creating a Rails/Django equivalent in TypeScript called Huncwot [1]. The project draws inspiration from Self [2] and aims to combine a framework, an editor and infrastructure into a unified programming environment.

In other words, I'm on a quest for the Holy Grail of Programming. ;)

[1]: https://github.com/huncwotjs/huncwot [2]: https://www.youtube.com/watch?v=Ox5P7QyL774

zaiste··on Redwood: An integrated, full-stack, JavaScript web framework for the JAMstack
Congrats on the launch, Tom & the team!

I'm working on something similar. I hope to pick up some ideas ;)

My project is about helping create more traditional JavaScript applications, not necessarily JAMstack. It is inspired by the Self programming environment created at Sun Microsystems in '95, so it's not a framework per-se, but a combination of a framework, an editor (VS Code plugin) and (in the future) infrastructure.

The project is called Huncwot: https://github.com/huncwotjs/huncwot

* it supports TypeScript out of the box * it provides background processing (via Postgraphile Worker) * it aims to support only PostgreSQL, so that we could conveniently use all those beautiful PostgreSQL features that are usually «hidden» by ORMs * I'd also like to make SQL more popular ;) * there is a bit of inspiration from Clojure * it favors the function composition, e.g. for handlers * it comes with a built-in authentication/authorization, which you shouldn't probably use in production just yet * it is still very alpha * for the front-end you can use React, but also Vue.js and possibly Angular or Svelte * and many other things which I haven't yet described in the README as I work on this on the side, mostly alone

There is also fantastic Dark Lang (https://darklang.com/) in the same, quite similar yet different.

zaiste··on JWT is Awesome
I've written such a rant almost a year ago. [1] The article shows how to build a « RESTful » API secured with sessions implemented using regular cookies: simpler & without unnecessary complexity.

[1]: https://zaiste.net/creating-secure-rest-api-nodejs-without-j...

zaiste··on A walk through the Magit interface
I make short YouTube videos about Emacs. I've recently done some Magit and Forge related ones [1]. I record what I learnt, so it's far from perfect. Hopefully this helps someone.

[1]: https://www.youtube.com/watch?v=7ywEgcbaiys&list=PLhXZp00uXB...

zaiste··on Meetup.com alternatives
Yet another alternative, focused on technical events is Eventil [1]. It's born out of my experiences as a organizer of PolyConf [2] and RuPy [3] conferences. It's a side-project built to scratch my own itch. There is still plenty to be improved with bugs here and there. Several large conferences use this tool successfully to improve their workflow.

There is group management, ticketing without fees, call for proposals management, mailings, invoicing, sponsorship management et more. We charge 49/199 USD on per-event basis (no monthly fee, no % off ticket sales) depending on the event size. Free events are free and non-profit are 50% off.

[1]: https://eventil.com/ [2]: https://polyconf.com/ [3]: http://13.rupy.eu/

zaiste··on Mirth – a type-safe concatenative purely functional programming language
Thank you!
zaiste··on Mirth – a type-safe concatenative purely functional programming language
Would you be willing to point me to some research/articles related to your statement about complex types? I'm (also) working on a statically-typed, concatenative programming language. It's for fun. I'd like to learn more about this topic.
zaiste··on Nearly everyone who is new to Emacs hates it passionately (2014)
Shameless Plug: I'm doing some Emacs introductory videos on YouTube [1]. It's specifically oriented for newcomers.

I fell in love with the Emacs Doom [2], a distribution made for Vimmers - this way you can draw from two ancient sources of power at the same time... ;)

[1]: https://www.youtube.com/playlist?list=PLhXZp00uXBk4np17N39Wv... [2]: https://github.com/hlissner/doom-emacs

zaiste··on Ask HN: What are you working on?
I'm teaching programming for beginners & non-programmers on YouTube with Flutter and JavaScript. I'm trying to expose my pupils to slightly lesser known concepts, paradigms with the focus on functional programming, Reactive extensions etc. I have plans to do Clojure or Common Lisp next.

I'm also doing some Emacs related videos, presenting a single concept each time. I'm a big fan of Doom Emacs.

https://www.youtube.com/zaiste

← PreviousPage 2 of 4Next →