3 ms·
> Anon the intern needs to be able to open up Programmingâ„¢ and click 'New Web Form' are adequate for people who usually don't program, and extremely inad
by shurcooL 12y ago
> Anon the intern needs to be able to open up Programmingâ„¢ and click 'New Web Form'
are adequate for people who usually don't program, and extremely inadequate
for people who usually do.
Let's change the example to "Start Web Server" instead.
I think the best solution for this is the way Go does it. It takes the best of both worlds.
http.ListenAndServe(":8080", nil)
That's one line to start a web server on port 8080. It's as easy as pressing a 'Start Web Server' button, yet it scales to dl.google.com.
The problem is when you press 'Start Web Server' or 'New Web Form' and it generates 300+ lines of boilerplate code that you now have to look at, maintain, and waste your attention on. Advanced users don't want that, and novice users aren't happy about it either.
Instead, take high level things and make them available via high level APIs, that are also extensible and flexible to allow tweaking of what you want [1], if/when you need to.
[1] https://github.com/golang/gddo/pull/143#issuecomment-31943180 https://github.com/golang/gddo/pull/143#issuecomment-3194318...