I saw this on Reddit a couple of days ago. Two suggestions:
- Change the symbol -> to | because it's more similar to how pipe works in shell than how -> works in C++/PHP.
- Introduce a second way to do string literals, so :hello is equivalent to "hello". Then change encode so that its second argument is a string instead of a mysterious name. (Read the docs but didn't actually understand how it worked under the hood. Is it just hardcoded?) So `encode json` becomes `encode :json` (or `encode "json"` if the user prefers).
Nice project, but this is not super useful in practice. HTTP itself is a DSL, so this is another DSL around that DSL. I would definitely choose curl and bash over any other abstraction, and if logic was needed, there are great libraries in every language to do this - requests in Python for example. Sounds like a good learning experience though!
I just started to learn about "Mule" - this makes me think of the language it offers to work with APIs (dataweave) - one might want to be able to have a way for this language to be extended to allow web serving so that one could use it as a way to build new simpler APIs from lower level ones.
Oh man, REBOL, blast from the past. If they had open-sourced it early instead of trying to promote a proprietary programming language we might talk about REBOL along with Python and Ruby. Instead, it's forgotten.
The author said he wanted to build something that incorporated the things he learned while going through some "How to build a compiler in Go" books, not necessarily for anything particularly useful.
I'd say the lack of need of a particular interpreter makes this a lot more portable and usable.
A tool written in Python or Ruby will always be most usable by Python or Ruby developers. A tool written in Go and compiled to a single binary has no such barrier to entry.
Reader Mode in Firefox is a godsend for this. Instead of click after click on the Zoom+ button (or Ctrl-+), trying to see how many it takes, it's a single click to immediately get things into exactly the font, width, and colour I want.
[+] [-] nikeee|4 years ago|reply
https://hurl.dev
[+] [-] donatj|4 years ago|reply
Glancing at the code, seems easy enough.
If the Author is around, I'm curious if that'd be a supported use case? The README makes no note.
[+] [-] earthboundkid|4 years ago|reply
- Change the symbol -> to | because it's more similar to how pipe works in shell than how -> works in C++/PHP.
- Introduce a second way to do string literals, so :hello is equivalent to "hello". Then change encode so that its second argument is a string instead of a mysterious name. (Read the docs but didn't actually understand how it worked under the hood. Is it just hardcoded?) So `encode json` becomes `encode :json` (or `encode "json"` if the user prefers).
This is a pretty cool project.
[+] [-] jamescun|4 years ago|reply
[+] [-] alexk307|4 years ago|reply
[+] [-] t43562|4 years ago|reply
[+] [-] bryanrasmussen|4 years ago|reply
[+] [-] kbd|4 years ago|reply
[+] [-] kburman|4 years ago|reply
[+] [-] seanw444|4 years ago|reply
[+] [-] chris37879|4 years ago|reply
[+] [-] donatj|4 years ago|reply
A tool written in Python or Ruby will always be most usable by Python or Ruby developers. A tool written in Go and compiled to a single binary has no such barrier to entry.
[+] [-] ushakov|4 years ago|reply
during the pandemic i have started building a declarative (YAML) http client for testing APIs which will integrate into CI/CD like GitHub
drop me a line if you’re interested
[+] [-] linkdd|4 years ago|reply
[+] [-] unfocussed_mike|4 years ago|reply
Very occasionally I bump up the font size a notch in Chrome to make things a little easier when I am tired. Even HN occasionally.
I've not had to bump it up _three_ notches before now. 12px serif body text in 2022? Ouch :-/
[+] [-] OJFord|4 years ago|reply
I'll get there one day I suppose and should enjoy it while it lasts, but for now most stuff really does look comically large and content-less.
[+] [-] IceWreck|4 years ago|reply
[+] [-] nojonestownpls|4 years ago|reply
[+] [-] donatj|4 years ago|reply
Hacker News, and in fact this comment are 12px. Something's up with this site that's making it extra tiny.
Update: Proof - https://jdon.at/ZVirr2
[+] [-] rmbyrro|4 years ago|reply
[+] [-] xboxnolifes|4 years ago|reply
[+] [-] Garlef|4 years ago|reply
[+] [-] spicybright|4 years ago|reply