towerful

joined 1 year ago
[–] towerful 4 points 2 months ago

It's all amendment rights until it's one of the racist fucks that gets murdered.
Then the police get military equipment to deal with the rising crime rates.

[–] towerful 4 points 2 months ago
[–] towerful 3 points 2 months ago

And don't trust

[–] towerful 5 points 2 months ago

Middle of the night, you'll probably have a flashlight.
I feel like mothman would come talk to you

[–] towerful 9 points 2 months ago

Only time to not take a Wheel of Nope is when there is a good temperance/hermit on offer

[–] towerful 3 points 2 months ago (2 children)

Interesting.
I love creative applications of shaders. They are very powerful.

In my opinion only, but willing to discuss.
And I'll preface this by saying if I tried to publish a scientific paper and my formulas used a bunch of made up symbols that are not standardised, I imagine it would get a lot of corrections on peer review.

So, from a programming perspective, don't use abbreviations.
Basically working on naming.

I can read that TAU is the diffusion rate due to a comment. Then I dig further into the code as I am trying to figure something out and I encounter tau. Now I have to remember that tau is explained by a comment, instead of the name of the variable. Why not call it diffusionRate then have a comment indicating this is TAU.
A science person will be able to find the comment indicating where it is initialised and be able to adjust it without having to know programming. A programming person will be able to understand what it does without having to know science things.
Programming is essentially writing code to be read.
It's written once and read many times.

Similar with the K variables.
K is reactionRate.
K1 is reactionKillRate.
K2 is reactionFeedRate.
Scientists know what these are. But I would only expect to see variables like this in some bizarre nested loop, and I would consider it a code smell.

The inboundFlow "line" has a lot going on with little explanation (except in comments). The calculation is already happening and going into memory. Why not name that memory with variables?
Things like adjacentFlow and diagonalFlow to essentially name those respective lines.
Could even have adjacentFlowWeight and diagonalFlowWeight for some of those "magic numbers".
Comments shouldn't explain what is happening, but why it's happening.
The code already explains what is happening.
So a comment indicating what the overall formula is, how that relates to the used variables, then the variables essentially explain what each part of it is.
If a line is getting too complicated to be easily understood, then parting it out into further variables (or even function call, tho not applicable here) will help.
I would put in an editted example, however I'm on mobile and I know I will mess up the formatting.

A final style note, however I'm not certain on this.
I presume 1. and 1.0 are identical representing the float value of 1.0?
In which case, standardise to 1.0
There are instances of 2.0 and 2.
While both are functionally identical, something like (1.0, 1.0, 1.0) is going to be easier to spot that these are floats, as well as spotting typos/commas - when compared to (1., 1., 1.,).
IMO, at least

[–] towerful 18 points 2 months ago

Unfortunately, I think you need a passport number to be able to even book an international flight.
Not like they will spend $$$$ getting to another country to be denied at the border.

Unless they drive, I guess. I feel like it's "easy" to get into Mexico, and would probably be impossible to get home again.

[–] towerful 12 points 2 months ago

for kiss in love:

[–] towerful 9 points 2 months ago

Sounds like a long-awaited race condition finally coalescing.
The boot splash screen would expect the drivers to be ready, and will hang/timeout if it isn't ready when it tries to render the splash screen

[–] towerful 2 points 2 months ago

I can say I've never glorified suicide. When I've been suicidal, suicide is literally the only logical solution my brain can arrive at. It's completely irrational in hindsight, but it makes so much sense at the time.

I don't think I have ever not-watched something due to content warnings alone. But it has alerted me that there may be issues, so it doesn't surprise me when it comes up.

[–] towerful 7 points 2 months ago (1 children)

It's from 2015, so its probably what you are doing anyway

[–] towerful 1 points 2 months ago

Thankfully containers are open source.
Everything is "docker this" and "docker that". But podman is viable, and there are other container systems.
The container format is so ubiquitous it's FOSS. I mean, it's kubernetes.

view more: ‹ prev next ›