Another little @codepen demo: pure #CSS double ball
(yet another demo that cold be simplified by the `position: absolute` to `display: grid` switch for stacking and in the future, further simplified by `sibling-index()`)
Another little @codepen demo: pure #CSS double ball
(yet another demo that cold be simplified by the `position: absolute` to `display: grid` switch for stacking and in the future, further simplified by `sibling-index()`)
Only repeated refactoring combined with a growing understanding of the problem and its potential solutions will lead to simple code, design, and architectures.
So "Make it simple, stupid" (MISS)
#Architecture #SoftwareDesign #Code
(2/2)
For example, nowadays I wouldn't use `position: absolute` + offsets + negative `margin`
I would use grid now.
Someone hearted this old thing https://codepen.io/thebabydino/pen/GNYvbZ on @codepen and I noticed it said Chrome-only - tested and it's not the case anymore, it works cross-browser.
Do note that it's 8+ years old, before #CSS variables, grid, newer functions and could be much simplified using these.
Some single `button` sets I made on @codepen a while back:
If we have an inline `span` inside a `p` & we give it a semi-transparent `background` + a `padding`, we get an alpha increase where backgrounds of adjacent lines overlap.
How would you solve this problem without text duplication, without stacking 2 identical `p` elements, one for background (opaque background + transparent text + opacity) and one for text (transparent background)?
"There's still no substitute for knowing what you're doing".
A tremendous video! Thank you for making it.
Hi, mastodon
A Deep Dive into the Inline Background Overlap Problem: https://frontendmasters.com/blog/overlapping-inline-backgrounds/
How do you get the below result (semi-transparent background on inline span) with large padding & no overlap?
Answer in article, but think a bit about it first.
En pleno proceso de reestructuración de mis RRSS, aquí explico un poco sobre mi:
Y aquí en Mastodon es donde publico algunas de mis fotografías > https://mastodon.social/@serranodev
© All pics
Excited for #JCON EUROPE 2025? See Annelore Egger at #JCON2025 in Cologne talking about 'Why Bad #Code #Quality Is Not (Only) Your Fault'
Code quality is often seen as the #developer's #responsibility, but …
Get your free #JUG Ticket: http://www.jcon.one
Cursor vs. Claude Code - Which is better the AI Coding Agent?
Article by Greg Baugues
#AI #AICodingAssistants #Code #Programming #SoftwareDevelopment #AICodeGeneration #Coding #LLM #Cursor #Claude
SheepIt Render Farm server code goes open source
#uutils - #Ubuntu remplace ses commandes #Linux par du #Rust
Plusieurs avantages expliquent cela :
Tout d’abord une meilleure #sécurité mémoire, mais surtout des #performances #améliorées et des #outils au #code plus moderne.
https://korben.info/uutils-ubuntu-remplace-ses-commandes-linux-par-du-rust.html
Pleasant retro demo-scene vibes…
https://collidingscopes.github.io/liquid-shape-distortions/
Ever wanted to get the number of auto-fit columns in CSS?
```
--u: 5em;
grid-template-columns: repeat(auto-fit, minmax(var(--u), 1fr))
```
It's now possible! Using registered #CSS vars, the tan division hack and container query units! Here's a little test on @codepen:
https://codepen.io/thebabydino/pen/JojpBJr
You want a crazy idea? Add an "__outScope" built-in method for classes.
It will run when the scope of the variable that holds the class instance ends.
Imagine the possibilities.
How to Implement Pending Orders in Decentralized Exchanges — Taking Curve as An Example
In the cryptocurrency market, trading opportunities are often fleeting, especially arbitrage opportunities, which may only last for a few minutes. If you rely on manual operations, users may not be able to seize the best opportunity in time or miss the best price.
#order #trading #crypto #market #exchange #data #protocol #code #contract #wallet
https://www.fmz.com/bbs-topic/10615
#Xbox 360 modders have discovered a new way to get homebrew apps and games running on the console. A new software-only exploit known as #BadUpdate allows you to use a #USB key to hack past #Microsoft #Hypervisor protections and run unsigned #code and #games https://github.com/grimdoomer/Xbox360BadUpdate
Because I saw a @codepen demo creating a hex grid using my well over a decade old nested and reverted transforms technique to get the shape + MQs...
Here's a super simple modern #CSS grid + clip-path + mathematical functions responsive version with no breakpoints https://codepen.io/thebabydino/pen/QwWQqeR