Reflection
I've witnessed others do this; I accused the community of gatekeeping in my last post.
That's not nice.
I could have attributed it to incompetence, instead.
But that would be even worse...
...and it all kind of reflects back on myself.
It's either I am the asshole here, or the incompetent one.
It depends on how I perceive myself in relation to it all or something.
Around Hive, I can't count how many times someone had some sort of crashout and accused someone of holding them back in some way, which to me -from the outside- seemed ridiculous.
...but relatable in an uncomfortable way...
Flask
While learning Python, Flask and all the rest of it, I had similar issues.
There are really good sources on some of this stuff.
https://blog.miguelgrinberg.com/
Can't find his mega tutorial right now, but he covers everything well.
Yet, he never explains how to actually deploy the thing.
His code is always just examples that 'look different in a production environment'.
'It depends on your app'...
And I can't find the clip of him now, where he replies to some questions on video and you can tell: he genuinely does not understand the question, even.
And this guy is the opposite of incompetent in Python and Flask.
He is just unable to pick some people up from where they stand.
An inability to relate.
WSGI
It got to a point, where I had wachted so many tutorials, copied so many examples, that I could smash out a dev environment flask app in a few hours.
I just never made the leap to deploy them, because certain pieces to the puzzle were missing.
And so I had to figure this out somehow else and started asking the people here on Hive, too.
I asked every programmer I knew somehow, but they all went like: 'Yeah... so?', 'Just deploy the thing', 'Nice!'
It was frustrating.
Then, I found this presentation:
This guy is leading a team of software engineers.
And he was struggling just like me, if not worse.
AI
If you are under the impression that AI can replace devs now, and that you can vibecode this shit:
Not even close, yet.
As soon as the system gets complicated with multiple services and a database and such things, you are on your own.
The systems I build are fairly trvial imo, but AI is completely incompetent here, still.
ASGI
I've now gone further and built the whole system I was designing with aiohttp. Skipping flask and all that, and let the webserver itself do some of the heavy lifting, too.
I've broken it all down to very essential functions and it's all asynchronous and threadsafe by design and still simple. I thread on OS level, I can easily migrate separate services to different machines, scale like I want to... Beautiful.
From my point of view, I am now advanced by a few levels.
Incompetence
It was for a good part my own incompetence to ask the right questions.
But all those people I have asked never even asked me if I had built the thing async or nah (and where), which leads me to believe they didn't even understand what I was trying to ask.
Was someone intentionally gatekeeping? I'll never know, but I doubt it.
ChatGPT can't handle any of the code from this point onward, btw.
I had to ask the same thing a few times and load up with tons of context to get a useful reply.
I have kind of figured it out now and am ready to deploy my shit. (Have been for a while).
I'd still love to to talk someone who gets it...
Conclusion
I hope the above makes some sense.
Maybe I am the idiot here and there is neither gatekeeping nor incompetence and I am just looking for a tree to bark at?
I am caught between imposter syndrome and delusions of grandeur.
There certainly are lots of people who would laugh at my progress, as this is too trivial for them.
Are those people all at google? I can't seem to find them. Maybe hire me?
I mean this Miguel Grinberg for example: He knows his stuff. Much more than me. But as soon as I had this all figured out, I realized how weak Flask is, and that I will never need it again. It imposes itself into spaces that the webserver should handle, or should be handled client-side, or on OS level... Things like that. And until you figure this out, Flask is useless to begin with...
I don't get it, so it's probably all incompetence, but definitely my own. 🤣
As far as intentional gatekeeping the API:
https://api.syncad.com/
seems complete, so no further complaints
makes my last post obsolethe, kind of...https://developers.hive.io/
still as incomplete as ever, still up, no link to the new thing.
Compare:
https://api.syncad.com/?urls.primaryName=Legacy+Hive+JSON-RPC+API#/condenser_api/condenser_get_blog
(seems complete)
vs:
https://developers.hive.io/apidefinitions/#condenser_api.get_blog
(pagination completely missing)
You decide.
Flask sucks, I had a play with it last year, I don't know if Django is any better.
This wasn't so much about flask, but about WSGI.
I am using neither django nor flask now.
But... how else am I going to build my own back end?
PHP?
To be fair: flask is quick and easy, especially when you use all those extra libraries.
Since I am building something unique though, with a blockchain in the background, I have to build a lot of stuff from scratch, so I chose aiohttp and ASGI and let some variant of gunicorn pop up different workers.