Had a quick read of Practical Color Theory for People Who Code.
Category Archives: Web
Best practices for REST API design
Over on the StackOverflow blog: Best practices for REST API design. Some of it is good but I disagree with a bunch of things. I made some notes:
* Use singular https://www.example.com/comment/list Not: https://www.example.com/comments * Use multidimensional selectors, not path/hierarchical selectors: https://www.example.com/comment/list?artist=nirvana&album=nevermind Not: https://www.example.com/album/nirvana/nevermind/comments * Use noun/verb format: https://www.example.com/comment/list https://www.example.com/comment/register https://www.example.com/comment/edit/54688 https://www.example.com/comment/view/54688 https://www.example.com/comment/reply/54688 * The [ noun, verb ] pairs map to Facilities for implementation: [ comment, list ] => CommentLister [ comment, edit ] => CommentEditor [ comment, view ] => CommentViewer Facilities have submit/render functionality and round-trip view state. * HTTP success 30x's not 2xx's. * Include a 'submission ID' on <form> elements for idempotent operations * GET and POST only, don't CRUD URLs, rather invoke business processes
The Complete CSS Grid Tutorial
The Complete CSS Grid Tutorial. Say no more.
OWASP Cheat Sheet Series
Oh wow, this is great: OWASP Cheat Sheet Series.
Caddy
Heard about Caddy today, looks kinda cool.
github1s.com
So there’s this new domain github1s.com where you can load the web version of VS Code and open a github project all in one go, e.g.: https://github1s.com/jj5/apache-formula/.
NES.css
lol, this is great: NES.css
How to use CSS
Articles I ran into today:
D3.js
Today I learned about D3.js which looks pretty interesting. A JavaScript library for “data-driven documents”.
Parsing HTML on the command line
Check out pup for parsing HTML on the command line. Does pretty printing too.