Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
EvanPlaice
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
EvanPlaice
11y ago
Maybe/Nothing is a perfect example of the null object pattern. Either provide a sane default or a typed instance with empty values rather than checking for null/undefined. Ie the 'null object' in 'null object patter
32.
▲
by
EvanPlaice
11y ago
I saw a comment on another post that captures the 'nature' of Medium quite nicely. Medium, somewhere between half-baked and well-done. Considering the sheer number of 'self-promotion disguised as content' and 'Dea
33.
▲
by
EvanPlaice
11y ago
Use the null object pattern. If you're checking a value to see if it's set by testing for null/undefined, you're doing it wrong. This is good advice for any language, not just JS. Besides, using null as the default for a
34.
▲
by
EvanPlaice
11y ago
It's hard to extract value from the economy via short-term pump and dump campaigns when the majority defaults to diversified index funds. Investors with heavy ingluence/ownership of media have a lot of potential to earn from manip
35.
▲
by
EvanPlaice
11y ago
See Poe's Law "Without a clear indicator of the author's intent, parodies of extreme views will be mistaken by some readers or viewers for sincere expressions of the parodied views."
36.
▲
by
EvanPlaice
11y ago
Thanks! I wasn't aware of this approach. Looks like a reasonable single-pass solution.
37.
▲
by
EvanPlaice
11y ago
The widespread dragnet of data collection currently used is a clear violation of the 4th Amendment of the Bill of Rights. > "[t]he right of the people to be secure in their persons, houses, papers, and effects, against unreasonable
38.
▲
by
EvanPlaice
11y ago
Bitcoin and other forms of non-standard currency depend on crypto. 1. The central banking system feels threatened by competition. 2. Government is afraid that people will use it to launder funds and dodge taxes. 3. Law enforcement, Homeland
39.
▲
by
EvanPlaice
11y ago
Instead of using built-in method calls that come with a library, why look into the algorithms used to generate the different transforms? I once worked on a UI where the users wanted to capture a screenshot of the current page. Because color
40.
▲
by
EvanPlaice
11y ago
But you can sure as hell discourage/demotivate them by standardizing all classes into a game of 'guess the question', all work into mechanical problem solving, and all tests into multiple-choice bubble filling. The first clas
41.
▲
by
EvanPlaice
11y ago
Isn't that what venture capital supposedly promises. Workers who are vested in the company are hyper-motivated to see it succeed. In theory, it's a great idea. Who wouldn't love to be an early employee of the 'next Micro
42.
▲
by
EvanPlaice
11y ago
In the bigger picture of things 'expensive' is a highly relative. You have to also factor in risk and the other secondary costs. Not sure if this applies to your company but I have some prior experience as one of those SME/co
43.
▲
by
EvanPlaice
11y ago
Corporations have to answer to the board. The board acts in the interests of investors/stakeholders and will eventually have to deal with 'extracting value' from the company to meet short-term investor demands at the expense
44.
▲
by
EvanPlaice
11y ago
Since the US is increasing it's aid to India year over year to address the growing humanitarian crisis, I suggest a different alternative. Use the H1-B fees to fund the foreign aid. Call it a 'ship jumper' tax. In 2013 the go
45.
▲
by
EvanPlaice
11y ago
What about using observables? Unlike promises, they can be cancelled at any time. Rxjs provides the observable data type. The extensions are functional reactive operators. There are operators used to retry, throttle, filter, debounce, etc.
46.
▲
by
EvanPlaice
11y ago
Can't forget the declarative regular and context-free languages. XLST and other template syntaxes are another interesting case. They look mysteriously like a declarative context-free language but have imperative characteristics of a tu
47.
▲
by
EvanPlaice
11y ago
The application layer is decoupled from the rendering layer specifically for reuse across multiple platforms. That means the data layer that handles data fetching and change propagation works everywhere. The view rendering layer is the part
48.
▲
by
EvanPlaice
11y ago
You're right, I was thinking of platforms more like Cordova. I did a little reading and it appears that React Native, Appcelerator, and Xamarin are pretty close to feature parity.
49.
▲
by
EvanPlaice
11y ago
I was specifically referring to statically typed OOP. You're right, I haven't tried OCaml or Haskell so I can't make a qualitative judgement on how easy/hard type coercion is in either.
50.
▲
by
EvanPlaice
11y ago
Awesome write up. While I agree that dynamically typed languages -- by their loosely defined API requirements -- are more difficult to scale, it's not difficult to add type checking and/or provide a well structured public API wher
51.
▲
by
EvanPlaice
11y ago
React Native doesn't use embedded webviews and provides an escape hatch to write native code when Reactive Native's capabilities fall short.
52.
▲
by
EvanPlaice
11y ago
There are two fundamental issues with the mobile first approach. Duplicate effort does incur a real cost in terms of time to delivery. Duplication is a clear sign of inefficiency. A platform that provides native support for multiple platfor
53.
▲
by
EvanPlaice
11y ago
Lazy evaluation is no longer exclusive to Haskell and other functional languages. C# has had Linq for lazy evaluation of data collections for many years. Javascript supports observables now and ot's only a matter of time before they&#x
54.
▲
by
EvanPlaice
11y ago
The C category. A 4th category is probably needed for statically compiled, garbage collected, OOP languages. The reality is, most/all of the most popular languages blur the lines. Javascript is getting official support for OOP as well
55.
▲
by
EvanPlaice
11y ago
Thank you for all your hard work on Mono and bringing .NET to the OSS ecosystem. Hopefully, the regulatory approval stuff works out without issue. Microsoft needs better representation in OSS and I can't think of anybody better equ
56.
▲
by
EvanPlaice
11y ago
V8 is a runtime. Cygwin is an entire OS ecosystem of dependencies, tools, libraries. POSIX utilities are so tightly coupled to the OS, it's virtually impossible to use them with any degree of confidence without importing the entire uni
57.
▲
by
EvanPlaice
11y ago
Porting existig software to JS is advantageous for a few reasons. NPM makes cross-platform installation simple, easy, and scriptable by default. Dependency management. The package manager supports both local and global installations, as wel
58.
▲
by
EvanPlaice
11y ago
Kinda funny how things work out. Back when MS broadcasted OSX/ nix compatibility for Visual Studio I felt it necessary to comment that .NET development has been supported in OSX/ nix for over a decade. In short, Miguel De Icaza sh
59.
▲
by
EvanPlaice
11y ago
Not hard to parse this one out. Government doesn't like encryption because it limits their ability to track/monitor people. Tracking is only supposed to apply to foreign actors but in a nation of immigrants everybody is essentiall
60.
▲
by
EvanPlaice
11y ago
It's much easier when you can see all of the staged/unstaged files and drill down to staging/unstaging individual lines within those files. It also highlights whitespace nastiness (ie trailing spaces, missing newline at end o
More ›