sunpig + js   511

Ben Alman » Multiple var statements in JavaScript, not superfluous
I’m not sure where or when it happened, but at some point the JavaScript community decided that multiple, individual var statements were superfluous, instead opting for a single, combined var statement with a comma-separated list of variable declarations and assignments whenever possible.
benalman  cowboy  var  js  javascript  code  style  programming  variable  declaration  single  minifier 
28 days ago by sunpig
Node.js, Require and Exports
Back when I first started playing with node.js, there was one thing that always made me uncomfortable. Embarrassingly, I'm talking about module.exports. I say embarrassingly because it's such a fundamental part of node.js and it's quite simple. In fact, looking back, I have no idea what my hang up was...I just remember being fuzzy on it. Assuming I'm not the only one who's had to take a second, and third, look at it before it finally started sinking in, I thought I could do a little write up.
node  nodejs  require  exports  module  commonjs  load  js  javascript  server 
5 weeks ago by sunpig
Princeton S* Network Systems» Blog Archive » JavaScript in JavaScript (js.js): Sandboxing Third-Party Scripts
js.js is a JavaScript interpreter (which runs in JavaScript) that allows an application to execute a third-party script inside a completely isolated, sandboxed environment. An application can, at runtime, create and interact with the objects, properties, and methods available from within the sandboxed environment, giving it complete control over the third-party script. js.js supports the full range of the JavaScript language, is compatible with major browsers, and is resilient to attacks from malicious scripts.
js  javascript  sandbox  environment  emscripten  native  code  programming  interpreter  security 
6 weeks ago by sunpig
Using Modernizr to detect HTML5 features and provide fallbacks | HTML5 Doctor
Modernizr is a JavaScript library that detects which HTML5 and CSS3 features your visitor’s browser supports. In detecting feature support, it allows developers to test for some of the new technologies and then provide fallbacks for browsers that do not support them. This is called feature detection and is much more efficient than browser sniffing.
modernizr  html  javascript  js  yepnope  html5doctor  webdev  frontent  feature  detect  load  conditional 
7 weeks ago by sunpig
Organizing Your Backbonejs Application With Modules - Bocoup
If you have spent any time looking atBackbone.js, like many others, you are probably amazed by how lightweight, flexible and elegant it is. Backbone.js is incredibly powerful, but not prescriptive in how it should be used. With great power comes great responsibility, and if you’ve tried to use Backbone.js for a large project you might be asking yourself: how do I organize my code?
bocoup  backbone  js  javascript  architeture  module  organization  organize  code  frontend  webdev  pattern 
9 weeks ago by sunpig
Rainbow - Javascript Code Syntax Highlighting
RT : really pretty syntax highlighting for js in 1.2kb (yaaaa microframeworks!)
code  syntax  highlight  hilite  javascript  webdev  blog  content  pre  js  library  rainbow  colour  from twitter
9 weeks ago by sunpig
sigma.js | a lightweight JavaScript graph drawing library
sigma.js is an open-source lightweight JavaScript library to draw graphs, using the HTML canvas element. It has been especially designed to:

Display interactively static graphs exported from a graph visualization software - like Gephi
Display dynamically graphs that are generated on the fly
canvas  graph  html5  javascript  visualization  js  data  html  webdev  frontend  library 
9 weeks ago by sunpig
envision - demos
Envision.js is a library for creating fast, dynamic and interactive HTML5 visualizations.
js  javascript  graph  chart  canvas  html  css  visualization  data  library  design  web  webdev  frontend 
9 weeks ago by sunpig
Introduction to JavaScript Source Maps - HTML5 Rocks
Have you ever found yourself wishing you could keep your client-side code readable and more importantly debuggable even after you've combined and minified it, without impacting performance? Well now you can through the magic of source maps.
js  javascript  sourvce  map  sourcemap  debug  tool  firebug  webkit  compress  minify 
10 weeks ago by sunpig
About HTML semantics and front-end architecture – Nicolas Gallagher
When you choose to author HTML and CSS in a way that seeks to reduce the amount of time you spend writing and editing CSS, it involves accepting that you must instead spend more time changing HTML classes on elements if you want to change their styles. This turns out to be fairly practical, both for front-end and back-end developers – anyone can rearrange pre-built “lego blocks”; it turns out that none can perform CSS-alchemy.
html  css  js  javascript  stack  webdev  frontend  semantics  oocss  architecture  structure  module  reuse  necolas  nicolasgallagher  from twitter
11 weeks ago by sunpig
cujojs/curl
curl.js is much smaller than other AMD loaders. Less than 1/2 the size of the others in the list above. It's able to achieve this via a Promises-based design. (Promises are another CommonJS proposed standard.)

