djm_ | 8 months ago | on: LLM code generation may lead to an erosion of trust
djm_'s comments
djm_ | 2 years ago | on: Tell HN: Heroku crashes for new deploys
Edit: Good Twitter thread with some support replies [1]
djm_ | 2 years ago | on: SQL Maxis: Why We Ditched RabbitMQ and Replaced It with a Postgres Queue
We utilise a decorator for our job addition to external queues, such that the function that does the addition gets attached to Django's "on transaction commit" signal and thus don't actually get run until the outer database transaction for that request has been committed.
djm_ | 2 years ago | on: Building GitHub with Ruby on Rails
djm_ | 3 years ago | on: What is the minimal possible UK address?
djm_ | 3 years ago | on: What is the minimal possible UK address?
For example, from "20 Windsor Road, London, SE1 6JH" it would extract 2016 and validate that against the banks details.
I thought that was quite a smart way as UK addresses can come in all forms, shapes and sizes (as the post shows) – but the minimal bits required to be correct are indeed the numbers as all postcodes have them and an incorrect number would mean a incorrect postcode.
Edit: the funny bit was that they made you work this out and send it along with the request rather than just handling it internally :)
djm_ | 3 years ago | on: A Docker footgun led to a vandal deleting NewsBlur's MongoDB database (2021)
This seems to me like a combination of multiple foot-guns, first being the Docker one - followed by the fact Mongo was not configured to authenticate the connection.
Heroku by default run PostgreSQL open to the world (which is problematic for other reasons) but they get away with it by relying on PG's decent authentication.
My default is to prefer to build systems with multiple layers of security, such that there is no reliance on a single issue like this.
djm_ | 3 years ago | on: Zero to Nix, an unofficial, opinionated, gentle introduction to Nix
djm_ | 3 years ago | on: Zero to Nix, an unofficial, opinionated, gentle introduction to Nix
If you'd like to know more, I spoke at DjangoCon Europe late last year [1] on our setup; it's still paying serious dividends for us!
Happy to answer more.
djm_ | 3 years ago | on: Owl: A toolkit for writing command-line user interfaces in Elixir
If you're building CLI tooling in Elixir, you may also be interested in TableRex, my ASCII-table drawing library. [1]
djm_ | 3 years ago | on: My students cheated... a lot
djm_ | 4 years ago | on: CORS is not meant to secure an API endpoint
It is very confusing and I’m not entirely sure how it ended up like that.
djm_ | 4 years ago | on: Offline First
[1]: https://linear.app [2]: https://figma.com
Some other projects which will help you implement the pattern that are worth checking out:
Replicache [3] - real-time sync for any backend. Works via simple push and pull end points and is built by a small team of 3 devs with decent browser xp (Greasemonkey, Chrome, etc)
Logux [4] - a client/server framework for collaborative apps. From Evil Martians, well known for: postcss, autoprefixer, browserlist etc.
[3]: https://replicache.dev [4]: https://logux.io
RoomService also used to be in the space but recently left it to pivot to something else.
The largest problem you’ll end up solving is conflict resolution so having a good understanding of the tradeoffs involved with your (or the underlying) implementation is key.
djm_ | 4 years ago | on: Gleam 0.15
djm_ | 5 years ago | on: Building DigitalOcean's API Gateway
djm_ | 5 years ago | on: On Repl-Driven Programming
In an ideal repl-driven world you could write the test in the repl entirely and commit it to disk once you're ready.
djm_ | 5 years ago | on: CRDTs are the future
djm_ | 5 years ago | on: An update on our security incident
Obviously this is very implementation specific though, and can't be considered a rule.
djm_ | 5 years ago | on: Cut and paste your surroundings using AR
djm_ | 5 years ago | on: Phoenix LiveDashboard
I would agree! But I'd also say that I believe Elixir has moved past this part of the curve and is seeing serious adoption amongst companies.
I first got interested in 2014 and back then it was definitely still early days. 6 years later and I'm still yet to regret the decision to invest time Elixir and BEAM ecosystem.