Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
realharo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
331.
▲
by
realharo
10y ago
What are the advantages of retained mode UI (genuinely curious)? Assuming you have good enough primitives to work with (i.e. you write your render function in terms of HTML elements and other React components - or something similar, not raw
332.
▲
by
realharo
10y ago
Maybe there's a similarity in how it worked under the hood, but the users of those APIs most definitely could not write UIs in that style. In Win32 code, you still have persistent windows with child "windows" (UI controls
333.
▲
by
realharo
10y ago
It's even harder when you factor in people who seem to get a lot done quickly, but at the cost of huge technical debt that will slow the project down to a crawl in the long run. Or the other extreme, people who overengineer everything
334.
▲
by
realharo
10y ago
Simple is subjective. I find the React way of making web UIs, where you just write a `render` function, way simpler than manually mutating existing UI widgets to match the data every time it changes. Or some weird manual data binding via mo
335.
▲
by
realharo
10y ago
That doesn't seem to show the same information as VSCode though. If you go to https://goo.gl/zteCbj and hover over the `x`, it will show type A. If you hover over `y` it will show either AB or B|null, depending on whet
336.
▲
by
realharo
10y ago
Thanks. Sounds useful especially for library authors.
337.
▲
by
realharo
10y ago
The inspections, autocomplete, and auto-import suggestions work great for me, but it doesn't seem to have that "show type on hover" functionality (not even Ctrl+hover, or quick documentation show it), that VSCode and even the
338.
▲
by
realharo
10y ago
I guess it's only so with `strictNullChecks` enabled? Anyway, TypeScript's `strictNullChecks` in general has a huge hole in that it allows uninitialized properties ( https://github.com/Microsoft/TypeScript/
339.
▲
by
realharo
10y ago
Can you show a few examples of where this is useful?
340.
▲
by
realharo
10y ago
I dunno, I have had to live with this bug ( https://forums.geforce.com/default/topic/953432/geforce-mobi... , https://answers.microsoft.com/en-us/windows/forum/windows_10... ) f
341.
▲
by
realharo
10y ago
That's kind of exactly what the second half of my comment was about - if you have static typing, then this problem just doesn't exist. If not, then the problem is really no different from not knowing what your functions are return
342.
▲
by
realharo
10y ago
Yeah, I messed it up when quickly typing the code without thinking, it should've been JSON.parse, I fixed it now. Also regarding that article: you can call async functions from non-async functions - you will simply get the Promise obje
343.
▲
by
realharo
10y ago
There was a lot less support for them in the ecosystem back then, so you had to make certain trade-offs that you no longer need to make today.
344.
▲
by
realharo
10y ago
You can now use async/await directly in node (no transpiler necessary), and both Babel and TypeScript can compile them for browser use. Also there are now many more libraries that use native ES6 promises. Before: function getPhot
345.
▲
by
realharo
10y ago
Last updated in 2012. A lot has changed since.
346.
▲
by
realharo
10y ago
I use DockbarX ( https://github.com/M7S/dockbarx ), which you can configure to act very much like the taskbar from Windows (one of the best Windows features imo). Unfortunately the window previews don't work in Xfce
347.
▲
by
realharo
10y ago
>I'm saying Dev culture in not paying for tools is bad. I don't know, JetBrains seems really popular to me. Off the top of my head, I know of a few commercial tools that seem to be doing ok? (judging by their continued existe
348.
▲
by
realharo
10y ago
>With modern C++ language features, the "complicated language with the manual memory management" a lot less obvious or necessary Not completely though, you still have to think a lot more about ownership and object lifetimes (
349.
▲
by
realharo
10y ago
Nothing wrong with responsive UI, just don't create something meant for phones and then just scale it up to a larger screen. Which is what bootstrap, material design etc. often end up looking like.
350.
▲
by
realharo
10y ago
>at the cost of safety Are you talking about type safety? Because you can use TypeScript with React Native too, and it's probably a nicer dev experience than plain JS as well.
351.
▲
by
realharo
10y ago
>Bonus: you can test your business logic without having to run it on a phone. You can do that with JS (or TypeScript etc.) as well. Even Java (or Kotlin) and Swift, or anything really, if you care enough to separate it from the UI part
352.
▲
by
realharo
10y ago
There was also a period of only allowing "HTML5 apps" (during the jQuery era no less) if I remember it correctly.
353.
▲
by
realharo
10y ago
I don't know, that UI looks a little too "mobile first" to me (for something I would only use on my computer). EDIT: also, the colors seem quite dull from those screenshots
354.
▲
by
realharo
10y ago
I recently needed a simple self-hosted git web interface for about 3 people, and I only have a cheap 2GB RAM VPS that also runs other things. After looking at gitlab's requirements, I didn't even try. Setting up the gitea docker c
355.
▲
by
realharo
10y ago
It's certainly possible, but comes with a large number of its own issues: - C++ is a way more complicated language with the manual memory management. C is way too low level for things like this. - Complicated builds if you need to use
356.
▲
by
realharo
10y ago
On Linux, there is http://rr-project.org/ Or a commercial, more polished product http://undo.io/ Other environments, like JVM also have such tools (e.g. http://chrononsystems.com/ ).
357.
▲
by
realharo
10y ago
I think you're only meant to use nullable types in Kotlin for exactly that purpose - expressing a value that may or may not be there (aside from the compatibility with Java libraries of course). For things that just cannot be initializ
358.
▲
by
realharo
10y ago
Is there something that you can express with Option that you cannot express with a nullable type?
359.
▲
by
realharo
10y ago
Ah, thanks, especially these two parts help a lot https://sourceware.org/gdb/current/onlinedocs/gdb/Values-Fro... https://sourceware.org/gdb/current/onlinedocs/gdb/Typ
360.
▲
by
realharo
10y ago
Visual Studio's debugger has some really nice features and interface for dealing with multi-threaded code https://channel9.msdn.com/Shows/Visual-Studio-Toolbox/C-Plus...
More ›