#mixin — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #mixin, aggregated by home.social.
-
@screwtape saw this and thought of you https://www.technologyreview.com/2025/02/25/1111238/the-mix-in-revolution/ #mixin #mixins
-
I can't quite convince myself yet that all inheritance/coupling is intrinsically bad, but I'm more and more recognising abstract base classes (ABCs) and #mixin classes as anti-patterns because they hinder #testability, which to me is key to quality software; #ABCs and mixins are by construction impossible to test on their own, and both patterns only make sense if a language supports inheritance, so it seems that the simplest option to avoid them is to get rid of inheritance altogether.
-
Ever want a pure CSS regular #polygon?
Back in 2016, I first wrote this #Sass #mixin to generate one. I've had others before, but this is the one I've kept updating it ever since and it's heavily commented.
You just need to pass it a number of vertices and an initial rotation.
@codepen demo: https://codepen.io/thebabydino/pen/mEgzxd
#CSS #clipPath #geometry #2D #code #coding #frontend #web #dev #wbDev #webDevelopment
-
Re https://x.com/meodai/status/1800098657020289330
If you ever want to create a regular/ star-shaped #polygon, I made a #Sass #mixin that generates them years ago
https://codepen.io/thebabydino/pen/PRMxwj/?editors=0100A heavily commented & more modern version of the regular poly mixin https://codepen.io/thebabydino/pen/mEgzxd?editors=0100
Bonus: chubby stars mixin https://codepen.io/thebabydino/pen/KLyjBx
Example of a @codepen demo using such a regular polygon mixin to create three rolling hexagons: https://codepen.io/thebabydino/pen/LYzPeGX
#CSS #geometry #maths #trigonometry #code #coding #clipPath #frontend
-
Crypto suffered 153% YoY increase in hacks and scams in Q3: Immunefi - The number of attack incidents increased to 76 in Q3 2023, compar... - https://cointelegraph.com/news/crypto-suffered-153-percent-yoy-increase-hacks-scams-q3-immunefi #lazarusgroup #multichain #coinspaid #immunefi #exploits #hacks #scams #mixin #stake
-
Mixin’s $20 Million Plea: Platform Transmits Onchain Bid to Reclaim Stolen Assets - After a cyberattack resulted in a staggering $200 million loss from the decentrali... - https://news.bitcoin.com/mixins-20-million-plea-platform-transmits-onchain-bid-to-reclaim-stolen-assets/ #cryptoexchangehack #cryptoexchange #cryptocurrency #crypto #mixin #news