
Helloooo! I am Moose! They/Them/He/Him I am a embedded software engineer with autism, depression and anxiaty ( Wooo! ). I post about... whatever I want... software things, mental health things... whatever I feel like Feel very wellcome to send me asks about... anything that strikes your fancy :3
266 posts
Meandering Thoughts.... Part 1
Meandering thoughts.... part 1
Authers note: Got high wrote what I was thinking. Be warned:
Got my code reviewed, and passed, at work.
And when testing the temperature sensor I had made a driver for… I was getting questions about why it could not measure anything bellow 0.
Which I could easily answer with "Because I told it to".
Because I was told to send the data out in fullscale… which I was told are simply a 14 bit representation of the temprature from a minimum to a maximum.
And the minimum for this sensor, was 0. So I clamped the values: if ( temperature > maximum) { temperature = maximum} else if (temperature < minimum) { temperature =minimum}
Turns out… that is not correct. The full-scale simply is the very weird way we say what a bit means. Normally like this "Each LSB ( least significant bit ) represent 0.0634 degrees celsius" So if the sensor returns 1000, you go: 63.4 = 1000 * 0.0634;
So what I HAD to encode the number as was that constant, but on 16 bit, in signed form.
Now… that is my bad. I did not understand a thing, and did not ask for an explanation… And the ones I got from the intro to the codebase was "its fullscale", and I did not have access to documentation.
BUT! The guy who DID know this, reviewed my code…
So why, oh why, did he not see the the function clearly marked "Claimping values" in there and then tell me it was wrong?
This review process is by the way partly for SECURITY! If giant breaks in business logic is not found, what do you think the chance is that a security issue is found? My guess is 0%
Remember. Tech companies being competent, is a myth. Companies are teenagers showing up for a presentation in history class still drunk from an all night kegger, just making up whatever stories they make up on the spot… except everyone in the class will lose their income, and have their life stability ripped away from them if they don't tell the company that they are absolutely right and are getting a A+.
-
let-me-show-you-this reblogged this · 1 year ago
-
simply-sithel liked this · 1 year ago
-
admitit liked this · 1 year ago
More Posts from Moose-mousse
My boss: "So Moose, can you use the release toolchain to generate me a .hex file to run tests on?"
Moose, after several hours of trying: "No.
I mean it is theoretically possible... I JUST need to change the correct variables... but since our toolchain is an excel spreadsheet with buttons that activates visual basic macroes that calls chains of .bat scripts, which works with Rensas compilers and... Ruby... for some reason... and have 0 documentation...I have no freaking clue what anything does or where I need to change what..."
Meandering thoughts.... part 2
Remember. Tech companies being competent, is a myth. Companies are teenagers showing up for a presentation in history class still drunk from an all night kegger, just making up whatever stories they make up on the spot… except everyone in the class will lose their income, and have their life stability ripped away from them if they don't tell the company that they are absolutely right and are getting a A+.
They have no idea what they are doing. Everyone just pretends they do.
Here is a good way to think about it:
600 million years ago, life changed forms from single celled life, to multicellular life. Because there are niches those lifeforms can fill that single celled life cannot. They are able to do things single cells simply cannot.
But it took a long time because there are many steps you have to go though before you can be multicellular. One of which is instead of doing cellular division as fast as you can, you can slow it down in response to situations. Like "If there is not enough food around, slow down so we can survive on much less food, rather than dying while trying to divide".
Otherwise, when you try to get specialized cells to do different things, they will grow at different rates and essentially… be a creature born with cancer that kills it.
Most likely, failures happened many many many times before multicellular life managed a form that could work. Many of these failures would be a multicellular life form happening… and then dying out a few minutes later from cancer.
Multicellular life became more and more complex.
After a while, big creatures like ants had evolved. These are doing the same trick that the single cells did to turn to multicellular.
They had evolved everything needed for cooperation, creatures that each had a special function.
There are several ways to do this, ants certainly have a good way, since 20% of all biomass is ants… But it lacks… flexibility. Ants can often control how many worker ants vs soldier ants are created, and so the colony can adapt to situations… But only if the tools needed for the situation is one is have evolved to handle…
A more flexible ways, is what the Homo genus have done. We could call it "society". More than a tribe.
Now, it have very much allowed the Homo lifeforms to fill a new niche… but since it is SUPER recent, a lot of it is still… bad. But every-time evolution finds a new niece, it evolves FAST for a while.
Like, imagine a cell that inside 50 generations had evolved into more than 10-25 different lifeforms. We would most certainly describe that cell as "Mutating disturbingly fast". That is about how fast human ways of of structuring ourselves change.
Like there is no 1 way to measure when a new society starts existing or stops existing…. But most do NOT last a long time. Ways of organizing humans change and switch and mutate, evolve, die and gets invented all the time. First ones was very location locked. Countries in different forms. And only in the last 500 years did they finally evolve up to "Half decent" where we did not have stupid systems like feudalism, where we had to have massive civil wars ever-time people disagreed about who should inherit the throne, and if a single king was an idiot, the country just collapsed.
Now we have a new weird organization. More flexible than countries, who are so tied in with where they are. Corporations.
They are VERY young. And so, like always when evolution have a new niece… very shit.
Corporations grow huge, with no thought for "Why should we become bigger and more powerful", become powerful and force everyone else to accept it, even if it does shitty things to become powerful. It then have no need to make good products. Which is good. Because that is hard. They can just go "We are Microsoft/Monsanto/whatever. You will take whatever we give you, and smile" They are cancer. Growing until it kills its hosts ( Countries ), or gets removed.

Your posts are erratic and behaviour most unsettling

That is what experience is :3
Traveling in time to tell yourself the solution
Travelling back in time to tell myself that sticking with Lua and Love2D was the solution