Eduardo Zepeda's latests posts
Understand How Git Submodules Works and its Workflow
- git
- linux
A git submodule is a record within a git repository that points to a commit in an external repository. They are handled exactly as you would with a repository, they even have a .git file that points to the location where a changelog is kept. Simplified outline of git submodu...
Read more
Top 5 Favorite Algorithm Problems at Codewars
- opinion
- algorithms
What is codewars? (adsbygoogle = window.adsbygoogle || []).push({}); .nc { margin: 2rem 0; } .banner{ width: 728px; height: 90px; } .google-ads-container-8672022193{ background-color: transparent; width: 100%; height: 90px; } @media (max-...
Read more
REST API: Best practices and design
- software architecture
- opinion
How do I design a REST API? How many levels should I nest my related resources? Relative or full URLs? This post is a compilation of some recommendations about some good REST API design practices that I have found in books and articles on the internet. I leave the sources at the ...
Read more
REST API basic characteristics and recommendations
- software architecture
- opinion
This publication is a minimal guide of practical tips on REST API design, what is a characteristic of the REST API? I dont go too deep into the theory. On top of that, I may oversimplify many concepts in order to keep the text as short and simple as possible.In the next post I wi...
Read more
Categories in Django using ForeignKey to self
- django
- databases
Grouping by categories is quite common in web applications, from movies, courses or any other resource that presents a hierarchical relationship to another object. In Django there are different ways to model these relationships. Probably, the first that will come to your mind wil...
Read more
Debounce and Throttle Interactive Explanation
- javascript
- algorithms
I thought lets do a Debounce vs Throttle. Debounce and throttle are design patterns used to limit the execution of functions, generally they are used to restrict the amount of times an event is fired: click, scroll, resize or other events. This patterns are not exclusive to Javas...
Read more
How to customize the User model in Django?
- django
In this post I explain three methods to extend or customize Djangos User model, without having to rewrite it from scratch, and keeping all Djangos user management features (adsbygoogle = window.adsbygoogle || []).push({}); .nc { margin: 2rem 0; } .banner{ ...
Read more
Differences between Django select_related and prefetch_related
- django
- databases
Djangos select_related and prefetch_related methods are used to reduce the number of queries made to the database. This translates into response time for each view. In addition, using these methods is one of the actions to implement to improve the performance of a Django applicat...
Read more
Why using React.FC could be a bad practice?
- react
- opinion
When we use Typescript with React and we want to pass a children as prop to one of our components, we need to indicate the type. Generally we use the type React.FC, which is short for React.FunctionComponent. With this the Typescript message warning us of a children with type any...
Read more
Go: profiling or basic profiling of CPU usage
- go
In addition to unit test testing and coverage measurement in go, this programming language is capable of profiling the efficiency of the code by analyzing it in a very detailed way. This is quite useful to find bottlenecks or very expensive parts of the code, which are called num...
Read more