njharman

- friends
1,352 link karma
11,227 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • Six-Year Club

    Verified Email

Best Way to Catch Exceptions in Python by brownheadin badcode

[–]njharman 0 points1 point ago

You can have more than one except clause to catch different types of exceptions.

GNU false(1) implementation by fluicpanain programming

[–]njharman 8 points9 points ago

I disagree highly that "shell" script is more elegant than executable.

What shell? Do all shells a user may ever use have behavior you are assuming? It's no longer portable (only works on OS with shells, i.e. not win32). It's slower, dependent on environment, and confusingly tricky.

It sucks.

[Google-vs-Oracle] After near knockout by Google on copyright claims, Oracle now claims to copyright documentation. by kristovaherin programming

[–]njharman 0 points1 point ago

APIs are a more than mapping syntax to semantics. They are a collection of names, words and the fixation of a creative work (see US copyright law for significance of that phrase). Or, at least Oracle's lawyers want jury to think that.

syntax and semantics aren't copyrightable AFAIK, IANAL.

[Google-vs-Oracle] After near knockout by Google on copyright claims, Oracle now claims to copyright documentation. by kristovaherin programming

[–]njharman -1 points0 points ago

Explain why technical vs "woo woo" has any bearing on copyright / infringement thereof?

Why Erlang? by notadutchboyin programming

[–]njharman 0 points1 point ago

OOP "scripting" language would pick up on its ideas and extend it

Python; gevent, gingko, ZeroMQ is definitely getting there. Not cause they're trying to copy Erlang, just cause they're trying to solve the same sorts of problems.

Foo, Bar, and Baz: Not Having It by dogweatherin programming

[–]njharman 55 points56 points ago

They convey that they are "placeholders" for things so unimportant as to not warrant names.

Do not discount the value of "lack of information" and "reducing noise to the background" provide.

Google's opening slides in the trial v. Oracle by badlogicgamesin programming

[–]njharman 9 points10 points ago

It would have been safer to download PostgreSQL.

Python's Hardest Problem by jknuppin programming

[–]njharman -1 points0 points ago

To take advantage of multicore systems, Python must support multiple threads of execution.

That is untrue. Many systems are designed to run with multiple processes. It is a good model in many cases. Esp when you need to scale past one machine, or support failover. Both of which are true for most stuff I work on that threading is not very interesting to me.

Graphical view of HackerNews polls on favorite/ disliked programming languages by attractivechaosin programming

[–]njharman -1 points0 points ago

easiest to learn

That is a large part of why it's disliked by many developers. The Civic is an easy to drive car. But, F1 drivers would really dislike them (and their drivers) if they were allowed into races.

Graphical view of HackerNews polls on favorite/ disliked programming languages by attractivechaosin programming

[–]njharman -3 points-2 points ago

Lots of selection bias. But also because Python is structured and "works" the way they think. There is an impedance match.

Not everyone thinks the same. Languages are not good. Languages are good for a particular programmer. (Some languages aren't good for anyone).

Graphical view of HackerNews polls on favorite/ disliked programming languages by attractivechaosin programming

[–]njharman 7 points8 points ago

c-based languages

If that's your sample set, liking Java is understandable.

Graphical view of HackerNews polls on favorite/ disliked programming languages by attractivechaosin programming

[–]njharman 6 points7 points ago

People often (if not always) like things they know and dislike things they don't know.

How does that make poll invalid? It's a poll of what people like/dislike regardless of reason.

“How much math do I need to know to program?” Not That Much, Actually. (with a D&D combat sim example) by AlSweigartin programming

[–]njharman 2 points3 points ago

Try reading the article and not just the title next time.

Clownshoes available in sizes 2^10+1 and up! by gthankin programming

[–]njharman 42 points43 points ago*

No this is classic. Thus deserving exposure to every generation of developers.*

  • apparently the generation size of developers is <~ 1yr.

Elixir: Erlang VM language with pattern-matching, macros and Clojure-style protocols by zemin programming

[–]njharman 0 points1 point ago

(notice that indexes in Elixir data-types start with 1):

Why? Are there lots of lang out there I don't know about that do this?

Understanding What It's Like to Program in Forth by hamburglaarin programming

[–]njharman -1 points0 points ago

As brain exercise it far surpasses cards, crosswords or Sudoku

That line lessons my interest in Forth. I program to solve problems, to get things dones, and more than anything document a system so that I or someone else can understand and iterate it. I hate brain teasers, puzzles, crosswords, jepordy, and the like.

Not saying those are wrong, or that people don't enjoy "clever" programing. Just that is very, very far from what I want to do everyday.

How we name in software by larsyenckenin programming

[–]njharman 1 point2 points ago

Refactor. I plan on spending 50% of my time refactoring my initial hacked-up test code. A lot of which is restructuring and renaming.

[edit: if you don't know from experience. The 50% refactoring investment is totally worth it. As it saves 200%+ time in debugging and maintenance.]

I very rarely stress on names 1st go around. It's always much easier and clearer to name things after I've gotten the "big picture". [the big picture you thought existed at start/"design" is never the same at end]

Uses of git by sundar22inin programming

[–]njharman 1 point2 points ago

Done this with SVN for ages. Fine for personal server or very small system. But, doing much more than that you should be using real configuration tool like Chef or Puppet.

Made in 1994, and this is still amazing by headchemin programming

[–]njharman 13 points14 points ago

Meh, evolutionary algorithms are mostly hype

Nature would tend to disagree.

Three dying platforms: Flash, Silverlight, Win32 by henk53in programming

[–]njharman 2 points3 points ago

The industry has moved on.

The industry moves in circles/cycles. We've been through several iterations in my 40 years.

HTML browsers was a dumb terminal, the whole internet revolution of late 90's was repeat of big centralized iron. The browser is now advancing into thick client with HTML5. After that we'll go through another peer 2 peer / shun the centralized server cycle.

Three dying platforms: Flash, Silverlight, Win32 by henk53in programming

[–]njharman 3 points4 points ago

It dies every other week.

DOA actually.

Give me that one command you wish you knew years ago. I'll start. by skohin linux

[–]njharman 5 points6 points ago*

sorry, this has been archived and can no longer be voted on

inputrc and vi mode in bash.

Combined with my thinkpad like keyboard I never move my hands from home row except to grab a sip from my frothy pint'o'beer.

part of GNU readline http://tiswww.case.edu/php/chet/readline/readline.html My current .inputrc

set editing-mode vi
set keymap vi-command
# For vi-command mode
"j": history-search-backward
"k": history-search-forward
set keymap vi-insert
# For vi-insert mode
"\e[A": history-search-backward
"\e[B": history-search-forward

# ctrl-a and ctrl-e muscle memory
"\C-a": beginning-of-line
"\C-e": end-of-line

#set completion-ignore-case On
set completion-query-items 250
set mark-symlinked-directories On
set show-all-if-ambiguous On
set show-all-if-unmodified On
set skip-completed-text on

CoffeeScript Means Giving Up on JavaScript by mwbizin programming

[–]njharman 0 points1 point ago

sorry, this has been archived and can no longer be voted on

That is my one complaint with coffeescript. Other than that it's flippin great.

Deploying Django by rdeggesin programming

[–]njharman 4 points5 points ago

sorry, this has been archived and can no longer be voted on

Yeah, you need some fucking sysadmin/devops/deployment engineers. Programming is really a small part of "software".

view more: next