HNHacker News
TopNewBestAskShowJobs

tristanperry

1,134 karma · joined September 14, 2010

Full stack dev mainly working in the Java enterprise World.

https://www.tristanperry.com/

submissionscomments
tristanperry··on Java Streams and State
Essentially yes - a Java stream returns an iterable object, which we can perform further operations such as filtering down, mapping to something else or 'collecting' it into another object (et al).
tristanperry··on UK makes it an offence to view terrorist propaganda even once
The UK isn't the only country to be getting quite strict in this regard: Germany being a prime example.
tristanperry··on UK makes it an offence to view terrorist propaganda even once
Over a decade ago a university student got held for six days[0] after viewing (and printing) some terrorist tactics which were apparently directly relevant to his research.

It's concerning that the sentences have now got even stricter and a hacked website could potentially land people in jail? Very bizarre.

[0] - https://www.theguardian.com/education/2008/may/24/highereduc...

tristanperry··on Ask HN: How you ever quit because the engineering culture is too messed up?
(I answered this in the other thread, but thought I'd crosspost here too)

It can be a tricky one, but fundamentally the _reason_ why change isn't happening needs to be understood. A company full of smart people is unlikely to _never_ want change for any reason - especially if that change would clearly make everyone's life easier. But maybe everyone is overloaded with work and a bit burnt out, so 'big' change is scary to them? Or perhaps the 'important change' really isn't that important? I've worked with devs before who have spoken for hours a day on the need to change x, y and z, when in reality it wasn't fully needed (and/or their suggestions stemmed from misunderstandings).

I guess my latter point there relates to the fact that there's not always a single "right way" of doing something.

Now I know that this might sound like I'm the same as the people shooting down your suggestions in your linked 'Ask HN' thread. Trust me, I'm not like that: I left my previous job a few months ago for the exact same reasons that you have outlined (i.e. there was clear change that was needed, but the 'powers that be' weren't willing to make those changes).

But to circle back to your question: assuming there aren't massive organizational problems at a company, change usually needs to be made slowly-but-surely with the buy-in of any previous 'change blockers' (where possible). Anyone trying to force through lots of change in a short period of time will usually struggle.

If even minor change is not possible, there's two main possibilities:

1) You're wrong about the change, and you might be the problem.

2) You're right about the change, the company is dysfunctional, and moving to a new job is the answer.

From your linked thread, (2) does sound like the situation in your case (fortunately/unfortunately).

tristanperry··on On Being a Principal Engineer
It can be a tricky one, but fundamentally the _reason_ why change isn't happening needs to be understood. A company full of smart people is unlikely to _never_ want change for any reason - especially if that change would clearly make everyone's life easier. But maybe everyone is overloaded with work and a bit burnt out, so 'big' change is scary to them? Or perhaps the 'important change' really isn't that important? I've worked with devs before who have spoken for hours a day on the need to change x, y and z, when in reality it wasn't fully needed (and/or their suggestions stemmed from misunderstandings).

I guess my latter point there relates to the fact that there's not always a single "right way" of doing something.

Now I know that this might sound like I'm the same as the people shooting down your suggestions in your linked 'Ask HN' thread. Trust me, I'm not like that: I left my previous job a few months ago for the exact same reasons that you have outlined (i.e. there was clear change that was needed, but the 'powers that be' weren't willing to make those changes).

But to circle back to your question: assuming there aren't massive organizational problems at a company, change usually needs to be made slowly-but-surely with the buy-in of any previous 'change blockers' (where possible). Anyone trying to force through lots of change in a short period of time will usually struggle.

If even minor change is not possible, there's two main possibilities:

1) You're wrong about the change, and you might be the problem. 2) You're right about the change, the company is dysfunctional, and moving to a new job is the answer.

From your linked thread, (2) does sound like the situation in your case (fortunately/unfortunately).

tristanperry··on Stop Reading News (2013)
> I think the new generation is caught up in quizzes that stir up emotions, and psychological tests that determine whether a giraffe is your spirit animal.

You're definitely wrong on this point (and as others have said, it's a condescending sentiment).

This has always happened. I'm 28 and online quizzes and tests were _very_ common when I was school age.

My parent's generation also took lots of quizzes and tests, albeit they were in newspapers and magazines (and you had to tally up your own results).

tristanperry··on Confessions of a programmer: I hate code review (2010)
I think this comes down to team culture and morale.

This certainly does happen in a team with a bad culture/morale, but IMO it's just a symptom of the wider issues.

But yep, code reviews do make situations with bad morale worse IMO.

