Why Nostr? What is Njump?
2025-03-23 22:02:30

IngwiePhoenix on Nostr: So I just spent some (WAY too much...) time looking at the Yii 1.x API ...

So I just spent some (WAY too much...) time looking at the Yii 1.x API (.../framework/base) and it's components and thinking how I would do those in Go. Some of the interfaces are almost straight copies, but some of the actual components - like CCache, IUserIdentity, IWebUser - are a little different. So instead of doing _everything_ myself, I went and looked at AuthBoss and some other libraries.
Honestly, having sat here for a while now, it isn't actually unthinkable to do this...which is SHOCKING. xD At least to me...lemme hab mah lil world. uwu
So I think I will just ... do it. Yii, on the frontpage, reads as "Yes, it is!" - so my version is nii: "No, it isn't!".
- No, it isn't a good idea to write a Go application this way...
- No, it isn't a modern approach to things - it's literally MVCC from 2010...
- No, it isn't the most performant; in fact, it might be genuenly slow especially on startup since I use reflect to build the router off of your controller's Action*()-methods, kebab-casing them and going from there. Its nasty, okay. xD
- No, it isn't going to change the world. Although I use components with either a good reputation or ongoing maintenance, it is a hobby project and a stupid one ontop.
- No, it isn't for everyone. This is largely for the idiots - of which I am one, mind you - that could never mentally move on/out of the bubble they were in. If you liked MVC, then you might like this project.
Using templ, htmx and a few other tricks, I plan on leaning on the Yii 1.x API in parts, but change it into proper Go-isms where it makes sense (return error instead of bool in many instances).

Oh and you bet I am making sure there is a Nostr integration somewhere in this LMAO XD

I am just dicking around...but, also, kinda not. I want to see how far this can go, or if it even should go. But here I am - partially stuck in the past, partially excited about the future and somewhere inbetween a giganerd who's just like, "amma do it cuz uwu" XD
Author Public Key
npub1tcekjparmkju6k83r5tzmzjvjwy0nnajlrwyk35us9g7x7wx80ys9hjmky