Eduardo Zepeda's latests posts
How to implement Solr for searches or queries in Django?
- django
- linux and devops
Previously I explained you how to implement full text search in Django and trigrams-and-search-rank using Postgres. Solr comes to offer us something better, a robust, stable and feature-rich search engine, ready to use, in exchange for a little more complexity, more dependencies ...
Read more
Understand How Git Submodules Works and its Workflow
- git
- linux and devops
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 submodul...
Read more
Top 5 Favorite Algorithm Problems at Codewars
- opinions
- algorithms
What is codewars? Codewars is a social network of programmers who get together to challenge each other to solve code challenges. Codewars is one of the best websites for practicing algorithms and solving Katas. Katas? Yes, as in Karate.
What are katas in codewars? In the spir...
Read more
REST API: Best practices and design
- software architecture
- opinions
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
- opinions
This publication is a minimal guide of practical tips on REST API design, I don’t 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 will talk about some more subjec...
Read more
Categories in Django using ForeignKey to self
- django
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 in Javascript
- javascript
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. Patterns are not exclusive to Javascript; in a previous post I explained how to us...
Read more
How to customize the User model in Django?
- django
In this post I explain three methods to extend or customize Django’s User model, without having to rewrite it from scratch, and keeping all Django’s user management features But, before we start, let’s see where Django’s User model comes from.
Where do...
Read more
Differences between select_related and prefetch_related in Django
- django
The 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 application ...
Read more
Why using React.FC could be a bad practice?
- opinions
- typescript
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 an...
Read more