HNHacker News
TopNewBestAskShowJobs

james_s_tayler

2,220 karma · joined October 30, 2018

submissionscomments
james_s_tayler··on Why I hate the weekends (2017)
More and more I think this is true. But with a huge caveat that you actually have to be able to bring something to the table and know well what it is.
james_s_tayler··on Why I hate the weekends (2017)
Maybe that's fine if you want to be writing Java 1.6, but you've basically given up at that point if that doesn't bother you slightly. I've seen Java 1.4 in production as late as 2017 but I didn't have to work on it, nor would I be happy doing so. Some people are though I guess. And I'd say that's exactly right as we need those people to maintain that system. Or we just need clients who aren't such hellish tire kickers about upgrading.
james_s_tayler··on Why I hate the weekends (2017)
I'd love to do 4 days work 1 day education for exactly this reason.

Though I've come to point where I'm starting to approach it strategically. For the most part the only thing that really matters is how employable you are. So long as you can find a job that meets your standards you are fine as you learn the minutiae on the job and it's always different for every job so you can't prepare in advance.

With that in mind this year I'm focusing mostly on the fundamentals doing deep dives into knowledge with extremely long half-life. I've got about 280 hours of courses I'm making my way through on Pluralsight this year. I'm about 1/4 the way through. Just started my SQL playlist and already I'm so glad I'm taking the time to dive deep on it. The difference between now and the end of the year will be night and day.

james_s_tayler··on Why I hate the weekends (2017)
Just go work at Mondragon.
james_s_tayler··on Ask HN: Tools for rational decision making?
You don't make rational decisions. You make emotional decisions.

The tool is choosing to not sweat the small stuff sometimes.

james_s_tayler··on Altavista: The rise and fall of the biggest pre-Google search engine
I was like 11 at the time. My IT teacher taught it to us in class. I still remember it. Never went back.
james_s_tayler··on 24 years of Delphi and Delphi 10.3.1 is out Today
What do you migrate to over a period of 10 years that won't be obsolete 1/3 the way through that effort??

As much as I love making old code new I'm not sure I could stomach a 10 year project.

james_s_tayler··on Moving from Ruby to Rust
It also has a lot of advantages. It's as powerful as it is dangerous.

The real reason they don't do it is because they can't. It's inherently unsafe. In order to always be sure something is never null you have to be aware of what all it's inputs are so you can reason about it. That's not possible with runtime metaprogramming techniques.

I dunno I guess I just think it's an odd choice. Don't get me wrong, it's a neat experiment and I value it. I'm just slightly miffed that that particular experiment had to mixed in with what amounts to a statically typed language with the beauty and simplicity of Ruby but the friendliness and discoverability of static typing.

james_s_tayler··on India Proposes Chinese-Style Internet Censorship
It's not much different than most of history. You could even argue this is regression to the mean. I genuinely think civilization peaked around 2012.
james_s_tayler··on A proof that Unix utility sed is Turing complete
I used to write web scrapers with curl/grep/sed back in the day. Fun times.
james_s_tayler··on Moving from Ruby to Rust
I'm not feeling it. Compile time only metaprogramming just doesn't feel powerful enough. Just a personal thing.

I'm definitely a fan of Crystal of though as a project and would really like to see a bigger community and more libraries etc.

james_s_tayler··on Moving from Ruby to Rust
Because it usually involves doing a lot of things that are unsafe. Take reflection for instance. There is no way to guarantee at compile time that a string whose value is only known at run-time is actually a real method in the code that can be invoked.

To get the level of safety they have gone for they have to disallow anything that could potentially blow up.

james_s_tayler··on Moving from Ruby to Rust
Crystal isn't exactly something I'd run in production.

Besides it's crippled as a language due to never allowing anything to be null, so there isn't any powerful metaprogramming you can do with it. That is a big turn off for me. Otherwise Crystal would be such a nice sweet spot IMO .

james_s_tayler··on You Don't Need to Quit Your Job to Make
Yeah I feel this a lot. It's my biggest struggle. I'm not trying to build a product at the moment just doing a year long deep dive into every part of the fundamentals. The aim is to hit 2hrs ~ 3hrs a night of study. The worst thing is when I haven't managed my energy levels correctly and I can only manage 1hr or 1.5hrs and I'm fighting to stay awake. It just feels like I'm losing the opportunity to make use of that time.

There is still plenty to work on in terms of managing energy levels. Most nights I can hit 2hrs but ideally if I could hit 3hr or even 2.5hrs consistently that adds up. It's not a trivial difference.

james_s_tayler··on You Don't Need to Quit Your Job to Make
honestly, I worked it out between commute and family responsibilities, plus taking care of myself I have 500 ~ 750 hours of "me time". Not 3000. 500 ~ 750.
james_s_tayler··on Problem solving with Unix commands
Oh I see. Yes the output got a bit messed up.

  ^[0]*[1-9]*
