Posts

Showing posts with the label A good coder

Combining Two Querysets in Django (With Different Models)

Image
Today, I stumbled upon a use case where I needed to have a querysets that had objects from different models. Django has a neat "contenttypes framework" which is a good way to achieve this. So here are my notes on what I learned today, and I hope it will help someone in the future.  NOTE : If you can design your models from scratch this is not the best approach to follow. Read my note under step 5. 1 The Models Let us consider the following models: class Bmw ( models . Model ) : series = models . CharField ( max_length = 50 ) created = models . DateTimeField ( ) class Meta : ordering = [ '-created' ] def __str__ ( self ) : return "{0} - {1}" . format ( self . series , self . created . date ( ) ) class Tesla ( models . Model ) : series = models . CharField ( max_length = 50 ) created = models . DateTimeField ( ) class Meta : ordering = [ '-created' ] def __str__ ( self )

A software Developer, a coder or a programmer

Image
Introduction A software developer, also known as a computer programmer or coder, is a creative person who designs and develops software applications or computer systems. They use mathematics, engineering, science and design techniques to build such systems. Over the past couple of years, the demand for software developers has skyrocketed as organizations attempt to find people who can bring their digital projects to life. According to the U.S. Bureau of Labor and Statistics, software developer job roles will grow 24% between 2016 and 2026, which is much faster than the average growth rate of other professions. Becoming a software developer is not a piece of cake, as developing a software application requires both soft and technical skills as well as certification in the software development realm. Undoubtedly, software development is an intellectual process that requires a deep knowledge of the basics of computing and its applications in the development of technological soluti