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.
View test.cs
// CSharp |
View dynamic-query.cs
var ordersForCustomer = session.Query<Order>() | |
.Where(order => order.CustomerId == "customers/bob") | |
.TransformWith<OrderWithProductInformation, OrderWithProductInformation.Result>() | |
.List(); |
View index.html
<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 --> |
View gist:3879435
package samples | |
import kspec.framework.* | |
spec public fun calculatorSpecs() { | |
var calculator = null | |
var sum = 0 | |
given("a calculator", { | |
calculator = Calculator() |
View ConsoleSpinner.cs
static void Main(string[] args) | |
{ | |
ConsoleSpinner spin = new ConsoleSpinner(); | |
Console.Write("Working...."); | |
while (true) | |
{ | |
spin.Turn(); | |
} | |
} |
View curry.md
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
View gist:3609294
var Browser = require('zombie') | |
, client = new Browser() | |
client.visit('http://localhost', function() { | |
client.fill('title', 'This is an awesome blog entry') | |
client.click('submit') | |
}) |
View gist:3011019
(defn onKeyDown [e] | |
(.log js/console "down") | |
) | |
(defn onKeyUp [e] | |
(.log js/console "up") | |
) | |
(defn hookKeyboard [] | |
(.addEventListener js/document "keydown" onKeyDown) |
View gist:3010659
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", -> |