8

Looked up at the clock... 2 AM... Thought about giving up and going to sleep, but something kept me there...

Rewrote my encoder and decoder for my steganography program, which are used to insert and retrieve data respectively from images. Compiled, ran, and output was as expected!

Tried to write actual data, instead of just headers, to the image, and it broke... Of course it wouldn't work first try, it's me writing the code after all.

But then, after debugging for a while and changing a couple lines, the encoder looked like it had done its work properly. Then I decoded it, and voila, data completely recovered! It almost felt too magical to be true, usually I have to modify a lot more to get it working.

So now I'm in bed, after literally decimating the memory usage of the program, amongst other optimizations, and I know that the code works perfectly 😎 best part is I refactored each class down to 100 lines each, so now it's clean and dense 😇

Just had to share, feeling so good right now 😄

Comments
  • 2
    good job! now put your phone away and get some sleep. Tomorrow is a day too.

    but yeah sounds awesome!
  • 1
    Great feeling. Well done.
Add Comment