tony
tonycodes.bsky.social
tony
@tonycodes.bsky.social
coding and sustainable cities (he/him)
editor: https://urbanism.guide
Who are the AI builders and hackers on Mastodon? I spent the last month building a fairly unique chess bot and wanted to show people.

It's a transformer architecture and has promising early results. Lots of room for improvement in training data and architecture too.

github.com/anthonyiscod...
September 18, 2025 at 2:55 PM
One of many measures of a successful conference.
February 13, 2025 at 11:19 PM
iykyk
January 28, 2025 at 12:05 AM
First week @liblab.com and there's presents! I wonder what goodies are inside.
December 19, 2024 at 7:52 PM
Absolutely crazy to see the runner up in Austin's mayoral race now engage in election denial.

This is over a potential runoff where Llanes is 104,000 votes behind in the general but only 14 votes from triggering a mandatory runoff.

#nimby #austin
November 16, 2024 at 4:07 PM
If you ever need to quickly time the execution of a function then console.time/timeEnd has you covered without any external dependencies.

There's also the node profiler/browser dev tools profiler but sometimes you just need a quick and dirty sanity check.

#javascript #dev
November 15, 2024 at 5:31 PM
toronto right now
November 14, 2024 at 6:38 PM
When using node and printing to the terminal sometimes you encounter an object with deeply nested properties like:

{ a: { b: { c: [Object] } } }

But don't just start digging into the object's properties. This is slow and you might miss a property you needed. Use console.dir instead!
November 14, 2024 at 5:16 PM
TypeScript's typeof is great for quick and dirty creation of new types from existing objects; like from the results of an API call.

But when your code touches the outside world at runtime the type system can't ensure your objects are the right shape. Be careful out there.

#typescript
November 13, 2024 at 6:00 PM
Trying to tell Wellfound that I used to code in VBA and they're just not having it 😭😭😭

code in python: very cool, hip
code in vba: embarassing
November 7, 2024 at 4:20 PM
i make things #urbanism
November 7, 2024 at 2:46 AM
I'll start with the jokes
November 6, 2024 at 7:23 PM
me right now
November 5, 2024 at 5:09 PM
When constructing new objects to commit to a database do you prefer A or B? (ie. The database will eventually give it an id but you don't have the id yet)
November 5, 2024 at 4:12 PM
TFW undefined gets coerced into "undefined" in localStorage and surprises you when you retrieve it later. Be careful out there.
November 1, 2024 at 4:05 PM
I like this shot but not entirely satisfied. Maybe increase the contrast and darken the shadows?
October 31, 2024 at 9:21 PM
Where were you when you first learned about the cursed syntax?
October 31, 2024 at 4:32 PM