Showing posts with label software. Show all posts
Showing posts with label software. Show all posts

Wednesday, November 6, 2013

"The Future of Programming"

"The Future of Programming"

This is more like a warning than a trully blog post.

Hello guys,
its been sometime without post anything... Since i was moving out my home to a new one and i got stuck in my day work i find it hard to write some big post.
Anyway, this is no scuse, i now...

I, as most of my days ways checking out the news and see older weekly email lists that i assign and saw this video between the links, i find this peace of audio and image very instructive, everbody who is a programmer or want to be should watch and begging to rethink the way we do our things.

The video speaks for itself... watch and get you own perspective.

Bret Victor - The Future of Programming [1].

Some key points that Bret says on his talks are very interesting to implement in now days, those that impress me are the following:
  • Grail System [2];
  • Actor Model [3];
  • SmallTalk Browser [4]:
    • Almost the same screen on his presentation [5];
Another article that is very enlightenment is this, it talks about why arrays start with 0 index or 1 index... i read it on the Guido van Rossum (father of python) blog, check both!

Citation Needed [6].
Guido van Rossum blog [7].

Thanks

[1]: http://www.youtube.com/v/8pTEmbeENF4?autohide=1&version=3&attribution_tag=EVRJF1Slx80pSNhBlW8y5g&autoplay=1&feature=share&showinfo=1&autohide=1
[2]: http://c2.com/cgi/wiki?GrailSystem
[3]: http://en.wikipedia.org/wiki/Actor_model
[4]: http://en.wikipedia.org/wiki/Class_browser
[5]: http://seaside.st/about/screenshots?_k=x4bar8gA
[6]: http://exple.tive.org/blarg/2013/10/22/citation-needed/
[7]: http://python-history.blogspot.ca/2013/10/why-python-uses-0-based-indexing.html

Monday, August 19, 2013

Writing a django json propery serializer

Writing a django json PROPERTY serializer.

So, what's up? This will be my first blog post in english, and for the rest of my writing here in this blog that the language i'll use. The main reason is because most of the traffic that is coming here is from people outside my home land (which is Brazil).

Anyway, this blog post is about the django framework, well not exactly the framework itself but a little part that i use daily.
But before the code! A little background showing the why i did this...

Most of my time i use PHP as my main programming language to write web software (not that i like that, but anyway... i have to). Right at the beginning we (means me and my coworkers) start using Zend Framework to write our web apps, and we return JSON strings as part of the response. Simply because we used ExtJs togheter! Pretty slick at that time, but also pretty heavy (ok, not that much).
Since then i've been learn more and more about python e django to the point that they bacame my main programming language (and framework, off course) used to make my hobbiest projects! :D

So, there came the need of write my own JsonSerializer, because django default serializer don't serialize propertys... for me, propertys are a way to enhance the data viewed by a user inside a grid.
Nowdays i dont use anymore ExtJs (perhaps ill use in future projects), but i build my own jquery grid! (ill put this code on github, since i make some cleanup!) But this little grid jquery plugin still eat up JSON as the main format.

And that's why i change the default JsonSerializer and made this PropertyJsonSerializer!
Anyway... here's the fucking code! And if you dear reader find any bugs on this... write that up on the comments or use the gist tool...

JsonPropertySerializer.py
https://gist.github.com/rdenadai/6095815

thanks a lot!