• 0 Posts
  • 53 Comments
Joined 2 years ago
cake
Cake day: July 2nd, 2023

help-circle







  • Yesterday:

    <nav script="dropdown.js" style="dropdown.css">
      <button onclick="toggleDropdown()">Menu</button>
    </nav>
    

    Today:

    // index.js
    import React from 'react';
    import ReactDOM from 'react-dom';
    import './global.css';
    import App from './App';
    
    ReactDOM.createRoot(document.getElementById('root')).render(<App />);
    
    // App.jsx
    import Dropdown from './components/Dropdown';
    import './App.css';
    
    export default function App() {
      return (
        <main>
          <Dropdown />
          <p>Hello, world!</p>
        </main>
      );
    }
    
    // components/Dropdown.jsx
    import { useState } from 'react';
    import styles from './Dropdown.module.css';
    import ArrowIcon from '../assets/icons/ArrowIcon.jsx';
    
    export default function Dropdown() {
      const [open, setOpen] = useState(false);
      return (
       <div className={styles.dropdown}>
          <button onClick={() => setOpen(!open)}>Menu <ArrowIcon /></button>
          {open && (
            <ul>
              <li>Option 1</li>
              <li>Option 2</li>
            </ul>
          )}
        </div>
      );
    }
    


  • foggy@lemmy.worldtoSelfhosted@lemmy.worldHow do you document your Homelab?
    link
    fedilink
    English
    arrow-up
    22
    arrow-down
    7
    ·
    edit-2
    1 month ago

    I operate on the philosophy that it is better for me to relearn things than lean on old documentation that may no longer be accurate/relevant.

    The best way to implement a safe connection to my home lab today might not be the safest way tomorrow.

    Old dog, new tricks, etc.

    Also! Your documentation is an attackers wet dream.

    NB: this philosophy doesn’t scale.



  • I’m done arguing. Not gonna respond to whatever fedora fanboy nonsense to follow.

    Ubuntu holds around 30 percent of the Linux desktop market. Fedora sits around 1 to 2 percent. Ubuntu focuses on Long Term Support stability, massive community documentation, seamless hardware driver support, and minimizing breakage for new users. Fedora deliberately pushes bleeding-edge kernels, experimental libraries, and rapid changes that regularly introduce breakage. Beginners do not need the newest kernel version or experimental features. They need stability, predictability, easy troubleshooting, and access to a massive community when things go wrong. Fedora is excellent for intermediate users who know how to fix their own problems. It is irresponsible to recommend a testing ground distro to someone who is still learning how to use the terminal.

    If Fedora were actually a good beginner distro, it would dominate beginner spaces like r/linux4noobs, It does not. Fedora is respected, but it is not designed for beginners. Even Fedora’s own documentation assumes technical competence that a first-time Linux user will not have.

    It is objectively not a good distro for beginners. Not even Fedora thinks it’s a good distro for beginners. Your arguments make no sense. I certainly don’t care to hear anymore of them.

    Good day.