curl.js communicates with it's plugins via Promises, rather than a simple callback function. This allows proactive error handling, rather than detecting problems via a timeout, which can be tricky to set correctly. curl does this in a backwards-compatible way so AMD-compliant plugins will still work in curl.
cujo  curl  loader  amd  async  module  js  javascript  require  commonjs  promise  define  exports 
11 weeks ago by sunpig
Kartograph – rethink mapping
Kartograph is a new framework for building interactive map applications without Google Maps or any other mapping service. It was created with the needs of designers and data journalists in mind.
kartograph  mapping  cartography  data  visualization  map  svg  js  javascript  vector  diagram 
11 weeks ago by sunpig
Responsive News - Cutting the mustard
RT @brad_frost: Absolutely fantastic read about responsive web design and devices support: Related: ...
bbc  news  design  webdev  frontend  mustard  responsive  adaptive  layout  speed  js  javascript  amd  module  detect  browser  support 
12 weeks ago by sunpig
sql.js
RT @kripken: sql.js: SQLite compiled to JS using Emscripten
sql  sqlite  js  javascript  emscripten  c  programming 
12 weeks ago by sunpig
Announcing jQuery Mobile 1.1.0 RC1 | jQuery Mobile
Fixed position toolbars in jQuery Mobile 1.1 -- doing it right
jquery  mobile  jqm  js  javascript  webdev  frontend  layout  fixed  position  library 
february 2012 by sunpig
Stop paying your jQuery tax
RT : "Stop paying your jQuery tax" - discussion of jQuery non-blocking patterns -
jquery  stackoverflow  js  javascript  optimization  perfgormance  ready  documentready  onload  footer  from twitter
february 2012 by sunpig
the Performance Golden Rule | High Performance Web Sites
Steve Souders (@souders) revisits the web Performance Golden Rule: (TL,DR: FRONTEND)
souders  performance  wpo  optimization  frontend  dev  js  javascript  css  image  speed 
february 2012 by sunpig
« earlier      

related tags

