HNHacker News
TopNewBestAskShowJobs

james_s_tayler

2,220 karma · joined October 30, 2018

submissionscomments
james_s_tayler··on Negotiations Failed: How Oracle Killed Java EE
I switched to C# late last year. Oracle is just too much baggage to have hanging around when thinking about your career / future for me. Really didn't like the direction they are taking things when they announced their new release train and licencing model. Compared to that Microsoft have done an about face in recent years with a commitment to open source and first-class support for Linux and revamping their core offering with .NET Core. It's been a mostly smooth transition.
james_s_tayler··on We can't judge another programmer's abilities in a 60 minute interview
what about someone who can code FizzBuzz well?
james_s_tayler··on Ask HN: Do you think that people at work like you and enjoy your presence?
I legitimately cannot fathom how ChatOps is even possible without mermaid, poop and cake emojis.
james_s_tayler··on Japan is scrambling to reconcile systems with imperial calendar
Yeah, probably Java. Here's the relevant info.

https://blogs.oracle.com/java-platform-group/a-new-japanese-...

james_s_tayler··on Agony of an African Programmer (2014)
Aside from the lack of load shedding and decent access to cheap technology and loads of bandwidth...

I feel everything else is the same for anyone outside SV. Can't meet deadlines (but that's because everything takes longer than you think it will, even when you account for hoffstadter's (sp?) law) and trying to bootstrap stuff in your spare time is next to impossible. Not impossible, but It's right up there with the most difficult things you could try and do.

james_s_tayler··on Thank goodness we hired someone who can reverse a b tree on a whiteboard (2016)
I could imagine someone not from a CS background to fail it by perhaps not recognizing they need to the modulus operator or even being aware of its existence?

Outside that, yeah. It indeed boggles the mind that the vanilla version of it could be failed by anyone who has taken elementary programming course.

james_s_tayler··on Thank goodness we hired someone who can reverse a b tree on a whiteboard (2016)
Well... vanilla FizzBuzz is easy peasy. Ask them to draw an architecture diagram for FizzBuzz Enterprise Edition on a whiteboard. Or ask them to implement it without using the modulus operator... muahaha. I'm sure that'd stump almost everyone.

You can make FizzBuzz incredibly complicated if you deviate from the vanilla FizzBuzz.

james_s_tayler··on Thank goodness we hired someone who can reverse a b tree on a whiteboard (2016)
Interviewing has been solved a long time ago with the invention of FizzBuzz. If they can solve it, hire them. If they can't don't. If you're worried its too easy then turn up the difficulty and ask them write an implementation of fizzbuzz that makes use of specific features of a language or framework. If you are BigCo and need to crank the difficulty up really high you can ask the candidate to implement a solution to calculate which number contributes the most the letter z appearing in the output of fizzbuzz between the numbers 5 trillion and 143 trillion, preferably involving a Hadoop cluster.

If you're a SaaS company and you're hiring a sales person, instead of the typical "sell me this pen" you can even replace it with "sell me FizzBuzz".

I'm telling you, it's bullet proof.

james_s_tayler··on Thank goodness we hired someone who can reverse a b tree on a whiteboard (2016)
how many times have you ended an interview that way?
james_s_tayler··on MIT Researcher Exposing Bias in Facial Recognition Tech Triggers Amazon’s Wrath
It might do?

There are 5x more white people than black people in the US (roughly). So... it's kind of understandable that any training data set would contain more white people than black people if you didn't filter it beforehand?

I guess theoretically you would have to limit the size of the training data for all groups to the size of the set of training data you have on the smallest group, so that all groups could be represented equally in the training data, but then perhaps you get a far less accurate model overall and it results in greater negative consequences?

Just spit balling here. But it's a complex problem.

The whole 'racist AI' thing screams Conway's Law to me.

james_s_tayler··on Great developers are raised, not hired
I wonder if that's what Peter Drucker meant when he said "Culture eats strategy for breakfast"
james_s_tayler··on Sorting in Japanese – An Unsolved Problem (2011)
I learned just over 17,000 words and for that needed to know somewhere north of 3000 kanji. ~2200 is just the joyou list but once you get into novels and the like you can expect to encounter i'd say around 3500 would be close to maxing it out with the last 0.01% being another couple of thousand, but that's getting in to really obscure shit that only a smattering of the general population know.

