Whaleshares Logo

I am busiest when I am quiet

ijmmaiwitnessPosted for Everyone to comment on, 11 months ago4 min read

afbeelding.png

There is some hard work being done behind the scene, that is why finding time to post is scares. Lately I have only been able to put a comment here and there.

Not posting doesn't mean I am not doing anything Whaleshares related, quite the opposite.

With @m0ssa99 in the house, and @feelx finding time to script, coding became more interesting than it already was before.

For many, Whaleshares is and will always be a blockchain based platform to put their content on, for me it is an incentive to enter new worlds. New worlds of programming.

Javascript

Screen Shot 2021-09-05 at 11.56.14.png

Javascript was something I merely used to change layouts without having to reload the page. "Real" programming was done in PHP. My first javascript that had nothing to do with layouts, was a script on Steemit. I ran a contest and wanted to save the encrypted answers, decrypted, in a file on my desktop. Before that I didn't even know I could run a script on my own Windows machine. Always thought you needed to have a VPS for that, and had no clue how that would work.

React

Screen Shot 2021-09-05 at 12.00.15.png

After becoming more familiar with VPS and running code, by becoming a Whaleshares witness and developing whaleshares.nl, a new challenge arose, Whaleshares front end code was open sourced.

React is a system, developed by Facebook, that controls the display of content on a website. It is javascript based, but creates a whole new environment of coding. This is the system used for the Whaleshares front end.

Now that the code was available I could try to "fix" the things I thought needed fixing. It took some trial and error, and hours of reading, before I got the hang of it. There is still a lot to learn, and more than once I notice afterwards some code could have been handled differently. It is an ongoing process.

C++

Screen Shot 2021-09-05 at 12.09.55.png

And now a new challenge started. Where React is used for the front end, C++ is used for the chain itself. C++ is a whole different language. Different syntax, different logic, different possibilities.

More than a few people expressed they would like to be able to send private messages directly from the platform. @m0ssa99 got inspired and started coding a plugin that could be added to the chain code. At this moment he is managing that plugin, and I am testing and implementing it in the front end to see how it (could) work(s).

Not ready yet, but exciting to work on.

Screen Shot 2021-09-05 at 13.03.48.png

Testnet

The major difference between developing front end features and chain features is the ability to test your code. With front end code you just update the code, and the changes are visible instantly. With chain code you have to update the code and (almost always) restart the full node you are testing with. Resyncing a completely functional full node takes hours if not days. That doesn't work. Imagine having to wait hours after every code change.

To make testing easier, I have decided to look into setting up a testnet for Whaleshares. This will be a full featured test chain with no data. No accounts, no posts, no nothing. Test accounts will be created and recreated when needed. Less data will result in short resync time.

This is a whole new chapter though. I have no idea where to start. With the help of @m0ssa99, @alexpmorris and @vit, I have good faith in things working out just fine. The last two are pretty much invisible on the platform but very valuable assets behind the scene.

That is my week in short, I hope yours was productive, educational, and fun as well.


pixabay

Sign Up to join this conversation, or to start a topic of your own.
Your opinion is celebrated and welcomed, not banned or censored!