17 july 2024 (wtf node)
posted on July 17, 2024
ok im gonna start wanikani. it’s a thing to learn japanese vocabulary… you basically do routine exercises over and over again until you memorize the meaning of things, i guess. it sounds good for learning to read, but not so much for conversations, i guess. meh.
the reason i originally got interested in that language is because i had relatives living in japan (for business) a few years ago; since then they’ve moved back to italy, but the interest is still lingering. i guess i can add visiting japan to my bucket list. tbh, i’ve never been outside of europe, so could be fun
also, a quick nerd rant on next.js
i’m not exactly familiar with node or the javascript runtime, but holy shit… the framework im most comfortable with is spring boot (w/ kotlin) and there it’s SUPER easy to add background jobs, cron scheduled jobs, and all that sort of shit.
but apparently in nextjs it’s basically impossible by design! the vercel dorks (nextjs devs) offer a serverless lambda/function service which i mean, it kinda amends that, but im not using their hosting; i was planning on self hosting my nextjs instances.
so yeah, i guess you’re kinda screwed if you wanna keep it in a singleton runtime… thats what i kinda like about using spring boot for web apps, you can have (for better or for worse) everything all together, if you so desire.
i guess i have a preference for minimizing apps into as few instances as possible. not exactly monoliths, but as few instances as it can be reasonably executed on. i worked in a company that used java 8 (as recently as 2023) for everything, and each single spring boot application had like… 50+ modules. like, everything was split into way too many fucking modules, for no reason. i like maven, but even it had trouble managing that much shit – and we didn’t exactly have a competent devops or “maven person” to fix all that garbage.
meh, im making (from scratch) a booking app for a local, small hotel. i wrote the entire cms/booking flow part in nextjs, just to try it out. i guess ill make some sort of “background” thing in python for background/queue processing, since nextjs doesnt allow it. lol. its kinda necessary to process bookings (send emails, notifications, or update statistics, or whatever. still not to that stage of development yet)