Skip to main content

Home/ Coders/ Group items matching "Javascript" in title, tags, annotations or url

Group items matching
in title, tags, annotations or url

Sort By: Relevance | Date Filter: All | Bookmarks | Topics Simple Middle
roberthayes222

AppWarp - Multiplayer Gaming on the Cloud : now with websocket power! | App42 PaaS Backend as a Service Blog - 0 views

  • We are excited to introduce our javascript SDK for AppWarp. This will allow developers to quickly build engaging real-time multiplayer HTML5 games and apps. Our javascript SDK uses websocket technology for fast asynchronous communication with other clients through the cloud. This is better as it does away with the inconvenient AJAX polling paradigm and doesn’t require any browser plugin to be installed. Read more benefits about websockets here. In a nutshell, it means your network communication layer is lightweight and fast. Since AppWarp server supports connections from android, ios, wp7, j2me and now websockets – communication is truly cross-platform. This means users playing the browser flavor of your game can interact in real-time even with users who are on the corresponding native flavors. Currently the javascript SDK supports Firefox and Chrome browsers. We will soon add support for the to be released IE 10 browser.
  •  
    We are excited to introduce our javascript SDK for AppWarp. This will allow developers to quickly build engaging real-time multiplayer HTML5 games and apps. Our javascript SDK uses websocket technology for fast asynchronous communication with other clients through the cloud. This is better as it does away with the inconvenient AJAX polling paradigm and doesn't require any browser plugin to be installed. Read more benefits about websockets here. In a nutshell, it means your network communication layer is lightweight and fast.
Zulkarnain K.

Book: Secrets of the JavaScript Ninja by John Resig - 0 views

  •  
    The untold secrets of the elite JavaScript programmers distilled for intermediate JavaScript programmers, bringing them completely up to speed with the challenges of modern JavaScript development. Explores specific techniques, strategies, and solutions to developing robust, cross-browser, JavaScript code.
David Corking

JavaScript as a Functional Language | Ajaxonomy | 2009 - 0 views

  • there is a little bit of hand-waving involved in calling JavaScript a functional language. JavaScript is not a side-effect free language, nor is it an expression-based language (i.e., it is not value-oriented, but rather variable-oriented). There is no tail call optimization in any of the current implementations, so recursion must be kept shallow. And the list goes on. Truth be told, JavaScript is really one of the first hybrid imperative-functional languages.
  • Higher-order functions allow us to do functional composition,
  • Since JavaScript does not have "overloaded" functions, this type of functionality is usually simulated using manipulation of the function's arguments. Currying comes in handy because it allows you to do this manipulation in a much cleaner and more modular way.
  • ...1 more annotation...
  • Closures have quite a few applications in real-world JavaScript: event binding, callbacks, sorting, mapping (in the classical Lisp sense), and many others. In more modern JavaScript programming, you can find them almost everywhere.
  •  
    This is a short tutorial approach to an old but little-noticed saw.
alex gross

SharpKit - Write C# and convert it to JavaScript during compilation - 3 views

  •  
    * Migrate your existing JavaScript codebase to C# * Leverage C# productivity for JavaScript development * Easily integrate with popular JavaScript libraries in C#
Joel Bennett

Javscript Lint - 0 views

  •  
    JavaScript Lint based on the JavaScript engine from Firefox ... check JavaScript syntax, examine coding techniques, and warn against questionable practices. Has online and dowloadable versions you can run from your IDE or CLI.
Zulkarnain K.

jQuery and JavaScript Coding: Examples and Best Practices - 0 views

  •  
    When used correctly, jQuery can help you make your website more interactive, interesting and exciting. This article will share some best practices and examples for using the popular Javascript framework to create unobtrusive, accessible DOM scripting effects. The article will explore what constitutes best practices with regard to Javascript and, furthermore, why jQuery is a good choice of a framework to implement best practices.
Matteo Spreafico

