Re:Ask HN: How to rediscover the joy of programming?
by DeathArrow on Tuesday April 14, 2020 @02:39AM
(#22863289)
>where else can you get a GLES window up in 3 lines of code?
Everywhere somebody built an abstraction to do it.
#include <SDL.h>
...........
SDL_Init(SDL_INIT_VIDEO);
SDL_Window *window = SDL_CreateWindow("MyApp", 0, 0, 1920, 1080, 0);
I've had good fun with JS in my own time (where else can you get a GLES window up in 3 lines of code?), and I've written my fair share of helper application that notify me of certain album releases. But I would never ship something using it (and in fact I generally switch to Dart if I get serious enough about a web project, another band-aid solution). It could be preference, or it could be the years of embedded programming expecting timely results with minimum overhead (make no mistake, a modern web browser is a hell of an overhead).