background preloader

Programming

Facebook Twitter

Machine code. Numerical machine code (i.e. not assembly code) may be regarded as the lowest-level representation of a compiled and/or assembled computer program or as a primitive and hardware-dependent programming language.

Machine code

While it is possible to write programs directly in numerical machine code, it is tedious and error prone to manage individual bits and calculate numerical addresses and constants manually. It is therefore rarely done today, except for situations that require extreme optimization or debugging. Machine code instructions[edit] Every processor or processor family has its own machine code instruction set. Instructions are patterns of bits that by physical design correspond to different commands to the machine. Machine instructions are normally documented as having some explicit number of operands, such as a source and destination operand as for the 386 ADD instruction, but some instructions, such as the 386 CPUID instruction do not have any explicit operands. Programs[edit] Example[edit] The Hacker Manifesto. By +++The Mentor+++ Written January 8, 1986 Another one got caught today, it's all over the papers.

The Hacker Manifesto

"Teenager Arrested in Computer Crime Scandal", "Hacker Arrested after Bank Tampering"... Damn kids. They're all alike. But did you, in your three-piece psychology and 1950's technobrain, ever take a look behind the eyes of the hacker? How To Become A Hacker. Copyright © 2001 Eric S.

How To Become A Hacker

Hack This Site! HackerspaceWiki. Future - Technology - Why we should all learn to hack. Having trouble grasping object-oriented programming? Read Plato. - Jason Salas' WebLog. Appropriately, I've got a new "philosophy" when it comes to teaching new programmers about object-oriented programming (OOP).

Having trouble grasping object-oriented programming? Read Plato. - Jason Salas' WebLog

Not being a schooled computer scientist myself, I had a tough time when I was first learning OOP concepts and practices when I took up .NET, and many people learning the ropes of current-day coding apparently share the same frustrations. Fortunately, I've found a cool way of making the tough concepts easier to grasp, through the teachings of Plato. Specifically in his work with his theory about Forms, there are lots of cool analogies directly applicable to OOP one can ascertain from Plato's writing. You may agree with it, use it, or dismiss it.

What if Aristotle Were a Software Engineer? Download sample - 59.9 KB Introduction In the late seventies, Marvel Comics, the famous comics publisher (of Spider-Man, Iron Man, Captain America, The Fantastic Four, and many others) published a new and rather unique series of comic books – the “What If…” series (“What if Spiderman Had Joined the Fantastic Four”, “What if Captain America Became President”, etc.), whose declared goal was to “explore the road never traveled”.

What if Aristotle Were a Software Engineer?

The starting point of each book in that series was an extreme situation that went far beyond the usual narrative of Marvel Comics books. Why MIT switched from Scheme to Python. Structure and Interpretation of Computer Programs. Fredrik Håård's Blaag. I was blown away by the amount of response - mostly positive - on my Python is important post.

Fredrik Håård's Blaag

However, a lot of the replies, both positive and... slightly less positive, really highlighted an issue I have with how a lot developers seem to approach programming languages: the search for the Perfect Language to Love and Protect. Why are so many developers so very emotional when it comes to their favourite programming language? Considering that no language can (yet) magically translate the perfect idea in your head into machine code, all of them exist on a scale of badness - they all limit you more than your own thoughts or the hardware does. I believe that the primary reason people feel the need to vehemently defend a particular language is that they are lazy.

Of course, good programmers are always lazy (why else automate?) Learn new languages. . * No, I'm not being serious. Code Hero raises over $100,000 for shooter that teaches computer programming. Over the years, there have been a lot of efforts to create games that make learning how to program a computer simple and fun, with widely variable results.

Code Hero raises over $100,000 for shooter that teaches computer programming

But indie developer Primer Labs seems to have hit on something special with Code Hero, a first-person shooter that teaches JavaScript and UnityScript programming by letting players fire bits of code that actually affect the environment. The group recently reached its Kickstarter funding goal of $100,000 for the project, and is still looking for last-minute donations to help fund a multiplayer mode. The "Invent with Python" Blog — Nobody Wants to Learn How to Program. I frequently see a problem when people (especially techies) try to teach programming to someone (especially non-techies).

The "Invent with Python" Blog — Nobody Wants to Learn How to Program

Many programming tutorials begin with basic programming principles: variables, loops, data types. Raspberry Pi Founder Eben Upton Walks You Through the Launch of the $35 Computer. In just a few weeks UK’s Raspberry Pi Foundation will be ready to launch one of the most anticipated products of 2012 – a $35 computer.

Raspberry Pi Founder Eben Upton Walks You Through the Launch of the $35 Computer

The Raspberry Pi Model B is a bare-bones circuit board that packs a surprising punch – 700 MHz ARM processor, 256 MB of memory, and HDMI output. Designed as a low cost, easy to explore learning platform to attract a new generation of students to coding, the Linux Box computer is a marvel of efficiency. The first 10,000 Model Bs will be shipping into (and then out of) the UK very soon, so it only makes sense that Raspberry Pi founder Eben Upton would take the time to prepare everyone for what to expect. He gives a detailed report on the exciting new device in the video from Slashdot below. The Raspberry Pi Model B may not look like much, but it’s not supposed to.

Codepad.