If you ask most professional developers (as compared to a Hobbyist, see "What's the Difference between a Hobbyist and a Professional") about JavaScript and you'll likely get non-positive responses. Most professional developers – that is those that get paid – don't like JavaScript because it's hard to make a craft of developing when you're limited by your language. Most professional developers have come to expect a set of tools to help them develop more reliable code and to create the code faster in the first place. JavaScript isn't bad for tying a few loose things together, however, developing enterprise scale applications is not what it was designed for.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CSharp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ordersForCustomer = session.Query<Order>() | |
.Where(order => order.CustomerId == "customers/bob") | |
.TransformWith<OrderWithProductInformation, OrderWithProductInformation.Result>() | |
.List(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1></h1> | |
<section> | |
<div class="hotel"> | |
<h5 class="hotel-name"></h5> | |
<p class="hotel-description"></p> | |
</div> | |
</section> | |
<!-- Trying to use the HTML elements themselves as selectors will lead to pain because the designer should be able to change that crap and you shouldn't have to worry which elements they've used, classes/ids are saner --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package samples | |
import kspec.framework.* | |
spec public fun calculatorSpecs() { | |
var calculator = null | |
var sum = 0 | |
given("a calculator", { | |
calculator = Calculator() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
ConsoleSpinner spin = new ConsoleSpinner(); | |
Console.Write("Working...."); | |
while (true) | |
{ | |
spin.Turn(); | |
} | |
} |
Okay, so we're booked in at this place here http://www.bing.com/maps/?lvl=16&where1=bd182bj,%20UK&FORM=MMREDR http://www.shimlaspice.co.uk/pages/branches.html (shipley)
for 20:00
I have booked a table for 18 people, but the proprietor is fine with more turning up (I let him know this was a possibility)
The list so far is something like
- @robashton
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Browser = require('zombie') | |
, client = new Browser() | |
client.visit('http://localhost', function() { | |
client.fill('title', 'This is an awesome blog entry') | |
client.click('submit') | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn onKeyDown [e] | |
(.log js/console "down") | |
) | |
(defn onKeyUp [e] | |
(.log js/console "up") | |
) | |
(defn hookKeyboard [] | |
(.addEventListener js/document "keydown" onKeyDown) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario "Bootstrapping the game", -> | |
context = new ManualContext() | |
bob = null | |
alice = null | |
Given "a server in a ready state", (done) -> | |
context.start(done) | |
When "bob connects", (cb) -> | |
bob = context.add_client_called 'bob', cb | |
Then "bob should have a canvas displayed", -> |