sunpig + code   232

Complication is What Happens When You Try to Solve a Problem You Don't Understand | SIGPWNED
The best way to manage complication is to avoid creating it in the first place. If you find yourself in a mindless change → pray → run loop, you don’t understand your code well enough to be editing it. Stop what you’re doing, actually get up and walk away from the keyboard, think about what you’re trying to do, and don’t come back to the keyboard until you understand exactly what you’re doing and how to do it. Obviously there’s some slack here for debugging, but it’s not controversial to say that you shouldn’t change code you don’t understand, even — especially? — when it’s your own.
complexity  programming  complication  code  simplicity  problem  understanding  philosophy 
26 days ago by sunpig
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
PHP: a fractal of bad design - fuzzy notepad
Virtually every feature in PHP is broken somehow. The language, the framework, the ecosystem, are all just bad. And I can’t even point out any single damning thing, because the damage is so systemic. Every time I try to compile a list of PHP gripes, I get stuck in this depth-first search discovering more and more appalling trivia. (Hence, fractal.)

PHP is an embarrassment, a blight upon my craft. It’s so broken, but so lauded by every empowered amateur who’s yet to learn anything else, as to be maddening. It has paltry few redeeming qualities and I would prefer to forget it exists at all.
php  language  design  feature  broken  software  code  programming  rant  reference  security  fault  bug  error  array 
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
How Not To Sort By Average Rating
PROBLEM: You are a web programmer. You have users. Your users rate stuff on your site. You want to put the highest-rated stuff at the top and lowest-rated at the bottom. You need some sort of "score" to sort by.
sort  sorting  programming  rating  code  algorithm  rate  vote  statistics  normal  wilson  distribution  confidence  review 
8 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
joho/7XX-rfc - GitHub
RT @garannm: DUDE. The 700-block of HTTP status codes should totally be a real thing. h/t @gnb
development  fun  http  status  code  7xx  700  error  developer  web 
january 2012 by sunpig
Ask Slashdot: Best Certifications To Get? - Slashdot
RT @dangoor: "programming is quite literally writing" – one of few Slashdot comments worth linking directly to
language  learning  education  programming  code  writing  slashdot 
june 2011 by sunpig
Our Best Practices Are Killing Us
(/cont) The full presentation is much better than the slide deck alone (). Really, watch it.
code  css  design  web  nicolesullivan  stubbornella  html  best  practice 
may 2011 by sunpig
« earlier      

related tags

