Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
renke1
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
151.
▲
by
renke1
9y ago
That sounds more like a tooling problem. Actually, I started to put SQL directly into my source code. IntelliJ, for instance, has really good support for embedded SQL code (syntax highlighting, auto-completion, executing queries including p
152.
▲
by
renke1
9y ago
I was playing around with Puppeteer the other day and was wondering if it was possible to render a web page to a single page PDF (a page with fixed width and variable height). Basically like creating screenshot without losing the text infor
153.
▲
by
renke1
9y ago
So, can I use this to do this: Render your SPA (different index.html) when a login cookie is set and otherwise render your landing page (yet another index.html)? - Such that that my http://example.com can always be cached (unles
154.
▲
by
renke1
9y ago
I see no problem in a "monolith" using different kinds of databases.
155.
▲
by
renke1
9y ago
I recently started using GraphQL and I love. The best thing about GraphQL is having a standard interface for queries (and more) and all tools that built upon it (such as Apollo). To name a few existing and upcoming (?) features from Apollo:
156.
▲
by
renke1
9y ago
My current stack: Backend: Go (standard library mostly, httprouter, and some homegrown libraries for stuff like dependency injection, configuration etc.) Frontend: TypeScript (with React and Redux/mobx) Other than that, I think using s
157.
▲
by
renke1
9y ago
I was wondering too, but Badger doesn't offer transactions and stuff like that (on purpose). It seems to be more low-level in some regards. https://github.com/boltdb/bolt
158.
▲
by
renke1
9y ago
I don't think you have to think much about strict mode these days. Most transpilers automatically compile to strict mode anyway (I think Babel and TypeScript do).
159.
▲
by
renke1
10y ago
I agree with everything you said. One thing though, I think "One Special Bigger Request" still makes sense in a lot of situation where you have some kind of "transaction" going on. I often encountered code that calls mul
160.
▲
by
renke1
10y ago
Why is that? -- Redux, React and TypeScript is a wonderful combination.
161.
▲
by
renke1
10y ago
To be fair, you should compare React+<state management library/framework> with Angular because a lot of complexity in the frontend comes from dealing with state. Sure, you can just use setState and go with React only, but not man
162.
▲
by
renke1
10y ago
Just use a compile-to-JS language if you don't like JS. Traditional web sites don't necessarily need JS (although it often makes them better), but web application most certainly need JS.
163.
▲
by
renke1
10y ago
Science fiction: - House of Suns by Alastair Reynolds - A Deepness in the Sky and A Fire Upon the Deep by Vernor Vinge All of which were recommended here on HN and I really love them, especially House of Suns.
164.
▲
by
renke1
10y ago
Another alternative would be service workers, which are (partially) supported by Chrome and Firefox according to [1] [1]: http://caniuse.com/#feat=serviceworkers
165.
▲
by
renke1
10y ago
There is also Cache-Control: immutable [1] which prevents browsers requesting the given file even when the site is refreshed. It's experimental though. [1]: http://bitsup.blogspot.de/2016/05/cache-control-immu
166.
▲
by
renke1
10y ago
This looks really nice. However, what I really want for React is a style-agnostic component library that basically extends the regular set of HTML elements, but comes with no "visual" styling (other than really basic styling like
167.
▲
by
renke1
10y ago
Also see interpret [1] which is used by Webpack internally (afaik). For instance, when you name you configuration webpack.config.ts it will be transpiled by TypeScript before being loaded. [1] https://www.npmjs.com/package&#
168.
▲
by
renke1
10y ago
Yes, of course, you are right. I forgot about formulas altogether! That's where LaTeX really shines! But even then you could probably integrate MathJax or KaTeX with Markdown. That would give you the best of both worlds.
169.
▲
by
renke1
10y ago
Don't get me wrong. Learning TeX is probably a worthwhile experience. I was actually trying to get a deeper understanding of TeX, but – to be honest – it's not that easy to get started and thus I gave up pretty quickly. Mostly bec
170.
▲
by
renke1
10y ago
The programmers's war wounds.
171.
▲
by
renke1
10y ago
I used LaTeX a lot in university, but I wouldn't recommend it to anyone. Even a minimal (and good looking) document requires a lot of (La)TeX knowledge. You can of course use one of many existing templates, but you will quickly feel lo
172.
▲
by
renke1
10y ago
They feel basically like the new Thinkpad keyboards (e.g. X1 Carbon). The only weak point is the USB port which can break pretty easily when you travel a lot with your keyboard, although with enough care it should not be a problem.
173.
▲
by
renke1
10y ago
My favorite keyboard is an external Thinkpad keyboard [1]. I can't live without a TrackPoint because I never have to leave the home row with it! [1] https://www.amazon.com/dp/B00F3U4TQS/
174.
▲
by
renke1
10y ago
Frontend: TypeScript, React, MobX There is (in my opinion) no reason not go with TypeScript. It's strictly better than ES6. React and MobX because of their simplicity. Backend: Go No particular reason to choose Go other than it's
175.
▲
by
renke1
10y ago
I admit that I usually read the comments first and then go to article.
176.
▲
by
renke1
10y ago
It works okay on my X1 Carbon, but it's still not perfect because the interface font size cannot be changed. That means you have tweak your editor font size and zoom factor to get a good result.
177.
▲
by
renke1
10y ago
Yes, the editor font can be changed. The interface font (menus, sidebars) not so much. The only thing you can do is scale the whole UI which feels awkward at best.
178.
▲
by
renke1
10y ago
Sounds about right. More broadly said, a linter shows things that you should fix.
179.
▲
by
renke1
10y ago
I switched from Atom to Visual Studio Code for my new project (TypeScript frontend and Go backend) and I am really impressed. Although the Go support is really good in Atom (missing a few things like debugging and jump to definition via mou
180.
▲
by
renke1
10y ago
Thanks, the last time I looked there was no real support for React in combination with semantic-ui. I will try out this one.
More ›