rushaction

joined 1 year ago
[–] rushaction 8 points 1 month ago (2 children)

It's political satire. Read the full plaque again. It is extremely well excuted.

I'm legitimately disappointed the duration for the permit appears to be so short.

Regarding the employment of the personnel who approved the permit, that's uncalled for. I'd recommend reading and internalizing the First Amendment. They really have.

[–] rushaction 16 points 2 months ago (3 children)

It's a glorified autocorrect. Using it for anything else and expecting magic is an interesting idea. I'm not sure what folks are expecting there.

  • It suggests variables and function names I was already going to type more accurately. Better, it suggests ones even when I cannot remember the name because i got stumped trying to remember.
  • It fills in basic control structures and functions more effectively than the IDE's completion templates.
  • It provides a decent starting point for both comments and documentation (the hard part). Meaning my code actually has comments and documentation. Regularly!

But I don't ask it to explain things or generate algorithms willy nilly. I don't expect or try to have it do something that's not more than simply auto-completion.

I honestly like it, even if I strongly dislike the use of AI elsewhere. It's working in this area for me.

[–] rushaction 11 points 3 months ago (1 children)

Human remains will only be accepted from bona-fide educational facilities. Contact us for more details.

Likely an explicit no. :(

[–] rushaction 36 points 3 months ago

Is it? Sounds a lot like what I'd hope to hear from someone with his history.

Maybe he learned something. People can change, it's just really frickin hard for every one of us.

[–] rushaction 10 points 4 months ago (4 children)

Quite literally my first thought. Great, but I can't issue certs against that.

One of the major reasons I have a domain name is so that I can issue certs that just work against any and all devices. For resources on my network. Home or work, some thing.

To folks recommending a private CA, that's a quick way to some serious frustration. For some arguably good reasons. On some devices I could easily add a CA to, others are annoying or downright bullshit, and yet others are pretty much impossible. Then that last set that's the most persnickety, guests, where it'd be downright rude!

Being able to issue public certs is easily is great! I don't use .local much because if it's worth naming, it's worth securing.

[–] rushaction 6 points 5 months ago (7 children)

I'm no expert, but I think you might need resistors on those LEDs or they'll burn out fairly quickly. I cannot see the whole circuit, and my EE classes were a long-ass time ago. It looks like you might be driving them straight from the breadboard's power. Just wanted to give you a heads up in case it's an issue.

https://electronics.stackexchange.com/questions/28393/why-do-we-need-resistors-in-led

Good luck!

[–] rushaction 4 points 5 months ago

It's to prevent the person from completing a circuit across their chest if accidentally touching a ground or the like with their other arm. Hearts don't like that.

Just a way to reduce risk when working with electricity.

[–] rushaction 2 points 5 months ago (3 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 4 points 5 months ago

Because this is a regression and this particular issue was introduced in 8.5p1. So it only affects versions newer than that, up until when it was fixed in 9.8p1.

[–] rushaction 12 points 6 months ago (1 children)

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.

[–] rushaction 76 points 6 months ago* (last edited 6 months 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 😎)

[–] rushaction 1 points 6 months ago
view more: next ›