⇦| leontrolski.github.io
Inspect the nodes in devtools to show the DOM elements are being updated efficiently.| leontrolski.github.io
I'm Oliver Russell, a Python dev (amongst other things) based in London, reach me at ojhrussell[at]gmail.com, subscribe via rss, read my CV.| leontrolski.github.io
A developer's summary of Consciousness and the Social Brain "Consciousness and the Social Brain" is a book by Princeton neuroscience professor Michael Graziano, outlining his theory of consciousness - the attention schema theory. This is a developer's summary only in that I can't imagine many other people having much interest in this website. Having said that, the theory itself is one of information, computation and modelling and so it feels particularly interesting to working programmers. If...| Leon Trolski
What if we'd had better html-in-js syntax all along? I have a theory that a grave mistake was made in 1995 - the decision not to have a neat, succinct and declarative way of representing html elements in javascript. [On reading the hacker news comments this is pretty historically inaccurate, however, I think this article still stands as "look just how close javascript object notation is to a reasonable way of representing html".] In this post, I'm going to describe the current state of affair...| Leon Trolski
How do pandas DataFrames work? (kinda) When you're used to plain ol' dicts, ints, lists etc, pandas.DataFrames exhibit some weirdo behaviour, particulary concerning assignment and operators. This page is a short walk-through of how some of these things happen (and a quick intro to Python's magic methods), you can see the outcome here. Disclaimer: the things presented here are not entirely as the pandasDataFrames work, they are more intended as a guide to how they do. The below examples use py...| Leon Trolski
What nested SQL queries might look like A friend was talking to me about ORM design recently. I'm a heavy SQLAlchemy user, but see all the reasons people dislike ORMs, so on a recent project I had a go at dipping back down to raw SQL land to see how I'd cope. I ended up finding the experience pretty frustrating - I'm sure someone will have written it before, but there's definitely some Greenspun's eleventh rule about any sufficiently complex SQL string munging codebase turning into a half-ars...| Leon Trolski
⇦2020-08-21| leontrolski.github.io
I'm Oliver Russell, a Python dev (amongst other things) based in London, reach me at ojhrussell[at]gmail.com, subscribe via rss, read my CV.| leontrolski.github.io
⇦2020-08-21| leontrolski.github.io
Being able to CMD-click through code >> any other theoretical concerns.| leontrolski.github.io
⇦33 line React - thoughts| leontrolski.github.io
⇦2020-04-03| leontrolski.github.io
⇦2021-08-23| leontrolski.github.io
⇦2020-03-30| leontrolski.github.io