Better HN
topnewbestaskshowjobs
Log inSign up

ileitch

85 karma · joined Jan 25, 2012 (14y ago) · 26 submissions

https://github.com/ileitch
Submissions

comment 3y ago · link · parent

While I’m unsure I’ll be using Swift for the rest of my life, I’ll continue to work on my little tool to detect unused code for as long as I can. It’s my most popular open-source contribution, and it brings me joy knowing others find it useful.

https://github.com/peripheryapp/periphery

2.

Swift unused code: What's new in Periphery 2.0(github.com ↗)

1 points · by ileitch · 6y ago · discuss

3.

Periphery, the Swift unused code analyzer is now open-source(github.com ↗)

1 points · by ileitch · 7y ago · discuss

4.

Swift: Detect Unused Parameters(peripheryapp.com ↗)

7 points · by ileitch · 7y ago · discuss

comment 7y ago · link · parent

I believe this is the idea behind the Brave browser and their Basic Attention Token https://basicattentiontoken.org

6.

Swift: Find Unused Code(medium.com ↗)

2 points · by ileitch · 8y ago · discuss

7.

Periphery now provides 100% of results for free(peripheryapp.com ↗)

23 points · by ileitch · 8y ago · discuss

8.

Swift: When Unused Code Is a Bug(peripheryapp.com ↗)

137 points · by ileitch · 8y ago · 74 comments

9.

Code is Risk(peripheryapp.com ↗)

2 points · by ileitch · 8y ago · discuss

10.

Show HN: Find unused Swift code(peripheryapp.com ↗)

4 points · by ileitch · 8y ago · 1 comment

11.

The Dead Code Manifesto(peripheryapp.com ↗)

5 points · by ileitch · 8y ago · discuss

comment 11y ago · link · parent

One some larger roundabouts in the UK (and no doubt other European countries), they have traffic lights on the roundabout, between exits (I'm not talking about the entry lights). If one exit is totally blocked, these lights can allow traffic to continue out of other exits.

comment 11y ago · link · parent

I hear the argument "Americans don't understand roundabouts, therefore we wont build any" quite often in these kinds of articles. If you survey people about something they've never comes across before, of course you're going to get negative results.

If Americans can drive and talk on their cell phones, they can handle a roundabout.

comment 12y ago · link · parent

My initial reaction was acquihire. Though given their recent improvements to Pages [1], this acquisition could mean a push into the Easel market space.

1: http://pages.github.com/

EDIT: Just to point out why this is a big deal - What percentage of new sites are mostly static, presentational? Probably a slim minority. Whilst Github can't code your site for you (yet?), giving you the tools to develop your app layer and frontend - with some as-of-yet seen integration tools? - those are some very large slices of the pie. Don't forget Github pages is currently free too, perhaps there'll be a paid tier for dynamic sites.

15.

Show HN: LMAX Disruptor in Ruby.(github.com ↗)

2 points · by ileitch · 14y ago · discuss

comment 14y ago · link · parent

I haven't tried Netflix, but I love that I can now see all the films in my queue that are available on iTunes.

comment 14y ago · link · parent

Another thought is that there may be some ratio between quality and rewatability that signifies the first-time (but not repeated) watchability of a film.

For example, 5 stars for quality and 0 for rewatachability doesn't tell me I should watch the film if I haven't already. But maybe 2 stars for rewatability/subjective enjoyment is enough justification to watch it to appreciate the quality?

comment 14y ago · link · parent

It'd be interesting to see the overall variance on quality vs. rewatachability. That could give some clue on the objectivebess of users' answers to quality. Perhaps quality is just one of those things that is more universally objective than it is subjective?

comment 14y ago · link · parent

Also, if you avoid the normalisation step you could easily factor in the degree at which user A liked the quality vs. user B, instead of just a 'more' or 'less' question.

If you factor your vector weights by the scale of your quality rating (0 - 10?) then if user A liked the quality film X vs. film Y +6 more points than user B's +1, this would give you a more accurate correlation.

Anyway, food for thought. A very fun problem to be working on!

comment 14y ago · link · parent

I think the weightings I describe above would give you that.

Say we start at 0 and user A likes the next move in both directions (+4) and user B only likes it more in one direction and the same in the other (+2) then you're still going to get a positive correlation, just a slightly lower one than if both users liked it in both directions.

R([0, 4, 4], [0, 4, 4]) = 1.0

R([0, 4, 4], [0, 2, 4]) = 0.852

R([0, 4, 4], [0, -4, -4]) = -0.9

comment 14y ago · link · parent

I assume each vector has its own weight? So better in "Better in both respects" is a stronger sign of similarity than just "Higher quality but same rewatchability."

So say.. "Same in both dimensions" = 0 "Same quality but more rewatchable." = +1 "Same quality but less rewatchable." = -1 "Higher quality but less rewatchable." = +2 "Higher quality but same rewatchability." = +3 "Better in both respects." = +4 etc..

Then you could pass those to a coefficient like Pearson's R.

x = [0, 1, 2, -1, -3, 4, -4] y = [0, 1, 1, 2, -1, -2, 0]

It'd be an interesting experiment to see what results that gives vs. your current algorithm.

comment 14y ago · link · parent

http://blog.goodfil.ms/blog/2011/10/07/a-better-way-to-rate-...

comment 14y ago · link · parent

Interesting read. Vector Victor sounds like a linear correlation algorithm. I wonder what coefficient they're using under the hood...

24.

Goodfil.ms now open to public signups.(goodfil.ms ↗)

1 points · by ileitch · 14y ago · discuss

comment 14y ago · link · parent

Can be used to diagnose memory bloat issues by inspecting ObjectSpace.

comment 14y ago · link · parent

I've not worked on Hijack in a while. Seeing as there is still interest for it, I'll give it some love soon (I think it needs some updates for 1.9.3).