How many detours did I take?
A few days ago, I tried to use Raspberry Pi + nodejs to build a personal website, even a few things have been “studied”, for example:
- Raspberry Pi is a very limited card computer which is very suitable for to performance testing, as a bit of an excessive load will make the whole system stubborn.
- Static web pages are accessed ten times faster than the nodejs dynamic page.So try every thing to generate static html rather than dynamic ones. I’ve encapsulated a set of interfaces for doing this.
The Correct Position
Now I found a better way:
- After generating the static pages, upload them to the Github Pages, which is a perfect place to publish static pages, which not only does not consume any bandwidth but also safe.
- H5 games are also static resources and can be deal in the same way.
- I only need to deal with the issue of the game communication with the server on the raspberry pi.
A Summary of My Behavior
To summarize what I’ve done in the past month, I have done all kinds of ways to do it, and I’m actually studying it by doing it. Because I have no experience, no one gives me any advice, and everything is on my own. The lack of knowledge and the mental state of mind caused me to do a lot of extra work.When I learn some new knowledge and go back to what I have done, I want to make all kinds of changes to achieve better results, which creates a lot of reconstruction.I like reconstruction, not only because it can make the result better, but also because it makes me exercise my various skills.In short, it’s not just code, it’s my skill.
The following flow chart shows the process.
I hope that with the richness and skill of my knowledge, my workflow can gradually reduce the proportion of learning and reconstruction, and thus achieve a more efficient leve.Or in a different way,let me get out of the details and think about these problems at a higher leve.