Click here to Skip to main content
14,545,459 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
NewsPhysicists demonstrate a quantum Fredkin gate Pin
Kent Sharkey27-Mar-16 9:31
staffKent Sharkey27-Mar-16 9:31 
NewsWhat if we had a great standard library in JavaScript? Pin
Kent Sharkey27-Mar-16 9:18
staffKent Sharkey27-Mar-16 9:18 
GeneralRe: What if we had a great standard library in JavaScript? Pin
Marc Clifton27-Mar-16 9:32
mvaMarc Clifton27-Mar-16 9:32 
GeneralRe: What if we had a great standard library in JavaScript? Pin
Kent Sharkey27-Mar-16 9:37
staffKent Sharkey27-Mar-16 9:37 
GeneralRe: What if we had a great standard library in JavaScript? Pin
Jeremy Falcon28-Mar-16 13:21
professionalJeremy Falcon28-Mar-16 13:21 
GeneralRe: What if we had a great standard library in JavaScript? Pin
Camilo Reyes27-Mar-16 10:58
professionalCamilo Reyes27-Mar-16 10:58 
GeneralRe: What if we had a great standard library in JavaScript? Pin
raddevus27-Mar-16 12:01
mvaraddevus27-Mar-16 12:01 
GeneralRe: What if we had a great standard library in JavaScript? Pin
Camilo Reyes3-Apr-16 14:41
professionalCamilo Reyes3-Apr-16 14:41 
Excellent point. jQuery I feel has taken me down the wrong path, specifically around unit testability. Say:
$('#first').text('stuff');

It looks nice, but how do I unit test this? How about:
function fillWithStuff(el) {
    el.innerHTML = 'stuff';
}

The beauty here is I have a testable component. This testable component is not tight-coupled to the DOM. All I need is a simple mock like
{}

So:
function testMyStuff() {
    var mock = {};
    fillWithStuff(mock);
    console.log(mock.innerHTML === 'stuff');
}()

Yea jQuery is cool and all. But I once looked at the code I was writing and couldn't stop seeing where it was taking me. I like writing modules I can test in isolation that aren't tightly-coupled to any DOM. JavaScript is way more beautiful like that. Cool | :cool:
GeneralRe: What if we had a great standard library in JavaScript? Pin
raddevus27-Mar-16 11:54
mvaraddevus27-Mar-16 11:54 
GeneralRe: What if we had a great standard library in JavaScript? Pin
Eddy Vluggen28-Mar-16 0:59
professionalEddy Vluggen28-Mar-16 0:59 
GeneralRe: What if we had a great standard library in JavaScript? Pin
#realJSOP28-Mar-16 13:00
mva#realJSOP28-Mar-16 13:00 
NewsReclaiming design patterns (20 years later) Pin
Kent Sharkey27-Mar-16 9:00
staffKent Sharkey27-Mar-16 9:00 
NewsMicrosoft details how typography affects user interface design Pin
Kent Sharkey27-Mar-16 8:48
staffKent Sharkey27-Mar-16 8:48 
GeneralRe: Microsoft details how typography affects user interface design Pin
raddevus27-Mar-16 9:03
mvaraddevus27-Mar-16 9:03 
NewsThese unlucky people have names that break computers Pin
Kent Sharkey27-Mar-16 8:47
staffKent Sharkey27-Mar-16 8:47 
GeneralRe: These unlucky people have names that break computers Pin
raddevus27-Mar-16 9:00
mvaraddevus27-Mar-16 9:00 
GeneralRe: These unlucky people have names that break computers Pin
Kent Sharkey27-Mar-16 9:01
staffKent Sharkey27-Mar-16 9:01 
GeneralRe: These unlucky people have names that break computers Pin
Vark11128-Mar-16 2:45
MemberVark11128-Mar-16 2:45 
GeneralRe: These unlucky people have names that break computers Pin
Richard Deeming29-Mar-16 3:28
mveRichard Deeming29-Mar-16 3:28 
NewsHow Microsoft's HoloLens could change communication via 'Holoportation' Pin
Kent Sharkey27-Mar-16 8:45
staffKent Sharkey27-Mar-16 8:45 
GeneralRe: How Microsoft's HoloLens could change communication via 'Holoportation' Pin
raddevus27-Mar-16 9:07
mvaraddevus27-Mar-16 9:07 
GeneralRe: How Microsoft's HoloLens could change communication via 'Holoportation' Pin
Rob Grainger29-Mar-16 23:39
MemberRob Grainger29-Mar-16 23:39 
GeneralRe: How Microsoft's HoloLens could change communication via 'Holoportation' Pin
raddevus30-Mar-16 1:57
mvaraddevus30-Mar-16 1:57 
GeneralRe: How Microsoft's HoloLens could change communication via 'Holoportation' Pin
Rob Grainger1-Apr-16 8:40
MemberRob Grainger1-Apr-16 8:40 
NewsIs Microsoft actually about to do something interesting with Live Tiles in Windows 10? Pin
Kent Sharkey27-Mar-16 8:32
staffKent Sharkey27-Mar-16 8:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.