134 karma · joined June 13, 2020
Interests: Compilers, web
---
I wonder how to achieve the transaction-like (commit/rollback) behavior that will works across boundaries. Doing it on language-level is the way. Compiler/interpreter can handle all the state serializations.
during past few days I was exploring concept of single source file applications where you can hide the build system.
I've cobbled together snaptail which hides nextjs build system and allows to work with just a single file.
It works great for fast prototyping or building an internal/local apps.
There is also support for API routes that can be exported via api variable.
An example:
// myapp.tsx
export const App = () => <div>Hello world!</div>
export const api = [
{
method: "GET", path: "/api/hello",
handler: async (req, reply) => {
return reply.send({ hello: "world" });
}
}
];
// shell:
npx snaptail myapp.tsxI've cobbled together this tool which hides nextjs build system and allows to work with just single file.
It works great for fast prototyping or building an internal/local apps.
edit: repo: https://github.com/rybarix/snaptail
Empowering user apps with code is way to go.
Do you plan to support vue sfc files?
I subscribed for premium as I was eligible for free month. I did use one-time card as I wanted to unsubscribe before end. Of course I forgot to that. It tried to charge the card but it failed. When I tried to cancel the subscription it said I have attached invalid card.
Okay I will remove card and cancel subscription. Oh, no so fast. I couldn't remove card because I had "active" subscription. It was circular deadlock.
Finally I found way to unsubscribe on their plan picking page after few minutes of frustration. I hope this is QA issue and not intentional.
This can be applied to anything. How can you solve problems when you don’t know about them? How can you find your purpose when you did’t try 99.9999% of possible activities.
Just do it and maybe it will resonate with you.
In the end everything is just bunch of ones and zeroes and clever hardware architectures.
Nand2tetris is great source for figuring out whether this is something you want to get in to.
If you are curious about this stuff definitely look into it. It may be worth to you.
I’m curious because everytime a topic about desktop pop ups GUI I see passion about it and sentiment native good and electron bad.
Did you work from home? Because my attention span also dropped significantly during covid. What helped was getting out of the house to get some work done.
You can check apple support, its multi-step process where in each step they ask you a question which narrows down possible issues. I think this is foolproof for problem diagnostics.
Why?
Because creating these websites quickly is always content problem. We should start from content and create a design according to content not other way around.