• 0 Posts
  • 142 Comments
Joined 6 months ago
cake
Cake day: January 16th, 2024

help-circle


  • This is bad practice.

    More accurately it should look something like this:

    # Load sys library for exiting with status code
    import sys
    
    def sayHelloWorld(outPhrase: str="Hello World"):
        # Main function, print a phrase and return NoneType
        print(outPhrase)
        return None
    
    if __name__=="__main__":
        # Provide output and exit cleanly when run from shell
        sayHelloWorld()
        sys.exit(0)
    else:
        # Exit with rc!=0 when not run from shell
        sys.exit(1)
    



  • JasonDJ@lemmy.ziptoMemes@lemmy.mlsigh...
    link
    fedilink
    arrow-up
    2
    ·
    13 days ago

    As a parent I don’t have the time for multiplayer gaming.

    Sometimes I feel like picking up an MMO. Nostalgia is calling for TBC Classic. But then I remember that I’m not going to have this combination of desire and time to play again for like a week, at least.

    And I’d spend all my available time tonight just installing it and getting it working.

    And then forget it’s installed.

    And then next time I can play, it needs to patch.

    That’s not way to play an MMO, especially one where I’d be paying $15/Mo for what amounts to a couple hours of playable time.

    So yeah…single player ftw.




  • I remember getting sent to the principals office for “hacking” (pinging the computer in the next room) in like 8th grade.

    Back in 4th/5th I actually was hacking, modifying our user menu to add Windows 3.1 and a password (copying config from a teacher’s profile). Also brute-forced at least two teachers passwords.

    I’m a network architect now, so there’s that.




  • JasonDJ@lemmy.ziptoMemes@lemmy.mlthe debt
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    22 days ago

    Most people who think they understand how credit scores work…don’t understand how credit scores work.

    The biggest things are loan-to-limit, payment history, and average age of accounts.

    Loan-to-limit is easily achieved by keeping balances below 50%, and ideally below 30%. It’s also helped tremendously by not carrying a revolving balance (paying the statement balance in full each month) and not closing idle cards.

    Payment history is of course helped by making payments on time.

    And AAoA is probably the easiest. Just don’t close cards. Call and “downgrade” a card if it isn’t worth the annual fee. If there’s no annual fee, there’s no reason to close a card.

    Just make sure you use it every now and then and pay it off. I sock-drawered one of my oldest cards a long time ago and it just closed last month from being idle, and that took a hit to my score (high limit gone and it’s no longer incrementing time in my AAoA).

    It’s also worth mentioning that credit scores don’t matter until you are looking for credit. Credit cards are probably the easiest way to build credit, as long as they are used properly. But they’ll give a basic card to any schmuck. Where it really matters is getting mortgages and larger loans like cars. That’s where having a good score matters. And also better cards that earn more points/miles/cashback and have other fringe benefits.


  • JasonDJ@lemmy.ziptoMemes@lemmy.mlthe debt
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    22 days ago

    Articles and posts like this really just exist for conservatives to shout that we need to stop federal spending and cut out “unimportant” things like Dept of Education, as described in Project 2025.

    The problem is that debt is good. It enables us to pay for infrastructure projects and services. It doesn’t work like a household budget…not on the scale of international economies…because money “in the bank” is money that’s not in circulation.

    When money is not in circulation, it’s not being used to pay for goods and services…it’s just…sitting there being hoarded.

    You all complain about Musk hoarding a few hundred billions. Imagine if the debt were in the opposite direction and the government had $34T sitting in the bank doing nothing.

    And anyone can buy Treasury debt. In fact, last year it was an AMAZING return on investment for anyone that bought into it and holds into the debt for a few years. One of the safest places anybody could put money to earn a return (behind a HYSA at FDIC insured banks).







  • JasonDJ@lemmy.ziptoLefty Memes@lemmy.dbzer0.comReminder...
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 month ago

    You don’t understand how FPTP works. It is designed to penalize people for voting for a third party (because it will always devolve to two parties. They may occasionally change, but it starts at the bottom, not at the oval office).

    This “lesser of two evils” is a consequence of that. No one candidate is going to be best aligned with the majority of people. When there are two candidates, one will be more aligned than the other.

    When a third candidate enters, they have to be closer to one of the two, and attracts voters that were more closely aligned with the primary party candidate.

    So if you’ve got a close FPTP race, you could easily take a race that would otherwise be 51/49, make it 47/49/4, and even though the majority of people were more closely aligned with Candidate A, because some of them went for C, candidate B won instead.

    Therefore, it’s foolish to abstain because you disagree with all candidates, because somebody is going to win no matter what. And it is foolish to vote for a third party, because they will not win, they will only detract from the closely aligned party, which in turn favors the less-aligned party.


  • JasonDJ@lemmy.ziptoLefty Memes@lemmy.dbzer0.comReminder...
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 month ago

    I think Biden has a really tough job at this campaign.

    He’s not going to sway any Trump voters. He’s going to have to get people in key states to actually show up at the polls and vote for him.

    Several of those key states care a lot about fossil fuels. States whose biggest industry is coal, or oil, or cars, or steel.

    So harking a lot on climate policy won’t sway them much, and directly attacking Trump’s policy will just enrage Trump’s base and potentially cost him really important states.

    He has to break apathy while also not fanning Trump’s flames too much. I think that’s an incredibly delicate balance for this one issue, let alone everything else. It’s like trying to tell Bruce Banner you ran over his dog. It’s the right thing to do, but you’re still going to regret it.