Classical Inheritance in JavaScript - 0 views

  • function ZParenizor2(value) { var that = new Parenizor(value); that.toString = function () { if (this.getValue()) { return this.uber('toString'); } return "-0-" }; return that; }
    • Matteo Spreafico
       
      This constructors lies, wondeful!
  • Again, we augment Function. We make an instance of the parent class and use it as the new prototype. We also correct the constructor field, and we add the uber method to the prototype as well.
  • This adds a public method to the Function.prototype, so all functions get it by Class Augmentation. It takes a name and a function, and adds them to a function's prototype object.
  • ...3 more annotations...
  • To make the examples above work, I wrote four sugar methods. First, the method method, which adds an instance method to a class. Function.prototype.method = function (name, func) { this.prototype[name] = func; return this; };
  • JavaScript can be used like a classical language, but it also has a level of expressiveness which is quite unique. We have looked at Classical Inheritance, Swiss Inheritance, Parasitic Inheritance, Class Augmentation, and Object Augmentation. This large set of code reuse patterns comes from a language which is considered smaller and simpler than Java.
  • I have been writing JavaScript for 8 years now, and I have never once found need to use an uber function. The super idea is fairly important in the classical pattern, but it appears to be unnecessary in the prototypal and functional patterns. I now see my early attempts to support the classical model in JavaScript as a mistake.
Matteo Spreafico

JavaScript: The World's Most Misunderstood Programming Language - 0 views

  • JavaScript, aka Mocha, aka LiveScript, aka JScript, aka ECMAScript, is one of the world's most popular programming languages
  • It was originally called LiveScript, but that name wasn't confusing enough.
  • You get lambdas without having to balance all those parens.
anonymous

Functional Javascript - 0 views

  •  
    Functional is a library for functional programming in JavaScript. It defines the standard higher-order functions such as map, reduce (aka foldl), and select (aka filter). It also defines functions such as curry, rcurry, and partial for partial function application; and compose, guard, and until for function-level programming. And all these functions accept strings, such as 'x -> x+1', 'x+1', or '+1' as synonyms for the more verbose function(x) {return x+1}.
anonymous

JavaScript Rocks! JavaScript Performance, Benchmarking and Tuning Ebook - 0 views

  •  
    The intense, fill-frontal, no-nonsense guide to maximizing your JavaScript web application performance.
Justin Newton

Editing JavaScript - NetBeans IDE 6.1/6.5 Tutorial - 0 views

  •  
    Net beans enhanced Javascript editing features documentation
Gilad Shimony

50 Fresh JavaScript Tools That Will Improve Your Workflow « Smashing Magazine - 0 views

  •  
    Many things that were once accomplished using Flash objects can now be built using JavaScript - with the added benefit that it is free, typically more web and mobile accessible under most circumstances using best practices for development techniques, and without the need to use proprietary software for development.
alex gross

C# to JavaScript: HOWTO Declare JSON - JavaScript Object Notation - 5 views

  •  
    JSON, short for JavaScript Object Notation, is a lightweight computer data interchange format. It is a text-based, human-readable format for representing simple data structures and associative arrays (called objects). This example illustrates how to declare a JSON Contact structure.
anonymous

Underscore.js - 3 views

  •  
    Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects. It's the tie to go along with jQuery's tux.
yc c

gotAPI.com - Documentation search engine - 2 views

  •  
    gotAPI helps you find functions, classes, methods, properties, styles, tags, constants and more \n Search In\nActionScript 2.0, ActionScript 3.0, Adobe Flex 2, Adobe Flex 3.3, Apache Ant, Apache Commons, Apache RegExp, Apache Struts 1.1, Berkley DB XML, Bluetooth and OBEX, C++, CakePHP 1.2, Castor, CDC, CLDC, ColdFusion MX-7, ColdFusion MX-8, CSS, CSS, DbUnit 2.4.5, Dinkumware C/C++, DITA 1.1, DocBook, Dojo Toolkit 1.3, Drupal, Eclipse Platform 2.1, Erlang, Flickr API, FP, Google GWT, Google GWT+Gears, Groovy, Haskell, Hibernate, HTML, HTML, HttpUnit, J2EE 5.0, Java 1.5, Java 1.6, JavaScript, JavaScript, jQuery, JSON LIB, JSTL, JUnit, Log4J, MIDP, Mobile Media, MochiKit, MooTools, MySQL 4.1, OpenGL 2.1, Oracle 10g, Oracle 9i, Orb API 2.0, OSGi Platform 4.1, PBP, Perl 5.10, PHP, PostgreSQL 8.3, Prototype.js, Python 2.6.1, RMagick 1.15, RogueWave, Ruby Std Libraries, Ruby/Rails, Scala 2.7.3, Schema (XSD), Script.aculo.us 1.8, Selenium 0.8.2, Sicstus Prolog, Simple DirectMedia Layer, Spring Framework 2.0, Symphony 1.2, Twitter API, Web Services, XML DOM, XPath 2.0, XSL 2.0, Yahoo! UI\n
