[ENG/DEU] Voting Service Enhancement + Website Improvement

$1

banner-800x200_commentrewarder-5_01.png

Just a short work report - as you don't hear much from me lately. And I'm actually still in the middle of my work and the end of the day is a long way off. But if I don't write now, then it will be the same as always: I won't write. As always, I doubt whether the activities reported here are worth reporting on; but somehow I also have to generate my HTU to finance the work on CryptoCompany... Be that as it may...

Nur ein kleiner Arbeitsbericht - da man ja in letzter Zeit wenig von mir hört. Und eigentlich bin ich noch mittendrin in der Tätigkeit und Feierabend ist in der Ferne. Aber wenn ich jetzt nicht schreibe, dann wird es wie immer: ich schreibe nicht. Ob die hier berichteten Tätigkeit des Berichtens wert sind, da zweifele ich wie immer dran; aber irgendwie muss ich ja auch meine HTU generieren, um die Arbeit an CryptoCompany zu finanzieren... Wie dem auch sei...

Reworking the CryptoCompany voting service and the code behind it - and the website in general

Überarbeitung der CryptoCompany Voting Service und des Codes dahinter - und generell auf der Website

As readers of the Voting Reports will have noticed, I am in the process of reorganizing the voting service. I don't want to explain here what, how and why. I have already done that sufficiently here in this article and consequently in the voting reports.

But what I wanted to report now: Not only that I am expanding the functionalities for the voting service, but in the course of this I found various code where I asked myself “Hey, why is this or that function called, even if it is not needed on every subpage of the website?

As a result, I have now switched the calling of a few functions so that this only happens on subpages where this function is actually needed. This not only makes the website faster, but also reduces the load on external hive services from which I retrieve data.

And oops: why aren't the delegations to @ccceo.voter and @ccceo.voter2 also used for the calculation and display of CCPower? So you just fix that right away. Of course you could add this to your to-do list. But if you already have the files open and the list is already far too long, then I'd rather tackle it straight away. It's better this way than working on yet another corner.

Wie Leser der Voting Reports sicherlich mitbekommen haben, bin ich dabei, den Voting Service umzubauen. Ich will hier nicht erklären was, wie, warum. Das habe ich bereits hier im Artikel und folglich in den Voting Reports ausreichend getan.

Was ich nun aber berichten wollte: Nicht nur, das ich eben die Funktionalitäten für den Voting Service erweitere, sondern im Zuge dessen diversen Code gefunden habe, bei welchem ich mich gefragt habe "Hey, warum wird diese oder jene Funktion aufgerufen, auch wenn sie gar nicht auf jeder Unterseite der Website gebraucht wird?

Folglich habe ich den Aufruf von ein paar Funktionen nun so geschalten, dass dies nur auf Unterseiten passiert, wo diese Funktion auch gebraucht wird. Das macht nicht nur die Website schneller, sondern entlastet auch externe Hive-Services, von welchen ich Daten abrufe.

Und hoppala: warum wird für die Berechnung bzw. die Anzeige der CCPower nicht auch die Delegationen an @ccceo.voter und @ccceo.voter2 herangezogen? Also bessert man sowas halt auch gleich aus. Klar könnte man sich das auch auf die To-Do-Liste schreiben. Aber wenn man die Dateien eh schon offen hat und die Liste eh schon viel zu lang ist, dann gehe ich das lieber sofort an. Besser so, als noch offene Arbeit an einer weiteren Ecke.

See, not really fancy... worth the report? Somehow it is. At least you have another sign of life from me here on the “private” blog. And if the reports are so short, then I might as well write a report instead of getting caught up in the idea that I can only write high-end posts. The result of this would tend to be another day without posting.

Such “not fancy” work is also part of a project like this. And in comparison with other activities, such work is certainly still in the upper range. 5 out of 10 points? Because there are much more annoying or worse tasks - but everything has to be done. Especially repairs or optimizations such as those described above. If you don't do this, more and more technical legacy issues will gradually pile up. And at some point, you are faced with a code complex that is almost impossible to understand, but makes you want to throw up your hands.

So, that's it for now - the code editor is calling!

Siehste, nicht wirklich fancy... den Bericht wert? Irgendwie schon. Immerhin habt Ihr wieder ein Lebenszeichen hier auf dem "privaten" Blog von mir. Und wenn die Berichte so kurz sind, dann kann ich auch eher mel einen Bericht einschieben, statt mich von der Meinung gefangen lassen zu nehmen, ich könne nur High-End-Postings schreiben. Das Resultat dessen wäre dann tendenziell ein weiterer Tag ohne Posting.

Auch solche "nicht fancy" Arbeit gehört bei einem solchen Projekt dazu. Und im Vergleich mit anderen Tätigkeiten rangiert eine solche Tätigkeit sicherlich noch im oberen Bereich. 5 von 10 Punkten? Denn da gibt es wesentlich nervigere oder schlimmere Aufgaben - aber alles muss getan werden. Insbesondere auch solche Ausbesserungen oder Optimierungen wie oben beschrieben. Tätigt man diese nicht, häufen sich nach und nach immer mehr technische Altlasten auf. Und irgendwann steht man dann vor einem Codekomplex, welcher kaum noch zu verstehen ist, aber die Hände über dem Kopf zusammenschlagen lässt.

So, das soll es erstmal wieder gewesen sein - der Codeeditor ruft!


Greetings from Paraguay!

Follow for the less buggy stuff!
No... Better follow @CryptoCompany & @BroBang, my game & blockchain project! You don't will regret it!

Your vote keeps development, stupidities & fridges rollin'!


Rock 'n' Roll & Hive a great day!


How to Be a Better Hivian?!

How to Be a Better Hivian?!



0
0
0.000
2 comments