Let's implement a tokenizer with our new knowledge.
This type splits a string, similar to the previous example. We look for the first dot as the split point.
The result is the first token, followed by the recursive tokenization of the remainder.
Angular's `get` method tokenizes its argument using this technique. Then, we can check for the specified property at compile time.
(P.S. Follow me for more about TypeScript and Angular!)
The previous example generates a string type by concatenation. However, can we also go the other direction, breaking apart a string type?
The answer is yes! Using the `infer` keyword, we can implement a simple parser. This `ProductFrom` type extracts product names from columns.
Imagine you have a type listing various products, and you want to automatically generate a type for corresponding database columns.
We define a template literal type called DatabaseColumn. It takes any subtype of string, and maps each element onto a string with a column prefix.
The v15 release was pretty big for the future of @Angular@twitter.com. Feels like we're just getting started, again.
Saying not to bother with the favourite button on mastodon because it doesn't affect any algorithm is like saying not to say thank you to someone because no one else will hear.
Stop thinking in those old social media ways of engagement and visibility and algorithms and reach and audience and start thinking about being social.
The enemy of your enemy is NOT your friend. #Apple is the largest natural monopoly in the tech industry. They have far too much power with their App Store lock-in.
Apple caves to the demands of repressive regimes in the US, Israel, and China. Apple actively deplatforms sex workers. Apple exploits poor workers in China and the global south.
We can praise some of Apple's privacy decisions (e.g. standing up to governments pushing for crypto backdoors) while also recognizing that no corporation will EVER have your best interests in mind.
We must bring all tech companies to heel with regulation. We also need to build alternative digital ecosystems that don't rely on monopolistic private companies.
Have you ever been annoyed about having to pay $6.40 when entering a BART station and then leaving without riding because of train delays or cancellations?
Now is the time to write BoardOfDirectors@bart.gov and ask for a 30-minute grace period before an excursion fare is charged - the BART board will be discussing this soon!
Flickr weighs support for ActivityPub, the social protocol powering Twitter alternative Mastodon • TechCrunch
You can share your experience with Angular here
✨ KDE runs on the Apple M2!!!! ✨
With full GPU acceleration! 🚀🚀
Running Xonotic, glmark2, and eglgears at the same time!!
My 🦀 Linux kernel driver now supports the M2!! And it works out of the box with @alyssa's Mesa driver, no userspace changes needed~!!
#ElonMusk, who endorsed the Republican Party, wields absolute control over the information on Twitter. Mark Zuckerberg, who allowed Russian ads to flood Facebook in 2016, wields absolute control over the information on Facebook & Instagram. Social Media is a right-wing oligarchy:
Oh dear. I've just been informed that collecting the names of every person on the planet for my naughty and nice lists is, and I quote, “a significant and wholly irresponsible breach of #GDPR “.
I'm going to hand out about 8 billion consent forms soon. If you could all get them back to me ASAP that would be appreciated.
I see people talking about #Hive, I wish them the best but if we're going to create an alternative to Twitter, Facebook, Instagram etc. then we need to be willing to firstly learn from their mistakes (especially around the governance structure/financing model) and secondly willing to give up some creature comforts and do some hard graft learning how to use a new platform. Profit driven social media bet that people are willing to trade away the benefits of the fediverse for 'ease of use'.
Here's my primary advice for anyone looking to join Mastodon, but especially BIPOC folks, and particularly those that are social activists.
Do not join Mastodon.social or Mastodon.online
Do not join instances with more than 20k active users
Edit: In fact, I'd trend toward instances with fewer than 2000 active users.
Software Engineer on the open source #Angular framework at Google. I post about Angular and the web, San Francisco urbanism, election maps, and snowboarding. 🥑🏳🌈
Collectively managed by radical queers, who believe that cities are for us too. #VisionQueero #GayTowns #acab 🏳️🌈🚒🌆🌼🔰🐈♿️🍆🍭🗼⛺️🚡🌳🦋🕺🏽🌈♋