A brief moment on copy-paste. Copy-pasta, if you're into that kind of dish.
I whine about copy-paste often. I whine about it at work a lot. I whine about it to the point where the joke “look out, pseudoramble will be angry if he sees you copying-and-pasting!” is a fan favorite.
I have my reasons for whining about copy-pasta (mainly that I've made these mistakes). I wanted to make my own thoughts both more clear and less hard-line than I've managed to set myself up for.
Something that's easy to forget in the world of software development is that testing is a major time investment. Testing has a variety of meanings depending on the context of course. But here we mean attempting to show software correctness by exercising code.
I've recently been poking around at a form of testing known as property-based testing.
“Property-based tests make statements about the output of your code based on the input, and these statements are verified for many different possible inputs.”
Property-based looks at the input & output of a function to describe details about the output itself.
A description is provided for the parameters needed for that function. Test data is then
generated from these descriptions, which helps tease out harder-to-find scenarios.
You're a few steps away from the final battle in FFVII. Just a few more platforms to traverse until you reach the last Jenova fight.
You just pray to some Playstation developer to not make you fight again. When you inevitably have an encounter, maybe you wonder why Playstation developers hate you. Or perhaps you wonder “how did they decide to put me into a fight now?!”
You've once again run into pseudo-random chance, created by a pseudo random number generator (PRNG). This is a process to create numbers where a sufficient sample pass set of statistical tests that say a process creates “random-looking enough” numbers.
I am not fantastic at math. I've always found it interesting, but it's never come to me naturally. Sometimes it's good to face things you're not good at and give them a shot! So here we are, goofing off with prime numbers (again).
I don't feel like reading your last entry. What are you talking about?
Last time we talked about what a prime number is, and how to generate a set of prime numbers within some range using a sieve. This included some sample code in F# that you could use if you wanted to.
Here's another potential grade school thing you may have forgotten – Any natural number can be formed by using a series of prime numbers put together! This was something I forgot about until learning more about prime factorization.
I am not fantastic at math. I've always found it interesting, but it's never come to me naturally. Sometimes it's good to face things you're not good at and give them a shot! So here we are, goofing off with prime numbers.
I'm happy to say that I'm writing this from my newly assembled and configured workbench.
There are still additions and modifications to make, but so far I'm quite happy with the net result. I'd like to share a bit about how I got into this idea of a workbench and how to attempt this yourself.
Wanted, no, needed a standing desk at home!
Considered pre-built options, but decided that a semi-DIY project would be more fun
Using typical shelving accessible at any major hardware store, and one or two simple tools, assembled a setup.
Includes a peg board setup for hanging tools.
The total cost (not including some new fancy things I'm adding to the setup) for the desk came to $150.
If and when I decide to write part two, it will include an updated cost table along with details of cleaning up the setup and improving it slightly.