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

I might be wrong, but: What has science got to say about who should be admitted to schools, or more broadly what the priority of civilization should be? I think you're trying to universalize some of y(our) internalized beliefs into axioms.


Is there something like this for Java?


https://github.com/remkop/picocli

"Picocli is a one-file framework for creating Java command line applications with almost zero code. Picocli aims to be the easiest way to create rich command line applications that can run on and off the JVM.

Picocli supports a variety of command line syntax styles including POSIX, GNU, MS-DOS and more. It generates highly customizable usage help messages with ANSI colors and styles. Picocli-based applications can have command line TAB completion showing available options, option parameters and subcommands, for any level of nested subcommands. Picocli-based applications can be ahead-of-time compiled to a GraalVM native image, with extremely fast startup time and lower memory requirements, which can be distributed as a single executable file.

Picocli generates beautiful documentation for your application (HTML, PDF and Unix man pages)."

https://picocli.info/quick-guide.html


Many, yes. You can pair a CLI arg parser with a logger that supports colored output, and add a TUI library if you needed that. There are "command line frameworks" as well, like picocli that can be paired with something like Jbang for distribution.


JLine has a complete terminal library and includes a demo which is a full editor: https://github.com/jline/jline3


Babashka has saved me a lot of time. I actually think it is the quickest and easiest way to get started learning Clojure, to a point. No startup time didn't seem like a big deal for my workflow until I got instant startup time when running script, and starting repls -- The kind of repl where you can inspect and act on anything in your program.

Babashka tasks is fantastic too! Multi-threaded, simple, and very few surprises.


> actually think it is the quickest and easiest way to get started learning Clojure, to a point.

That's great, I was just checking out Clojure a few hours ago and now have it installed. Any other cool blogs and resources the fine folks on here could recommend.


If you are just getting into Clojure itself, you might enjoy this interactive tutorial in an app that is itself written in a Clojure/ ClojureScript combo: https://orgpad.com/s/iByMMbKLBnq There are links to other resources. Just click units with more pronounced shadows - those have contents, e.g. small interactive editors, videos etc.


This might be further down the rabbit hole than you want to go, but I enjoyed the incredibly detailed blog post here with Babashka and deploying a AWS Lambda: https://jmglov.net/blog/2023-01-04-blambda-analyses-sites.ht...


That blog post wasn't about nbb, but about bb, right?


You are right I edited up update the comment


If you're truly looking for an info dump...

https://gist.github.com/ssrihari/0bf159afb781eef7cc552a1a0b1...

And I'd start from the very first link! I'm sure everyone agrees an engaging writing style goes a long way. Ayphr's posts are awesome for broad understanding, some novel order to the presentation I haven't seen elsewhere


This is for general Clojure, I’ve had a lot of fun and learned a lot from it (and the original): https://4clojure.oxal.org/


Case and cond are nice, but they suffer from the expression problem. When you want to let other people add methods to your code without modifying the source you need to use multimethods (or protocols).

If your method only needs 1 argument then why should the other ones matter? I don't see a problem here. clj-kondo will guide people to name them as _ or _thing anyway so you don't even need to think about it.


It's not a book, but I think the most high quality introduction to Godot is by HeartBeast on youtube. I went through his "Pixel Platformer" video "Godot action RPG" playlist. These were quick and got me everything I needed to get started.

Here are some games I made as a hobbyist with godot, in increasing complexity:

- https://escherize.com/works/magnet - https://escherize.com/evermeet - https://escherize.com/works/vampire


I believe this [0] is the link to the HeartBeast series mentioned.

[0] https://www.youtube.com/playlist?list=PL9FzW-m48fn2SlrW0KoLT...


I've bought both of his courses and can confirm they are excellent and absolutely worth the money (although I got his newest one at a deep discount, it's fairly pricey). He also makes himself available for questions over Discord and very friendly.


really like the vampire (survivors-inspired?) side-scroller, thanks for sharing them all.


I am curious what is survivors (a quick Google search didn't yield anything obvious) because the music is clearly from the Castlevania games.


Vampire Survivor like games are top-down action games where you move your character and it auto-attacks hordes of enemies. You gather XP and choose from a few options each level up. You end up selecting s handful of offensive and utility capabilities and get ultimate versions of them if you manage to max them out. There are some synergies between the different weapons and items you end up choosing in your build (complexity of synergies varies in the genre.) If you’re familiar with autochess, the leveling/building takes cues from that genre.



Awesome games! Simple and captivating.


Seconding HeartBeast


Me too! I wrote this little site years ago to help explain what hiccup is: https://escherize.com/works/hiccup.space/


Was there something about Joker [0] that you didn't find suitable?

[0] - https://github.com/candid82/joker


Didn't know about it; but I lean more towards traditional Lisps, Clojure has too many opinions.


Good to see people coming to the same conclusions we have had for a while using Clojure. There's an up and coming runtime data validation framework called Malli that I use for these sorts of files.

You can get many of the benefits but also run custom validations (dictate how two keys in a map relate to eachother, or force a be of a certain shape instead of just a string).

Here's the example from the script: [0]

[0] - https://malli.io/?value=%7B%20%3Alocale%20%22en-US%22%0A%20%...


I use lineage os for microG [0] myself, but can't find a good foss android keyboard. Is there such a thing?

[0] - https://lineage.microg.org/


Florisboard


There is a new thing, and it's kind of a toy [0]. But it lets you load clojurescript from a script tag, so there is practically no setup needed!!

[0] - https://borkdude.github.io/sci-script-tag/index.html


Worth keeping in mind that that's Small Clojure Interpreter (SCI) which while very cool, isn't ClojureScript. Seems to be running Reagent perfectly fine though, so not sure what the exact differences are, AFAIK, SCI is a subset of Clojure.


Wow sci can run reagent out of the box? That’s not a small feat, excellent work @borkdude!


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

Search: