REST may have originally been meant to respond with HTML, but I disagree strongly with that intention. #DataOrientedDevelopment #SeparationofConcerns https://orys.us/up
My morning regexp usage: reformatting pgn chess format into latex format. Bonus: using multi-cursors for incrementing numbers. #emacs
On the JVM we are used to strings as collections of chars. Not so in JS. But you can still traverse them with codepoints!
https://orys.us/uo
Whoa! TIL that it's actually okay to have a slash before your query strings, and that some servers require it!
myexample.com?an-arg vs myexample.com/?an-arg
https://stackoverflow.com/questions/1617058/ok-to-skip-slash-before-query-string
*Escape to Freedom* is a new animated video from the Free Software Foundation (FSF), giving an introduction to the concepts behind software freedom: both what we gain by having it, and what rights are at stake. #UserFreedom #EscapetoFreedom https://u.fsf.org/escape-to-freedom
Apparently, my way of just using twitter through certain browser profiles doesn't save me from nonfree Javascript. https://www.fsf.org/twitter
Look what I found! https://www.gnu.org/software/librejs/
As a Clojure webdev, I love open source, but our excellent CLJS infrastructure is often powered by React.js, which falls an the wrong side of The Javascript Trap. What to do? https://www.gnu.org/philosophy/javascript-trap.html
But when you still maintain that old code, the cringe becomes a cold sweat
---
RT @catalinmpit
Looking back at my old code and content makes me cringe.
Sometimes it's good to look back and see how far you've come.
https://twitter.com/catalinmpit/status/1548299178618417154
RT @programmerjoke9
but it's easy#100Daysofcode #javascript #programming #dev #linux #java #programming #CodeNewbie #python #reactjs #bugbounty #DataScience #infosec #gamedev #BigData @programmerjoke9
At this point I'm too far down the rabbit hole to imagine switching from emacs (far more than code usage). But I'm haunted by the possibility of specialized editors, even though webdev is intrinsically polyglot. Cross-pollination, though, rules my philosophy, and emacs triumphs.
---
RT @stylewarning
With that said, please build more language-specific IDEs. I get a lot of work done in Emacs, and it's the least bad option for me, but I'…
https://twitter.com/stylewarning/status/1548577956024307712
RT @stylewarning
I switched to Emacs after about 12 years of coding. Prior, I was a huge fan of slick, glossy, command & control IDEs. (I probably still would be if they actually continued to innovate.)
Haven't switched since changing to Emacs. It's trusty and dependable, whilst being advanced. https://twitter.com/bluespacecanary/status/1548499233661075458
Migratus takes care of loading specified sql files in a particular order, and provides Clojure bindings to run/create said files. It takes an init file, run at the start to set up your schemas, then runs all the up and down migrations in numerical-sort order, where the recommended numeral is something like the Unix timestamp.
So it runs any number of SQL things on your database, and does it in the right order. It also supports knowing which ones have already been run, and being able to back-track them. So it's all about batching and ordering, with some features (which, I'm ashamed to admit I've never used) for versioning your database.
Full Stack Clojure web app engineer