Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
krishanath
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
krishanath
8y ago
If a frog is put suddenly into boiling water, it will jump out, but if the frog is put in tepid water which is then brought to a boil slowly, it will not perceive the danger and will be cooked to death. So today you don't see a major p
2.
▲
by
krishanath
8y ago
>> state passed around as props Context provides a way to pass data through the component tree without having to pass props down manually at every level. https://reactjs.org/docs/context.html >> single s
3.
▲
by
krishanath
8y ago
What is it about React, that needs you to use a state management library? I have programmed in Servlets, JSP Model 2, ASP.NET, iOS, Android, Windows. None of these require a state management library. But React developers seem to think a sta
4.
▲
by
krishanath
8y ago
There are tiny alternatives to React that support JSX syntax. This library is better when you want to be "closer to the metal": https://github.com/wisercoder/uibuilder
5.
▲
by
krishanath
8y ago
jQuery is a library of shortcuts. Everything you can do using jQuery you can do without jQuery, but that's like saying everything you can do in Excel you can do with just a Calculator app. Yes, it is possible, but why would you want to
6.
▲
Doctor falsely accused, career destroyed by Google
(cnn.com)
6 points
by
krishanath
8y ago
|
2 comments
7.
▲
by
krishanath
8y ago
I noticed many people have found flaws in my assumptions and estimates, but nobody wants to post an alternative estimate? Even if you increase taxes to 40% (in reality even in CA the effective tax rate as opposed to marginal is not that hig
8.
▲
by
krishanath
8y ago
If you buy a house that's an investment, not an expenditure, so it is not included in monthly expenses. 45% is your marginal tax rate, not effective tax rate.
9.
▲
by
krishanath
8y ago
S&P 500 actually returned 10% between 1988 and 2018. If you invested $10K in S&P 500 in 1988 it would be worth $205K today. If you use a compound interest calculator you can see this corresponds to 10% growth per year.
10.
▲
Ask HN: Net worth of software engineer at retirement?
22 points
by
krishanath
8y ago
|
23 comments
11.
▲
by
krishanath
8y ago
Here's something few people know: Sun saw Telescript as a threat (because Sun was all about "the network is the computer" and now Telescript was invading this space) and started the Java project in response. Microsoft saw Gen
12.
▲
Ask HN: How do Google's iOS apps track your identity even after reinstalling?
45 points
by
krishanath
8y ago
|
21 comments
13.
▲
by
krishanath
8y ago
>> React has nothing to do with styles That's one of its limitations. React is a component technology and doesn't solve the problem of clashing styles, element ids and so on. Web components is a component technology that d
14.
▲
by
krishanath
8y ago
Not a major framework, but UIBuilder lets you use Web Components using JSX, just like React: https://github.com/wisercoder/uibuilder
15.
▲
by
krishanath
8y ago
> I hope you're fine with the same thing happening to you when someone finds your views repugnant. This doesn't randomly happen to everyone.
16.
▲
by
krishanath
9y ago
Here's an expression parser, written in C#, that also has the ability to execute the parse tree: https://github.com/Rajeev-K/formula-parser
17.
▲
by
krishanath
9y ago
One problem not covered by this story: it takes too many years to acquire a medical degree. In India, you can go to medical college right after graduating from high school. It only takes 5 years in the medical school to become a doctor. By
18.
▲
by
krishanath
9y ago
>> MVC is easy for small apps but has a tendency towards spaghetti in larger codebases. Disagree. There is no reason to believe MVC tends towards spaghetti in large codebases. Controllers and views implement a small portion of the app
19.
▲
by
krishanath
9y ago
That's because you used React Router, which makes the router a view component. Router should be independent of view technology. If you had used React in the MVC style you would not have had to use Redux. Think about how session state w
20.
▲
by
krishanath
9y ago
>> it appears hugely over complex and unnecessary Which it is, actually! Think about how MVC works in iOS, or ASP.NET MVC or JSP Model 2, etc. In the case of the latter two, your state is stored in the session as simple, regular objec
21.
▲
by
krishanath
9y ago
The reason eye glasses cost so much is the multiple monopolies of Luxottica. Luxottica owns: (1) nearly all brand name frames including Ray-Ban, Oakley, Prada eyewear, Armani eyewear and so on, (2) nearly all retail stores such as LensCraft
22.
▲
by
krishanath
9y ago
Sorry, to me that's an unsatisfying answer. You are not saying what problem redux is solving for you. "It is like functional programming" does not even attempt to explain what the problem being solved is.
23.
▲
by
krishanath
9y ago
No, if you get/set methods that doesn't imply javascript with jquery! I am using React, but not ReactRouter or Redux. I hold my application state in a tree, and the tree nodes have get/set methods. My state tree is not immuta
24.
▲
by
krishanath
9y ago
Holding application state in a tree is nothing new. It is as old as software development itself. You don't need Redux for that. Actions and reducers are not solving any problems. If your application needs undo/redo then that'
25.
▲
by
krishanath
9y ago
So what is the problem solved by Redux? I don't see a simple explanation of that in your write up. Most people struggle when asked this question. Some people go on about "time travel" and other fancy things that have nothing
26.
▲
by
krishanath
10y ago
Again, the government should not collect citizen's personal information and make it "public" information. Even when certain information is known about a private citizen, there should be laws governing what is allowed use of t
27.
▲
by
krishanath
10y ago
The government should not put citizen's personal information in the "public domain". When government collects personal information about its citizens there should be laws governing what is allowed use and what isn't.
28.
▲
by
krishanath
10y ago
Sure, but we need new laws on how public information can be used. Just because you want to register to vote shouldn't mean your date of birth can now be made freely available to identity thieves and potential employers who can use the