[-] spartanatreyu@programming.dev 1 points 7 months ago

Tailwind is only feels like a successor to CSS to developers writing css like it was 10 years ago (or using frameworks that write it like that, e.g. bootstrap), or projects not using visual regression testing.

Modern css is so much better.

  • Want to position, overlap, or align things? Use CSS Grid.
  • Are you using a CMS or component system and want to change the order that CSS is applied? Use Cascade Layers.
  • Want to have resizeable components? Use component queries.
  • Want to make a change all through your site? Use custom properties.
  • Want to style things differently based on how many other elements are inside or around it? Use :has(), +, ~, nth-..., ... selectors.

If you're using something like BEM, or bootstrap to make columns, your knowledge is way out of date and you're doing it wrong.

[-] spartanatreyu@programming.dev 1 points 7 months ago

You mean a whole different window at the OS level?

Yes, that way I could switch between windows in a single shortcut, or even place them side by side so I can see both at the same time with other shortcuts.

That’s just a way inferior hack to the way vim does it by default.

Can you explain this more?

Why wouldn't you want window management to be managed by the window manager?

[-] spartanatreyu@programming.dev 1 points 7 months ago

I'm assuming for your example that only one tab is shown at a time?

In that case, you can do that in vscode, the only difference is the semantics of what is considered a "window", and what is considered a "tab".

To do this in vscode:

Have one window with four panes, and another window with three panes:

                         
        Window 1         
 ┌──────────┬──────────┐ 
 │          │          │ 
 │  Pane 1  │  Pane 2  │ 
 │          │          │ 
 ├──────────┼──────────┤ 
 │          │          │ 
 │  Pane 3  │  Pane 4  │ 
 │          │          │ 
 └──────────┴──────────┘ 
                         
        Window 2         
 ┌──────────┬──────────┐ 
 │          │          │ 
 │  Pane 1  │  Pane 2  │ 
 │          │          │ 
 ├──────────┴──────────┤ 
 │                     │ 
 │       Pane 3        │ 
 │                     │ 
 └─────────────────────┘ 
                         

You can then switch between your windows (or "tabs" in your example) by keyboard shortcut.

In vscode, you can make the Panes different files, or even different views of the same file.

[-] spartanatreyu@programming.dev 1 points 7 months ago

How would they know a release date if they haven't finished making it yet?

[-] spartanatreyu@programming.dev 1 points 1 year ago

I absolutely understand OOP, its explosion took over everything that took a long time to recover from.

The problem with OOP is that it's pushed as a cure-all both by teachers who do not the problems it solves and also do not understand its own limitations.

In almost every situation where OOP makes sense, something else makes more sense to use.

[-] spartanatreyu@programming.dev 1 points 1 year ago

Interesting...

Every IDE and editor (gui and tui) I've used has always come preconfigured with a tab-size of 4.

The only thing I've ever experienced having a tab-size of 8 was github, and I thought that was just a problem with a setting from github's size that I quickly set back to 4.

It seems that tui editors come with tab-sizes of 8 only when a config isn't provided, and every environment I've used where I've used a tui editor has always come with sensible configs (for things like config location, language recognition for syntax highlighting, etc...) including a tab-size of 4.

[-] spartanatreyu@programming.dev 1 points 1 year ago

The horizontal tabulation character moves the cursor to the next column which is a multiple of the tabulation length. See the examples here: https://en.m.wikipedia.org/wiki/Tab_key

Yes

Clearly the whitespace produced by each tab character has a different length.

No, each tab has the same size, the text rendered over the top of the tabs are not the same size.

Always remember the golden rule: Tabs for indentation, spaces for alignment.

[-] spartanatreyu@programming.dev 1 points 1 year ago

It's intuitive until you realise that not everything fits in a single inheritance hierarchy.

This gives a good example: https://www.youtube.com/watch?v=wfMtDGfHWpA

[-] spartanatreyu@programming.dev 1 points 1 year ago

a tab’s length changes based on its position in a line

What does this even mean? A tab is a tab.

Tab's don't have multiple lengths inside a file, they all have the same length.

That's the point of tabs.

[-] spartanatreyu@programming.dev 1 points 1 year ago

most environments

What environment are you using that have tabs set to 8?

[-] spartanatreyu@programming.dev 1 points 1 year ago

cURL was one of these for a while (according to my limited understanding)

It was made in the 90s and it didn't get commercial support until a few years ago.

view more: ‹ prev next ›

spartanatreyu

joined 1 year ago