Skip Navigation
Jump
AI-Generated Code is Causing Outages and Security Issues in Businesses
  • as opposed to human-generated code

    8
  • Jump
    Thoughts
  • i cast str to int

    31
  • Jump
    Good software development habits
  • tldr

    1. Keep Commits Small: Ensure commits are small and manageable to facilitate easy reverts and debugging.
    2. Continuous Refactoring: Prioritize frequent, minor refactorings to simplify future changes.
    3. Deploy Continuously: Regularly deploy code to ensure it works in production, as working software is progress.
    4. Trust Frameworks: Avoid over-testing framework capabilities; focus on application-specific logic.
    5. Create Independent Modules: Place functions in new modules if they don’t fit existing ones, preserving code organization.
    6. Write Tests Early: Use tests to design APIs and guide development, but don’t be rigid about TDD.
    7. Avoid Duplication: Prevent repeated code by abstracting similar implementations after copying once.
    8. Embrace Change: Accept and adapt to evolving designs, understanding that change is intrinsic to software development.
    9. Manage Technical Debt: Focus on minimizing immediate blockers and plan for potential future issues.
    10. Prioritize Testability: Ensure that your code and design facilitate easy testing to maintain code quality and coverage.
    28
  • Jump
    Linux only has 0.3% market share in Antarctica unfortunately
  • Scientists using macs connecting to servers and other machines running Linux.

    Unknown share is high too; Linux usage on desktop in Antarctica could be as high as 15%.

    27
  • Jump
    What browser do yall use?
  • valid question, idk why would people downvote it

    broken websites on desktop are rare and not nearly enough to drive a browser change, but they usually fall into two categories:

    1. websites that "break" on purpose for no good reason when they detect it's not chromium. Either avoid the site or change the user agent.

    2. websites that degrade some functionalities because they rely on newer features or on how things appear on chromium. They're usually CSS breakages and do not affect browsing that much.

    Support for manifest v2 greatly outweighs these potential issues imo.

    1
  • Jump
    Lemmy in a nutshell
  • top 5 best things I've done in the last year

    3
  • Jump
    In future when we land on other planets we will need a different calendar, Do you think we need a secular calendar or the current Gregorian one?
  • those damn romans, man...

    one month would need to be more flexible for the division remain and leap years, but it would I suppose.

    2
  • Jump
    In future when we land on other planets we will need a different calendar, Do you think we need a secular calendar or the current Gregorian one?
  • It makes budgeting easier, for one. But it's just a really arbitrary way to have a measure when a week is too little and a season / year too much.

    3
  • Jump
    Denny's
  • classic 5pm pussy breakfast

    37
  • Jump
    Clustering 250K+ Tech Job Postings in 2024
  • no wonder it was taking long to load; it's a 58MB HTML file.

    really cool stuff though - I'd love to see more information of what's on the screen:

    • Number of postings (updated when filtered using the search);
    • Some way to visualize posts in the intersection of these clusters e.g. Software Dev with Education; AI and DevOps.
    • Word cloud of most common terms in the posting selection;
    • Ways to export the filtered data.
    5
  • Jump
    Best large TV (70+ inches) for under $1000?
  • they have moved, but I wouldn't call a 40" TV large for almost 10 years now.

    15
  • Jump
    Despite tech-savvy reputation, Gen Z falls behind in keyboard typing skills
  • so... people who take typing lessons and actively try to improve it have better typing skills than the ones who don't. Shocking.

    34
  • Jump
    Good Refactoring vs Bad Refactoring
  • Because you're assuming foo won't be renamed when it becomes a function. A function should start with a verb, say get_foo(), because just foo() tells me nothing about what the function does (or what to expect as output). If you make it a property, get_ is implicit.

    So if the age is computed from the year of birth for example, it's really e.g. thing.age or thing.get_age() - both of which are fine, but I'd pick the property version.

    0
  • Jump
    In future when we land on other planets we will need a different calendar, Do you think we need a secular calendar or the current Gregorian one?
  • I like it. Months are useful on Earth, but their absence in other planets' calendars will go a long way to simplify things. Seasons can remain a function of Sols with periodic corrections over centuries to account for rotational speed changes.

    4
  • Jump
    Good Refactoring vs Bad Refactoring
  • that we agree on: properties should be cheap to compute.

    Making a simple ternary condition as a function instead of property is a wasted opportunity to make its usage cleaner.

    1
  • Jump
    Good Refactoring vs Bad Refactoring
  • Properties make semantic sense. Functions do something, while properties are something. IMO if you want to name something lazily evaluated using a noun, it should be a property.

    4
  • Jump
    Why YAML sucks?
  • The misleading behavior is about what you expect to execute in the source code you're looking at vs what's actually executed.

    What you describe is a logic ambiguity that can happen in any program / language.

    2
  • matduggan.com GitHub Copilot Workspace Review

    I review Github Copilot Workspaces and it doesn't go well.

    > GitHub Copilot Workspace didn't work on a super simple task regardless of how easy I made the task. I wouldn't use something like this for free, much less pay for it. It sort of failed in every way it could at every step.

    4
    www.theguardian.com ‘It’s the perfect place’: London Underground hosts tests for ‘quantum compass’ that could replace GPS

    Subatomic instrument will be able to accurately pinpoint locations under ground and under water where satellite signals cannot reach

    24

    I've just upgraded to Plasma 6 on EndeavourOS and X11 works, but booting on Wayland via SDDM gives me a blank screen. The display enters power saving mode and switching to a TTY doesn't wake it up.

    Anyone else having this problem, or with a workaround suggestion?

    NVIDIA Driver 550.54.14-4 Operating System: EndeavourOS KDE Plasma Version: 6.0.1 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.7.8-arch1-1 (64-bit)

    6
    2
    www.theregister.com ICANN proposes creating .INTERNAL domain

    The plan is to keep the world at bay by never recording it in the DNS root – like many already do with a subdomain for an intranet

    52
    arstechnica.com SSH protects the world’s most sensitive networks. It just got a lot weaker

    Novel Terrapin attack uses prefix truncation to downgrade the security of SSH channels.

    28

    I'd like to try the new Assassin's Creed and Avatar, but they're not on Steam - which is how I play almost every other game on Linux. I know I might be able to install Uplay games using Lutris, but I'm not sure if the experience is as smooth as Steam + Proton.

    Do you have any experience with Ubisoft + Lutris? Is there an equivalent to ProtonDB to have an idea how well a game runs?

    11