recentpopularlog in

mcherm : nedbatchelder   39

Ned Batchelder: Mutmut
Need Bachelder tries out a mutation test tool for evaluating his test suite. Finds it helpful but a lot of work each time it is run.
NedBatchelder  testing  unittest  programming  python 
march 2019 by mcherm
Ned Batchelder: Finding your first OSS project
Places to go to find an open source project to contribute to.
opensource  NedBatchelder  via:NedBatchelder 
january 2018 by mcherm
Ned Batchelder: Beginners and Experts
All programmers swap back and forth between states of extreme frustration and extreme exultion (picture). The difference between beginners and experts is that experts are used to it.
programming  softwaredevelopment  via:reddit  NedBatchelder 
september 2017 by mcherm
Ned Batchelder: Finding fuzzy floats
A data structure allowing you to use floating point numbers as hash keys but still allow a degree of "fuzzy matching" where numbers that are close (but not exact) count as "equal".
datastructures  programming  NedBatchelder  via:NedBatchelder 
july 2017 by mcherm
Ned Batchelder: Breaking out of two loops
A really good example of redesigning code so that something (in this case breaking out of two loops) is made far more clear.
python  programming  NedBatchelder  via:NedBatchelder 
august 2016 by mcherm
Ned Batchelder: How I make presentations
Some TEXT BASED tools that he uses to make slides. Check out that "cupid" link, for instance.
speaking  NedBatchelder  via:NedBatchelder 
may 2015 by mcherm
Ned Batchelder: Kindling projects
Ideas for simple projects for beginners to get started.
programming  NedBatchelder  via:NedBatchelder 
february 2015 by mcherm
Ned Batchelder: GitHub monoculture
People act like GitHub is the only place where code projects can exist. It isn't.
programming  softwaredevelopment  via:reddit  NedBatchelder 
may 2014 by mcherm
Ned Batchelder: Range overlap in two compares
How to tell whether two ranges overlap. You might try coding this with 4 comparisons, but only 2 are needed. Shows how problem solving techniques can be used to great effect.
math  algorithm  programming  NedBatchelder  via:NedBatchelder 
october 2013 by mcherm
Filter a list into two parts: Ned Batchelder
An excellent overview of different (improving) solutions to a straightforward programming problem (in Python).
programming  python  via:NedBatchelder  NedBatchelder 
june 2013 by mcherm
Ned Batchelder: Selecting randomly from an unknown sequence
Algorithm for choosing a random line from a file (of unknown length) without reading the file twice.
algorithms  programming  NedBatchelder  via:NedBatchelder 
august 2012 by mcherm
Ned Batchelder: Recursive dogma
He asked why his recursive function failed with 2**30 as input. They jumped on him as doing it wrong. But turns out he was allocating memory for lists where he could instead have been computing the answer in closed form (either with or without recursion).
via:NedBatchelder  programming  algorithms  functional  NedBatchelder 
may 2012 by mcherm
Ned Batchelder: Global Django requests
A couple of ways to stash a "per-thread" object. Native support for ThreadLocal is one; building a dictionary keyed by Thread and storing it globally is another; this adds walking up the call stack until you find an instance.
programming  threading  concurrentprogramming  python  via:NedBatchelder  NedBatchelder 
august 2010 by mcherm
IE8 XSS filter: what does it really do? - Stack Overflow
IE8's XSS filter is a real pain when you try to do some unusual but legitimate things. Furthermore, it can also be abused and thus creates a security loophole!
webdesign  webdevelopment  ie  xss  security  via:NedBatchelder  NedBatchelder 
january 2010 by mcherm
Ned Batchelder: Obama's special joke
Special Olympics - how it's different from a normal sporting event.
via:NedBatchelder  NedBatchelder  handicaps 
april 2009 by mcherm
Ned Batchelder: You asked for it
Put a page in your webapp that generates an exception. Then you can test your logs.
webdevelopment  via:NedBatchelder  NedBatchelder  mypostings 
february 2009 by mcherm
Ned Batchelder: Dieting cavemen on twitter
Cavemen ate everything they found, but now that food is easy and plentiful we need to learn how to diet. Similarly, people have an inherent tendency to try to learn all information they can get their hands on, but now that information is easy and plentiful we need to learn how to filter it.
socialcomputing  information  NedBatchelder  via:NedBatchelder 
january 2009 by mcherm
Weather forecasting: Ned Batchelder
How to get hourly weather forecasts from the national weather service.
weather  science  via:NedBatchelder  NedBatchelder 
december 2008 by mcherm
Internet explorer mystery #1376: Ned Batchelder
Technically, it's a bug in Firefox: Firefox does something sensible but the JavaScript language definition requires something completely ridiculous. Either way, it's an interesting bit of JavaScript knowledge about hoisting. [...] Later, in response to many other comments, we find the true answer: the ridiculous case is undefined in JavaScript (technically, it is illegal but it not required to be a syntax error). Firefox's choice of how to interpret it is far superior.
mypostings  programming  programminglanguages  languagedesign  javascript  ie  firefox  browsers  bugs  via:NedBatchelder  NedBatchelder 
december 2008 by mcherm
Ned Batchelder: My oldest code still running
Ned Batchelder's oldest code still running. I wonder what mine is?
history  computers  personal_net  via:NedBatchelder  NedBatchelder 
november 2008 by mcherm
Judge orders five detainees released
A very conservative judge orders 5 Guantanamo detainees released, since there isn't and never has been any evidence against them. My comment is that I think these people were kept for 7 years without evidence because certain people in power had a great fear of being seen to be wrong.
mypostings  civilrights  rights  politics  via:NedBatchelder  NedBatchelder 
november 2008 by mcherm
Ned Batchelder: A server memory leak
An account of the process of tracking down a serious bug (a memory leak in this case). The procedure followed is instructive.
testing  debugging  programming  python  django  NedBatchelder 
september 2008 by mcherm
Evil apple: Ned Batchelder
Apple is getting criticized for booting iPhone applications from the Apple store -- because developers have no way to know whether their app will be booted. But now it's worse: Apple started telling people that the fact they've been booted is under non-disclosure, so they can't even talk about it!
apple  stupid  nda  softwaredevelopment  censorship  iphone  law  ip-law  NedBatchelder 
september 2008 by mcherm
Ned Batchelder: Competition inside corporations?
Simple question: why is our economy run via competition on the large scale, but within a corporation it is run as a planned economy? Why are these different?
NedBatchelder  economics  startup 
september 2008 by mcherm
Self-diagnosing software: Ned Batchelder
Build bits into your application to be proactive about reporting errors: if something is wrong, it should make suggestions about just what the problem might be. This will save developers lots of time dealing with "environment issues".
NedBatchelder  programming  debugging 
september 2008 by mcherm
Ned Batchelder: Spore creature creator and steganography
Spore creature creator allows you to save images of your creature, and the image can be loaded in the game to get the creature. They're burying the data in the last few bits of the image. There's a data area in PNG, but this has a certain coolness factor.
spore  steganography  NedBatchelder  encryption  security 
june 2008 by mcherm
Subversion's biggest hole: Ned Batchelder
Ned complains about the lack in Subversion of a server-side way to ignore all files with a certain extension (wherever they may reside). I don't get why the client-side feature won't do. He also (to my surprise) thinks someday git will take over.
mypostings  NedBatchelder  subversion  git 
june 2008 by mcherm
Ned Batchelder: 280slides - an application written in objectiveJ
Yes, you can actually build a language interpreter in Javascript so that your language runs on the browser.
javascript  languages  languagedesign  browsers  NedBatchelder 
june 2008 by mcherm
Ned Batchelder: Wicked hack: Python bytecode tracing
Bytecode hacking in Python used to build coverage tools that operate at the bytecode level not the line-of-source level.
programming  python  testing  bytecode  NedBatchelder  coverage 
april 2008 by mcherm

Copy this bookmark:

to read