background preloader

Polls - What is the best comment in source code you have ever encountered

Polls - What is the best comment in source code you have ever encountered

Le Long Voyage. Q : Hé moi aussi je veux un beau site comme ça, vous me le faites ? WordPress est un logiciel participatif, normalement chacun peut reprendre un habillage et l’adapter, rien n’est “déposé”.Cela dit nous avons décidé de ne pas le mettre non plus en open-source. On s’est donné du mal pour faire un truc joli et on ne veut pas que ce soit repris n’importe comment par n’importe qui. Nous avons donc préféré nous dire que nous filerions l’accès à ce format d’habillage à des dessinateurs dont nous connaissons/apprécions le travail !Après, personnellement, je considère la partie WordPress comme le travail d’Arnold et je le laisse complètement décider de ce qu’il veut faire avec ! Q : Ouah quel joli blog, comment t’as fait ?

Learnable Programming Here's a trick question: How do we get people to understand programming? Khan Academy recently launched an online environment for learning to program. It offers a set of tutorials based on the JavaScript and Processing languages, and features a "live coding" environment, where the program's output updates as the programmer types. Because my work was cited as an inspiration for the Khan system, I felt I should respond with two thoughts about learning: Programming is a way of thinking, not a rote skill. Learning about "for" loops is not learning to program, any more than learning about pencils is learning to draw.People understand what they can see. Thus, the goals of a programming system should be: to support and encourage powerful ways of thinkingto enable programmers to see and understand the execution of their programs A live-coding Processing environment addresses neither of these goals. Alan Perlis wrote, "To understand a program, you must become both the machine and the program."

language agnostic - What's your most controversial programming opinion Human teleportation would take so long, it’d be more like a death ray Teleportation is always as sci-fi dream, but recently scientists have been able to teleport nano-sized objects across significant distances. We’re still nowhere near teleporting even the smallest, visible-to-the-naked-eye objects, but that didn’t stop a team of researchers from calculating how long it’d take to teleport an entire human being. It’s very, very long. Students from the University of Leicester, David Starkey, Suzanne Thomas, Declan Roberts, and James Nelms, have calculated how long it would take to teleport a human. The length of time is dependent on bandwidth, and more bandwidth requires more power. Since we can’t teleport humans — or even a paperclip — just yet, the researchers performed a fair bit of guesswork that checks out in theory. If the bandwidth used to perform the transfer were around 30GHz, it would take 4.85×1015 years to complete. You would’ve died long before you reached your destination, unless of course the teleportation process also somehow preserves you.

Manifesto for Minimalist Software Engineers | Minifesto.org No Studying After 5pm: Using Parkinson's Law to Kick Procrastination's Ass I’ve recently made four lifestyle changes that have allowed me to get more done and put much more effort into everything I do, all while feeling great with very little stress. I sleep 8 hours a dayI work out for an hour every weekdayI hide all clocks while I’m workingI don’t do anything related to academics on Saturdays and past 5pm on weekdays My main focus of this post is the last two, but I’ll briefly address the first two because I think they’re very important. Sleep I read a lot of what tech entrepreneurs have to say, and I’ve noticed a trend. Working more hours in a day doesn’t necessarily correlate with getting more done. Exercise I also made a habit of going to the gym every day from 5-6pm. Parkinson’s Law But my real trick for getting more done with much less stress is in the things that I don’t do. Work expands so as to fill the time available for its completion.— Cyril Northcote Parkinson Focus Scott H. Distractions Cover the clocks So I eliminate clocks whenever I’m working.

30 Books I’m Glad I Read Before 30 In various ways, these 30 books convey some of the philosophy of how Angel and I live our lives. I honestly credit a fraction of who I am today to each title. Thus, they have indirectly influenced much of what I write about on this site. A medley of both fiction and nonfiction, these great reads challenged my internal status quo, opening my mind to new ideas and opportunities, and together they gave me a basic framework for living, loving, learning and working successfully. If you haven’t read these books yet, I highly recommend doing so. They will enrich your library and your life. Stumbling on Happiness by Daniel Gilbert – Gilbert, a Harvard professor of psychology has studied happiness for decades, and he shares scientific findings that just might change the way you look at the world. What are your favorite books? Photo by: Katie Harris

