• 0 Posts
  • 48 Comments
Joined 9 months ago
cake
Cake day: October 9th, 2023

help-circle
  • The soulless structure of the government is not much different than the soulless structure of a corporation.

    Very different for a fundamental reason: at least in the US, one exists to serve the people, the other to extract the maximum amount of profit possible from the people. But to your point, they have similarities in that they are both entirely constructed of flawed humans. That difference in purpose though, makes a huge impact on we interact with them, what we expect of them, and our ability to influence them.


  • I’m going to try to help explain this, but i’ll be honest it feels like you’re coming from a place of frustration. I’m sorry about that, take a break :)

    (I’m not a language expert, but here goes)

    var test int < bruh what? :=

    These are the two forms of variable declaration and the second one is a declaration and initialization short hand. I most commonly use :=. For instance:

    foo := 1 // it's an int!
    var bar uint16 // variable will be assigned the zero value for unit16 which is unsurprisingly, 0.
    

    func(u User) hi () { … } Where is the return type and why calling this fct doesnt require passing the u parameter but rather u.hi().

    This has no return type because it returns no values. It does not require passing u. It’s a method on the User type, specifically u User is a method receiver. You might think of this akin to self or this variable in other languages. By convention it is a singke character of the type’s name.

    If that function returned a value it might look like:

    func(u User) hi() string {
        return "hi!"
    }
    

    map := map[string] int {} < wtf

    This is confusing because of how it’s written. But the intent is to have a map (aka dictionary or hashmap) with string keys and int values. In your example it’s initializd to have no entries, the {}. Let me rewrite this a different way:

    ages := map[string]int{
        "Alice": 38,
        "Bob": 37,
    }
    

    Hope this helps. In all honesty, Go’s language is very simple and actually rather clear. There’s definitely some funny bits, but these aren’t it. Take a break, come back to it later. It’s hard to learn if you are frustrated.

    I also recommend doing the Tour of Go here. My engineers who found Go intimidating found it very accessible and helped them get through the learning code (as there is with any language).

    Good luck (I’m on mobile and didn’t check my syntax, hopefully my code works 😎)













  • Nope. Many are plugged in and it will keep the seat and water warm. It further warms the seat when it detects someone is sitting on it. Kinda depends on budget, features, manufacturers.

    NGL, middle of the night visits are still a bit jarring because the heating logic tries to conserve energy at night so it tends to me room temperature. But whatevs.

    Honestly, worth it. Absolutely no regrets other than maybe not spending more 😂. At a couple hundred dollar Costco Toto model, it was already a risky purchase that at the time I simply wasn’t sure about. But yeah, it’s awesome 😎.





  • They expose themselves to risks simply by living in Russia.

    Holy hell. That is absolutely not how the world works. People have no choice in the circumstances of their birth and frankly not a whole lot of control over their lives either. Such behavior is reckless and shows a wanton disregard for other human beings.

    Please stop. Putting random people at risk of having their lives destroyed by the authoritarian regime in which they were born into is so incredibly shameful.

    What an incredible display of emotional immaturity. So much so I assume this must be trolling.

    Grow up. Quickly.

    Edit: make yourself useful and target people that matter if you need to express yourself. I hear Putin and everyone connected to him is a good choice.