RonSijm

joined 2 years ago
[–] RonSijm 9 points 5 months ago

Well you need to try and catch when getting the file anyways, it's probably very rare but imagine a scenario of:

  • Check if file exists
  • user deletes file in between
  • (try) opening the file

Or the file could exist, but you don't have permissions to actually open it.

So a bunch of languages / already have their own "try open file"

[–] RonSijm 3 points 5 months ago

I agree with @[email protected] - since you "don't know where to start“ - just start simple. Maybe lemmy will be fine for now.

Otherwise, to at least pitch some alternative: you can Google for a vbulletin host. A lot of hosting providers offer a "managed vbulletin" solution. Meaning you don't have to get a bare metal machine and don't have to be bothered with installing all the software yourself.

I don't know if there are free solutions, but with a quick Google, it doesn't seem like it's more than a couple $ a month for a small server

[–] RonSijm 2 points 5 months ago

What are you building, it depends a bit on your usecase

Otherwise c# Blazor compiles to WASM

[–] RonSijm 24 points 5 months ago

Whatever you do, don’t use G2A and other similar CD key reseller websites

For indie games, sure, I always just buy those legit.

But some EA / Ubisoft game; I rather pay $5 on G2A than risk accidentally downloading a malware infected crack

[–] RonSijm 7 points 5 months ago (1 children)

Where does it end though? It's a bit like infinite craft - but instead of combining resources you'd have to find an inverse for every emoji

[–] RonSijm 9 points 5 months ago (2 children)

It's a bit weird how that actually works though...

"Which of these pictures are traffic lights?"

I'd hope with all the self-driving-(ish) cars coming out, any AI like that should be able to identify a traffic light, right?

[–] RonSijm 2 points 6 months ago

If it's a public repo, revoke the key (on your own/company repo it might not matter so much)

Then

  • git reset head~1
  • remove api key
  • git push - f
[–] RonSijm 1 points 6 months ago (1 children)

Interesting idea to store github comments inside git, the article just isn't very clear to me on how to actually do it.

He's talking about using an "internal CLI tool" so I guess it's not a public tool?

But anyways, this kinda sounds like something you could do though a Github Action right? Like if a PR is merged, run an action that also appends PR comments or other meta-data from github into git

[–] RonSijm -1 points 6 months ago

I've started to prefer option A to be honest.

In C# I'm using Verify - So I prefer to just use Verify(state); and compare the entire state against a json saved state, instead of manually verifying every individual property

[–] RonSijm 3 points 6 months ago

Do you have any book recommendations?

I think The Pragmatic Programmer by Andy Hunt and Dave Thomas is a great book everyone should read every couple of years. It's not really a lot of "low level coding tips" - more like overall paradigms

[–] RonSijm 3 points 6 months ago

I’m always privating my repos because I’m not sure if I’m doing some horrible beginner inefficiency/bad practice where I should be embarrassed for having written it, let alone for letting other people see it.

Well that's something not to do. Make you "horrible code" public, and ask people to do a code review. Or see what contributors want to change through a PR (if you're so lucky). You're not going to learn anything from others by hiding your mistakes. And no one besides you really cares if you're committing horrible code.

It's pretty hard to just give generic advice on how to write clean code, but if people can just tell specifically what you can improve it's much easier

[–] RonSijm 11 points 6 months ago

Me: building a fluent interface framework...
I already support a WrapperOf<T, T, T, T>
User: Can I have a WrapperOf<T, T, T, T, T> because I'm doing something weird?
Me: *sigh* god-damnit. You're right but I still hate it.

view more: ‹ prev next ›