Fred Hates It Management has a set of power words that it’s appropriated as a means of giving it a sense of identity. This list is endless and entertaining. When these words are spoken, they are said in such a way that you are meant to wonder in awe, “What does that mean?” Today’s word: off-site. Now that you understand what it is, let’s understand why you might hate it. Why I Get in Fred’s Face The reason an off-site exists is simple: you, the leader of the people, need certain essential work to occur that cannot easily occur now under normal conditions within the building. So you got in Fred’s face. At an organizational size that varies for every team, natural cross-pollination and communication activities that used to happen organically, that allowed for cultural and strategic work to get done, and allowed for big decisions to be made, can no longer occur. Zeitgeist has become diluted. You need a well designed off-site. Who We Are, What We Need, and Our Epic Journey We need to understand who we are.

7 Python Libraries you should know about In my years of programming in Python and roaming around GitHub's Explore section, I've come across a few libraries that stood out to me as being particularly enjoyable to use. This blog post is an effort to further spread that knowledge. I specifically excluded awesome libs like requests, SQLAlchemy, Flask, fabric etc. because I think they're already pretty "main-stream". 1. pyquery (with lxml) pip install pyquery For parsing HTML in Python, Beautiful Soup is oft recommended and it does a great job. Just how slow? What immediately stands out is how fast lxml is. So either slow and easy to use or fast and hard to use, right? Wrong! Enter PyQuery Oh PyQuery you beautiful seductress: from pyquery import PyQuerypage = PyQuery(some_html) last_red_anchor = page('#container > a.red:last') Easy as pie. There are some gotchas, like for example that PyQuery, like jQuery, exposes its internals upon iteration, forcing you to re-wrap: 2. dateutil pip install python-dateutil Handling dates is a pain. 5. sh

10 Forgotten Fantastical Novels You Should Read Immediately Fans of magical prose and magical worlds, take heart. Titan Books has recently released a special limited edition version of steampunk legend James Blaylock’s The Aylesford Skull, a classic from one of the genre’s trailblazers. To celebrate the release, Blaylock has put together a list of forgotten or ignored works of literature that have inspired his own writing, and should be must-reads for anyone interested in science fiction or the fantastic. Blaylock writes: “Why these novels turned out to be inspirational is a long story, too long to recount here, and in fact sometimes I can’t quite say: a sensibility, maybe, that seemed to me to be True in some regard, a sense of humor that was also a sense of proportion, wisdom of a whimsical variety, an evocative atmosphere, intriguing characters, a level of eccentricity that was somehow made perfectly plausible, a giant cephalopod. All of that is very murky, of course. Phantastes, George MacDonald

Rands In Repose How To Reverse a Linked List (3 Different Ways) Introduction There are a couple of ways to reverse a linked list. One of them requires knowledge of pointers and one of them is pretty straight forward. In this article, 3 different methods of reversing a linked list are demonstrated. Technique 1 In this way, a new linked list will be created and all the items of the first linked list will be added to the new linked list in reverse order. public void ReverseLinkedList (LinkedList linkedList) { LinkedList copyList = new LinkedList(); LinkedListNode start = linkedList.Tail; while (start ! This way is probably the most inefficient among the three. Technique 2 In this method, we will swap linked list node objects (references to the data). Assuming we have N nodes in the link list: Swap: 1st node’s object with Nth node’s object Swap: 2nd node’s object with (N-1)th node’s object Swap: 3rd node’s object with (N-2)th node’s object After swapping: Swapping goes on until the middle of the linked list is found. Technique 3 Conclusion

A l'heure de pointe, l'enfer de la ligne 13 du métro... de Pékin Coding Horror

Related: