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
Published at
2025-03-23 22:02:30Event JSON
{
"id": "000090e4f51f7c1a7cc7f8f9db906ca826de7becc8d6df4e3f38535272307c15",
"pubkey": "5e336907a3dda5cd58f11d162d8a4c9388f9cfb2f8dc4b469c8151e379c63bc9",
"created_at": 1742767350,
"kind": 1,
"tags": [
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
],
[
"nonce",
"6953",
"15"
]
],
"content": "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.\nHonestly, 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\nSo 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!\".\n- No, it isn't a good idea to write a Go application this way...\n- No, it isn't a modern approach to things - it's literally MVCC from 2010...\n- 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\n- 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.\n- 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.\nUsing 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).\n\nOh and you bet I am making sure there is a Nostr integration somewhere in this LMAO XD\n\nI 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",
"sig": "bec57af0ae3b1a7f670a26d15c1a665583d19a97087f06053932b0ed88bdf55e74337e3bdfd2caff784cde75fc01e012c7d037c1469428c1ce49d8c072f331f5"
}