There are tons of articles with this title and now there is also one from me. Actually, I started from this Toptal article for Rails developer and enriched it. In most cases, I was more restricting than the original article.
Continue reading “The 10 Most Common Mistakes That Developers Make”Category: Software Development
Article recommendation: code poetry!
I always say in my trainings and coaching, don’t write code, write the story down. I have found following article on medium: write code poetry.
Python/Django development on Windows with WSL
Microsoft offers the WSL feature (Windows Subsystem for Linux) for a couple of years now (since 2016 to be precise). This can be perfectly used for setting up your local development environment. It won’t take much longer than Windows native and comes with more comfort especially when you start to integrate other dependencies like MySQL. Setting up MySQL+Python on Windows is really everything else then nice.
Continue reading “Python/Django development on Windows with WSL”Easy mocking in Angular for container components
Everybody how tried to write some tests for container ccomponents knows the pain of writing the mocks. This can be very time consuming, since you have to write Mock classes for each used components including inputs etc. The possibility of NO_ERRORS_SCHEMA should NOT be used, since it is suppressing ALL error messages concerning the schema. It is just an option to lead testing ad abdsurdum …
BUT I found a nice module which is a very nice solution: ng-mocks. Mocking a component is then a oneliner in the TestBed configuration:
import { MockComponent } from 'ng-mocks';
// ...
declarations: [
TestedComponent,
MockComponent(DependencyComponent),
]
React: initial project setup, structure and architecture
Starting with React is quite easy. You just need to install the npm package and can create your components. However, unlike Angular, React is not providing a whole ecosystem which comes with a architecture and everything necessary like router, module system, components, templates already prepared for immediate start. Angular is a framework, whereas React is a library for creating ui interfaces! This is a huge difference (framework vs. library). In this short article I show an example architecture which you can use, if you don’t know how to structure your app.
Continue reading “React: initial project setup, structure and architecture”