1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2025-02-25 15:50:05 +00:00

Compare commits

...

3 commits

Author SHA1 Message Date
Rohan Kumar
e8ab433b22
Fix undefined "==" behavior in POSIX sh
Thanks, ShellCheck.
2023-02-09 22:51:12 -08:00
Rohan Kumar
45c046f4c6
Add ooh.directory link 2023-02-09 22:50:58 -08:00
Rohan Kumar
dbecd0e252
New note: Praise for MoonScript 2023-02-09 20:05:06 -08:00
3 changed files with 15 additions and 1 deletions

View file

@ -58,6 +58,7 @@ The {{<mention-work itemtype="WebSite">}}{{<cited-work name="1MB Club" url="http
- [Smooth Sailing](https://smoothsailing.asclaria.org/) - [Smooth Sailing](https://smoothsailing.asclaria.org/)
- [Ye Olde Blogroll](https://blogroll.org/) - [Ye Olde Blogroll](https://blogroll.org/)
- [Nerd Listings](http://nerdlistings.info/) - [Nerd Listings](http://nerdlistings.info/)
- [ooh.directory](https://ooh.directory/)
<details> <details>
<summary>Pending directories</summary> <summary>Pending directories</summary>

View file

@ -0,0 +1,13 @@
---
title: "Praise for MoonScript"
date: 2023-02-09T20:05:06-08:00
syndicatedCopies:
- title: 'The Fediverse'
url: 'https://pleroma.envs.net/notice/ASWazRoTC73EHFeRGa'
---
[MoonScript](https://moonscript.org/) (a language with a CoffeeScript-like syntax that transpiles to Lua) continues to be the most enjoyable programming language I have ever used.
It's not the most practical choice for everything; I probably would choose something else for a big collaborative project. But it's an absolute joy to use something that truly feels like "executable pseudocode", like a simpler Python alternative with a bias towards functional programming. If you can grok Lua's "tables for everything" model, then [the MoonScript language guide](https://moonscript.org/reference/) should help you pick up the language in minutes.
If we had a "gradually typed" MoonScript to target [Luau](https://luau-lang.org/) instead of Lua, I'd probably use it for everything.

View file

@ -36,7 +36,7 @@ fetch_webmentions() {
# fetch webmentions if we don't have a fresh copy already. # fetch webmentions if we don't have a fresh copy already.
if [ -f "$webmentions_file" ] \ if [ -f "$webmentions_file" ] \
&& [ "$(find "$webmentions_file" -mmin +90)" == "" ]; then && [ "$(find "$webmentions_file" -mmin +90)" = "" ]; then
echo 'Using cached webmentions' echo 'Using cached webmentions'
else else
echo 'Fetching webmentions' echo 'Fetching webmentions'