I learned kanji first before speaking. Learned to read and listen for about a year before venturing out to conversation clubs and the like. Without a shadow of a doubt reading massively, massively, massively boosted my ability in all other areas. Fastest way to learn new vocabulary.

But I gotta be honest - I used to love kanji and found joy in it. These days I think Korean really got it right with their writing system. That shit is super logical. Kanji is a giant, beautiful pain in the ass.

james_s_tayler··on Matrix.org hacked
but but but... what about the single responsibility principle??? Grep can't both load the file and pattern match against it's contents! Sacrilege.
james_s_tayler··on When to Use TypeScript – A Detailed Guide Through Common Scenarios
What usually slows me down about dynamically typed code is you have some variable returned by a function only denoted by var myVariable = myFunction(); and I'm sitting there staring at thinking... "what are the contents of that variable? what properties do I have access to on that object? what can I do with it?"

And figuring that out becomes a massive time suck when that's a constant across an entire code base. Statically typed stuff means I can very quickly find that out even if it's the first time i'm exploring that particular area of the code.

james_s_tayler··on Moving on from Rails and What’s Next
I find that if I use VMWare the VM is nice and fast and no problems. If I use VirtualBox the performance isn't fantastic but still workable.

How on earth do you use 7 monitors for work?

james_s_tayler··on Komodo Island Is Closing to Tourists Because People Are Stealing Dragons
At some point I think we just need to accept it. We can't have nice things.
james_s_tayler··on Implementing API Billing with Stripe
How did you go about implementing a referral program in Stripe?
james_s_tayler··on Implementing API Billing with Stripe
Agreed. It's much more like "just handle these 50 edge cases and you're good to go."
james_s_tayler··on Moving on from Rails and What’s Next
Just run a Linux dev VM in VMware. Best of all worlds. You have your Windows gaming PC and you can develop on it in Linux.
james_s_tayler··on Implementing API Billing with Stripe
Question: did you plan the abstraction by looking at multiple providers first then figuring out the abstraction that would work well for all of them or did you just look at Stripe and luckily come up with an abstraction that also worked for other providers?

I'm encouraged by your success of this model. I'm currently struggling with the 'billing system as source of truth' model.

james_s_tayler··on OKRs Aren't Going to Fix Your Communication Issues
It's more like helping set and monitor goals in a distributed way. It's a framework which to operate in.

You can be on slack or email or around the water-cooler all day long. I don't think that makes that much difference. It's not like as soon as you bring Slack into an organization all this structure emerges that helps you focus your efforts on what to do. Chat app or no chat app, people are always coordinating with each other to complete task-level work.

OKRs help you think first strategically (longer than 1 year) then tactically (between 1 month to 1 year) and then operationally (day to day, week to week). Chat apps don't do that for you.

They just aren't related.

james_s_tayler··on OKRs Aren't Going to Fix Your Communication Issues
I've been thinking about this lately. Mainly OKRs around developer experience. As an objective that's an easy one to come up with plenty of key results that actually tie in to refactoring, retiring old systems and upgrading existing ones.

Currently where I work we have a fixed allocation % of dev/test time for technical improvements. In practice it works really well if you approach it strategically and use it to achieve things over the long term. Things you can just chip away at that steadily improve the health of the code, architecture and product. I find if it's used on a purely operational basis where you just ad-hoc improve stuff you find then it's not super effective, but it's pretty solid when the team is onboard with leveraging it to achieve better and better DX over the long term. Otherwise "refactoring" barely ever gets done and products slowly suffer bit-rot.

I think OKRs are a perfect fit for such a scenario. We don't use them, but I kinda use them internally as part of my mental model.

james_s_tayler··on OKRs Aren't Going to Fix Your Communication Issues
OKR and Slack are completely different things?

Ones a chat app the other is a system of setting objectives and measuring against those objectives.

james_s_tayler··on C#88: The Original C# (2018)
Ah Maven. It yes, not my favorite tool.