tristanperry··on Your own company? You can do it (2011)
Sorry to hear about that :( And thanks for the honesty - it's always good to get the balancing stories.
tristanperry··on To www or not www
I agree and not sure why you've been downvoted originally. I've also seen plenty of non-tech-savvy users use the internet who seem almost confused if a website isn't 'using www'.
tristanperry··on Greek referendum results
Looks like a solid No victory - a 21% gap between no and yes.

Live results available at http://ekloges.ypes.gr/current/e/public/index.html#{%22cls%2...} (click on GB flag on bottom left to change to English)

tristanperry··on Real time Greek referendum results
Clicking on the little Great Britain flag on the bottom left will change the webpage to English.
tristanperry··on HTTPS as a ranking signal
I do agree, however remember that you can get SSL certs from $9 (e.g. from NameCheap). You might be able to pay lower if you shop around too.

Also even if it was used as a fairly strong ranking signal, if Google still approach their rankings like they do now, spammers might still have sufficient ranking 'weight' to overcome a lack of SSL certificate.

tristanperry··on Boto (AWS Python SDK) goes green, top 19 libraries now support Python 3
What might be nice as well is to put a Py3K alternative alongside any red libraries, where applicable.

I'm not sure how much work it'd be but it might be useful to see how much Py2k library functionality can already be achieved in Py3k.

tristanperry··on On Leave
Sounds like a great opportunity for personal relaxation & development :-)

Oh and I guess this means that Matt Cutts will be commenting in every HN thread from now on ^^

tristanperry··on Google's XSS game
I had fun with this; definitely a good mini game to learn more about XSS, although it's a pitty that you can cheat-pass a level simply by appending '/record' to the end of the URL. (Granted it's just a game)

I.e. https://xss-game.appspot.com/level1/record allows you to go straight onto level 2.

Anywhoo, HackThisSite is similar & worth checking out (albeit it covers a wider range of web app security issues)

tristanperry··on Google is Breaking the Internet
Not sure when the post was made, but ronnier later replied that it's http://www.softsyshosting.com.

I definitely agree though - they sound like a very poor host. One of my websites received an invalid DMCA via my host, and my host handled it well (i.e. listening to my side of the story, before deciding not to pursue the 'complaint').

Any host that handles DMCAs so poorly (i.e. threatening their customers without knowing the facts) doesn't deserve to be in business IMO.

tristanperry··on An Opinionated Guide to Modern Java, Part 3: Web Development
A very good article; well written and explained.

For Java web development, it is worth re-considering Spring Boot though * (http://projects.spring.io/spring-boot/)

Spring MVC and Data (et al) powered entirely by annotations, and (e.g.) Thymeleaf for templating, can lead to some fairly powerful yet concise apps.

We just started using this where I work, and it's a great step forward compared to old style, XML driven Spring MVC and Hibernate.

Also Spring Boot does bring quite a lot of support for REST, via RestTemplate/RestOperations, along with support for consuming and producing JSON and/or XML at the controller levels.

* Edit: I say re-considering since the article only briefly mentions it.

tristanperry··on (Relatively) slow Google search (2.64 seconds)
You might need to click "Search instead for" to trigger the 'correct' search.

It's also odd how:

<script[ \\to[^<](?:(?!<\\/script>)<[^<])<\\/script[ \\t]?>

runs in <0.5 seconds, whilst:

<script[ \\t]?\\b[^<](?:(?!<\\/script>)<[^<])<\\/script[ \\t]?>

runs in >2.5 seconds?

tristanperry··on Namecheap has rebranded
As patio11 says, the margin on domains are fairly small and so many domain companies survive on the upsells instead. Verisign's current .com price is $7.85 and for .net is $5.62. This is the minimum that the registrars (GoDaddy, NameCheap etc) need to pay - so when you think that NameCheap sometimes sell .coms for $8.95, the margin really is small... especially since I've left out the $0.25 ICANN transaction fee (many companies - GoDaddy aside - include this in the overall price). So a $8.95 .com sale leaves just $0.85.

So it does make sense for domain companies to market themselves as sellers of an online presence, instead of a sub-$10 domain name.

But having said that, the website seems a tad... boilerplate. I thought that big companies were done with rebranding to a Web 2.0 esque corporate web design?

Also the footer is 865 pixels tall on my 1920x1080p screen - does it really need to be that big?

I don't mean to be too critical - I do support the change to selling a 'story' instead of a domain name. But the design just seems... outdated?

tristanperry··on Windows 8 and Windows 8.1 pass 10% market share, Windows XP falls below 30%
I think a bigger story from these statistics is the rise in Linux: "while Linux gained 0.17 percentage points (to 1.73 percent)"

Going from 1.56% to 1.73% is an ~11% increase, which is a pretty large rise (albeit from a smaller base)

Meanwhile, XP's "huge" drop was 7%. Which is a fair drop, but I wouldn't call it huge.

Seeing this rise in Linux is promising.

tristanperry··on About Python 3
I'm looking to learn Python, so it's a pitty that there's a schism of sorts within Python.

This sort of reminds me about PHP 6: a project with initially high momentum and various ideas to clean up the language. But over time it became clear that upgrading from the land of magic quote and register globals (PHP 4) to PHP 6 would have been too much of a jump.

So instead they slowly started deprecating and making improvements within the PHP 5 stream, and bit-by-bit PHP has moved on.

The change from Python 2 to 3 doesn't look dramatic, but I can understand why there's an air of lethargy regarding the upgrade.

tristanperry··on Compare headphones
I think that Google are aware of this. As above, small and large businesses used to do this sort of thing. The animal updates then killed off small businesses who done this, but there was no real negative impact on the bigger guys/the brands. I'm sure it sounds cynical, but I don't think this was a coincidence.
tristanperry··on In the future, all space marines will be Warhammer 40K space marines
This is unfortunate but not unexpected.

I used to run a fairly large 40K website (Tau Online, now defunct).

I'd regularly receive letters and e-mails from the Games Workshop legal team.

I remember one time, someone had made a simple post on our forums saying they were thinking of selling a short story they'd written based around the 40K World. He hadn't named the story. It wasn't for sale. He was just thinking out loud.

Anywhoo, the GW lawyers contacted me: they asked me to delete the whole thread, ban the user and provide them with the poster's IP address, name and contact information. Which, y'know, is a bit overkill. (And possibly not legal? We didn't have their name nor contact information, but I would have assumed I couldn't just hand this information out to any random lawyer).

As in this case, the Games Workshop legal team regularly throw around threats - often with no legal basis.

I hope the blog poster is able to garner enough support to move forward with this. Unfortunately I fear that GW's baseless threats will beat back hobbyists, yet again..

tristanperry··on Google disables AdSense account of user for sharing free book via torrent
Hi Matt, Would be nice if AdSense could go back to the 'old day's - that is, we could speak to an actual Human being, instead of being ignored via canned responses :)

I understand Google having actual Humans responding to their customers/publishers would be tricky due to the scale of things, but the current system seems too impersonal and I hear of these stories all the time? Not everyone has the luxury of being published in the mass media (which seems to be one of the only ways that Google will nowadays change its mind)

tristanperry··on The death of Firefox
I use Chrome as my main browser. I see no bloat at all?

In my experience, IE is losing bloat, Chrome started with a bit of bloat but quickly lost it, whilst Firefox has had bloat for a while.

tristanperry··on From sand to processor, or how a CPU is made
The links were added recently :)

And it's not really witch hunting - I'm merely pointing out that it's bad form for someone to plagiarise and not attribute the source.

Still not a fan of word-for-word copying, but at least links have been added :)

tristanperry··on From sand to processor, or how a CPU is made
As an FYI, parts of this article have been taken without any attribution from:

http://download.intel.com/pressroom/kits/chipmaking/Making_o...

http://download.intel.com/newsroom/kits/chipmaking/pdfs/Sand...

An example being the sentence "Sand, especially quartz, has high percentages of silicon in the form of silicon dioxide (SiO2) and is the base ingredient for semiconductor manufacturing." which seems to have been copied almost word for word.

Other parts of the article appear to have been simply rewritten from other - more reputable/original - sources too.

So to sum up, this source shouldn't be upvoted, IMO.

Also as an FYI, I love how Google rank this on page 1 for [How a CPU is made]... (indeed, above the original sources)

tristanperry··on I made progress bars using only CSS3. You can use them for free.
A progress bar is more presentation than content though?

I guess for usability there should be text inside or underneath saying the % progress? (In which case it'd still be XHTML for content and CSS for presentation)

tristanperry··on Update on GoDaddy Transfer Issues
GoDaddy have breached ICANN regulations before (e.g. after updating contact information, 'resetting' the 60 day no-transfer-out rule).

I'm not surprised in the slightest that they're doing it again.

tristanperry··on GoDaddy loses 72,354 domains this week alone
1) They're the biggest domain company, with a very large marketing budget.

2) 99.9% of their customers wouldn't know what "SOPA" is, nor would they care all that much.

(Both of which are unfortunate but, in my experiences, facts)

← PreviousPage 4 of 7Next →