




Victory on JavaScript, let’s build another Django on top of Django :) With LOVE
When you start applying best development practices such as TDD, you discover that you make much better software.
First, you can TDD your python code with anything, django has a test runner, otherwise you have pytest and many friends.
Then, you make python to interact with javascript. In the Django community, it seems that there is a conscensus around “use selenium to test your JS”. I’ve been like this myself for years, but the thing with selenium is that it’s functional testing, not unit testing, it does bring short term ROI, but on the long term it becomes costy to maintain over time.
Read MoreFound another way cool app shared by Linus Lewandowski on django-dev mailing list, here’s the excerpt from django-12factor:
“The Twelve-Factor App” is an awesome methodology for building SaaS apps.
django-12factor makes Django more 12factor-y. Right now, this focuses on the Config - “Store config in the environment”; Heroku users with addons will be particularly familiar with this.
Still not sure of the benefits? Check out “Twelve-Factor Config: Misunderstandings and Advice”.
I’m pretty lazy when it comes to writing tests for existing code, however, I’m even lazier when it comes to repetitive manual testing action, catching up with untested legacy code when I want a lot of coverage now, at least to ease upstream dependency upgrade testing.
PHPUnit has had a DBUnit component since at least 10 years, and Junit too, I ported the concept to Django, first in several apps. Extracted it in the package to de-duplicating the data import tests from django-representatives and django-representatives-votes which is re-used in django-cities-light.
Read MoreDjango-autocomplete-light 3.3.0-rc3 was released.
Please try it out and submit feedback !
With LOVE
jpic
To install 3.3.0-rc1, use:
pip install django-autocomplete-light==3.3.0-rc1
New features:
Bug fixes:
Also thanks to the many documentation contributors.
Read MoreHello everybody, This month we have made a thousand euro donation to the Red Cross, to help refugees arriving in Europe, please, consider making a donation yourself. With LOVE
Dvorak-intl-code is a keyboard layout optimized for polyglot hackers I’ve started working on and using in 2008.
This article demonstrates how to easily create your own keyboard layout by extending an existing one, storing your config in your home directory and load it with a command which .xinitrc or whatever can call.
Just add a file in ~/.xkb/symbols
, for example I put mine in /home/jpic/.xkb/symbols/code
, and looks as such:
// Dvorak variant for polyglot coder
Read MoreWhich may save quite some SLOCs (Single Line Of Code)
Curry is nothing more than a function returning a function to call a function