HNHacker News
TopNewBestAskShowJobs

codesuki

1,052 karma · joined May 21, 2015

https://github.com/codesuki
submissionscomments
codesuki··on Ask HN: Best book / resources on leadership, especially for tech teams?
Would you mind expanding on how your friends suffered? What went wrong etc. Sounds interesting.
codesuki··on Evaluating Bazel for building Firefox
You could probably write a rule similar to go_repository[1] that would invoke pkgconfig to find the location of local libs instead of downloading a lib.

[1] https://github.com/bazelbuild/bazel-gazelle/blob/master/inte...

codesuki··on Ask HN: Does your company intercept HTTPS? What are alternatives?
The employee laptop's traffic. I don't have many details since this is new to me too. Here is some solution and what it does. https://www.netskope.com/solutions
codesuki··on Ask HN: Does your company intercept HTTPS? What are alternatives?
Yes, a root certificate afaik.
codesuki··on Welcome to the Old Internet Again
So much this!!!! Every time I open a browser I think the same thing. Even tech articles were way higher quality back then. https://www.flipcode.com/archives/ for example.
codesuki··on Reinventing Firefox for Android
Thank you Mozilla team for making this great browser! I am a happy user since it was first released. Super happy with how fast the browser is now. I think Firefox always is ahead with great features and better UX. (Lazy tab loading, sticky tabs, containers, no video autoplay, to name a few) Also plugin support on mobile is how I converted several chrome users :)

I hope "collections" will come to the desktop too. Are there plans?

codesuki··on Linux Reverse Engineering CTFs for Beginners
For some great fun and learning I recommend Googles beginner CTF. https://capturetheflag.withgoogle.com/#beginners/

The last thing that glued me to my seat like this was maybe 10 years ago. Good to have had that feeling again. Hope they make a 2019 version! :)

codesuki··on Evaluation of five password managers
Question about bitwarden: I found this issue saying there are no tests. https://github.com/bitwarden/core/issues/399

Also in the comments here someone said there are no tests. Does anyone have any info about that? I am interested in the software but no tests would be worrying. (Had no time to browse the code yet.)

codesuki··on A Programmer's Introduction to Mathematics
Just ordered from Amazon! I used to read his blog a few years ago and I loved the articles and the breadth of topics. Thank you!
codesuki··on In Japan, the Kit Kat Isn’t Just a Chocolate
I wonder how Kit Kat is made in Germany. To me they taste better than the Japanese (plain) Kit Kat. Different chocolate? Sweeter? Not sure.
codesuki··on Some Techies Are Shunning Silicon Valley for the Japanese Dream
That is a valid concern! But trying (if needed) can't hurt. Anyways good luck with everything! :)
codesuki··on Some Techies Are Shunning Silicon Valley for the Japanese Dream
Just had a look. Still only in Japanese: https://www.cyberagent.co.jp/careers/professional/jobs3/cont...

Culture info (English): https://www.cyberagent.co.jp/en/way/culture/

codesuki··on Some Techies Are Shunning Silicon Valley for the Japanese Dream
You could probably get more where I work (CyberAgent) or similar places like Line, Mercari. Applying is free :)
codesuki··on Some Techies Are Shunning Silicon Valley for the Japanese Dream
In case you stay in Japan contact me. Where I work it's no problem to take several weeks off. Otherwise we have a good work climate, too.
codesuki··on Some Techies Are Shunning Silicon Valley for the Japanese Dream
Where do you work at?
codesuki··on Goodbye Microservices: From 100s of problem children to 1 superstar
> Should shared libraries be in different repos, or should you put everything in a single repo? How do you deal with versioning? What happens if one app wants version 1 of the library and another app wants version 2? How do you deal with backwards compatibility of the API? Do you make a whole new library when you decide the old API is incompatible with the new vision?

Could you share methods that worked well for you? Asking because those question come up a lot and there never seems to be any conclusion.

codesuki··on Show HN: An Example Microservice Back End for Kubernetes, Bazel, Go, Java, GRPC
We are using a similar setup. K8s, Bazel, Go, Java (Android), Swift (iOS), Typescript. Everything with gRPC. I really like Bazel because it makes working with Protobuf so much cleaner (at least in theory) and allows us to have one build system for all those languages (at least in theory).

The easiest to set up was Go. Go support is already very good, including gRPC and Protobuf. The only drawback was that it breaks editor integration of some tools / linters because of the different directory layout for generated files.

Vanilla Java also has good support but when you go to Android land things change. At first we had to use a custom fork of grpc-java to build for Android, but with this change https://github.com/grpc/grpc-java/pull/4289 we were able to go back to the main repo.

gRPC-web was a prohibitively large dependency for our front end. After all we switched to a JSON API (using Envoy). I read that Google uses gRPC for products like gMail and since Google is so obsessed with web performance I wonder how they manage the dependency size (a few 100kb for us). There is a lot of information scattered around like a json-proto protocol (not publicly available?), which apparently should not be needed with proto3 and newer browser because performance is supposed to be similar. grpc-web uses the official protobuf/javascript package, using protobuf.js the dependency size as well as the compiled protobuf might be smaller.

While building Swift and Objc for iOS was super easy with Bazel we couldn't manage to build our protobuf/grpc. There were no working rules at the time and we had no time to fix it completely which is why we are not building that part with Bazel, yet. https://github.com/pubref/rules_protobuf/issues/188

I'd appreciate any insights you have on Objc support and grpc-web. It'd be great to be able to use grpc across the whole stack.

