• 6 Posts
  • 21 Comments
Joined 3 months ago
cake
Cake day: June 24th, 2024

help-circle



  • It looks like it is one, but dmidecode doesn’t show it.

    # sudo dmidecode --type slot           
    # dmidecode 3.4
    Getting SMBIOS data from sysfs.
    SMBIOS 3.0.0 present.
    
    Handle 0x001C, DMI type 9, 17 bytes
    System Slot Information
            Designation: J6B2
            Type: x16 PCI Express
            Current Usage: Available
            Length: Long
            ID: 1
            Characteristics:
                    3.3 V is provided
                    Opening is shared
                    PME signal is supported
            Bus Address: 0000:ff:10.0
    
    Handle 0x001D, DMI type 9, 17 bytes
    System Slot Information
            Designation: J6B1
            Type: x1 PCI Express
            Current Usage: Available
            Length: Short
            ID: 2
            Characteristics:
                    3.3 V is provided
                    Opening is shared
                    PME signal is supported
            Bus Address: 0000:ff:1c.4
    
    Handle 0x001E, DMI type 9, 17 bytes
    System Slot Information
            Designation: J6D1
            Type: x4 PCI Express
            Current Usage: Available
            Length: Long
            ID: 3
            Characteristics:
                    3.3 V is provided
                    Opening is shared
                    PME signal is supported
            Bus Address: 0000:ff:1d.0
    
    Handle 0x001F, DMI type 9, 17 bytes
    System Slot Information
            Designation: J7B1
            Type: x1 PCI Express
            Current Usage: Available
            Length: Short
            ID: 4
            Characteristics:
                    3.3 V is provided
                    Opening is shared
                    PME signal is supported
            Bus Address: 0000:ff:1c.5
    
    
    Wrong DMI structures length: 3135 bytes announced, structures occupy 3136 bytes.
    




  • It matters as soon as a requirement change comes in and you have to change something. Writing a dirty ass incomprehensible, but working piece of code is ok, as long as no one touches it again.

    But as soon as code has to be reworked, worked on together by multiple people, or you just want to understand what you did 2 weeks earlier, code readability becomes important.

    I like Uncle Bobs Clean Code (with a grain of salt) for a general idea of what such an approach to make code readable could look like. However, it is controversial and if overdone, can achieve the opposite. I like it as a starting point though.


  • Yep, that’s what it usually boils down to. However, I think a slight approach shift for basic materials could be useful, where introductory books / papers / … write out formulas. That makes it easier to understand the basic concepts before moving onto the more complex stuff. It should be easy to create such works, as they are usually created digitally, and autocomplete is available. Students can and will abbreviate those written outs words by themselves (after all, writing is annoying), but IMO reading comprehension is the key part that can be improved.

    Also, when doing long formulas that you want to eliminate members of, writing stuff out can be a nightmare.


  • I recently held a science slam about this topic! It’s a mix of the first computer scientists being mathematicians, who love their abbreviations, and limited screen size, memory and file size. It’s a trend in computing that has been well justified in the past, but has been making it harder for people to work together. And the need to use abbreviations has completely gone with the age of auto completion and language servers.