I previously wrote a blog post titled Performing any Selector on the Main Thread detailing a convenience category on NSInvoication for easily creating invocation objects that could be invoked on any thread. This category has served me well, and even got traction in the iOS developer community, so I never bothered to stop and think [...]
Entries Tagged 'Dynamic languages' ↓
Invoke any Method on any Thread
August 8th, 2011 by Fredrik Olsson — Architecture, Cocoa, Dynamic languages, Tips & Tricks
Tags: concurrency, design patterns, iphone, mac, objective-c, open source, programming, tips, tutorial
Clojure third language officially supported on Heroku
July 7th, 2011 by Ulrik Sandberg — Agile, Cloud, Dynamic languages, Java
According to this blog entry on Heroku, Clojure becomes the third language officially supported on the Cedar stack, after Ruby and Node.js. They write: – “Clojure combines the expressiveness of Lisp, the agility of a dynamic language, the performance of a compiled language, and the wide applicability of the JVM in a robust, production-ready package. [...]
Tags: clojure, heroku, official, support
Notes and Thoughts from a Great Conference
June 19th, 2011 by Andreas Ronge — Agile, Dynamic languages, Events, Uncategorized
The Nordic Ruby conference is a really great conference. I think the secret is: it’s small (they set a limit of 150 people which was reached), single track, 15 or 30 min sessions and 30 min breaks, great party and you have lots of time to talk to very passionate speakers and attendants. The quality [...]
Deploying a Clojure web app on Heroku
June 13th, 2011 by Ulrik Sandberg — Cloud, Dynamic languages, Java
Heroku is a cloud application platform for Ruby/Rails and Node.js. However, the Cedar stack on Heroku makes it possible to deploy other types of applications. In this blog entry, I will first describe how to write a simple Clojure web app using the Ring library and the build tool Leiningen. Then I will show how to deploy this Clojure web app on Heroku, using nothing but Git. I will make a change and see how to deploy that. I will also show how to easily roll back to a previous release.
Tags: clojure, Cloud, Deployment, git, heroku, Java
Tips from Rails Anti-Patterns
June 5th, 2011 by Anders Janmyr — Dynamic languages
Another good Ruby book is out, Rails Anti-Patterns. The book is loaded with good tips on everything from following the Law of Demeter to cleaning up your views with the use of helper methods. Here are some things I picked up from the book. delegate can take a :prefix argument The delegate method from active_support [...]
“HTML5 & MVC3″ Debriefing
May 28th, 2011 by Gustaf Nilsson Kotte , Per Ökvist and Karl Adriansson — .Net, Dynamic languages
Recently, Jayway hosted the seminar “HTML5 & MVC3″ in Malmö and Stockholm. We also visited the SweNUG Linköping group and held our presentation there. In this post, we will give you links to some of the topics we covered. The presentation was first delivered on Techdays 2011, and we recommend you to look at that [...]
Tags: .Net, html5, javascript, web
Ruby, an Exceptional Language
May 25th, 2011 by Anders Janmyr — Dynamic languages
Based on the book Exceptional Ruby by Avdi Grimm, I have developed a strategy for how I should deal with exceptions in Ruby. Being a very dynamic language, Ruby allows very flexible coding techniques. Exceptions are not an exception . When I am developing a library in Ruby I typically create one Error module and [...]
Tags: continuations, exception, ruby
CoffeeScript Goodies
May 16th, 2011 by Gustaf Nilsson Kotte — Dynamic languages
A few weeks ago, it was announced that Ruby on Rails 3.1 will include jQuery, Sass (using SCSS) and CoffeeScript as default dependencies. Among these, CoffeeScript seems to be the controversial dependency, at least if you read the comments on the actual commit (check out the funny meme pictures). In this blog post, I’ll try to [...]
Tags: coffeescript, javascript, web
A Not Very Short Introduction To Node.js
May 15th, 2011 by Anders Janmyr — Dynamic languages
Node.js is a set of asynchronous libraries, built on top of the Google V8 Javascript engine. Node is used for server side development in Javascript. Do you feel the rush of the 90′s coming through your head. It is not the revival of LiveWire, Node is a different beast. Node is a single threaded process, [...]
What Is New in EcmaScript 5?
April 5th, 2011 by Anders Janmyr — Dynamic languages
More and more browsers have implemented EcmaScript 5. That means that it is time to get up to speed on what it means for us as developers Here is a summary of Douglas Crockfords talk on Ecmascript 5 at Scandev New Syntax It is now possible to use reserved words as property names and in [...]
PySide and QML
April 4th, 2011 by Mario Boikov — Dynamic languages, Tips & Tricks
It has been out there for a while but I haven’t had time to try it out, PySide 1.0 with QML support! This really gives you a über rapid app development environment. The power of Python combined with the awesomeness of the declarative language QML (QtQuick) from the Qt framework. Take a look and feel [...]
Numerical Integration (With Precision)
April 2nd, 2011 by Ulrik Sandberg — Dynamic languages, Java, Tips & Tricks
In a previous blog entry, I explained the higher-order function sum and how to use the Substitution Model to follow the execution of a function. In this entry, I will use the sum function to perform numerical integration, and in the process run into some pitfalls of Java’s BigDecimal. I will show how the language Clojure provides an elegant solution to the “exact quotient cannot be represented” problem of BigDecimal.
Tags: bigdecimal, clojure, integration, Java, math, numerical
High Performance Javascript
March 28th, 2011 by Anders Janmyr — Dynamic languages, Tips & Tricks
Here are some tips on high perfomance Javascript I have picked up. Most of it comes from the books High Performance Javascript by Nicholas C. Zakas and High Performance Web Sites by Steve Souders. Loading Load files at the end of the HTML page Load the Javascript files right before the end body tag, this [...]
The Substitution Model: A Tool For Understanding Recursion
March 20th, 2011 by Ulrik Sandberg — Dynamic languages
Section 1.3 in Structure and Interpretation of Computer Programs is about Formulating Abstractions with Higher-Order Procedures. As an example, the authors use three simple sums: a sum of an integer range a sum of the cubes of an integer range a sum of a series that converges to π/8 The purpose is to highlight what [...]
dbg: A Cool Little Clojure Macro
March 13th, 2011 by Ulrik Sandberg — Dynamic languages, Tips & Tricks
Here’s the development of a tiny little macro that is actually pretty useful. The post is quite verbose, because I explain a lot. I want a debug function that first prints the “quoted” (unevaluated) code and then what it evaluates to, so I can write something like this: user> (dbg (+ 1 2)) dbg: (+ [...]
