Intro MartialMatch.com (initially known as panel-rejestracyjny.pl for the Polish audience) is my web application that helps organize various martial arts events (BJJ, MMA, etc.). Below is the story of my migration of the frontend codebase from JavaScript to TypeScript. Context I started development in 2013. In the beginning, it was a mix of CakePHP and jQuery code. Everything was working fine, but the codebase was getting bigger and harder to maintain.
How to cache Cycle ORM compiled schema?
I’m in the middle of migrating my project from CakePHP ORM to new ORM. I’m using Cycle ORM. Official documentation recommends caching compiled schema to improve performance. I decided to cache schema on first request, store it on disk as a PHP code that return an array with schema. Thanks to that it can be put to Opcache. Example code First need to use schema renderer to print schema as PHP array:
Reduce writes to your SSD on Linux by noatime
In order to prolong live of your SSD on Linux you could turn off writes on disk when files are being accessed. To do so enable noatime option in /etc/fstab. Example # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed.
Software enginner interview questions - part 1
Here are questions I usually ask as a candidate for a software engineer position. How do you plan/estimate effort? How long are the sprints? How often do you release? How long does it take to get from commit to qa/production? What is your code coverage? What kind of tests do you write? Unit? Integ? Func? End-to-end? What style do you use? TDD? BDD? What frameworks are in use? What dependency management tools do you use?
Changing base branch in git
If your git flow is heavily based on feature branches being merged into master branch, you may need to replace base branch for changes on your feature branch. Following command might be helpful: git rebase --onto <new base> <old base> <your branch> Use case Let's take following use case: --------------> master \ -- A -- B -- C --> feature branch \ -- D -- E --> your branch What's going on here?
How to use Symfony 2 Service Container in CakePHP 2
Last year I started developing my small project using CakePHP 2.4 framework. I store all my files in root Lib CakePHP directory. When this directory grew up the problems started with managing classes dependencies. I decided to configure Service Container and do some refactoring with my existing class files. I found that was quite easy thing to be done. So here I am going to show you how to do this step by step…
About me
My name is Kamil Wylegała, I’m a graduate of Computer Science at the Adam Mickewicz University (Faculty Of Mathematics And Computer Science) in Poland/Poznan. I’m Software Engineer at Lokalise and I’m founder of MartialMatch.com, sofware that helps to organize and run martials arts contests. Here at my website you can find several articles about mathematics and software development.