"Custom web server for UI pages - Getting advice - Keycloak. 【ログラスCTO】コードがきれいだとビジネスは伸びる。プロダクトを腐らせないための秘策とは"
Hatched by atsuo
Mar 14, 2024
3 min read
10 views
"Custom web server for UI pages - Getting advice - Keycloak. 【ログラスCTO】コードがきれいだとビジネスは伸びる。プロダクトを腐らせないための秘策とは"
Creating a custom web server for UI pages is not only possible but also beneficial for businesses. By ensuring clean and efficient code, businesses can experience growth and avoid technical debt. Let's explore the common points between these two topics and discover actionable advice for developers.
One of the key aspects of creating a custom web server for UI pages is integrating it with Keycloak, a popular open-source identity and access management solution. Despite being a separate entity, the admin-console of Keycloak can be treated as a client application. It is essential to set up a new client and grant the necessary rights to the user, allowing them to access the admin REST API of Keycloak, even if it is not hosted on the same server. This integration opens up possibilities for seamless authentication and authorization processes within the custom web server.
Now, let's shift our focus from the technical aspect to the business perspective. As highlighted by a CTO at Loglass, clean code has a direct impact on business growth. It is crucial to understand the value that refactoring brings to the business. Refactoring should not be solely driven by personal preferences but by its impact on business outcomes. Refactoring that does not align with the business objectives or does not solve any existing issues may not be necessary. By evaluating the value of refactoring from a business point of view, developers can make informed decisions that contribute to the overall success of the product.
Maintaining a balance between maintenance tasks and new development is another crucial factor mentioned by the CTO. It is common for development teams to be tasked with both maintaining existing features and building new ones. This balance ensures that the product's data structures and data management remain organized and easily understandable. By continuously improving the codebase and making it clean and readable, the chances of design flaws that can lead to technical debt in the future are significantly reduced. When introducing new services or features, it is essential to consider the existing data model and ensure compatibility and coherence.
The impact of clean code on the motivation of engineers should not be underestimated. Dealing with messy and poorly written code is not only time-consuming but also demotivating. It is often seen as a burden that slows down progress and hampers innovation. By prioritizing clean code practices, businesses can create an environment that fosters motivation and productivity among developers. Additionally, clean code is easier to understand and maintain, enabling efficient collaboration and knowledge sharing within the development team.
Based on these insights, here are three actionable pieces of advice for developers and businesses:
-
Embrace the integration of Keycloak: By setting up a new client and leveraging the admin REST API, developers can seamlessly integrate Keycloak with their custom web server for UI pages, enhancing security and authentication processes.
-
Evaluate the business value of refactoring: Before diving into refactoring efforts, assess the impact it will have on the business. Refactoring should align with business objectives and address existing issues to avoid unnecessary and time-consuming endeavors.
-
Maintain a balance between maintenance and new development: Strive for a balance between maintaining existing features and building new ones. This approach ensures that the product's data structures and management remain organized, minimizing the risk of design flaws and technical debt.
In conclusion, creating a custom web server for UI pages and maintaining clean code are interconnected and vital for businesses. By integrating Keycloak, evaluating the business value of refactoring, and maintaining a balance between maintenance and new development, businesses can experience growth, avoid technical debt, and foster a motivated and productive development team. Embracing these practices will lead to a more efficient and sustainable product development process.
Sources
Hatch New Ideas with Glasp AI 🐣
Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)
Start Hatching 🐣