Week 14 - 2022
The weeknote for 4/4 - 4/10.
Late in 1995, Bill Joy suggested using a different operator (I recall suggesting @, not used yet in Java) for string concatenation, but too late to change JS in Netscape 2. Perl favored number with + and used . for concat. Python threw an exception, requiring explicit conversion. pic.twitter.com/a9Pdc2axV6— BrendanEich (@BrendanEich) April 7, 2022
Working on DynamoDB again these days on the job. DynamoDB has 2 special keys: One is partition key and the other is sort key. The partition key cannot be queried by range, but as its name suggests it's used for partitioning the data. So you can usually specify only one partition key in a single query. The sort key is more like the primary key in the other DB terminologies. The items are sorted by this key by default and you can query them by the ordering condition about this key. I found these definitions are very peculiar and specific to DynamoDB. It's like sharded by the partition key by default. So in my view this is a very peculiar kind of database in the wild, very much focused on the scalability by default.
When I first created a few dynamodb tables in this job, I didn't understand this peculiarity well and made wrong decision about the design of the tables. So this time I created another table for the same system again with this special condition in mind and re-architecting almost everything.
Rei 100 days
Rei is now 100 days old!
Edit this page