News for hackers. Stuff that matters.

mematic

Re:Tailwind Is a Leaky Abstraction on Wednesday November 30, 2022 @10:39AM (#33802221)
Tailwind is not an abstraction, it's a collection of one-rule utilities.

Tailwind is not for beginners, it's a dependency reversal for professionals.

Tailwind is not replacing CSS, it's embracing the realities of component libraries.

Tailwind is a paradigm shift...

Re:Mobile-First CSS: Is It Time for a Rethink? on Monday June 20, 2022 @10:11AM (#31810551)
I use a similar approach with linear mapping to gain known boundaries.

  body {
  
    --scrollbar-width: 0px;
  
    --320-to-1440: ( 100vw - ( 320px + var( --scrollbar-width ) ) ) / 1120;
  
  }
  
  h1 {
  
    font-size: clamp( 20px, calc( 20px + var( --320-to-1440 ) * 10 ), 30px );
  
  }
While accounting for the scrollbar width via JavaScript.

  document.body.style.setProperty(
  
    '--scrollbar-width',
  
    `${ window.innerWidth - document.documentElement.clientWidth }px`
  
  );
This will be easier when user-defined functions arrive.
Similar struggles lead me to roll my own AMI of Arch Linux using Conrad Hoffmann's guide.

https://gitlab.com/anemos-io/archlinux-ec2

I have since created my own Gist for future use, as well.

https://gist.github.com/msimpson/b65f11bc4122d60d11c9c87470b...

Re:The bottom is dropping out of Netflix on Friday April 22, 2022 @07:27PM (#31129530)
Netflix was already willing to alienate users by stooping to conditional joint acquisitions.

Better Call Saul is proudly labeled a "Netflix Original".

But you couldn't watch season five on Netflix until April, even though it originally aired two years ago.

Had to let AMC reair it first, right?

Think season six will air on schedule with AMC in August?

Meanwhile, HBO Max, and Hulu by extension, released The Batman nearly on time with theatres.

It's clear that Netflix simply lacks the content creation supply chain of its competitors.

And no amount of price hikes, ads, excuses, or desperate back-door deals will solve that.

Their greatest hope was to capitalize on successful originals, like Love Death and Robots.

But in three years they've managed to deliver only two season of that show.

Which, even with the pandemic, should have occurred much faster given it's an animated anthology.

I wouldn't be surprised if I woke up one morning to find news of a Sony and/or Paramount buy out.

Re:Ask HN: Windows Dev Setup? on Wednesday April 20, 2022 @10:56AM (#31097870)
I run Arch Linux in Hyper-V on 11 Pro.

Services (NGINX, MariaDB, PHP/PHP-FPM, etc.) are within Arch.

Project files are in Windows, mounted as an NFS share within Arch.

Editing and committing files mostly from Windows, Atom and git configured for LF.

Executing tasks, Bash scripts and such, from Arch via SSH.

I tend to duplicate tasks in Batch or Powershell for cross-compatibility.

And use the same structure for Electron builds on the Windows side with WIX.

Only complaint is VM performance.

I'll probably swap to a bare-metal Linux machine, using the same approach, soon.