Services
Blog
Français
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 More
Hello 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
Hello everybody <3
Let’s talk about ideas for deprecation / discouraging the use of get_context_data().
get_context_data() is useful to support legacy templates from the pre-CBV era, since CBV we can now access any attributes from the view instance with {{ view }}.
I’ve seen things like this in many projects, I wonder if it’s the case for other people too:
def get_context_data(self, **kwargs):
c = super().get_context_data(**kwargs)
c['something'] = self.something
return cAnd I’m guilty as charged you can find commits from myself like this all over internet.
Read More
Next CRUDLFA+ version with Materializecss preview !
https://www.patreon.com/materialize?utm_medium=social&utm_source=yourlabs&utm_campaign=plshare
Yessss! We are now a proud patron of Alan and Alvin on @Patreon, and you should be too ;) With LOVE
https://docs.google.com/document/d/1C-ceqQ3UxvURLPsMxd5Ej658ETuwxEK4hElKafwBsyQ/edit
What my work looked like in 2013 (French).