Burak's Blog

Blog about various subjects


Dataframe factory

Introduction About a year ago, I made a switch at work and hopped onto the data scientist team. It was a bit of a wild ride getting into the AI scene, figuring out how things are built and coded. As time rolled on, I noticed something odd – not many folks were big on testing. It was like the norm was to cook up your code and give it a spin with production data.

Read more...

Enhancing Code Quality with Abstract Classes: The Power of Abstraction

Introduction In the world of object-oriented programming, abstract classes play a crucial role in improving code quality, promoting code reuse, and enabling flexible design. By encapsulating common behavior and providing a blueprint for derived classes, abstract classes facilitate the creation of well-organized, maintainable, and extensible code. In this article, we will explore the benefits of using abstract classes to enhance code and demonstrate how they contribute to building efficient and robust software solutions.

Read more...

Django and testing

Table of Contents Backstory How to adjust testing pattern over time Run pytest Backstory In 10 years of career in software development, I’ve seen great applications develop with good intention from developers with deeply or badly writing tests. Most of the projects I’ve works, tests was develop with unittest to mock functions or methods behaviour. Unittest by itself isn’t the problem, I will say the way the developers use unittest isn’t correct.

Read more...

Pythonic

Table of Contents Pythonic Context Managers Slicing Conclusion Pythonic Writing code isn’t hard but writing code that is clean, concise, and maintainable that follows the convention of the Python community is harder. They are a lot of different ways to implement the same function, class, or feature. Some of them are clean, sometimes confusing, or really bad writing that is hard to understand what it does exactly but in the end, the goal is to have a code that follows and naturally flows more in Python conventions and good practices.

Read more...
1 of 1