HNHacker News
TopNewBestAskShowJobs

tcopeland

406 karma · joined August 4, 2010

https://thomasleecopeland.com
submissionscomments
tcopeland··on Military Reading List
In my experience, military web sites are pretty spotty in terms of maintaining links. So for the past decade or so I've been keeping a "list of lists":

https://militaryreadinglists.com/

Always looking for new material if someone spots one I'm missing...

tcopeland··on PMD source code analyzer
At one point Sven Jacob added some data flow analysis. It was interesting stuff; I feel like we could have taken that a lot further. But anyhow, the combination of PMD and FindBugs can find quite a few bugs that would be hard to track down otherwise.
tcopeland··on PMD source code analyzer
I remember you writing that, thanks Keith!
tcopeland··on Rogue One – An Engineering Ethics Story
For many more variations on Star Wars in terms of the modern military, check out Angry Staff Officer's posts:

https://angrystaffofficer.com/category/star-wars/

One of my favorites is "Skywalker on Trial":

https://angrystaffofficer.com/2016/07/11/skywalker-on-trial-...

tcopeland··on Interviewing my mother, a mainframe COBOL programmer
Andrew Turley has given a nice COBOL talk; the title alone - "What We Can Learn from COBOL" - is worth the price of admission:

http://confreaks.tv/videos/goruco2014-what-we-can-learn-from...

tcopeland··on Show HN: Passed ball or wild pitch?
Haha I put that one in there for a buddy of mine who's a big Sox fan :-)
tcopeland··on Show HN: Passed ball or wild pitch?
Thanks! They're getting pulled randomly each time. So far I've been finding videos and adding data manually; it would be interesting to try to get some of the data from some combination of the mlb.com APIs and the YouTube APIs. We'll see!

So far the hardest part has been finding videos appropriate for the companion site - http://hitorerror.com/. I can't seem to hit upon appropriate search terms; I've tried "almost made the play up the middle" and whatnot.

tcopeland··on Startup Technical Diligence Is a Waste of Time

  In which case that start-up succeeding mostly by 
  not giving a shit about any actual business problem 
  and just hiring a group of excellent engineers.
But I think the acquisition amount in these cases will be small; maybe 2x? Anyhow, just enough to pay off obligations, give the founder a little money, and cover the costs of folding the acquired company.
tcopeland··on Rails 5.0: Action Cable, API mode, and more
I think the upgrade challenge is going to be the dependencies - declarative_authorization, typus, etc. Ah well, all part of the fun.
tcopeland··on Ruby 2.4.0-preview1 released
Ah ha! It was a Ruby bug... longer writeup here:

http://thomasleecopeland.com/2016/06/26/basicobject-is-a-ran...

tcopeland··on Ruby 2.4.0-preview1 released
Yeah sounds like in the same ballpark. David Stostik did a nice writeup of the oddities of ActiveSupport::Duration 4.1 here http://www.bnjs.co/2015/01/14/rails-date-class-durations-and....

I'm surprised that I haven't seen anything about that respond_to? change in the blogs; maybe I've just missed it. I might blog this, although I hate ending a post with "gosh I don't know about this one". Makes me feel like I haven't done all my homework.

tcopeland··on Ruby 2.4.0-preview1 released
Yup that's the code that I'm wondering about.

The case I ran into was in a Rails 4.1 app where ActiveSupport::Duration (which subclassed BasicObject) was used like this: "rand(10.minutes)". That raised an exception in 2.3.0 but worked fine in 2.2.3. The fix was simple - "rand(10.minutes.to_i)". But still, I don't understand it.

