Programming Fundamentals

  • Programming Fundamentals
    Refactoring Legacy Code - Part 10: Dissecting Long Methods with ExtractionsRefactoring wide retina preview 1
    Today, we will take another approach: We will assume we are alone, no colleague or pair to help us. We will use a technique called "Extract till you drop" that breaks code in very small pieces. We will make all the efforts we can to make these pieces as easy to understand as possibleRead More…
  • Programming Fundamentals
    The Beginner's Guide to Type Coercion: A Practical ExampleType coercion
    Throughout this series of articles, we've been talking about type coercion, how it differs from type conversion, and how it performs in dynamically typed languages. Whereas the other article focused on weakly typed languages and data types at a high level, we're going to be looking at some specific examples of type coercion in a weakly typed language, and the pitfalls that we may experience without knowing how type coercion works and how it can backfire.Read More…
  • JavaScript
    Bubble.js: A 1.6K Solution to a Common ProblemJavascript wide retina preview
    One of the most common tasks in web development is event management. Our JavaScript code is usually listening to events dispatched by the DOM elements. This is how we get information from the user: That is, he or she clicks, types, interacts with our page and we need to know once this happen. Adding event listeners looks trivial but could be a tough process. In this article, we will see a real case problem and its 1.6K solution.Read More…
  • Programming Fundamentals
    The Beginner's Guide to Type Coercion: What is Coercion?Type coercion
    As mentioned in the first post, this series is specifically geared towards beginners or towards those who don't have a lot of experience with weakly typed languages. That is to say that if you've been programming in both strongly typed and/or weakly typed languages and are familiar with type coercion and the pitfalls that can occur when performing certain operations, then this series may not be of much interest to you.Read More…
  • Programming Fundamentals
    The Beginner's Guide to Type Coercion: Data TypesType coercion
    In this series, we're going to take a beginner's look at dynamic languages, how variables are defined, how their data types are inferred and are different from their statically counterparts, and how to avoid some of the major pitfalls that come with working with these languages.Read More…
  • Front End
    Resources for Staying on Top of JavaScriptJavascript wide retina preview
    With JavaScript being used so frequently, I thought I would update my list of resources for staying current and up to date with JS. We'll take a look at my recommended list of books, blogs, courses, and where to find help when troubles arise during your JS development. Read More…
  • Back-End
    Object-Oriented PHP for Beginners200x200
    Twice a month, we revisit some of our readers’ favorite posts from through out the history of Nettuts+. This tutorial was first published in July, 2010. For many PHP programmers, object-oriented programming is a frightening concept, full of complicated syntax and other roadblocks. As detailed in my book, Pro PHP and jQuery, you'll learn the concepts behind object-oriented programming (OOP), a style of coding in which related actions are grouped into classes to aid in creating more-compact, effective code. Read More…
  • Mobile Development
    Learn Java for Android Development: Introduction to JavaJava logo
    In this tutorial series, you’ll become familiar with Java, the programming language used to develop Android applications. Our goal is to prepare those already familiar with one programming language, such as PHP or Objective-C, to become comfortable working with the Java programming language and dive into Android app development. In this tutorial, you’ll get a brief introduction to Java fundamentals, including object oriented programming, inheritance and more. If you’re new to Java, or just looking to brush up on the details, then this is the tutorial series for you!Read More…
  • Mobile Development
    Learn Objective-C: Day 1Learn objective c
    Welcome to my series on coming to grips with the awesome language that is Objective-C. Throughout this small series of articles, my aim is to take you from no prior experience with Objective-C to using it confidently in your own applications. This isnʼt a rush job - so donʼt expect to just skim through the basics and be away - weʼll be going through not just the bare essentials, but also the best practices you can apply to ensure your code is the best it can be. Letʼs jump straight in! Read More…