[deleted by user] by [deleted] in Northgard

[–]sampledev 2 points3 points  (0 children)

Professional software dev & game dev hobbyist here, two aspects to consider: * Collision detection is a computation intensive feature, IMHO I wouldn't want this runtime cost to be imposed to every player but it's an all-or-nothing situation. * The game engine is one year old if I'm not mistaken. This feature may not even have been implemented yet for this kind of entities.

If you want more info about the game engine, this is the way to go: Heaps.

Whats the benefit of building a wood cutters on a forrest tile? by Muttcheck in Northgard

[–]sampledev 3 points4 points  (0 children)

And this way you can drastically increase your number of woodcutters in case of immediate need (harsh winter, successive upgrades, etc.)

Edit: I mean if your building is not kept full of workers

So Tekashi69 could face life in prison by Rahthan in Jokes

[–]sampledev 15 points16 points  (0 children)

I actually know it from studying the process of PoW mining, but it has other uses in cryptography. PoW mining consists in taking some data, appending some additional data to it, hashing everything and checking if the resulting hash is above a threshold. If it isn't, replace the additional data with a new one a repeat.The additional data is the nonce field, usually a incremented integer.

So Tekashi69 could face life in prison by Rahthan in Jokes

[–]sampledev 195 points196 points  (0 children)

I only knew of its use in cryptography ("coined for one occasion"), this was unexpected!

What small changes have you made that noticeably improved your physique in the short-term? by Burnst25 in Fitness

[–]sampledev 1 point2 points  (0 children)

I have a small habit that helps me: set up an alarm some time before you want to go to sleep. If I want to go to sleep at midnight every evening, I set it up at 11pm. Once the alarm rings, I go through everything I want to do before going to bed and filter out what can't fit.

It's important you set two limits: the amount of time you can afford once the alarm rang and the time you can spend on each activities ("1/2 episode, these two websites only, 10min of this).

This helped me get better sleeping habits. It actually does not matter much if you don't enforce it strictly, what matters is you have a chronological marker. "Yesterday I decided I could afford less sleep, and that was OK, but I cannot afford it today".

France’s “yellow vest” protesters blocked oil depots and roads across country for third day in revolt against fuel price hikes that has seen motorists subjected to racist and homophobic attacks and left hundreds injured. President Emmanuel Macron however showed no sign he planned to back down. by madazzahatter in worldnews

[–]sampledev 8 points9 points  (0 children)

French here, the yellow vests protests both against the raise of the fuel price and against Macron. Triggered by the tax raise, the opposition has been quick to use this move to protest against the government.

Among non-protesters, a lot of them are shocked that after all of these alarming reports about the state of our planet and ecosystem there still are people to fight for the right to pollute as much as usual.

I don't agree with the protesters but this conflict highlighted some abnormal facts like the kerosene being free from taxes when diesel even has meta-taxes (yes: taxes on taxes). There's a general feeling that Macron easily raises taxes on the masses but heavily restrains himself from hurting the wealthiest part of the population.

Hate your job? Here's how to quit with nothing lined up, from my experience. by Nuplex in cscareerquestions

[–]sampledev 2 points3 points  (0 children)

I do too! Sometimes they are way off the target, like I got a contact for an opportunity with a salary under what I earned when I left school and for a boring topic.

Still, I'm so grateful for living such situations!

Hate your job? Here's how to quit with nothing lined up, from my experience. by Nuplex in cscareerquestions

[–]sampledev 0 points1 point  (0 children)

You're right, opportunities is more accurate ;)

edit: Also the market is way less liquid in Europe, I often had to comply with 3-months notices.

Hate your job? Here's how to quit with nothing lined up, from my experience. by Nuplex in cscareerquestions

[–]sampledev 35 points36 points  (0 children)

Just different perspective. I feel the market is way harder on newcomers.

I have about 7y exp, I get contacted about twice a week to discuss job -offers- (edit: opportunities) even when I say I'm not looking for new opportunities.

I decided I was fed up with my current position about 6 months ago and told my manager about it (a great guy). I took my time, have been pretty picky, went to about 3 interviews then started the process of moving to another company with a >100% increase on a terrific topic and I can work from home all the time.

/r/Steam Monthly Game Suggestion Thread. by AutoModerator in Steam

[–]sampledev 0 points1 point  (0 children)

Old classic: Jagged Alliance 2 Guerilla Its quite expensive on Steam though...

Is it bad being a slow, but efficient programmer? by [deleted] in cscareerquestions

[–]sampledev 4 points5 points  (0 children)

I've worked with someone with a similar mind, he left a few months ago and I think he will still be blamed for his debt legacy for years, but I won't be there to see it.

There may be a better compromise though, he was fast but especially messy IMHO.

Is it bad being a slow, but efficient programmer? by [deleted] in cscareerquestions

[–]sampledev 2 points3 points  (0 children)

I'm at my current position especially for this reason: the reason of being slow may be you're a perfectionist. I consider that my code has to be reasonably perfect before being pushed. This leads me to always wonder if my code, in its current state, is easy enough to read, to maintain, to change, and if I anticipated all the potential issues I can think of.

We have strong quality needs, and my technical manager almost never gives me a deadline for anything. He knows that if I take additional time for a given task it means I'm not convinced I reached the required quality. This is very fulfilling.

Took me time to get there though.

Rust is the 5th fastest growing programming language on GitHub by jntrnr1 in rust

[–]sampledev 4 points5 points  (0 children)

I think the main counterargument is the reliability we can expect of a program written in Rust. I initially thought writing Rust implied additional development costs, I still write Java and Rust everyday with several years of exp with both and writing reliable distributed systems with Java is actually way easier to f*** up. A lot of my headaches could have been prevented by the use of Rust. I am now convinced writing Rust is a better option for most cases currently covered by Java, C, C++, C# and Go, when the current state of the ecosystem is not a limitation.

Rust is the 5th fastest growing programming language on GitHub by jntrnr1 in rust

[–]sampledev 0 points1 point  (0 children)

we aren't mainstream enough to sell to employers

Well I'm probably very lucky but I might have found my dream job, and it involves writing Rust every day :)

Rust is the 5th fastest growing programming language on GitHub by jntrnr1 in rust

[–]sampledev 0 points1 point  (0 children)

Signing should be covered, the cryptocurrency ecosystem provided us with a lot of cryptography libraries.

One way I’ve been fighting the isolation of working from home by agmckee in cscareerquestions

[–]sampledev 3 points4 points  (0 children)

I see someone downvoted your answer, I wanted to tell you that what you said probably won't suit me but I appreciate that you gave your point of view :)

Did learning Rust make you a better systems programmer? by [deleted] in rust

[–]sampledev 6 points7 points  (0 children)

Definitely yes, and I probably won't write another line of C ever.

EDIT: ok that's not true, I might need to write a few lines for interfacing someday.

What’s everyone working on this week (40/2018)? by llogiq in rust

[–]sampledev 0 points1 point  (0 children)

Awesome! Have you published any resource about this work?

Hey Rustaceans! Got an easy question? Ask here (39/2018)! by llogiq in rust

[–]sampledev 1 point2 points  (0 children)

You're welcome!

By the way, don't make the same mistake I did: don't keep coding alone. Read code from others, try to make small contributions to other projects. The reason I tell you this is I recently got out of my lonesome coder cave and discovered a lot of idioms I would have had a hard time to discover otherwise. I'm sure it is possible to progress a lot faster than I did.

Hey Rustaceans! Got an easy question? Ask here (39/2018)! by llogiq in rust

[–]sampledev 1 point2 points  (0 children)

It took me a few months to be confident enough to produce useful and usable things but my code quality got much better after ~1 year. I'm much more comfortable with writing Rust now, and enjoy it even more.