Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
goto11
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
49 ms
·
571.
▲
by
goto11
5y ago
> Logic is logic, so whether you program in code or via some wack gui, you still need programmers. Perhaps, depending on your definition of programmers, but lots of people can use logic. An accountant making complex calculations and fore
572.
▲
by
goto11
5y ago
I still use the "web safe palette" when choosing color codes for CSS
573.
▲
by
goto11
5y ago
Why don't you just use the Lynx browser? I'm sure all web sites you actually care about render fine in Lynx.
574.
▲
by
goto11
5y ago
Try to take Excel away from business people and watch the rebellion rise.
575.
▲
by
goto11
5y ago
> Communists often get a moral pass somehow, unlike Nazi and I wonder if it's because most schools and history teachers are biased I think there is a simpler explanation (assuming you went to school in a Western country). The USSR u
576.
▲
by
goto11
5y ago
I don't think Word or Excel need any "apologia". They are incredibly successful software products which in general are well liked by their users.
577.
▲
by
goto11
5y ago
Where were you in the 90's if web pages loaded fast? Surely not behind a modem.
578.
▲
by
goto11
5y ago
The reality is that users overwhelmingly prefer "bloat", i.e. feature rich integrated tools. Joel Spolsky explained it many years ago: Sure everyone only use 5% of the features of Word - but they use different 5%, which is why n
579.
▲
by
goto11
5y ago
>> Is there a non-core ASP.NET that also lives inside that framework? > Yep! No, the "non-Core" ASP.Net framework is not ported to the .Net Core platform (i.e. .net 5+). Only ASP.Net Core runs on .Net Core. This is unfort
580.
▲
by
goto11
5y ago
I believe joining an array of strings is still faster in JavaScript, since the combined size can be known up front.
581.
▲
by
goto11
5y ago
The cost is not the allocation per se, the cost is copying the bytes. When concatenating two strings, the bytes from both strings are copied into the new string. If you repeatedly concatenate, the bytes end up getting copied many times. E.g
582.
▲
by
goto11
5y ago
The naming really is confusing. "Core" was the keyword for several semi-independent projects. There is .Net Core, which was a rewrite of the .Net runtime to make it platform independent. Then there is ASP.Net Core is which is a re
583.
▲
by
goto11
5y ago
> OK, maybe someone's name is one character that's not possible to represent with Unicode. What do you want me to do about it? The example with The Artist Formerly Known as Prince is rather contrived. More realistic is the Chin
584.
▲
by
goto11
5y ago
I was wondering about it in the context of "yet, other languages would do the right thing by default". Repeatedly concatenating to the same string (as opposed to concatenating an array of strings in one go) would be slow in any la
585.
▲
by
goto11
5y ago
Totally off topic I know, but what is the concern with String.Concat ?
586.
▲
by
goto11
5y ago
Fortunately this is also the simplest to implement, since this is the default. So just don't go out of your way to write code to restrict these to some arbitrary subset of characters and tell me I have an "illegal name". You
587.
▲
by
goto11
5y ago
So you are suggesting programmers should just assign people names conforming to some standardized schema? You might get away with that for a government website in some states, but good luck being a commercial site in competitive market and
588.
▲
by
goto11
5y ago
The key takeway is that the simplest handling or names (as an opaque unicode string which is not assumed to be stable or unique or conform to any particular structure) is also the one which have the fewest problems. The problems arise whe
589.
▲
by
goto11
5y ago
A more realistic example for 40 ("people have names"): Newborns might not have a name. Lots of systems might have to handle newborns.
590.
▲
by
goto11
5y ago
That is just spooky and creepy. If you are in a position where you can fire people, they will know it.
591.
▲
by
goto11
5y ago
Yeah you can say that - the browser environment with DOM and other Wep API's is a framework for client-side apps. Single-page application frameworks like Angular, React etc. are frameworks on top of this, which provide higer-level abst
592.
▲
by
goto11
5y ago
Angular is a framework for single-page applications, based on components with templates. If a property of a component changes, the rendering is automatically updated by the framework. This is supposed to free you from direct DOM manipulatio
593.
▲
by
goto11
5y ago
Tagged unions still require rather cumbersome JavaScript syntax to use. While the type inference support is great, much of the benefit is IMHO lost because of the syntax.
594.
▲
by
goto11
5y ago
As far as I know it is JIT compiled to native code. But it is a rather complex process, where the execution is profiled which informs the JIT'er to re-optimize. This obviously have some overhead compared to executing AOT compiled code,
595.
▲
by
goto11
5y ago
JavaScript is a compiled language, at least when executed by V8. Angular-CLI is probably slow because of the data structures used.
596.
▲
by
goto11
5y ago
I actually think Angular is fine, and competition between frameworks benefits everyone. React was just a better fit for this particular project. I feel Angular is too much overhead when you don't use the more advanced features.
597.
▲
by
goto11
5y ago
I have written a piece of code which transform an Angular project into a React project. Wonder if there would be interest if I open-sourced it?
598.
▲
by
goto11
5y ago
Ah, I assumed it was just a realistic looking exercise. If they actually used code written by the applicant, I can definitely see all kinds of problems!
599.
▲
by
goto11
5y ago
What legal issues?
600.
▲
by
goto11
5y ago
Beginners tend to obsess about the precise definitions of terms. Possibly because a lot of teaching is about learning definitions (because it is easy to test) or perhaps because in subject like math the definition really is the meaning.
More ›