background preloader

Ninite - Install or Update Multiple Apps at Once

Top 15+ Best Practices for Writing Super Readable Code Twice a month, we revisit some of our readers’ favorite posts from throughout the history of Nettuts+. Code readability is a universal subject in the world of computer programming. It's one of the first things we learn as developers. This article will detail the fifteen most important best practices when writing readable code. IDE's (Integrated Development Environment) have come a long way in the past few years. This made commenting your code more useful than ever. Consider this example: The comments I added at the function definition can be previewed whenever I use that function, even from other files. Here is another example where I call a function from a third party library: In these particular examples, the type of commenting (or documentation) used is based on PHPDoc, and the IDE is Aptana. I assume you already know that you should indent your code. There are more than one way of indenting code. I used to code in style #2 but recently switched to #1. PEAR Style: These can also be mixed.

Arduino Tutorial - Lesson 5 We've done a lot so far, blinking lights, printing messages...all of that stuff is output: signals coming from the Arduino. The next step is to start playing with input, with the Arduino responding to outside events. In this lesson we will begin with the most basic kind of input, a push-button switch! You're probably familiar with switches, there's tons of them in your house. On the left, the switch is open and no current flows. (thanks wikipedia!) In this photo, you can see the internals of a light switch. Light switches are great but we need something smaller. These little switches are a 1/4" on each side, cost about 25 cents, and can plug directly into a breadboard. Normally, the two wires are disconnected (normally open) but when you press the little button on top, they are mechanically connected. To get the buttons to sit better in the protoshield, you may want to straighten out the legs (just squish them with a pair of pliers) so that they look like the button on the left. Fig 5.2

Atanua - About The Atanua UI Atanua is a real-time logic simulator, designed to help in learning of basic boolean logic and electronics. See the interactive flash demo! The Atanua UI consists of basically three parts: the component listthe work areabuttons for some useful functions, like saving and loading Simple example - SR latch, two implementations As a simple example, the image on the left shows the implementation of a SR-latch using two NOR gates, as well as a SR-latch logic block, and both are connected to a couple of input buttons (bound to keyboard keys 1 and 2) and output LEDs. Editing wires This example can be replicated by simply dragging the needed components from the component list to the work area, and connecting the parts with lines. To split a wire (for those 90' angles), simply drag at the middle of a wire. The 4 signal states You can scroll around the work area by simply dragging it. Wire colors show the state of the connection. Another example Helpful tooltips Site design © 2013 Jari Komppa

Introduction to Rack middleware Rack middleware is hot topic these days and anyone who is reading Ruby-related blog sites must have heard about it already. However, if you didn’t, here’s short quote from Rack site: Rack provides an minimal interface between webservers supporting Ruby and Ruby frameworks. During last couple of years, Rack has became de facto standard in Ruby web development world, providing unified and and simple interface for frameworks creators. Brief history CGI was first widely used method of running Ruby scripts on server-side. Middleware Rack is more than interface that can be used to talk to web server. If you are using Ruby on Rails, it is usually used as top-level module. What is really interesting is Rack’s simple architecture. Installation $ gem install rack `</pre> First steps Now that we have Rack installed, we want to try how it works. Rack use configuration file with extension .ru, that instructs Rack::Builder what middleware should it use and in which order. $ rackup config.ru More reading

An A-Z Index of the Windows CMD command line 10 Best Sites to Learn How to Code Quickly Web development has become a very important topic on the web these days and the internet has become the best source for developers to learn more about code. It is a very easy way and a very popular one and the developers can find important information related to anything on the internet very easily and do not have to face any kind of difficulty to lean new development ways. Web application development has some of its own unique features. Its our pleasure to share best and useful resources for web developers and designers. 1) Codecademy Codecademy is the easiest way to learn to code. 2) PHP Academy This site provide free PHP tutorials and other web development tutorials, including tutorials for MySQL, JavaScript (including jQuery) and CSS. 3) Code School Code School is an online learning platform that teaches a variety of programming and web design skills. 4) Code Google 5) School of Webcraft 6) jQuery Air 7) Coursera 8) Rubymonk 9) Developer Android 10) Developer Apple Related Post

10 Resources for Design-Challenged Programmers When it comes to design, why do programmers tend to have difficulty in creating a simple and user-friendly user interface? Perhaps because programmers are traditionally left-brained and more focused on logic, analytics, objectivity, etc. This type of thinking is encouraged in academics. Designers are right-brained and focus on being intuitive, creative and subjective. Just because you tend to be a left-brained thinker, you cannot also have some qualities of a right-brained thinker. 1. 2. 8 Things Programmers Should Know About UI Design 3. 4. 5. 6. 8 Web Design Mistakes That Developers Make 7. 8. 9. 10. Did you identify any design mistakes that you currently make as a programmer? What are the next steps that you will take to move from left-brained to right-brained (or vice versa)? Are there any other websites or books that you think should be included in this list? Tagged with: book, Brian P.

6 Books Every Programmer Should Own I’ve seen many lists about the best programming books and I am sure there are a lot of books that are specific to a programming knowledge or technology – that I have not included in my list. The books I have chosen are those that are meant to inspire, increase productivity and improve your programming design skills. Note: This list has no particular order. Code Complete 2 Steve McConnell The main focus of this book to help you improve your programming design skills. The Pragmatic Programmer: From Journeyman to Master Andrew Hunt and David Thomas This book focuses on the best practices of programming (i.e. what you should and should not do). Pragmatic Thinking and Learning: Refactor Your Wetware Andy Hunt From the author of The Pragmatic Programmer, this book takes one-step back from programming and focuses on your everyday thinking and problem solving skills. The Productive Programmer Neal Ford and David Bock Algorithms in a Nutshell George T Heineman, Gary Pollice and Stanley Selkow Thomas H.

Programming Him: "I can download games like Quake and play them during lunch, you know."Me: "We're only allowed 10 megs in our accounts, and the system administrators would notice you downloading a large file."Him: "Nah, I could hack it so he couldn't."Me: "Ah, so you are into hacking. By the way do you know any programming languages?"Him: "Yeah, of course." I almost cried laughing. One day I was in a public park, reading "C++ For Dummies" when someone came up and asked me what I was reading. Teacher: "You can't do spaces in HTML. My Friend: "Yesterday, I reprogrammed my computer." I was the night-time operator for a university in the northern part of the state. One evening a student was in the pickup area, looking at her listing, and crying. At that point she let out a great wail and sob. "Huh?" It turned out the the instructor told the class what all instructors tell their classes for the first computer program they ever write. I once worked for the IT department of a small manufacturing company.

Related: