Monthly Reflection
Since May, Iβve been utilizing Notion for organizing my tasks. Initially, I allocated 5 tasks for each day, including Saturdays. However, after a couple of weeks, I recognized that this was overly ambitious. π As a result, I scaled it back to 2 or 3 tasks per day. If I happen to have surplus time, I may even begin tackling tasks scheduled for the next day or engage in some book reading. Additionally, I intentionally leave Saturdays and Sundays empty beside publish posts, as I consider these days to be for recharging or being lazy.
Scott Young, the author of the Ultralearning book, brings up an insightful concept that strongly resonates with me. He recommends the idea of starting with a pilot week for your schedule before fully committing to it. This strategy grants you direct exposure to the challenges you might face and enables you to make any required modifications. This idea reminds me of my past experience in my former career. At my previous workplace, which revolved around manufacturing cosmetics, we operated a designated production area for assembling products. Each time we introduced a new product, we conducted a trial run to identify any necessary adjustments, such as temperature or belt speed, before finalizing the setup. This preliminary testing helped us avoid potential issues and ensure smoother operations.
Blogs
- Living the Life with The Subtle Art of Not Giving a Fk
- TypeScript Utility Types - Pick
- Unlocking Your Second Brain - Enhanced Learning & Innovation
- TypeScript Utility Types - Readonly
- Obstacle Is the Way - Transforming Challenges into Success
- JavaScript Generators
- Insights from Software Engineering at Google Book
- React Hooks - useRef
- How to Win Friends and Influence People - Modern Insights
Books
Canβt Hurt Me
by David Goggins - a raw and inspiring journey from adversity to triumph. As a Navy SEAL and ultra-endurance athlete, he shares actionable insights to push past limits, embrace discomfort, and achieve greatness. This book empowers readers with relentless determination and the ability to unlock their fullest potential.Clean Architecture A Craftsmans Guide to Software Structure and Design-Pearson Education
by Robert Martin - a transformative approach to designing software systems. Learn to enhance maintainability, foster scalability, and craft robust solutions. Delve into architectural principles that stand the test of time and elevate your software development skillsUltralearning Master Hard Skills, Outsmart the Competition, and Accelerate Your Career
by Scott Young - offer actionable insights into not only mastering hard skills efficiently but also gaining a distinct advantage in a competitive world.
System Design Primer
Performance vs Scalability:
- Vertical Scaling: Upgrading resources on a single server.
- Horizontal Scaling: Distributing workload across multiple servers.
- Cache: High-speed data storage layer for frequently accessed data.
- Load Balancing: Distributing traffic across multiple servers for performance.
- Database Replication: Duplicate copies on multiple servers for redundancy.
- Database Partitioning: Dividing large databases for scalability.
- Asynchronism: Independent tasks for improved performance.
Latency vs Throughput:
- Latency: Time taken to perform an action.
- Throughput: Number of actions executed per unit time.
- Example: Car manufacturing latency vs throughput.
Availability vs Consistency:
- Consistency: Reads receive recent writes or errors.
- Availability: Every request receives a response.
- Partition Tolerance: System operates despite network partitions.
- CP (Consistency/Partition Tolerance): Good for atomic reads and writes.
- AP (Availability/Partition Tolerance): Returns recent data, potentially stale.
Consistency Patterns:
- Weak Consistency: Reads may not see recent writes.
- Eventual Consistency: Reads eventually see writes.
- Strong Consistency: Reads immediately see writes.
Availability Patterns:
- Fail-over: Active-passive or active-active setup.
- Active-Passive: Passive takes over on failure.
- Active-Active: Both servers manage traffic.
- Replication: Cloning databases for redundancy.
- Availability in Numbers: Uptime measured in percentage.
Domain Name System:
- DNS: Translates domain names to IP addresses.
- Round Robin: Distributes requests to servers evenly.
- Weighted Round Robin: Considers server capabilities.
- Least Connections: Routes to server with fewer connections.
- Weight Least Connections: Considers capacity and load.
- Random: Matches clients and servers randomly.
Content Delivery Network:
- CDN: Globally distributed proxy servers for content.
- Static Content: HTML/CSS/JS, photos, and videos served.
- Performance Improvement: Users receive content closer, offloading servers.
- Push CDNs: You manage content updates.
- Pull CDNs: Content fetched on user request.
Docker
I learned that there are 2 ways to run node with docker with the ability to reload the page when one of the files is changed.
- π Running the container with docker build and run
- π Running the container with docker-compose file
LinkedIn post - how to run node with docker
Threejs
This collection of links provides information and demonstrations on various types of lighting and particle effects in the context of Three.js, a popular JavaScript library for 3D graphics. It covers different light sources and their behaviors, including:
- Directional Light: Emitting light in a specified direction as if originating infinitely far away with parallel rays. Demo
- Hemisphere Light: Positioned above a scene, with color transitioning from sky to ground. Demo
- Point Light: Emitting light uniformly from a single point in all directions, simulating a bare lightbulb. Demo
- Rect Area Light: Distributing light evenly across a rectangular plane, useful for replicating windows or strip lighting. Demo
- Spot Light: Emitting light from a single point within a cone, with the coneβs angle widening further from the light source. Demo
- Shadows: Three types of lights supporting shadow generation: directional, spot, and point lights. Demo | DirectionalLightShadow Docs | SpotLightShadow Docs | PointLightShadow Docs
- Particles: Creating particle effects using
BufferGeometry
to achieve a galaxy-like appearance. Demo | BufferGeometry Docs | PointsMaterial Docs
Thank you!
Thank you for your time and for reading this!