You could use + if you want. I only do it if not doing will produce incorrect output for my given input, which happens occasionally but is rare.

Bear in mind in this case there is also _A.csv or _B.csv you need to account for as well which your version doesn't. Mine will still pick it up because I'm not specifying the end, as I'm assuming I've done the necessary preprocessing steps to get good data so it will produce the expected output.

I'm not usually fussed on being that strict when I write regex as I tend to do various preprocessing steps like grep -v ^$ to filter out any blank lines if I don't want them in the stream etc.

james_s_tayler··on Problem solving with Unix commands
Great article. I didn't know about comm actually, so that was new for me!

With regard to the 'ints' it helps to not think about them as ints but rather just some text that follows the pattern ^[0][1-9] or some equivalent to that. "Starts with any number of zeros or no zeros followed by any number of numbers between 1 to 9 or none at all."

So long as you know the repeatable pattern you can always use sed to just replace the part of the pattern you want gone with nothing which effectively deletes it from the output. sed is like a Swiss army knife in that regard because you can do nice simple deletions like that and even iterate on them if you need or you can do quite complicated capture groups if you need to as well. Sed can get you unbelievably far in terms of shaping text in a stream.

I have a few tricks I've learned with various tools that I thought were worth writing down. Hopefully you can find some more useful stuff.

https://github.com/nicostouch/grep-sed-awk-magic/blob/master...

james_s_tayler··on Problem solving with Unix commands
As an aside I once found out you can replace 'sort | uniq' entirely with an obscure awk command so long as you don't require the output to be sorted. Iirc it performs twice as fast.

  cat file.txt | awk '!x[$0]++'
james_s_tayler··on Show HN: Pino – Open source web app for membership management
Or the Japanese chocolate.
james_s_tayler··on SQL: One of the most valuable skills
This is pretty much where I'm at. Though I'm on a mission to really nail fundamentals this year and SQL plus query tuning is the next stop for me. I've got 20 hours of courses related to SQL fundamentals lined up Pluralsight and another 30 odd hours SQL Server / Query Tuning.

The half-life of the knowledge is so long it's just a big boost for a really long time to become an order of magnitude better at it.

james_s_tayler··on SQL: One of the most valuable skills
I only got into AWK much later than grep/sed but I was glad to discover some of awks power. Sed is still and will always my first love, but more and more I reach for awk to learn it as there is still so much I don't know.
james_s_tayler··on SQL: One of the most valuable skills
wrt to shells - the combination of find/grep/sed/awk for locating and transforming textual data makes for its own kind of extremely powerful query language. I've always valued being able to think in pipelines made up of these tools.
james_s_tayler··on Vim Is Saving Me Hours of Work When Writing Books and Courses
I don't have the willpower to learn vim. Everytime I even look at it I think... no. And reach for nano instead and just be inefficient and happy. We're out there.
james_s_tayler··on Vim Is Saving Me Hours of Work When Writing Books and Courses
This. I really feel optimization across this dimension perhaps the most. I just enjoy things much more. Maybe if you really want to quantify it you could think of the happiness factor as a multiplier.

So you have a task that takes X time. What's say optimizing it is a net loss time-wise because it doesn't in aggregate save you more than you spent to perform the optimization. Say after optimization it only costs 0.8X time but it took 0.2X time to do the optimization so all benefit cancels out. But the difference being now happiness is 1.5 multiplier so you feel 50% better and the same aggregate amount of time is spent but it's much more enjoyable and therefore more valuable to you.

Maybe I'm not explaining it well, but I totally feel this way about plenty of stuff.

james_s_tayler··on Vim Is Saving Me Hours of Work When Writing Books and Courses
Yaks present infinite opportunities to shave them. This is the benefit of Yaks. You never run out of stuff to do. Plus you have all that delicious yak fur.
james_s_tayler··on Vim Is Saving Me Hours of Work When Writing Books and Courses
That's actually a pretty interesting point. Never considered it from that perspective.
james_s_tayler··on Vim Is Saving Me Hours of Work When Writing Books and Courses
These are my favorite kind.
james_s_tayler··on 1991 – a server-side web framework written in Forth
I like the (maybe a bad idea?) comment.
james_s_tayler··on Mars One, which offered 1-way trips to Mars, declared bankrupt
Not tens of thousands of years ago it didn't. It just had resources.
james_s_tayler··on Reddit confirms $300M Series D led by China’s Tencent at $3B value
Probably the same phenomenon as when you first start a relationship or a job everything is wonderful because you just haven't had any negative reference experiences with the said entity yet. Then over time they accumulate and your view matures to one of "it's alright/not bad"
← PreviousPage 32 of 34Next →