Hacker News new | past | comments | ask | show | jobs | submit | more sandruso's comments login

https://snaptail.dev - during the past few days I was exploring concept of single source file applications where you can hide the build system.

I'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


Great, happy to see progress in this space! I've built demo for the same thing with same use-case couple day ago. Execute untrusted JS code.

Empowering user apps with code is way to go.


Thank you. Totally agree! Another interesting feature of code interpreting is that it improves the reasoning of LLMs


Looks good! I'll give it a try.

Do you plan to support vue sfc files?


My recent story on linkedin.

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.


The most obvious (in hindsight) thing I learned during finding purpose was: You see the world through your experiences. You can’t really ask yourself what you like when you know anything outside of your current worldview.

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.


Understanding lower levels can be satisfying for certain type of people. I find it very useful when you can reason about stuff that is mostly invisible to other people. But if you are building web apps then this stuff is 95% useless as you can’t leverage the knowledge because web apps are much higher level.

If you are curious about this stuff definitely look into it. It may be worth to you.


Not just web apps, isn't most of assembly language just incidental details? Is it fundamental knowledge? I doubt.


Most is details you don't need. However knowing how a function call works, what kind of branching is available and how to do basic operations with collections (arrays or more) at the assembly level will allow you to write more efficient code in higher level languages.


It is fundamental knowledge, but you can skip it thanks to higher levels of abstraction.

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.


To clarify, I meant native as build with native platform gui . No electron no web views.

I’m curious because everytime a topic about desktop pop ups GUI I see passion about it and sentiment native good and electron bad.


The npm install experience should be baseline for newer languages. Simply let me get into hacking fast. This is one of the top reason I like tinkering with JS because it just works. (Yes, I know all weaknesses of JS ecosystem, but getting is really easy)


Please, no. Node tooling is such a mess and I can almost never get anything running easily on Nix because Node developers download binaries from the internet without understanding the system. All of these executables fail because of linked libraries. If instead they told you what libraries and executables you'd need instead loosy-goosy installing garbage all over my system, more things might work.


Sure npm is not silver bullet. But I want the npm experience. Technical implementation can be improved as you say and I agree.


Then you should be a fan of Nix


I do agree.

I think .Net has got it right. And dotnet-script [https://github.com/dotnet-script/dotnet-script] has been a game-changer for me with a REPL-like experience for unit testing and writing command-line utilities.


Fetch is low level. Axios is battery-included


Low level? Really? Can you point something that is achieved on axios with few lines of code that fetch couldn't do it with few lines of code too? I can't considerate fecth.get().then(res => res.json().then(data => /.../)) A Low level thing.


I don't use axios often, but if I need to intercept requests, or set global headers I always need to wrap my fetch function and creating my own "axios". Axios can do these things without hassle.


Even if some difference actually matters (e.g. setting a timeout), it would be wise to wrap axios or fetch in a custom function, which obviates the need to use either for most developers using the codebase.


Wish you well!

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.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: