TXV
Ask HN: Can you recommend a GraphQL server library for Go?
So far I developed my GraphQL server in Java, but it's 2 years now that every single time I try to upgrade the dependencies, I fall down a rabbit hole of mysterious errors, JDK incompatibilities and inscrutable stack traces. Frankly I'm a bit tired of debugging it. I would like to migrate to Go, which is what the rest of my codebase is written in.Which Go GraphQL server library would you...
Tokei 12: a fast and accurate code analysis CLI tool and library in Rust
With that said, in Europe I ever came across exactly zero job ads that require Haskell, and exactly one in Singapore. In North America / Bay Area it might be more common though.
Lexical-sort, a Rust crate for sorting strings properly (and quickly)
It also has a free tier up to 10 users, that retains the most recent 10k messages.
Ask HN: Have you migrated from Go to Rust?
Our current codebase is written in Go, mostly web servers, middleware and queue workers. Some of Rust strengths (memory safety, concurrency, absence of GC) look well suited for our problem domain. We currently have the opportunity to overhaul part of our system to reduce some legacy technical debt, so I'm wondering if it makes sense to rewrite in Rust. I'm not looking to solve a specific...
Ask HN: More about HN's mission: curiosity vs. indignation
I happened to come across a post from a moderator (-> dang) highlighting HN's mission toward intellectual curiosity.In their comment history, dang frequently (and adamantly) states that repetition and indignation are diametrically opposite to intellectual curiosity.I find this concept very interesting and I would like to read more in-depth scientific or sociological analysis about it, e.g....
China Has Two Paths to Global Domination
“Friends”: North Korean Novel Published in the US
Batching vs. Latency, and Jobqueue Models
Coronavirus: Why Dutch [intelligent] lockdown may be a high-risk strategy
So I think this mindset is the first thing you need in order to get going. It will inspire you to write more and better.
Secondly, my practical advice is the following: divide your doc in sections. Plan them out beforehand by writing just titles and subtitles. See how they fit together, if their sequence makes sense. Rearrange them until they convey a clear story. Usually you might want to have three macro-sections: 1. Introduction - what is the document about, who is it indended for, and why it was developed. This helps set expectations right off the bat. You can also describe the big-picture goals of the system/feature. What is it used for. What are the main use cases. 2. System/Feature Overview: here you can describe the big-boxes architecture, the main components (apps, servers, middleware, db, whatever), what they do, and how they work together. Describe communication protocols and standards followed. Describe functionalities the system provides. You can follow up on the use cases you mentioned in part 1 and show how the system delivers them. 3. Technical Details/Implementation Choices: depending on the audience of your doc, you might want to document non-obvious design choices. This is also where might want to describe expected inputs and outputs. If it’s an API, describe the routes, accepted methods, paylods. Provide actual examples, as many as you can. Describe the data model.
Then as you follow this trace, you might find out you wrote a lot about a certain topic. Depending on the level of detail you want to achieve, break it down in smaller sub-sections, or move parts over to section 3.
As for the writing style, you might want a prose with short sentences and easy language. Make sure to explain stuff thoroughly and not take anything for granted. Everything that looks damn obvious today, won’t be 6 months from now.
Sorry if this looks like a stream-of-consciousness. It sort of is. I hope you can find some of it useful.
But sure, if you want to get a server up and running from scratch very quickly for a POC or a simple API-over-a-database app, this lib might be a good starting point.
It Pays to Be Rich During a Pandemic
Why I’d Rather Be in Italy for the Coronavirus Pandemic
Show HN: Yet another Go mock code generator
America’s Most Powerful Medical-Debt Collector
Ask HN: How to effectively deal with recruiters?
I'm a Golang developer based in western Europe with around 5 years professional experience. I frequently receive unsolicited messages from recruiters, mostly on Linkedin, introducing this and that amazing job opportunity. Right now I'm happy where I am, but I won't mind hearing them out if said opportunity is especially compelling.I'm not sure how to engage with them in an effective way. My...
I think this is decently respectful of the candidate's time, while giving us the opportunity to review some actual code written by them. And yet, most of them don't even bother... Well, I get that you are busy, but I don't feel comfortable investing time in an on-site interview without seeing any code first.
Disclaimer: If they provide a link to their github with some solid projects or OSS contributions, we skip the take-home altogether.
I don't entirely agree with this. Many speakers talk about their experience with some technology or problem. If it's not presented as a sales pitch - which sometimes might happen -, it is definitely valuable to hear about real-world use cases. And then you even get to ask them questions at the end. It is an opportunity to share info and practices that you can hardly get in the same way from a non-interactive blog article or a forum thread.
> When people attend conferences, they're doing it to be seen
This might be true, and as you say, it's all business. I don't think this is necessarily bad (I'm not saying that you think so). Conferences are useful to meet people in person and expand your network, which is also very valuable. Maybe some do this as a deliberate calculation, some others are genuinely interested in socializing. That's all very fine. And ultimately if speaking at a conference has chances to improve my resume, why would I not go for it? It's all business, right?
> If you're at a talk that's truly unbearable, just tune out or walk out if it's that bad.
This is good advice. Overall I would say conferences are a decent tool for staying in touch with the community. Not all of them are bad, and not all speakers have inflated egos.
Ask HN: Go modules and semantic import versioning
With the release of Go 1.13, I've recently started digging into Go modules in order to upgrade my code base.After a whole day of reading and researching, I'm still baffled by some of the features. In particular, I find problematic the combination of these two pieces of docs:1 About semantic import versioning: https://github.com/golang/go/wiki/Modules#semantic-import-versioning2 Releasing a v2+...
An Exercise Program for the Fat Web
The main issue is that Italy is part of the EU, and also one of its major economies. The argument about unfairness is absolutely not a joke. In fact, it’s the main point. Doing business in China as a foreign-owned company in many sectors of the economy is, simply put, a huge challenge, when not outright impossible. This is mainly due to opaque or protectionist regulations. State-backed competitors also make the market harder to penetrate since they will always win price wars. Then add lack of concern for intellectual property.
Chinese companies don’t have these problems in Europe. Not even close. They enjoy all the advantages of a (basically) free market, whereas the opposite is not true. This is where the “unfairness” is.
The EU has been trying to find some leverage against China to balance the scale for some time now, albeit our efforts have been mild. That’s because the EU doesn’t have a common foreign affairs strategy and individual member states are always more concerned with their internal politics to actually go figure out one.
So China can just come here, pick a country that can be easily enticed by the promise of bilateral cooperation and handsome investments, and all of a sudden the EU now has a member who will start voting against anti-China policies.
Without a unified will, the EU member countries don’t have the contractual power to demand and obtain anything from China. We will be an easy game for them.
Italy and China sign memorandum deepening economic ties
Ask HN: real-world examples of HTTP servers in Elixir?
I need to develop some small frontend for internal use at my company and I have absolute freedom over the tech stack.I decided to take this opportunity to learn Elixir.The requirements of this project are very simple. I's a server which fetches some data from another HTTP API and uses it to render a bunch of HTML pages.I'm following the Elixir tutorials on the official site. I would like at the...