rushaction

joined 1 year ago
[–] rushaction@programming.dev 10 points 1 month ago

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@programming.dev 4 points 3 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@programming.dev 5 points 4 months 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 4 points 4 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@programming.dev 48 points 5 months ago* (last edited 5 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@programming.dev 5 points 7 months ago

It's too soft to my tastes. I like the texture of the original because it's got that hard outer shell.

[–] rushaction@programming.dev 2 points 9 months ago

My issue with FF's auto update is that the behavior is how painfully the auto-update works with multiple profiles.

I'll have one window (well three) open for some (measurable in days) time.

  1. FF updates silently, I haven't restarted my browser so I haven't noticed.
  2. I go to open a session in the second (or third profiles)
  3. FF decides now is a great time to apply the update, after all it just opened right?
  4. All the existing open browsing sessions in the other profiles get bricked. The tabs just stop responding, no browsing works, just dead in the water.

I have to shut it (all?) down to get it working again.

I don't know how Chrome handles this so I cannot compare. TBH still worth using FF over that adware!

[–] rushaction@programming.dev 4 points 9 months ago

My favorite game as a kid. Sugh memories trying to solve the puzzles.

One of the very few games I ever played through completely. I remember borrowing my mom's mini-recorder (for lectures) and using it to help me record and navigate the tones on the music tram puzzle.

[–] rushaction@programming.dev 3 points 9 months ago

For sure! I was just thinking of a species that'll outlive humanity. :D

[–] rushaction@programming.dev 13 points 9 months ago (2 children)

I thought roach myself.

[–] rushaction@programming.dev 1 points 9 months ago

Yeeap. My FreeBSD box has such pain with 'em. Because unfortunately *bsd is not in Python's precompiled wheels. So one is almost building from the source.

Now every time I pip install something there's a high likelihood I'm going to end up having to install the rust tool chain and burn so much time on building libraries. I get why the project made the switch, but man does it hurt being downstream of it.

[–] rushaction@programming.dev 3 points 9 months ago (2 children)

Every time I see a project decide to use rust I groan knowing my build/packaging time is about to skyrocket. Case in point, the Python cryptography project.

And given cryptography's importance in the Python ecosystem what used to be an easy pip install of a package now almost always going to include is an enormous and horribly slow rust build environment.

Seeing a rust libraryjust makes me sad now 😭

view more: next ›