anonymous

LABjs - 3 views

shared by anonymous on 30 Nov 09 - Cached
Emma Deloney liked it
  •  
    The core purpose of LABjs is to be an all-purpose, on-demand JavaScript loader, capable of loading any JavaScript resource, from any location, into any page, at any time.
fspore

Values, Types, and Operators :: Eloquent JavaScript - 0 views

  • Not all operators are symbols. Some are written as words. One example is the typeof operator, which produces a string value naming the type of the value you give it.
  • Having such numbers is useful for storing strings inside a computer because it makes it possible to represent them as a sequence of numbers. When comparing strings, JavaScript goes over them from left to right, comparing the numeric codes of the characters one by one.
  • There is only one value in JavaScript that is not equal to itself, and that is NaN, which stands for “not a number”.
  • ...16 more annotations...
  • In practice, you can usually get by with knowing that of the operators we have seen so far, || has the lowest precedence, then comes &&, then the comparison operators (>, ==, and so on), and then the rest. This order has been chosen such that, in typical expressions like the following one, as few parentheses as possible are necessary:
  • The difference in meaning between undefined and null is an accident of JavaScript’s design, and it doesn’t matter most of the time. In the cases where you actually have to concern yourself with these values, I recommend treating them as interchangeable (more on that in a moment).
  • . Yet in the third expression, + tries string concatenation before numeric addition
  • When something that doesn’t map to a number in an obvious way (such as "five" or undefined) is converted to a number, the value NaN is produced.
  • Further arithmetic operations on NaN keep producing NaN, so if you find yourself getting one of those in an unexpected place, look for accidental type conversions.
  • g ==, the outcome is easy to predict: you should get true when both values are the same, except in the case of NaN.
  • But when the types differ, JavaScript uses a complicated and confusing set of rules to determine what to do. In most cases, it just tries to convert one of the values to the other value’s type. However, when null or undefined occurs on either side of the operator, it produces true only if both sides are one of null or undefined.
  • That last piece of behavior is often useful. When you want to test whether a value has a real value instead of null or undefined, you can simply compare it to null with the == (or !=) operator.
  • The rules for converting strings and numbers to Boolean values state that 0, NaN, and the empty string ("") count as false, while all the other values count as true.
  • where you do not want any automatic type conversions to happen, there are two extra operators: === and !==. The first tests whether a value is precisely equal to the other, and the second tests whether it is not precisely equal. So "" === false is false as expected.
  • The logical operators && and || handle values of different types in a peculiar way. They will convert the value on their left side to Boolean type in order to decide what to do, but depending on the operator and the result of that conversion, they return either the original left-hand value or the right-hand value.
  • The || operator, for example, will return the value to its left when that can be converted to true and will return the value on its right otherwise. This conversion works as you’d expect for Boolean values and should do something analogous for values of other types.
  • This functionality allows the || operator to be used as a way to fall back on a default value. If you give it an expression that might produce an empty value on the left, the value on the right will be used as a replacement in that case.
  • The && operator works similarly, but the other way around. When the value to its left is something that converts to false, it returns that value, and otherwise it returns the value on its right.
  • Another important property of these two operators is that the expression to their right is evaluated only when necessary. In the case of true || X, no matter what X is—even if it’s an expression that does something terrible—the result will be true, and X is never evaluated. The same goes for false && X, which is false and will ignore X. This is called short-circuit evaluation.
  • - to negate a number
anonymous

Raphaël-JavaScript Library - 0 views

  •  
    Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web. In case you want to create your own specific chart or image crop-n-rotate widget, you can simply achieve it with this library.
Joel Bennett

Jash: JavaScript Shell - 0 views

  •  
    Jash is a DHTML-based window that gives you command-line JavaScript access to the current browser window.
1 - 20 of 230 Next › Last »
Showing 20 items per page