background preloader

Programming

Facebook Twitter

KISS principle. Design principle preferring simplicity Origin[edit] While popular usage has transcribed it for decades as "Keep it simple, stupid", Johnson transcribed it as "Keep it simple stupid" (no comma), and this reading is still used by many authors.[7] The principle is best exemplified by the story of Johnson handing a team of design engineers a handful of tools, with the challenge that the jet aircraft they were designing must be repairable by an average mechanic in the field under combat conditions with only these tools.

KISS principle

Hence, the "stupid" refers to the relationship between the way things break and the sophistication available to repair them. The acronym has been used by many in the U.S. military, especially the U.S. Variants[edit] A variant – "Make everything as simple as possible, but not simpler" – is attributed to Albert Einstein, although this may be an editor's paraphrase of a lecture he gave.[8] In film animation[edit] In software development[edit] In politics[edit] See also[edit] Let’s TDD a Simple App in PHP. In this tutorial, I will present an end-to-end example of a simple application - made strictly with TDD in PHP.

Let’s TDD a Simple App in PHP

I will walk you through each step, one at a time, while explaining the decisions I made in order to get the task done. The example closely follows the rules of TDD: write tests, write code, refactor. Step 1 - Introduction to TDD & PHPUnit Test Driven Development (TDD) TDD is a "test-first" technique to develop and design software. TDD has three core rules: You are not allowed to write any production code, if there is not a failing test to warrant it.You are not allowed to write more of a unit test than is strictly necessary to make it fail. PHPUnit PHPUnit is the tool that allows PHP programmers to perform unit testing, and practice test-driven development. To install PHPUnit, you can either follow along with the previous tutorial in our "TDD in PHP" session, or you can use PEAR, as explained in the official documentation: NetBeans & PHPUnit Step 2 - The Problem to Solve Remember!

PHP5 recursive URL-crawler. JavaFX 2 GameTutorial Part 3 « Carl’s FX Blog. Package carlfx.demos.navigateship; import carlfx.gameengine.Sprite; import javafx.animation.KeyFrame; import javafx.animation.Timeline;

JavaFX 2 GameTutorial Part 3 « Carl’s FX Blog

Backpack Algorithms And Public-Key Cryptography Made Easy. Advertisement E-commerce runs on secrets.

Backpack Algorithms And Public-Key Cryptography Made Easy

Those secrets let you update your blog, shop at Amazon and share code on GitHub. Computer security is all about keeping your secrets known only to you and the people you choose to share them with. We’ve been sharing secrets for centuries, but the Internet runs on a special kind of secret sharing called public-key cryptography.

Most secret messages depend on a shared secret—a key or password that everyone agrees on ahead of time. Cryptography is a scary word: it conjures thoughts of complex equations and floating-point arithmetic. A Simple Secret Telling my best friends a secret is easy: I find a private place and whisper it in their ears. We’ve all been inventing codes since we were children. A=1, b=2, c=3, d=4, e=5… It fooled my friends, but not my parents. Desenvolvedores podem ser selecionados seguindo um roteiro padronizado? Jeff Atwood, criador do Coding Horror, um dos sites mais conceituados de programação, publicou recentemente em seu site algumas questões e conceitos importantes na contratação de programadores.

Desenvolvedores podem ser selecionados seguindo um roteiro padronizado?

Embora o post parta da perspectiva do contratante, as lições apresentadas servem igualmente para os próprios desenvolvedores à procura de novas oportunidades. No post, Atwood defende que não há uma fórmula mágica na hora de escolher o melhor candidato, e sugere algumas práticas que podem contribuir tanto para quem procura quanto para quem quer ser contratrado na sua empresa de interesse. A seguir resumimos as práticas, em tradução livre.

O teste "Hello Word" Na primeira etapa de qualquer processo seletivo, um teste online simples no formato de Parece óbvio, mas o "Hello World" já serve como um primeiro filtro aos candidatos menos preparados. O portfólio de atividades.

General

Javascript. Ruby. Python. Lua. Php. Java.