C++, Ruby, CoffeeScript: a visual comparison of language complexity. Most people will agree that C++ is a fairly complex language. But just how complex is it? I got curious about quantifying that by comparing the number of concepts a programmer has to understand to learn a programming language in its entirety. Concepts in my definition include large categories like classes and operators, as well as more fine grained things like if-else statements and while loops. There is a lot of variation in the complexity of different concepts, so their number can only serve as a rough measure of language complexity. Nevertheless, I think it’s interesting. I chose C++, CoffeeScript and Ruby for my comparison. I think it would also be interesting to make a comparison with other statically typed languages such as F# or Scala but I’m not really familiar with them, so it would be hard for me to do.
CoffeeScript First up, let’s look at CoffeeScript: CoffeeScript contains 68 concepts It has a total of 68 concepts divided into 8 major groups. Ruby Ruby contains 96 concepts. Blockly - A visual programming language. Code Avengers, learn Javascript.
Goodbye. Course Review. Head First Into Plugin Development. Deferreds. PHP and jQuery: Part 2. PHP and jQuery: Part 1. Interacting with the Server-Side. Loading Pages Asynchronously. Custom Events and the Observer Pattern. Filtering with jQuery.grep. The Twitter API. jQuery - Not So Fast, jQuery. In lesson two of this series, we’ll review jQuery’s ready method, and how it can be used to detect when the DOM is ready to be manipulated.
Lesson Transcript Welcome back to learn jQuery in 30 days. Today, we are going to be taking a look at jQuery document.ready method. Let’s consider an example where you need to load jQuery within the head. Maybe it’s required for some applications. This will happen. Well, it might be possible that you will try to use one of the selectors that we reference in the previous lesson up here within the head of our document. I’ll come back to Google Chrome and reload the page. Now, when the document is ready to be manipulated within this call back function, we will execute whatever we mean to. Now, I’m going to assume you are relatively new to JavaScript as a whole. In this case, rather than a CSS selector, we’re passing the jQuery function – a function itself.
jQuery - The Basics of Querying the DOM. jQuery - Events 101. Now, we get to move on to the fun part! In order to properly listen for when specific actions occur, such as the user clicking an anchor tag, or hovering over a particular section, we use event listeners. In this lesson, for demonstration purposes, we’ll build a simple stylesheet switcher. Lesson Transcript Welcome to day 4 of Learn jQuery in 30 Days. And this is where we actually take some of the methods we’ve learned and begin building actual stuff which is obviously what you want to do.
Today we are going to be focusing on events. I will open up Sublime Text and here’s a sample page, pretty much a …. The next step is we need to have these two stylesheets. By default, when the user loads the page, we are going to give them the daytime stylesheet. The first step is we want to listen for when one of these buttons as click. We’re going to cancel that log, button was clicked. When the button is click, we want to first just see if we can figure out how to replace the link. Congratulations. jQuery - Events 201. When binding event handlers to potentially hundreds of elements, event delegation can be your best friend. In this lesson, we’ll build the obligatory accordion, while reviewing a handful of techniques, including nth-child, and passing a selector string to the on method. Lesson Transcript Now that you have a basic understanding of working with events, we are going to move up from events 101 to events 201. We are going to take a look at using the ‘on method’ a little bit more and I’ll also teach you a bit about event delegation.
Here’s what we are going to build in today’s little project. And it’s simply a FAQ section where users can view a question and what the answer is. As always, I have my basic template. so let’s get started with the mark-up. The firs step is I want to style the details because I don’t want that spacing there. On the terms, I’m going to add a little more borders just to make them pop a little bit more. Once again, for now, let’s use ‘dd.hide’. jQuery - Quiz #1: The Basics. jQuery - Bind…Live…Delegate…Huh? Assuming that you’re fully invested in learning jQuery, I won’t be presumptuous enough to assume that you’re exclusively learning from me (I wouldn’t recommend it either). It’s likely that, at some point, you’ve come across tutorials that reference the bind, live, and delegate methods.
What are these, and why am I recommending that you don’t use them? Find out in today’s lesson. Lesson Transcript Before we continue on to the next set of lesson, I think it is important to clarify what a handful of methods are that absolutely see if you are reading in the tutorials. And those methods will be bind, live and delegate. So we need to figure out, what are those? If we take a look at this sample project, you can see that I have an h2 here and what are we going to do is when the user clicks on it, I want to duplicate it or clone it. Especially for older tutorials, you’ll see the bind method something like this, $(‘h2′).bind(‘click’). But now watch what would happens, if I click on that next one. jQuery - Creating and Appending Content. jQuery - Slides and Structure. jQuery - The this Keyword. jQuery - Modifying Effect Speeds.
jQuery - Creating Custom Effect Methods. jQuery - Full Control With animate. jQuery - Homework Solutions. jQuery - The Obligatory Slider (First Stab) jQuery - Prototypal Inheritance and Refactoring the Slider. jQuery - Your Questions Answered. jQuery - Quiz #2 – Effects. jQuery - $.each and Templating. jQuery - Say Hello to Handlebars.