rushaction

joined 9 months ago
[โ€“] rushaction@programming.dev 2 points 3 days ago (2 children)

... the only language where 90% of the world's memory safety vulnerabilities have occurred in the last 50 years

Yeah... That's a shit post alright.

I'm not a C developer myself, but that's just a low blow. Also, uncited ;).

[โ€“] rushaction@programming.dev 73 points 3 weeks ago* (last edited 3 weeks ago)

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 ๐Ÿ˜Ž)

Oh ffs. ๐Ÿคฏ

D'oh. I missed that! ๐Ÿ˜”

[โ€“] rushaction@programming.dev 25 points 1 month ago (5 children)

Except Google Pay had the ability to send money to/from friends and bill splitting. Wallet has no such features at all. And nothing they've published or any news on it seems to mention this. (Which has left me somewhat confused that I'm missing something. But as best as I can tell, I'm not)

But however will it determine the player one controller .... on a desktop computer?

If you look deeper at the recorded PR commit, comments, and package description it's clearly straight up mean-spirited.

[โ€“] rushaction@programming.dev 6 points 2 months ago

Yep, I've even personally witnessed the arguments in business to business sales. When the marketing gets invited, sanity is no longer a welcome.

[โ€“] rushaction@programming.dev 1 points 2 months ago

Thank you for the correction and details.

[โ€“] rushaction@programming.dev 8 points 2 months ago* (last edited 2 months ago) (3 children)

I dunno if you noticed or if that was the joke. But you said "8 megs" three times in your comment when I think you meant to say "8 gigs". 1 gigabyte ~ 1024 megabytes. Just wanted to let you know in case it wasn't a joke about how 8 wasn't enough. That's all, thank you!

[โ€“] rushaction@programming.dev 5 points 3 months ago

TIL! Thank you ๐Ÿ˜Š

[โ€“] rushaction@programming.dev 43 points 3 months ago (4 children)

I'm more curious about the seemingly random reactions on every friggin message. What the hell is that?

view more: next โ€บ