nixin-web/technical-principles.md

35 lines
1.8 KiB
Markdown
Raw Normal View History

# Technical principles
2024-09-26 19:44:28 +00:00
## KISS principle
"Keep it simple, stupid!"
## Do not reinvent the wheel
## There is only one timezone
2024-09-27 07:29:47 +00:00
Experience has shown that using multiple time-zones for the servers of an infrastructure is a recipe for disaster.
Also, using the timezone of one country for an international project is a source of confusion and headaches.
2024-09-26 19:44:28 +00:00
Especially when that timezone is subject to daylight saving changes that are causing the clock to jump 1 hour forward or backward twice a year.
The only sensible choice is to set the servers time to UTC and to transalte the timestamps to the user's timezone when displaying them.
This is strongly opinion based. And we may not not all agree on the subject. This is why we will make sure that it is easy for the users to choose their prefered timezone for setting up their servers.
## Eat your own food
The project is bootstrapped using a hosting infrastructure thagtis based on Proxmox, Debian and YunoHost.
But the goal is to host the project using itself as soon as possible. That is using NixOS servers managed with the tools and principles developed by the NixiN project.
Currently only the forgejo action runners used for CI/CD are hosted on NixOS servers.
## CI/CD
## Focus on user experience
## Prioritize security
## No premature performance optimization
2024-09-27 07:29:47 +00:00
Use best practices to write efficient code but do not write overly complicated solutions based on a-priori thinking of performance issue.
2024-09-26 19:44:28 +00:00
Only optimize what has been tested to be an issue.
## Do fast prototypes and releases cycles.
2024-09-27 07:29:47 +00:00
Even though we think that Rust would be a better language for developing the tools of the project we are starting the first version using Go because it is faster to develop with it and easier to find contributors with this languages.
2024-09-26 19:44:28 +00:00