All posts tagged #rust all posts RSS-feed

Prevent ID-mistakes using Rust types

Recently, I've been interested in designing software to make hard-to-find bugs reveal themselves at compile-time. An idea I've read about (I forgot where) that I found fascinating is the use of a special type for IDs in objects that represent database rows. Problem For example, there may be a User table and a Posts table in the database, with each post belonging to one user. Each of these would be mapped to a class/struct in the programming language. Perhaps each... full post»
by Mark,

The markv.nl blag!

#imadethis, #coding, #tools, #bash, #python, #music, #django, #machine-learning, #chinese, #ubuntu, #charity, #learning, #focus, #fortran, #backup, #order-of-magnitude, #design-patterns, #R, #programming-languages, #javascript, #personal, #cross-validation, #china, #what-I-use, #object-oriented-programming, #data-science, #discussion, #data-analysis, #effecive-altruism, #games, #travel, #rust, #bug-prevention, #type-systems

Comments

  1. Rainbow colormap in javascript @Mark The post has been expanded to include non-rainbow colorm...
  2. "Invite" someone to ssh into your machine without port forwarding or firewall changes @Mark Added details about how to use the established tunnel in...
  3. Rainbow colormap in javascript @Mark Now finally with color-coded source!
  4. Bye Make, hello SCons (Fortran) @Mark For SCons' own comparison against alternatives, have a l...
  5. Ubuntu macros @Mark Macro locks have been made more reliable, to prevent any...
  6. Dory backup scripts @Mark I've added some functionality to remove old backups! htt...
  7. Ubuntu macros @Mark Updated after moving the files to https://github.com/mve...
  8. Concentration noise @Mark Sorry if you're in China and can't access Youtube. If th...