HN user

ndunn2

59 karma
Posts7
Comments24
View on HN

When you reach a certain size, no amount of due diligence on your part can ensure that your changes aren't going to break something in some other part of the code base without automated tests. Do you think Google or Amazon gets by without unit tests?

Looks very cool. There are a few typos littered throughout the page that the author should fix:

accessility -> accessibility maet -> met

exactly the example I was going to cite. In Scala this would be

val b = a.exists(str=>str.forall(_.isLowerCase))

or

val b = a.exists(x=>x.toLowerCase() == x)

There's no way I'd start using functional programming in Java if it's this clunky. Just stick with Scala.

#2 can be replaced with a 'tree' command

#3 doesn't work for me on Mac OSX with Bash; the ! is interpreted as the last command. Not sure if this works in other shells

#4 is clever, but I would think if you're doing something that complex that you need to recall time and time again you'd make an alias for it.

#8 is clever. I love AWK. But not sure when I'd ever use this.

The rest were pretty bleh to me. Always looking for new shell kung fu but unfortunately this list did nothing for me.

You didn't learn any lessons about.. how well it works? I had very poor success in my apartment, but I'd like to try it outside.

"Why be stuck in two dimensions when you can fly in three!". I don't know about the rest of you, but given how awful people drive while constrained to two dimensions, I'd be truly terrified to see the state of things if travel like this became ubiquitous.

This is awesome. But the colors seem to interact badly with the terminal backgrounds in Mac OSX. I also can't get any of the function shortcuts (F8 = pastebin) to work; I just get gibberish instead. Also I get a crash when I resize the window:

Traceback (most recent call last): File "/usr/local/bin/bpython", line 8, in <module> load_entry_point('bpython==0.9.7', 'console_scripts', 'bpython')() File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 1739, in main banner=banner) File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 1636, in curses_wrapper return func(stdscr, args, *kwargs) File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 1706, in main_curses clirepl.repl() File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 996, in repl inp = self.get_line() File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 589, in get_line key = self.get_key() File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 567, in get_key self.idle(self) File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 1579, in idle do_resize(caller) File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 1591, in do_resize curses.endwin() _curses.error: endwin() returned ERR

This is so awful to look at I can't even comprehend.

Maybe in 2004 screen real estate was at a premium, but a lot of developers I know now have at least two high resolution monitors, if not a single ultra high (2560x1200) resolution monitor. I'd gladly take the standard monospaced fonts any day.