Hossein Naderi

Hossein Naderi

code & math

    • About
    • Archive
    • Links
    • Problemset
    • Thesis
  • June 15, 2024

    Can’t agree with this MORE!

    I wanted to see how hard it was to implement this sort of thing in Go, with as nice an API as I could manage. It wasn’t hard.Having written it a couple of years ago, I haven’t had occasion to use it once. Instead, I just use “for” loops.You shouldn’t use it either. Rob Pike

    coding
    > Read more: Can’t agree with this MORE!
  • June 15, 2024

    Story of a Different Type of Cache!

    In the company I work for, there was a campaign running for a group of users. Our task was to show some information to the user when they logged into our app if they were in the selected group for the campaign. The group was maintained by operators. When a user joined the campaign, they…

    writing
    > Read more: Story of a Different Type of Cache!
  • June 13, 2024

    Trying Out GitHub Copilot: One Week In

    My first experience with GitHub Copilot last week was surprisingly positive. It quickly adapted to the coding style of our project, which was a great help. The chat feature powered by GPT-4 engine proved to be incredibly useful for generating boilerplate code, such as file handling, setting up Redis connections, writing database transactions, and making…

    uncategorized
    > Read more: Trying Out GitHub Copilot: One Week In
  • April 21, 2024

    A look into Go Scheduler’s Design

    Go is a relatively recent language designed with concurrency first in mind (from introduction to Go byRob Pike). Its standard library is state of the art code written by coders who worked on Unix. My focus in my grad studies, from general to specific was Distributed Computing -> Concurrent Algorithms -> Shared Data Structures. I…

    concurrency, go
    > Read more: A look into Go Scheduler’s Design
  • March 17, 2024

    Java is HUGE!

    The first time I learned Java was during the first semester of my undergraduate studies. My perception of Java at that time was that Java is essentially C with some object-oriented principles. It was challenging for me to grasp the concept of everything being an object. It felt strange; I thought they were aiming for…

    writing
    > Read more: Java is HUGE!
  • January 8, 2024

    About Writing

    During my undergraduate studies in the mathematics department at Sharif University, there was a math professor who emphatically urged us to practice good writing. She advised that if we spent one hour solving a problem, it was reasonable to invest an additional two hours in crafting a well-structured proof. I recall her words: “If you…

    writing
    > Read more: About Writing
  • October 26, 2023

    About Creating State-of-the-Art Software

    Android phones are receiving more RAM with each passing year, but guess what? It’s never enough! Android itself consumes it voraciously. The same holds true for Google Chrome. It seems that despite having better hardware, software quality is deteriorating each year. How did we go from the software that sent men to the moon with…

    software, writing
    > Read more: About Creating State-of-the-Art Software
  • September 29, 2023

    How Kubernetes works? (II)

    In the previous part we talked about K8s architecture. In this post we talk about running a cluster and deploying an app to it. We are going to get started with K3s which is a lightweight version of K8s. It only contains the main components of Kubernetes. Since I don’t have a network of VMs…

    concurrency, software
    > Read more: How Kubernetes works? (II)
  • September 28, 2023

    Mastering the Art of Reading Go code

    * I could not come up with any good name for this post, so here it is. It is a case study for reading go code. I have worked with Java/Python for more than 9 years now. Most of my production code was in Java. When I want to write a code to parse some…

    coding, go
    > Read more: Mastering the Art of Reading Go code
  • September 21, 2023

    How Kubernetes works? (I)

    When you Google “why kubernetes is freaking hard to learn” you’ll discover thousands of results. It appears that learning how to work with Kubernetes is not easy, especially for people who don’t have backgrounds in software engineering or DevOps. It could be a nightmare for those who haven’t had experience deploying applications to VMs or…

    concurrency, software
    > Read more: How Kubernetes works? (I)
Previous Page
1 2 3
Next Page