codesuki··on Go best practices, six years in (2016)
Could you give a more complete example of how that works? I had a look at the `go/ast` package but couldn't find anything.
codesuki··on Learning Tree-Based Deep Model for Recommender Systems
Thanks! So, would you say the future for recommendation is deep learning? While I am not opposed to it, I find it very opaque.
codesuki··on Learning Tree-Based Deep Model for Recommender Systems
Can you share any ideas on how you would implement a new recommender these days? Any papers you like? I am trying to learn more about this topic, but good information is hard to come by. The best resources I found so far are presentations from Netflix and Spotify, but they skip over so many details and assume so much knowledge that it's hard to get good results without being able to consult someone with experience.
codesuki··on Envoy: Modern Proxy server with HTTP 1.1 and 2, GRPC supported reverse proxy
I am converting my proto to typescript with https://github.com/improbable-eng/grpc-web and until recently also used their go server library. That meant my grpc servers were listening on 2 ports, gRPC and gRPC-web. I since replaced the gRPC-web part with envoy. Works fine together with the gRPC-web typescript. The gist should give you an idea how to set up a small example. https://gist.github.com/codesuki/f0514368a30b483058007f5fe38...
codesuki··on Kubernetes at GitHub
Sorry to turn this into a different direction but I wanted to ask you about packaging + deployment.

I am about to try using helm for packaging my Kubernetes configs to make use of its templating. Being able to include Kubernetes changes in the release makes it less common to forget some new env variable etc.

The only thing I don't like is that it replaces kubectl in a way. And some comments here speak of problems during deploy and rollback which makes me wary.

What are some best practices around that topic? I was also thinking of deploying with spinnaker but could not confirm it works with helm.

Any info is appreciated!

P.S. have you thought about making a redis-cluster example repo? Redis 4.0 has a new `cluster_announce_ip` setting with which I made it work, but I still don't like my setup 100%.

codesuki··on Japan Shows the Way to Affordable Megacities (2014)
Yes, I noticed that that's why I said if you live the Japanese way you can save some money. So I am aware. Maybe I should rephrase that?

The beer is almost 8-10x more expensive compared to where I come from though.

You are right that most people here live and raise kids in smaller apartments. But just because this is the status quo and you don't 'need' more I wouldn't say it's good. Why should your kid have to live in a 5sqm room? I wouldn't be able to justify that for myself and would have to move outside. I think it's the mentality here, singles, for example, spend most time at work or similar so they don't mind having a tiny, affordable home. Also most Japanese (there are exceptions) normally don't invite many people to their home etc.

codesuki··on Japan Shows the Way to Affordable Megacities (2014)
Yes, you can eat cheap ramen. But do you want to eat cheap ramen every day? Most supermarkets in Tokyo are expensive. Want some Zucchini? Pay 200 yen for a tiny one. Want an apple? Pay up to 350 yen for one. Want a beer? Pay 300 yen for 0.3l. Restaurants? Want pizza? Pay 20$. Maybe that's normal in the US, I don't know but in my experience, a pizza is 6$ tops.

Of course, there are things that are cheaper. If you live as Japanese as you can, you can save some money. But rent prices are very high for a normal Japanese worker. As some people here already said salaries are very low.

Average income per age range[1]: 20s:348万円 (~34k) 30s:458万円 (~45k) 40s:586万円 (~58k) 50s:721万円 (~71k)

My ~55m2 room costs about ~1800$ without electricity etc. Since the owner recently changed for new people the price went up to ~2000$ Given it's a modern 'mansion' (apartment) with nice extras, in a very good location it's still cheap (wondering why every day.) I heard SF is crazy expensive, but that's a different problem. Most people here, even in IT jobs get about 2000 dollar per month. So where can they live? They can live in some 30 years old very tiny apartment or live outside of Tokyo and drive in 1 hour or more every day. Even if you live 30 minutes away by train, most trains coming from affordable areas are packed and you have to queue up to get into one, which can extend the commute time to an hour or more[2]. If you want to go to work by car be ready to pay around 300$ per month for a parking space.

Then, say you start a family. 55m2 won't cut it anymore. 80-100m2? Very few places. Very expensive. Most rooms here are between 20-35m2 made for singles.

Anyway, this maybe sounded negative but I love this city. All things considered, it's awesome and comfortable to live here.

[1] https://doda.jp/guide/heikin/2014/syokusyu/it/ [2] Source: co-worker

codesuki··on Building a CQRS/ES web application in Elixir using Phoenix
Thank you for sharing your thoughts!
codesuki··on Building a CQRS/ES web application in Elixir using Phoenix
Do you have recommendations for resources about this topic? I would like to learn more about it but most of what I read until now were superficial introductions, word definitions...

Could you exemplify what you mean by: `problems that shouldn't exist in the first place`?

codesuki··on Thorn – Drive Tech Innovation to Fight Child Sexual Exploitation
Thanks for the reply! Filled out the survey. Although I mistook the 'what are you looking for' and only chose one option, because right after the 'ok' (or similar) button popped up and I went to the next thing.
codesuki··on Thorn – Drive Tech Innovation to Fight Child Sexual Exploitation
Would be great to know more details about this as WhitneyLand already said. Like are there ways to contribute/join if you live in another country? Are they committed long term to do something or is this just PR? I don't have as much knowledge about the people as danso above.
codesuki··on Random Acts of Optimization
Nice article! I totally agree with the iterated approach to optimization (and refactoring). Since I am casually playing LoL I hope you will make it better and better ;)

Talking about optimization, I always wonder why some people have those veeery long loading times. Actually I wonder what is loaded at all. Effects or something? Of course I have no idea of the insides of the game but looking from the outside the map and models should be easily cached.

It would be great to hear more about those loading challenges!

codesuki··on The Evolution of Flux Frameworks
Try to use React without anything just to get a feel for it and then you will find out by yourself what it needed to make it work and what are its good and bad points. Working with big frameworks is too opaque and you are restricted to do what they deem good.
← PreviousPage 2 of 3Next →