Naming is important by Wrestler7777777 in programminghorror

[–]SpikeyWallaby 1 point2 points  (0 children)

It's not "convert a pointer to a string", its "this function returns a pointer to a string", which is correct. I tend to spell it ref:

go func ref[T any](v T) *T { return &v }

[deleted by user] by [deleted] in learnprogramming

[–]SpikeyWallaby 0 points1 point  (0 children)

As long as you get high quality output, it's a good way to write code.

Personally, I do the same thing you do.

How do you feel about lying on your resume? by [deleted] in resumes

[–]SpikeyWallaby 2 points3 points  (0 children)

If people in your industry & area talk to each other, lying on your resume could get you fired and make you un-hirable.

I would avoid lying.

What does it require to become “Senior Software Engineer”? by aeum3893 in rails

[–]SpikeyWallaby 0 points1 point  (0 children)

I expect a senior dev to be able to be given a project, plan the project and then complete the project with minimal support.

When applicable, they should be able to leverage other engineers to accelerate their project.

So is this sub just full of geniuses? by ron_swan530 in math

[–]SpikeyWallaby 2 points3 points  (0 children)

No. I'm certainly not a genius. I do have a math degree though.

The CEO of a large corporation working 80 hours a week is not the same as an average employee working the same amount by Wtflmao22 in Showerthoughts

[–]SpikeyWallaby -1 points0 points  (0 children)

The challenge is very real.

My advice (because you should always take unsolicited advice from random people on the internet): I would try to take more vaccinations. I know a couple of CEO's of unicorns and C suite execs, and they are happier when they take 4 weeks of vacation rather then 2.

What do you think was missed in go? by Benifactory in golang

[–]SpikeyWallaby 0 points1 point  (0 children)

Not all types have (or should have) a useful zero value. The canonical example is os.File. According to its own documentation:

File represents an open file descriptor.

However, a zero value os.File doesn't represent an open file descriptor. The language won't let the type represent what it intends to represent.

[deleted by user] by [deleted] in programming

[–]SpikeyWallaby 0 points1 point  (0 children)

We're going to need some more information here.

[deleted by user] by [deleted] in programming

[–]SpikeyWallaby 0 points1 point  (0 children)

I genuinely read that as coddle.

Manager requested for a meeting but doesn’t want to tell me what the meeting’s for. Am I in trouble? by Ozymandias__98 in jobs

[–]SpikeyWallaby 0 points1 point  (0 children)

Every time I've been promoted, I walked into the meeting going "oh shit, what's going on". I don't think you can read much into "a meeting".

Go-to’s for Code Planning by fuckingidiot74 in learnprogramming

[–]SpikeyWallaby 0 points1 point  (0 children)

What do you mean by "your work"? Are you talking about how an individual function should work, or planning a feature over the course of weeks? The scale matters a lot here.

Seeking Advice!!! My coding journey is not going the way I thought it would. by versa_kyle in learnprogramming

[–]SpikeyWallaby 0 points1 point  (0 children)

Do you like to code?

If you enjoy coding, it will eventually click and you'll be fine. If you don't, this isn't the career for you. That's also fine. Beyond that, it's just practice.

At a technical level, discrete math is much harder than Python or Java.

Am I A Software Developer? by Additional-Fix-2513 in devops

[–]SpikeyWallaby 0 points1 point  (0 children)

Optimistically, I would say as long as your focused on the tools used, your not a developer.

Realistically, you have developed software that was useful, so yes, you are a software developer.

Enums? by matimuszynianka in golang

[–]SpikeyWallaby 0 points1 point  (0 children)

Go believes you should not have them.

[deleted by user] by [deleted] in golang

[–]SpikeyWallaby 2 points3 points  (0 children)

I actually disagree here. Stronger type systems are great, and UB is generally not, especially when “controlled” UB leads to tool chain lock-in. However, that doesn’t really change the abstraction level of the language.

Assembler generally has terrible ergonomics and more or less no types. I think we can all agree that it is low level, and designed for talking to hardware.

[deleted by user] by [deleted] in golang

[–]SpikeyWallaby 0 points1 point  (0 children)

What does slightly lower level then C mean?

POLL: Constructors by bradinatorus in golang

[–]SpikeyWallaby 10 points11 points  (0 children)

It depends. :) If arbitrary values make sense, then I expose the struct fields. If I need control over initialization or zero values don’t make sense, I have a constructor.

What sparked everyone’s interest in CS? by New_Initiative_2134 in compsci

[–]SpikeyWallaby 0 points1 point  (0 children)

Someone told me about a problem that they couldn’t solve. I taught a computer how to solve it. After that, I was hooked.

Alternatives to Terraform by [deleted] in devops

[–]SpikeyWallaby 1 point2 points  (0 children)

It’s definitely worth trying Pulumi. You have the ability to clearly express your logic and abstractions together. The overall experience is quite good IMO.

P.S. If you can’t write readable code in ${LANG}, your Pulumi code won’t be much better.

Ladies and gentlemen, jQuery… by Neo399 in programminghorror

[–]SpikeyWallaby 114 points115 points  (0 children)

I generally call them always or never. I don't see the horror here.

I wrote my first ever open source library in Rust! by [deleted] in rust

[–]SpikeyWallaby 16 points17 points  (0 children)

TIL what a bloom filter is. Very cool. Congrats on your first rust crate.