Web in November - Newsletter by Agney
Hello there December ๐
Twitter Turmoil
It is the month Elon Musk took charge of the social network Twitter and things have been going wild. From a promoter of free speech, Elon has moved to an arbiter of it
- Alex Jones being banned because nothing against children)
- Kanye West (or Ye) being banned and unbanned because of antisemitic statements.
Elon Musk also released a bunch of files dubbed #TwitterFiles which shows Twitter executives debating limits of their control and free speech. I’m not into American politics to speak on policies with the files but it’s ironic to me that Elon Musk is encountering the same problems as his predecessors (whom he fired) on content moderation.
That’s the political side of it. Moving on to the technical ones:
- Lots of people are raising Twitter life Tik-Toks as proof that these people did no work. The people who worked at Twitter (or any of these companies) are not allowed to film any work related documents or show laptops in their videos. This is why they are always about what else is in their workplace that is interesting. Linking to TheVerge Coverage.
- Other people point out how their experience of the site did not deteriorate over time even though the employees were fired. That’s not how sites work, if the sites did not deteriorate, you would have to be extra thankful to the employees fired, left and still working.
I generally use Twitter to connect to developers and generally follow blogs and technical talks. But now that it’s a dumpster fire, I’m open to looking for alternatives. Mastodon is what I hear a lot, but is there a good frontend communities on there? Let me know what you people use.
Releases
Browsers
Chrome 108
Chrome 108 includes support for the avoid value of the CSS fragmentation properties break-before, break-after, and break-inside when printing.
There is a change in how the resize works on showing keyboard in mobile browsers: Prepare for viewport resize behavior changes coming to Chrome on Android
Firefox 107
The contain-intrinsic-size shorthand CSS property can now be applied to specify the size of a UI element that is subject to size containment. This allows a user agent to determine the size of an element without needing to render its child elements. The shorthand properties contain-intrinsic-width and contain-intrinsic-height are also supported, along with the logical properties contain-intrinsic-block-size and contain-intrinsic-inline-size.
ChatGPT - OpenAI
OpenAI is introducing a new AI model with ChatGPT in research preview. ChatGPT maintains context with conversations and it’s amazing how barbaric it makes competitors like Siri feel like. ChatGPT analysing code it a breeze to use and there is already people trying to use it as a No Code platform.
There are also several Twitter threads of trying to game the system.
Seeing people trick ChatGPT into getting around the restrictions OpenAI placed on usage is like watching an Asimov novel come to life. pic.twitter.com/gSSQGU9w37
โ Dare Obasanjo ๐ (@Carnage4Life) December 1, 2022
TypeScript 4.9
- The new TypeScript release brings the
satisfies
operator. I might be off my TS game for a long time now since I don’t get it ๐ but looks cool. - Another nice feature is the
NaN ==
feature - NaN is not “equal” to anything in JavaScript. Not even itself. The file watching now uses system file callbacks instead of the NodeJSwatchFile
and it should make watching large repositories a lot smoother.
Elon’s events
- Tesla is launching a semi truck: Event in 9 minutes from CNET
- Neuralink demo with a monkey (who we are told loves the demo) - Neuralink event in 10 minutes from CNET
In the Spotlight ๐ฆ
Black Friday Madness:
Another Black Friday Cyber Monday (BFCM) weekend done and dusted!
โ Shopify Engineering (@ShopifyEng) November 30, 2022
We achieved 99.999+% uptime while averaging 3 Terabytes per minute of egress traffic across our infrastructure.
Thatโs 4.3 Petabytes per day! ๐คฏ
Check out the thread for more awesome performance stats ๐งต๐
Congratulations to the Stripe infrastructure teams! With record scale, Black Friday and Cyber Monday passed uneventfully. >20,000 peak RPS and >99.9999% API success rate.
โ Patrick Collison (@patrickc) November 29, 2022
Tutorials
An Interactive Guide to Flexbox - Josh W Comeau
This blog post is from one of our regulars - Josh. To call it a simple blog post is a crime given it’s a entire website worth of content. Go check it out if you miss flexbox or love some interactive blog developer content.
Inside Framer’s Magic Motion
Framer’s Magic Motion is the animation engine that auto-animates between layout changes in components. This is an interactive blog on how this possibel and the layout animation principles.
Speeding up the JavaScript ecosystem - one library at a time
This is some awesome intermediate JavaScript content on analysing JavaScript libraries and making them faster.
Most popular libraries can be sped up by avoiding unnecessary type conversions or by avoiding creating functions inside functions.
The large, small, and dynamic viewport units - web.dev
Most of us are familiar with vh and vw. If you have used vh
for long in production, you are probably also familiar with issues it has on mobile devices. There are different configurations on mobile screens, with address bars and different toolbars being shown and hidden on scroll that vh
becomes a bug that you have to fix with % magic.
There are now new units approved and supported everywhere - small viewport units, large viewport units and dynamic viewport units. Long story short, dvh
is a better substitute for vh
if you have to support mobile browsers.
What CSS do you absolutely have to know in 2022? - CSS Tricks
Last month, I had written about Sacha Grief’s thought on if CSS surface area is getting too large for a beginner to grasp. Geoff Graham writes on a list of properties that a Must-Have when you start. You don’t have to agree to his list but it’s pretty though provoking.
Why you should never use px to set font-size in CSS
If you want a comprehensive tutorial and light opinion CSS units - px, em and rem, this is your stop. The base idea is that user gets to change the base font size of their browser (default set to 16px) and if you use px
everywhere, it wouldn’t respect the user preference. rem
all the way for font sizes.
In Other News
World Population crosses 8 billion
According to UN estimates, the world population has officially crossed 8 billion, that’s a lot of us. Here are some interesting articles I came across on the topic.
- Elon Musk Is Totally Wrong About Population Collapse - The Wired
- โI canโt give up on hopeโ: As the worldโs population passes 8bn, new parents from Italy to India look to the future
China just announced a new social credit law. Hereโs what it means - MIT Technology Review
There has been a lot of chatter about a “social credit law” in China over the Western media and widespread fear about it’s adoption. MIT Technology Review looks at the latest Central Government draft and analysis what it really entails.
- There are two scores - one of them is the credit score for financial transactions, pretty common everywhere. The second is the social score - it’s a score of trustworthiness score for an individual based on their deeds.
- The score can in theory get you better government services. At depleted score, there could be punishment measures where there could be services you cannot access or get pushed back in the queue.
- It’s not implemented for the entire population - it’s a draft for local institutions to play around with.
- There is no algorithm going around giving every Chinese citizen a social score.
Web technology optimism hour
This is perfect year ender with web technology evolution this year and what to look forward to next year. A lot of this, we have talked in the earlier issues of our Web in a Month newsletter, but this is good breather.
Nothing CEO Reviews iPhone 14 Pro
Carl Pei is one of those CEO’s who specialise in design and marketing for digital products. So watching him review an iPhone is interesting content. This is on the Nothing channel, so there’s a lot of Nothing ads.