!!  #ecmascipt  #javascript  0ms  1kb  1ms  3d  10ms  37signals  a11y  aarongustafson  aaronnewton  about  absolute  accelerometer  accent  access  accessibility  accsssibility  action  activedescendant  activeperl  activity  adactio  adaptive  adbice  addevent  addlistener  addon  address  addyosmani  adjust  adobe  ads  advert  adverts  advice  agent  ajax  ajaxian  ala  alexrussell  algorithm  algorithms  alignment  alistapart  alternative  amazon  amd  ampersand  analyse  analysis  analytics  anatomy  android  andyclarke  andycroll  animated  animation  antipattern  apache  api  app  appcache  appengine  appenginejs  apple  application  applicationcache  apply  appstore  architecture  architeture  archive  argument  arguments  array  art  article  articles  artifact  arugment  asp  asp.net  aspnet  aspnetresources  assets  assistive  associative  async  asynchronous  atlas  attitude  audio  auth  authentication  autocomplete  automated  automation  autosuggest  available  average  awesome  aws  backbone  backgone  background  backup  badge  balance  bang  bankersbox  bar  basecamp  basics  battery  bayeux  bayjax  bbc  bdd  beacon  beautifier  bedrock  beentheredonethat  beginner  behaviour  ben  benalman  bencherry  benchmark  bennadel  bestpractice  billscott  bin  bind  bing  bit-101  blackberry  blind  block  blocking  blog  blogoscoped  blur  bobbyvandersluis  bocoup  bodyguard  bom  book  bookmarklet  boolean  boomerang  border  bracket  bradfrost  break  brianfling  brooks  brothercake  browser  browserdetection  browsers  browserscope  brucelawson  bryanrieger  bubble  bubbling  bug  bugs  build  buildpack  bundle  business  busy  byte  bytecode  c  c#  c++  cabel  cabelsasser  cache  caching  caja  calculate  calendar  calhenderson  call  callback  camera  canvas  capabilities  capability  capistrano  cappucino  caption  capture  card  career  caridypatiño  cartography  casehardened  casestudy  catch  cdd  cdn  cedar  certificate  chain  chakernakhli  change  charlesjolley  chart  check  checking  choice  choose  chrisheilmann  christianheilmann  chrome  chunk  ci  class  classical  clean  client  clientcide  clientside  closure  cloud  cocoa  code  codeplex  codepo8  codereview  coding  codingstandards  codylindley  coercion  coffeescript  collaboration  collapse  collection  colophon  colour  comet  comic  comma  command  comment  comments  commonjs  communicate  communication  compact  comparison  compatibility  compatible  compilation  compile  compiler  component  compress  compression  compressor  concatenation  conditional  conditionalcomments  confusion  console  construct  consume  content  contenteditable  context  continuousintegration  contract  control  controljs  controller  conversion  convert  cookie  cookies  cool  coordinates  cordova  corners  coverage  cowboy  create  creative  credit  creditcard  crockford  cross  cross-browser  cross-domain  crossdomain  cruisecontrol  crunch  cs  csr  csrf  css  css3  cujo  curl  curriculum  curve  custom  dailyjs  danwebb  daringfireball  data  datasource  datatable  datauri  date  davegeddes  davglass  davidbaron  davidcalhoun  day  days  debate  debounce  debug  debugger  debugging  deck  declaration  decode  decoder  defer  deferred  define  degradable  degradation  del.icio.us  delay  delegate  delegation  delete  delicious  demo  deploy  deployment  dereference  describe  design  desktop  despair  detect  detection  detector  dev  developement  development  developmenty  deveopment  device  devicewith  dhh  dhtml  diacritic  diagram  dialog  dictionary  digg  dimension  dionalmaer  disabled  display  django  dns  do  doc  docco  document  documentation  documentready  documentwrite  dojo  dom  domain  domready  domscripting  domstorage  dope  double  douglascrockford  download  drag  dragdrop  dragonfly  draw  drawing  drop  dry  dust  dustindiaz  dynamic  ebook  ec2  ecmascipt  ecmascript  ecmascript5  edit  editor  education  effects  efficiency  effort  element  eloquent  em  embed  ember  emitter  emscripten  enable  encapsulation  ender  endpoint  engine  enhacement  enhance  enhancejs  enhancement  enumerable  environment  enyo  eolas  epub  ericmiraglia  error  es  estimate  ethanmarcotte  etherpad  eval  event  eventdelegation  events  ever  evercookie  evolution  example  examples  exception  execure  execute  execution  expand  experiment  expires  expiry  explanation  export  exports  expose  expression  ext  extend  extension  external  extra  extras  f5  facebook  failure  fallback  fallthrough  false  falsy  fashion  fast  feature  featuredetection  feedback  ff  fiddler  field  fields  figure  filament  filamentgroup  file  filemane  files  filesystem  film  filter  find  finger  firebug  firefox  fittest  fix  fixed  flash  flashblock  flick  flickr  fling  float  flow  fluid  focus  fogcreek  fold  folding  font  font-face  footer  for  forabeautifulweb  foreach  forever  forgery  form  format  formatter  formatting  forms  forward  fout  frame  framework  frankthuerigen  freak  french  front-end  fronteers  frontend  frontent  fuckingweird  full  fullscreen  function  functional  functionality  functions  funny  ga  gae  game  gardget  garethheyes  gears  geeknotes  gender  generator  geo  geolocation  gesture  get  getelementsbyclassname  getUserMedia  gezlemon  gif  gilde  gilesbowkett  gis  github  glennjones  global  globalization  goodpractice  google  googleanalytics  googlecode  googlemaps  gps  graceful  graded  gradedbrowsersupport  graph  graphics  greasemonkey  grid  group  gruber  gui  guide  guild  gwt  gzip  hack  hacking  hacks  hand  handler  handlers  handling  handset  harmony  hash  hashbang  hashchange  hashtable  haskell  hcalendar  hcard  hci  header  height  help  heroku  hidden  hide  highlight  hijax  hilite  hints  history  hit  hmlhttprequest  home  homescreen  host  hosting  hotness  hover  howto  ht  html  html5  html5doctor  html5shim  http  httparchive  hypenation  hyperlink  hypertext  hyphen  i18n  ianhixie  iceland  icon  identification  identify  idle  ie  ie6  ie7  ie8  ieblog  iframe  iife  image  imagequality  images  img  imge  immediately  implementation  import  importnode  include  incompatibilities  indent  index  indexeddb  indexof  indicators  information  inheritance  init  injection  inline  innerhtml  input  insert  insertAdjacentHTML  inspector  inspiration  install  instanceof  instatiation  interactiondesign  interactivity  interation  interface  intermediate  internationalization  internetexplorer  interpreter  interval  interview  introduction  invoked  ios  ipad  ipc  iphone  ipod  isaacs  isaacschlueter  isarray  isolation  ixd  jackslocum  jacobwaller  jamesaylett  jamesburke  jamesedwards  jamesmcparlane  jamespearce  jasmine  java  javascript  javascriptcore  javascripts  javsscript  jaws  jed  jeremykeith  jeresig  jiffy  job  joeclark  joel  joelonsoftware  joelspolsky  joestump  joezim  johnallsop  johnresig  johnresign  jonathanstark  jongalloway  jpg  jqm  jquery  jquerymobile  jresig  js  js1k  jsbin  jsdoc  jsgi  jsgif  jslint  jsmin  json  json-p  jspnp  juriyzaytsev  justification  jvm  kangax  kartograph  kentbrewster  key  keyboard  keydown  keynote  keypress  keyup  keyword  kingsofcode  klauskomenda  kriszyp  krpano  label  labjs  lang  language  languages  lanyrd  large  latency  launch  layer  layout  lazyload  leak  learning  legal  lettering  leverage  lh  lib  libraries  library  libs  lift  limit  line  link  linkedlist  links  list  listen  listener  literal  live  lmorchard  load  loadbalancing  loader  loading  local  localization  localstorage  log  logging  long  lookup  loop  loops  love  lunh  lzw  mac  macromedia  magazine  maintainability  maintainable  maintenance  management  manifest  manifesto  manipulation  manmonth  map  mapping  mapreduce  maps  margin  mario  mark  marknormanfrancis  markpilgrim  markwubben  mashup  masteringnode  math  mathiasbynens  matrix  max-width  maxmind  mdn  measure  measurement  media  mediaquery  memo  memoization  memoizer  memory  memoryleak  menu  merge  messageformat  meta  method  methodology  methods  michaelmahemoff  microevent  microformat  microformats  microjs  microsoft  mikewilcox  milannegovan  min  mini  minification  minifier  minify  mirror  mobiel  mobile  mobilesafari  mocha  mock  modal  model  modernizr  modular  module  modulepattern  mod_gzip  mod_rewrite  momentum  monad  mongo  monitor  monkey  monkeypatch  montecarlo  month  mootools  mostlyevil  motion  mountain  mouse  movabletype  movie  mozilla  ms  mt  music  mustache  mustard  mvc  myth  mythbuster  namespace  narwhal  native  navigation  ncz  necolas  negative  nest  nesting  netflix  netmagazine  nettuts  network  neuralnet  new  news  newtwitter  newzealand  nicholaszakas  nicolasgallagher  nifty  nihilogic  nike  nitobi  nl  no-js  node  node.js  nodejs  nodesitepen  noise  nokia  none  nope  noscript  notation  npm  null  nullify  number  nz  obfuscation  object  objective-c  objective-j  objectorientation  objects  observer  obtrusive  ocr  offline  olistudholme  onbeforeunload  onclick  oninput  onkeydown  online  onload  onresizeend  onscrollend  oo  oocss  oop  open  opensource  openweb  opera  operator  optimization  optimize  optional  order  oreilly  organization  organize  orientation  os  osx  overlay  overview  paciello  package  pad  padding  page  pagespeed  pageweight  pagination  panel  panorama  parallax  parallel  parameter  parse  parseint  parser  parsing  particletree  paste  pastrykit  patent  path  pathchange  patrickhaney  pattern  patterns  paucal  paulirish  payment  pdf  percentage  perfgormance  performance  perl  permalink  persist  persistence  persistent  petermichaux  peterpaulkoch  phantom  philo  philosophy  phishing  phone  phonegap  phonenumber  photography  photos  php  phpied  pi  picker  pie  pintura  pipes  pixel  pjax  placeholder  platform  player  pleasure  plugin  plural  png  policy  polyfill  popstate  popularity  popup  port  position  post  poster  postmessage  powerpoint  ppk  practice  pre  prefetch  preload  prepare  presentation  presentations  preventdefault  privacy  private  probability  process  processing  production  programming  progressive  progressiveenhancement  project  promise  properties  property  protection  proto  prototype  proxy  public  publish  push  pushstate  px  python  query  queryselectorall  querystring  quirksmode  qunit  quote  rails  rainbow  rant  rate  ratinfestation  read  readability  reader  reading  ready  realtime  rearrange  rebeccamurphey  rebeccamurphy  record  rect  recursion  redis  reference  reformat  refresh  regex  regexp  regularexpression  reidburke  reinhardt  related  relative  rem  remote  remove  removelistener  remysharp  render  repeat  replace  replacement  replacestate  reporting  requestanimationframe  require  rescue  reset  resize  resolution  resource  resources  response  responside  responsive  ress  rest  restriction  retina  return  reuse  review  rewrite  rhino  richardfink  richtext  rickstrahl  rinkmark  roaming  rotate  route  routes  routing  ruby  run  runner  ryancampbell  ryancarson  ryandahl  ryangrove  s3  safari  safety  samples  samy  sandbox  sanitize  satay  save  sb  scalability  scalable  scale  schema  schill  scope  scoped  scottjehl  scottmccloud  scottschiller  scratch  screen  screenreader  screenreaders  script  script.aculo.us  scriptaculous  scripting  scroll  scrollend  scrollmation  scrolltop  search  searchmonkey  security  securty  selection  selector  selenium  self  semantics  sencha  separation  separator  server  serverjs  serverside  service  sessionsorage  set  settimeout  setup  sexy  sfw  sfx  shadow  sharejs  shauninman  shell  shichuan  shim  shinkansen  shiv  shortcut  show  shrink  sidebar  sifr  silverlight  simonwillison  simple  simulate  single  site  sitepen  size  sleep  slexaxton  slicehost  slide  slides  slideshare  slow  small  smashing  smashingmagazine  snook  socialcast  socialnetwork  soft  software  some  sort  souders  source  sourcemap  sourvce  space  spec  specialeffects  specification  speech  speed  spof  spolsky  sprite  sproutcore  sql  sqlinjection  sqlite  src  ssl  stack  stackoverflow  stage  standalone  standard  standards  starhack  start  starter  state  statement  static  statistics  status  stevefaulkner  stevesouders  stevey  steveyegge  sticks  stop  stopevent  stopmotion  stoppropagation  storage  store  storyboard  stoyanstefanov  strategy  stream  strftime  strict  string  structure  stuartlangridge  stub  style  stylesheet  subclass  sugar  suite  summary  sun  support  svg  sweet  swfir  swiffer  swipe  switch  synchronous  syndication  synergy  syntax  synthesizer  systems  tab  tabindex  table  tablet  tag  tagroll  tags  tail  talk  tantek  tap  target  taskspeed  tdd  tdn  tech  technics  technique  teddziuba  template  templating  termplate  ternary  test  testing  testswarm  text  textarea  textmate  theme  then  thirdparty  this  thread  threejs  tidy  tight  tile  tilt  time  timelapse  timeout  timer  timing  tip  tips  titanium  tjholowaychuk  toddkloots  toggle  tomdale  tommyogden  tomtrenka  tool  tools  tooltip  touch  touchend  touchmove  touchstart  touchy  tourism  tower  toy  trace  tracing  tracker  tracking  transfer  transform  transformation  transition  translate  translatiion  travis  trello  trentwalton  tron  true  trust  truth  try  turntable  tutorial  tutorials  tweeteffect  twitter  type  typekit  typography  ua  ufo  ugc  uglify  ui  underscore  unit  unittest  unittesting  unobtrusive  unpack  unused  update  upload  uri  url  usability  usage  useful  user  userexperience  userscript  utilities  utility  ux  v8  validation  validator  value  vanmiranda  var  variable  variables  vasilis  vector  velocity  version  video  view  viewport  viewsource  virtualmachine  virtualserver  visibility  visible  vista  visualization  visualstudio  vitamin  vm  vs  w3c  wac  walkthrough  warning  was  waterfall  wav  wave  web  web2.0  webapp  webapplicationstack  webapps  webbed  webdesign  webdev  webdirections  webexponents  webforms  webgl  webkit  webpage  webperf  webserver  website  websockets  webstandards  webtech  wedje  wft  whatwg  when  while  wide  widget  widgets  width  wikipedia  window  windows  wire  wireframe  wolfire  workers  wpo  wpochat  wrap  wrapper  write  xbrowser  xhr  xhtml  xml  xmlhttprequest  xpath  xray  xsrf  xss  yahoo  yatil  year  yep  yepnope  yepnote  yql  yslow  yui  yui-ext  yui3  yuicompressor  yuitest  zachleat  zero  zero-width  zip  zoom  zynga 

Copy this bookmark:



description:


tags: