Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ygra
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
361.
▲
by
ygra
5y ago
I've recently uninstalled Resharper, mostly due to slowness and frequent VS crashes. For refactoring I've found Roslynator to be a fairly good replacement. In the codebase I'm working on ice noticed the worse options for jump
362.
▲
by
ygra
5y ago
yFiles as well. In fact, parts of the book have been written by people involved in the early development of yFiles. I'm sure the dead tree variant of that book sits somewhere in a shelf in the office.
363.
▲
by
ygra
5y ago
Mutable value types in C# have a place, but they also come with plenty of pitfalls. Java tends to lean in a direction where those don't exist. Cf. captured variables in closures as well: having to treat them as final avoids a number of
364.
▲
by
ygra
5y ago
Ha, I too found the GWBASIC manual at home in a bookshelf and just read it. Afterwards I asked my father whether he had GWBASIC somewhere and he provided me with QBasic, which had integrated help (so I didn't have to refer to that 500-
365.
▲
by
ygra
5y ago
At least in Germany the most common reason not to use Zoom has been privacy and data protection, not so much security. Haven't heard the security reason yet.
366.
▲
by
ygra
5y ago
PDF can contain executable PostScript? That was new to me. I know the syntax is still PostScript, but without the programming language. Is there a nice description somewhere?
367.
▲
by
ygra
5y ago
I remember that being a reason why the MFT in NTFS is positioned in the middle of the drive so that on average the head has to travel less. And NTFS also supports putting small file contents directly into the MFT entry, which also cuts down
368.
▲
by
ygra
5y ago
> wonky nonsense with filters to support things like inner/drop shadows How else would you implement that with SVG? And in my experience filters have been very well supported for the past years. They are part of the SVG conformance
369.
▲
by
ygra
5y ago
I've ended up deciding for myself to never write JS and instead using TypeScript. So far it's working well. I just couldn't really see all that random guessing by the IDE as an advantage. If the only way to figure out whether
370.
▲
by
ygra
5y ago
They've historically done a lot of things on their own for JS. So perhaps VS Code + TS language server isn't quite on par with their JS tooling (which works a lot better with TypeScript type definitions, though, so perhaps it'
371.
▲
by
ygra
5y ago
At least with TypeScript, they've been using the official language server for a while. Sadly they still fall back onto their own JS-esque 'guess what this could be' mode in some situations where vanilla TS would have just emi
372.
▲
by
ygra
5y ago
The last feature that made me reinstall ReSharper was smart completion. Although by now IntelliCode seems to be often on par with it (plus some extras like automatically recognizing manual refactorings and offering them as actual refactorin
373.
▲
by
ygra
5y ago
It's quite useful for pair-programming, especially remotely (but some colleagues have started doing this in the office as well, since it means that each paired programmer also has their own workplace and can look stuff up without distu
374.
▲
by
ygra
5y ago
Not every country even has polarized plugs, though. The concept was new to me too at a time. The German Schuko plug for example is unpolarized, as is the euro plug, so there's no polarized plug options here.
375.
▲
by
ygra
5y ago
Every feature starts out with -100 points. So there's always a trade-off to do everything you can imagine to make every last corner case nice or shipping something in a reasonable timeframe. When lambda expressions were introduced they
376.
▲
by
ygra
5y ago
Is there any JIT that does auto-vectorization? I kinda got the feeling from C/C++ compilers that auto-vectorization is brittle and unpredictable even there and that's with all the time an AoT compiler can invest into optimization.
377.
▲
by
ygra
5y ago
In the dictionary case, TryGetValue also saves you from having to hash and lookup twice unnecessarily (once for ContainsKey, and once for GetValue).
378.
▲
by
ygra
5y ago
Garbage collection itself isn't really slow, per se. But allocating a lot of short-lived objects on the heap still means that a lot of objects have to be reclaimed fairly frequently. And at least .NET's garbage collector isn'
379.
▲
by
ygra
5y ago
The Unicode character doesn't really have an intrinsic width; the font will define one (and I think a font could define a glyph even for things like zero-width spaces). But as soon as you want to display text you'll get into all s
380.
▲
by
ygra
5y ago
The runtime team certainly looks at discrepancies where C# and F# generate different IL that should still run about the same when JIT-compiled. So while C# is the main focus (also since the runtime libraries are written in C#), F# is not fo
381.
▲
by
ygra
5y ago
.NET actually was known as COM+ for a time before public release. Environment variables for tweaking internal behaviour still retain that moniker.
382.
▲
by
ygra
5y ago
1. You're probably not using this on every other method, and the name is consistent with other features in the same vein (CallerMemberNameAttribute, etc.). 2. Something like nameof wouldn't really work here as the idea is to re-us
383.
▲
by
ygra
5y ago
On the other hand, how much broken code has been fixed to properly deal with paths just because of that? I'd argue that to be a major benefit. Same with Windows Vista forcing developers to write applications that work properly as a non
384.
▲
by
ygra
5y ago
That would only shake out anything if you'd also test in a Turkish locale, wouldn't it? Since Unicode casing rules are locale-dependent and en-US doesn't care much about dotless i or dotted i.
385.
▲
by
ygra
5y ago
The only common place where it doesn't work is in CMD for executing programs and as arguments for built-in commands. Everything else goes directly to the relevant APIs which don't care about / or \. These days using CMD inste
386.
▲
by
ygra
5y ago
For anyone curious, this is called Pseudo-localization ( https://en.wikipedia.org/wiki/Pseudolocalization ). I first singled across this in Raymond Chen's blog.
387.
▲
by
ygra
5y ago
I've used to have a space in my user name and even contemplated to add a bit of non-1252 Unicode. You find a lot of issues, but unfortunately often in tools you have little control over and end up not being able to work effectively at
388.
▲
by
ygra
5y ago
It's basically the same on Windows with NTFS. Just a bag of 16-bit words instead of bytes.
389.
▲
by
ygra
5y ago
-p:Property=Value (or /p: Property=Value) has existed in Ms build since the beginning. That's not a .NET 5 or 6 thing.
390.
▲
by
ygra
5y ago
One way of working arrive such issues is to use subst. That way the application thinks your project directory is actually located on P:\ or something like that.
More ›