atlas news
    
Beauty of Imagination : Python
24  mars     18h32
Modern Computer Science is obscurantism disguised as science
   Recently I decided to get back to the basics and question my use of classes frameworks. I tried to find a definition of the word framework but weirdly this word is a tautology, no one knows what it is, but it refers at itself for something people use to get the work done through the use of...
20  mars     01h28
I still find with the examples used for teaching OOP counterproductive
   After the stupid example with the taxonomy of the species car employees that makes you do a lot of inheritance one of the valid use case for OOP is D geometry : points amp; rectangles. This is the python example in wiki.python.org https: wiki.python.org moin PointsAndRectangles Don’t worry,...
23  septembre     22h29
Querying complex unknown database with python
   In my job, I sometimes have to deal with web applications that are pointing to half a dozen databases with an overall of more than tables. Not to say it can be complex, but sometimes it is : So I made a small script using of my favourite technologies to deal with that: graphviz, and...
20  septembre     18h49
Using python to visualize randomness
   Heard of randomness What is random: something that given a serie of chronological events happening after one another whatever long the time serie is, we cannot predict the future. Two kinds of events are random; purely random events stochastics or mathematically deterministic equations that...
19  avril     17h55
So I wrote a Proof of Concept language to address the problem of safe eval
   I told fellow coders: hey I know a solution to the safe eval problem: it is right under my eyes . I think I can code it in less than hours from scratch. It will support safe templating... Because That’s the primary purpose for it. TL; DR: I was told my solution was overengineering...
16  avril     01h10
Eval is even more really dangerous than you think
   Preamble, I know about this excellent article: http: nedbatchelder.com blog eval really is dangerous.html I have a bigger objection than ned to use eval; python has potentially unsafe base types. I had this discussion with a guy at pycon about being able to safely process templates and...
04  octobre     18h16
An opinionated versioning system based on mapping versions string to numbers in weird base
   While we have a convention in python for numbering: http: legacy.python.org dev peps pep We can mostly say that version numbering thanks to Windows has shed an interesting spotlight on version comparaison. They are to tenants of version handling: the naïves who consider...
02  octobre     16h31
Perfect unusable code: or how to modelize code and distributivity
   So let’s speak of what and un deterministic code really are. I am gonna prove that you can achieve nearly chaotic series of states with deterministic code o Definitions: Deterministic: code is deterministic if the same input always yield the same output Chaotic: a time serie of value is...
13  décembre     22h23
Auto documenting and validating named arguments
   In real life there are companies were keywords kw are prohibited, and others where positional arguments can stack up as high as seven. Let’s state the obvious concerning arguments: Human beings are flawed The positional arguments are fixed arguments. Some are mandatory others are...
04  décembre     20h28
Cross dressing on the internet and gender issues
   So the actual buzz is gender issues http: www.kathrineswitzer.com written about.shtml I dare say it is a non problem. But before let me tell you my story as a cross dresser ... on the internet. Once upon a time I signed up for a famous dating site. And as advised by a friend, I was told to...
26  octobre     00h22
Using signal as wires?
   Learning that signals were software interrupts in a book on Unix, I thought, hey, let’s try to play with signals in python since it is in stdlib The proposed example is not what one should really do with signals, it is just for the purpose of studying. Well remember this point it will prove...
21  octobre     18h59
My problem with Computer Science pseudo code
   I remembered opening books of Computer Science to learn algorithm when I began. And my first reaction was: it seems unnecessarily complicated like maths, but I must be an idiot since I learnt physics. So years later I reopened Introduction To Algorithms By Thomas H Cormen, Charles E...
16  octobre     18h10
Unicode is tough
   So today, I dared open a bug on python. Which at one point should make me feel mortified, since it has proven that I misunderstood what a character is. The point was in python . : fooâ bar File stdin , line fooâ bar SyntaxError: invalid character in identifier...
27  septembre     16h37
Fun with signal processing and ... matplotlib
   Well, I remember overhearing a conversation one day in a laboratory once years ago. Electronic engineers were proud to have helped their team to higher CDD resolution with a trick they published: they would use a median filter to filter out the photon arriving from the CDD from the...
07  septembre     16h58
The limitation of frameworks.
   In my young days when I began coding, the synonym for code reusability was libraries in procedural languages and classes in object oriented languages, then it became modules or software packages, and afterwards it became frameworks. Trends change, the sense of these words may differ but the goal...
25  juillet     11h35
Making tests before installation with setuptools
   I dream that packages don’t install if the tests are failing. I made it at least. My solution is gory but practical. in setup.py I added: def test : let’s script the command line python munittest discover loader unittest.TestLoader suite loader.discover . , test . .py ...
16  juillet     22h31
OOP Sux
   I have seen posts on hackernews on the topic that Object Oriented Programming OOP sux. These are stratospheric considerations. OOP does not sux on a theoretical point of view it sux in real life. Guh Don’t I like python Yes I do. But what I hate is not really OOP. It is monkey developers that...
13  juillet     13h02
Packaging in python from a former Perl dev point of view
   It’s easy I use github, readthedocs post commit hooks, http: guide.python distribute.org and it all works fine: I am delighted to be honest. As far as I am concerned packaging in python is freaking easy, a fun and rewarding experience. So here is my point: this is not a rant since I love...
25  juin     12h25
The color of music: why not discover python’s ecosystem the right way?
   It all begun, a nice sunny day of summer on python fr Well, not that sunny, but a story always begin on a cheerful note. A numerous minority of beginners that comes on python fr usually from PHP often make a first project to discover python which belongs to the following categories: recoding...
21  juin     14h54
Lost in cache optimization
   Premature and Micro optimisation is the root of all evil We all know this, don’t we And even though I know it, I do still fall in the trap. Let me tell you my story: it all began with profiling a basic web log parser I did fairly fast core of the project was done in days demo here ...
19  juin     10h37
Small tips to improve your packages on pypi (for beginners)
   I am a big fan of plots. Not for their beauty, but for their dense informational properties. And since I capture download time series on pypi downloads on miscellaneous packages here are my preliminary findings that needs validations, since my samples are not relevant in terms of size : After...
15  juin     15h51
Having fun and making fun with game of life.
   Summary of the previous episode In the previous episode we made a simple game of life called GoF because I am dyslexic and Game Of Life became Game Of liFe. The purpose of the exercise was to demonstrate that an abstraction ought not to be complicated but ought to dissociate the intuitive way to...
30  mai     12h46
Data Types are taught erroneously.
   On irc python fr, we see numerous students struggling against their assignments. Mostly, they have not learnt the difference between an abstraction and an implementation. So I made a sample of Conway’s game of life on github to illustrate what is wrong. https: github.com jul game of life ...
26  mai     14h58
Dividing is not as easy at it seems
   The div inferno Still coding archery and trying to give a consistent definition of add mul div sub to Mappings, I stumbled upon ... my memories of when I was a student in applied physics : computers are just big abaci, they dont do maths, they do something that looks like maths, but is not math. ...
22  mai     17h01
You’ll have some matplotlib in your pycon ?
   Yesterday, I made a presentation on matplotlib during the vous reprendrez bien un peu de pycon event. An event dedicated to make people discover projects in python. It was a nice moment thanks to a responsive audience. For those who were there what a snobism, I publish in en uk the restitution of...