You're quite right that by default there is no hand holding by Java itself on the matter and if you have to solve it yourself it's quite a not fun problem the first time you come across it.

It bothered me in the early days, but after switching to Spring Boot the problem melted away entirely. If you use https://start.spring.io select what you want, hit download and import as a Maven (or Gradle) project and bobs your uncle. Boot automatically builds a fat jar and it just works. Friction drops to zero in that particular configuration.

I'm not a fan of Maven either. Before leaving Java land I settled on using Gradle and was much happier with that. Some people don't like that it runs a daemon and uses resources or that builds are custom with it, but I don't mind those things at all and I found it a real breath of fresh air compared to Maven.

Another point of difference between native .NET shops and native Java shops that I have found is approach towards development environments. My sample size is small here, but so far I've seen that Java shops run windows, but have development VMs that you can just download an image, drop it into your machine, pull down the repo and the image is pre-configured with all the right stuff to build and develop. Linux natives are heavily into scripting things and the devops usually works quite nice, but I find it also breaks more frequently because it tends to be _somewhat_ brittle.

In .NET shops I haven't seen that. It's mostly been they run on Windows and develop on Windows (duh) but that means you have to manually do a bunch of setup and spend a day installing stuff when you start and everyones machine is a tiny bit different.

I can't say I've found one better than the other, but if it were me I'd run .NET Core development and do it on Linux in VMs.

james_s_tayler··on C#88: The Original C# (2018)
It's for exactly this reason that I think anything that makes the _technically_ optimal set of choices is actually a bad bet because the probability it is understood well enough to be used in the correct manner is low and it's possible to use it an an incorrect manner. So that's mostly what you see.
james_s_tayler··on DeepMind readies first commercial product
Karl Marx said the same thing about collecting firewood in the forest.
james_s_tayler··on C#88: The Original C# (2018)
I don't know about that. I too have worked on .NET projects that were structured in very different ways.

IMO when you see a lot of variance that's a smell. There isn't an obvious or known good way to do something or there is no convention you get a lot of entropy creeping in. I find the folder/path based stuff at least has a convention or two that keep things in roughly the same shape from project to project. I prefer that this is the case than what I see with C# projects.

Anyway, it's just my pet peeve.

james_s_tayler··on C#88: The Original C# (2018)
(a) it's usually a problem you inherit when you join a team/project and you didn't make the choices about it but for some reason there is 200 .sln files and impossible to open the entire project in a single .sln file. Well, I've had that once but my current situation is better than that but still somewhat problematic.

(b) debug symbols could just be included in the compilation unit and optionally stripped out using a flag when you compile. There isn't a need for it to be in a separate file. A lot of fun times attaching DnSpy to something to half-ass debug it through a decompiler because there was no .pdb and you can't debug without it. Just painful. Wish they never split the debug symbols into a separate file.

(c) I guess my colleagues are forcing me to use Nuget as I can't just show up tomorrow and switch everything to Paket. I don't have to use it on my personal projects, which is nice.

Nuget's problems stem from what I'm talking about here. You need Newtonsoft.Json in various different csproj files, so you reference it in both of them. If you're not careful it easily winds up in a situation where you have multiple different versions of .NET in a single .sln file and multiple different versions of Newtonsoft.Json and the dreaded "multiple conflicting versions of a dependent assembly" warning. Etc.

Comparing it to my experience in the Java world I remember it's still possible to split the project up and open separate parts if I want, but the whole thing has one unified version of Java and a unified set of dependencies. Just never wound up with the messy tangles I see in .NET projects.

It's about my only beef with .NET stuff. Really irks me. Paket looks like a step forward though in terms of Package management, but it's not the defacto standard.

james_s_tayler··on C#88: The Original C# (2018)
Is this related to C# having this structure where everything is split into hundreds of csproj files and multiple solutions?

And this must be related to needing to have pdb file or being unable to debug.

I wish those two things were not the case. And nuget.

I find C# wonderful except those particular decisions give me pain on a daily basis.

james_s_tayler··on Abe explains choice of Reiwa for next era name
Thankfully I don't live in Japan and have to deal with that system on a daily basis.
← PreviousPage 27 of 34Next →