tcopeland··on Ruby 2.4.0-preview1 released
That's exactly right; but that's happening because vm_respond_to is returning true on a nil method entry. It's a puzzler...
tcopeland··on Ruby 2.4.0-preview1 released
But that's just it; I would have thought the NoMethodError would have been around the missing "respond_to?" - like it was in 2.2.3 - not around a missing "begin".
tcopeland··on Ruby 2.4.0-preview1 released
I am still surprised by this behavior change from 2.2.3 to 2.3.0 (and also present in 2.3.1 and 2.4.0):

  $ ./ruby -e "puts RUBY_DESCRIPTION ; rand(BasicObject.new)"
  ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14]
  -e:1:in `rand': undefined method `begin' for #<BasicObject:0x007fe0be4cb548> (NoMethodError)
	from -e:1:in `<main>'
In 2.2.3 you get this, which I'd expect:

  $ ./ruby -e "puts RUBY_DESCRIPTION ; rand(BasicObject.new)"
  ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]
  -e:1:in `rand': undefined method `respond_to?' for #<BasicObject:0x007fa2d719bf78> (NoMethodError)
	from -e:1:in `<main>'
It's as if rb_obj_respond_to changed... I don't understand it.
tcopeland··on Commuting Takes Its Toll
I commute from Herndon VA into DC a couple times a week. It takes about 1:15 each way. But I ride the Loudon Country transit bus, which has decent-size seats and aisles. So as soon as I get on the bus, I pop open my laptop and work on whatever coding I need to get done.

The real beauty of it is that I don't bring a mifi card or anything like that, so I can't get online and read HN or whatever. Instead, if I run into an issue, I have to read the code of whatever I'm working on and experiment in the REPL to figure it out. So it's been really productive in a couple ways.

I wouldn't want to do it every day, since it makes for long days - but a few times a week it's not bad at all.

tcopeland··on Wealth Inequality Is Even Worse in Reputation Economies
The funny thing is that that is as old as the hills - that's practically the plot of the first couple chapters of Gogol's "Dead Souls".
tcopeland··on The Mysterious Case of Exploding Teeth
That sounds a little like Mark Eberhart's "Why Things Break", where he talks about a company made a contact lens product out of materials similar to Corelle. One product was almost ready to be put on the market when they realized that there was the potential for pitting or scratches to result in the lens shattering explosively. Needless to say it didn't make it onto the shelves.

I recommend that book; lots of interesting anecdotes and some good explanations of the underlying materials.

tcopeland··on Code.google.com was shut down, Go packaging is broken
Remind me of this Slashdot comment about killing the goose that laid the golden eggs:

http://news.slashdot.org/comments.pl?sid=7754987&cid=5019893...

Perhaps GitHub will be able to resist "change for change's sake".

tcopeland··on The benefits of static typing without static typing in Python
Here's a longer article (http://codon.com/consider-static-typing) with more background / history about static typing and Ruby.

This topic has been knocked around in Ruby-land for a while; I remember seeing Michael Edgar's LASER (https://github.com/michaeledgar/laser) static analysis tool including some work around optional type annotations, but seems like development there has stopped.

tcopeland··on Why I love hacking at LibreOffice
> the incremental improvements have been increasing at a rate of knots and folks are beginning to notice the positive effects

Right on. I see this at $DAY_JOB too; after a certain amount of cleanup and dead code deletion and whatnot suddenly things start getting implemented faster, small bugs are fixed more easily, TODOs and FIXMEs start disappearing from the codebase, etc. Good stuff!

tcopeland··on How to Leverage Technical Debt
> Technical debt will be incurred, if you like it or not.

Right on. I've seen discussions about feature toggles which suggested not using them because they led to an explosion of code paths. But that won't happen if you delete the toggle (and the toggled-off code) once the a/b test ends or the feature is rolled out or whatever. It takes discipline and a culture that encourages that by being willing to review / deploy those changes, though.

tcopeland··on Sunday afternoon reading – CIA reading list (2011)
I think that's not quite the full story; my site cross references a bunch of lists and allows you to see which books were on (for example) both the Army and Navy reading lists, shows past revisions, allows you to keep track of what you read, etc.

That said, I'm protesting too much; you're right and I won't submit any more links to there.

tcopeland··on Quiet naval hero who rescued Enigma machine dies aged 95
That is a fantastic book indeed. It's on the Combat Studies Institute reading list, and rightly so.
tcopeland··on How Completely Messed Up Practices Become Normal
Was it the Robert Coram book (https://militaryprofessionalreadinglists.com/books/665-boyd-...)?

That book made it into four different reading lists from various branches of the military (USMC, USAF, Army, and a chair of the House Armed Svcs Committee). That's encouraging in that at least they're aware that his ideas/approaches were productive.

tcopeland··on Maritime ‘Repo Men’: A Last Resort for Stolen Ships
There are a bunch of reports of maritime casualties here:

http://emsa.europa.eu/marine-casualties-a-incidents.html

Grim reading, but gives you a feel for what can go wrong.

tcopeland··on Maritime ‘Repo Men’: A Last Resort for Stolen Ships
That sounds like a dicey business for sure. Depending on the vessel it can take some time and effort to fire up the engines and get underway, especially if it's been sitting for a while. Not to mention all the stuff that can go wrong, like casting off a stern line and getting it wrapped around the prop. That's working for a living!
tcopeland··on Assemblers and Loaders (1993)
Not free, but an excellent book along the same lines, is John Levine's "Linkers and Loaders":

http://www.amazon.com/Linkers-Kaufmann-Software-Engineering-...

He's been the moderator of comp.compilers since 1986, so he's got a lot of practical Q&A experience to draw on.

tcopeland··on China to Lift Ban of 400,000 DWT 'Valemax' Mega-Ships
It was pretty wild being underway on the west coast of the US and seeing a huge smear appear on the radar as a container ship swept by. If we were going north and they were going south the relative speed was really something. And the CPA (closest point of approach) would be a couple of miles, so you couldn't hear them, but wow, they were impressive.
tcopeland··on Psychohistory
I just read Catch-22 (for the first time) because it was on the USMA reading list. I soldiered through it... but... meh.
← PreviousPage 2 of 4Next →