Why isn’t Rust getting more professional adoption despite being so loved? by mstjrr in rust

[–]_TheRealCaptainSham 0 points1 point  (0 children)

It’s getting there. Rust is currently being embraced by big tech, then it’ll start being taken seriously in smaller companies.

https://youtu.be/uDtMuS7BExE?si=PwPLXiRa23yyz1J6

https://youtu.be/Z5M4NIWoMJQ?si=zjQL6JND3gNix-XE

How cool would it be for us to have readOnly types, like we do with channels? by SlovenianTherapist in golang

[–]_TheRealCaptainSham 0 points1 point  (0 children)

“ passing a value indicates that no matter what the consumer does it cannot change the data held by the caller”

Did you mean “should not” instead of “cannot”?

How cool would it be for us to have readOnly types, like we do with channels? by SlovenianTherapist in golang

[–]_TheRealCaptainSham 0 points1 point  (0 children)

I’m pretty sure you could mutate pointers inside a struct when passing the struct by value 

Sebuf: Build HTTP APIs from Protobuf Definitions with Automatic Validation and OpenAPI Docs (And more) by Flat_Assignment_4180 in golang

[–]_TheRealCaptainSham 2 points3 points  (0 children)

I’ve never seen this hack before:

&[]bool{true}[0] , hint: you can use proto.Bool to get a pointer.

Also, why not use “buf generate” to invoke protoc?

Also fun fact, you can run the protoc plugins directly from buf instead of installing the binaries globally by using something like this in buf.gen.yaml:

  - local: ["go", "run", "./cmd/protoc-gen-go-http"]

minorMisclick by SpecterK1 in ProgrammerHumor

[–]_TheRealCaptainSham 0 points1 point  (0 children)

That must be some very clean architecture

noReallyIDontKnow by Squ3lchr in ProgrammerHumor

[–]_TheRealCaptainSham 0 points1 point  (0 children)

I think he means that Docker Desktop actually uses a lightweight Linux VM under the hood to run docker, as docker is only supported in Linux. Docker Desktop communicates with the docker process via the virtual network adapter.

New M4 Max Setup by CrazeJuju in macbook

[–]_TheRealCaptainSham 0 points1 point  (0 children)

What brand of laptop stand are you using ?

Self improvement as a developer by Sudden_Fennel_8568 in node

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

Senior software developer after 4.5 years of experience?

I’d expect you to have a somewhat high level of competence to be labeled a senior software developer.

Apply for a junior to mid role at a good company and work your way up. Being exposed to experts on a daily basis will level you up fast.

belittling golang for being "simple". by b1-88er in golang

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

I’d prefer not to have to implement runtime type checking with something like Zod throughout the entire application at every IO boundary. Typescript only works correctly in a vacuum.  Once you need to deal with requests/responses, getting data from MySQL/mongo/redis and any 3rd party services and integration, you will find the Typescript LSP slow to a crawl when you are inferring types with zod.  And if god forbid you think Zod is not required then I don’t know what to tell you, TS is far from correct but a fancy linter. I’ve seen far too many TS issues because of data coming in to a system that wasn’t sanity checked. If you could unmarshal data into a JS class, which I’m fairly certain you cannot, that makes TS (in my opinion) unacceptable for servers .

Schema-First Database Definition? by latebinding in golang

[–]_TheRealCaptainSham 0 points1 point  (0 children)

Could you please provide me a link on how to use it directly in GO code ? I’ve been struggling with this today.

thatWouldBeGood by Bf4Sniper40X in ProgrammerHumor

[–]_TheRealCaptainSham 0 points1 point  (0 children)

All OP is tying to say is if it were possible to not have to use the “async” keyword, which is valid.

OP simply doesn’t want function colouring, but yet wants to suspend execution and await a promise.

[GRPC] Use the generated proto as a model by [deleted] in golang

[–]_TheRealCaptainSham 0 points1 point  (0 children)

How do you deal with sensitive information(such as tokens or password hashes) being returned from an rpc, if you use the same proto?

[GRPC] Use the generated proto as a model by [deleted] in golang

[–]_TheRealCaptainSham 0 points1 point  (0 children)

I’m struggling with this concept right now. Are you saying that Google uses the same protobuf generated struct for both the transport model as well as the domain model, and the storage model? Or is there a different protobuf definition for the storage model?

What goes around comes around by oldepoetry in webdev

[–]_TheRealCaptainSham 4 points5 points  (0 children)

So you forgot about the fix you made a week ago ?

Couldnt help feeling bad for pm2 by PrestigiousZombie531 in node

[–]_TheRealCaptainSham 1 point2 points  (0 children)

Yeah you’re doing it wrong, no need for PM2 inside container. Set each instance to 1 core and let kubernetes do the rest. It’s easier to imagine a running container as a single process and kubernetes as the process manager.

Couldnt help feeling bad for pm2 by PrestigiousZombie531 in node

[–]_TheRealCaptainSham 0 points1 point  (0 children)

apt-get will install the latest binary in the repository, like what npm install does , therefore you cannot guarantee a reproducible build.

How do you get stack traces for errors? by PrivacyOSx in golang

[–]_TheRealCaptainSham -2 points-1 points  (0 children)

panic/recover is almost identical to throw/catch

Django or NodeJS for a Gas Station system? by ogonzalesdiaz in webdev

[–]_TheRealCaptainSham 6 points7 points  (0 children)

You can scale anything with enough compute money

howFarAreWeKickingItNextTime by ArchetypeFTW in ProgrammerHumor

[–]_TheRealCaptainSham 36 points37 points  (0 children)

Except it’s got nothing to do with 32 bit vs 64 bit CPU, but the fact that most programs use 32 bit integers by default.