3.2  3.5  7xx  ab  abtesting  accelerate  accessibility  activeperl  activerecord  activestate  activity  addevent  address  adult  age  agent  agile  airplane  ajax  ala  alancox  algorithm  algorithms  alistapart  analyse  analysis  analytics  ancestor  android  anildash  animation  antipattern  ants  apache  api  app  apple  application  arbitrary  architecture  architeture  array  articles  asp  asp.net  aspnet  aspx  assemblies  assert_response  associative  async  asynchronous  atlas  attack  autocomplete  automation  autosuggest  awareness  back  backbone  bar  based  basics  batch  bbc  bdd  beautifier  benalman  bencherry  benjaminpollack  bentilly  best  bin  bind  block  blog  bobbyvandersluis  bocoup  book  bookmark  branch  broken  brooks  browser  browsers  brucetognazzini  bug  bugs  build  business  button  c  c#  caching  calendar  callback  canvas  career  cargocult  certification  character  charles  chart  cheatsheet  check  child  chrisheilmann  ci  clean  client  clone  closure  code  codegen  codemagic  codereview  codesmith  coding  codingstandards  collaboration  color  colour  colouring  comma  command  commandline  commands  comments  commonjs  compare  comparison  compatibility  complexity  complication  compressor  computing  concentration  concurrency  confidence  config  confusion  console  content  continuous  continuousintegration  contract  control  cowboy  crockford  cross-browser  cruisecontrol  css  css3  csv  cwe  danwebb  data  database  datatable  date  datetime  davglass  davidgoodger  db  debug  debugger  debugging  declaration  deferred  degradable  delegation  dependencies  dependency  deploy  deployinator  design  designer  desktop  details  detection  dev  developement  developer  development  dhtml  diagram  diff  digital  digitalweb  dinosaur  directory  disco  display  distribution  diy  django  dll  dns  do  documentation  dojo  dom  domainkeys  dope  dotnet  double  dustindiaz  dvcs  ebook  ebs  ecmascript  edit  education  effects  efficiency  effort  eloquent  email  embed  emitter  emscripten  encoding  enhancement  enterprise  enterpriselibrary  environment  eolas  ericmiraglia  ericsink  erlang  error  estimating  etsy  eval  event  events  evidence  evil  example  examples  excel  exception  execute  expect  experiment  expression  extend  extension  extra  extras  fabric  failure  fallthrough  falsy  fast  fault  feature  feedback  fighter  file  files  filter  fix  flash  flickr  flipper  floor  folders  for  fork  format  formatter  formatting  forms  formula  framework  frontend  full  fullscreen  fun  function  functional  funny  g-test  game  games  gaming  ganglia  gangoffour  gardget  garrettdimon  geek  geeknotes  gem  generator  geshi  get  gezlemon  git  github  glennjones  good  goodpractice  google  goto  graphicsmagick  grid  guide  hack  handlers  haskell  height  help  hierarchy  highlight  highlighting  hilite  hints  history  horror  hosting  howto  html  http  httparty  hungarian  hypertext  ide  idiom  idoom  ie  iife  image  imagemagick  images  immediately  implementation  include  indent  indexof  inheritance  injection  inline  innerhtml  insert  install  instruction  instructions  instrumentation  integration  internetexplorer  interpreter  interview  introduction  invoked  ios  isprime  iteration  iterative  jamesshore  java  javascript  javascripts  jaws  jayflowers  jesseliberty  jet  joel  joelonsoftware  joelspolsky  johnallspaw  johnresig  josephcooney  jqm  jquery  jquerymobile  js  jsbin  jsdoc  jsgi  jslint  jsmin  json  keyword  kid  kitteh  knowledgemanagement  komodo  kriszyp  kscottallen  lambda  lanaguge  lang  language  layout  leak  learning  led  legal  lib  libraries  library  license  lift  lighting  link  linkibol  links  listen  literal  load  local  log  logging  lolcat  lolcode  loop  loops  mac  macromedia  maintainability  maintainable  maintenance  make  management  manmonth  map  mapreduce  markup  mashup  master  math  maths  memcached  memory  memoryleak  merge  message  messaging  method  methods  microevent  microformats  microsoft  migration  mikeroberts  mini  minifier  misc  mistake  mitre  mobile  mock  model  modular  module  monad  monkey  monkeypatch  ms  msdn  mssql  mtbf  mttr  multicore  myth  namespaces  narwhal  native  ndepend  nest  nesting  network  networking  nicholaszakas  nicolesullivan  node  nodesitepen  normal  number  obfuscate  object  objectorientation  objects  obscure  observer  odetocode  omfg  onclick  onload  oo  oop  open  opera  operator  optimization  oracle  orange  organization  organize  osx  package  packahe  page  paging  panel  parallel  parameter  pareto  parse  parsing  particletree  paste  patent  patrickcauldwell  pattern  patterns  paulgraham  paulirish  pdb  pearson  pecl  pep  pep8  performance  perl  personal  peterpaulkoch  philosophy  phone  phonenumber  photos  php  phpbb  phpize  physics  picture  planning  plugin  popularity  post  poster  ppk  practice  pre  presentation  prime  princess  principles  private  problem  proc  process  processors  productivity  professional  profile  profiler  prognostication  programming  progressive  project  promise  properties  protolize  prototype  proxy  psychology  ptr  public  pull  pygame  python  qr  qrcode  quality  questions  quick  rails  rainbow  rake  rank  ranking  rant  rate  rating  readable  reader  readme  rebeccamurphey  rebeccamurphy  recovery  red  redgate  reference  reflector  reflextion  reges  regesp  regex  regexp  regularexpression  release  reliability  request  requirements  rescue  reset  resize  resources  response  rest  review  rewrite  rhino  rickstrahl  risk  rotate  routing  rspec  ruby  rvm  ryancampbell  safe  safety  samples  sandbox  sans  sb  scalability  scale  scan  scheduling  schneier  science  scotthanselman  scottschiller  screen  screenreaders  script  scripting  search  secret  security  self  semantic  sencha  senderid  separator  sequence  server  serverjs  serverside  service  settings  sexy  shared  shawnoster  shichuan  shortcode  shrink  sidebar  simonwillison  simple  simpletalk  simplicity  single  site  sitepen  size  slashdot  sleep  slides  slow  smell  snippet  snook  snowleopard  social  software  softweare  some  sort  sorting  source  sourcecontrol  sourcegear  spam  specification  speed  spolsky  spreadsheet  sql  stackoverflow  staging  standards  startup  statement  static  statistics  status  stcuture  steveblank  stevefaulkner  stevesouders  stoyanstefanov  strftime  string  structure  stuartlangridge  stub  stubbornella  style  styleguide  subclass  subversion  sugar  suicide  superstition  svn  sweet  switch  symbol  syntax  systems  tab  table  tag  tags  tdd  teaching  tech  techie  technical  technology  template  templates  termplate  test  testing  text  thirdparty  this  thoughtbot  threat  tidy  time  timescale  tips  tog  tool  tools  trace  tracing  tracking  transform  transformation  transition  translate  tree  trends  tricks  trunk  try  tufte  tutorial  tutorials  types  ua  ui  underscore  understanding  unicode  unit  unittesting  unmaintainable  unobtrusive  unpack  uri  url  usability  usage  useful  user  utilities  utility  ux  validator  var  variable  variables  vcs  velociraptor  version  versioncontrol  violence  vision  vista  visual  visualization  visualstudio  vote  vs  vs.net  vs2005  vsnet  vulnerability  watir  web  webapp  webbed  webdev  webkit  webserver  webservices  webstandards  wedje  while  white  widget  wikipedia  will  wilson  windows  wordpress  work  workflow  wow  writing  xdebug  xkcd  xml  xmlhttprequest  yahoo  yellow  yql  yui  yuicompressor  zen  zero 

Copy this bookmark:



description:


tags: