Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
whitefish
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
As China Marches Forward on A.I., the White House Is Silent
(nytimes.com)
5 points
by
whitefish
9y ago
|
0 comments
2.
▲
by
whitefish
9y ago
On the one hand I am glad they are continuing to enhance TypeScript. On the other hand I am concerned that TypeScript is becoming a very bloated language. If you have seen the latest edition of Stroustrup’s C++ Programming Language book you
3.
▲
by
whitefish
9y ago
If that’s bizarre consider the fact that Microsoft does credit check on employees every two years, as a condition of employment, and you can be fired if something really bad shows up. This is for employees that work in the Azure division an
4.
▲
by
whitefish
9y ago
Sorry, that’s not making sense. In the MVC I am used to there’s only one controller active at one time and that controller owns the entire screen.
5.
▲
by
whitefish
9y ago
If your model layer objects are firing events you have problems already because it obscures the call graph. I try to avoid that style. The controller should update the model objects, then if a view update is needed it should be triggered by
6.
▲
by
whitefish
9y ago
Can you put a breakpoint in the template? In .tsx templates you can. Templates frequently need loops and conditionals. In the case of .tsx this logic is in TyprScipt so you can debug it just like any other TypeScript. In the case of Angular
7.
▲
by
whitefish
9y ago
So basically you prefer something more along the lines of Model View Controller. Me too. When React was first released it was advertised as “the ‘V’ in MVC”. Unfortunately the developer community took it in a different direction.
8.
▲
by
whitefish
9y ago
Have you considered using MVC? It works well. Search the complementary tools page of React.
9.
▲
by
whitefish
9y ago
JSX standard is independent of React and can be used with Web Components. Also, HTML import is unnecessary to use Web Components. The key technologies in Web Components are ShadowDOM and Custom Elements.
10.
▲
by
whitefish
9y ago
Which Javascript MVC framework did you use? Some people who used Angular hated it and conclude that MVC is horrible. No, Angular is horrible, not MVC.
11.
▲
by
whitefish
9y ago
None of these problems are unique to web development. How do you solve these problems in iOS? In iOS you use MVC, and the Application object holds the state as a tree. MVC has a better solution to all these problems.
12.
▲
by
whitefish
9y ago
Redux is unnecessary complexity. Anyone considering it, please do yourself a favor: check out an MVC framework and see how simple it is. Remember, when React first came out they described at as "React is the V in MVC." Adopt MVC i
13.
▲
by
whitefish
9y ago
Note that JSX is not limited to React. You can use JSX (or TSX in the case of Typescript) as a better replacement for Moustache or Handlebars. See here: https://github.com/wisercoder/uibuilder
14.
▲
by
whitefish
9y ago
Real estate agents (in the USA at least)
15.
▲
by
whitefish
9y ago
If you want to go with MVC use this: https://github.com/Rajeev-K/mvc-router
16.
▲
by
whitefish
9y ago
This will lower salaries in India for IT professionals. As a result outsourcing to India will become more attractive.
17.
▲
by
whitefish
9y ago
Should hospitals such as UK's NHS and other such organizations use dumb terminals (or chromebooks) instead of Windows? That way data is centralized on servers where it is easy to backup and harder for hackers to hold to ransom.
18.
▲
by
whitefish
9y ago
Routers can and should be independent of View technology. Here's one that works well for React but is independent of React: https://github.com/Rajeev-K/mvc-router The MVC model is well-understood, and does not req
19.
▲
Ask HN: How much have you saved for retirement?
39 points
by
whitefish
9y ago
|
62 comments
20.
▲
by
whitefish
9y ago
Who here is old enough to remember Larry Ellison's Network Computer? Chromebook is the realization of Larry Ellison's vision. Back in the mid 90's Larry Ellison said, "we need computers that do less, not more". He w
21.
▲
by
whitefish
9y ago
Those who think React + ReactRouter + Redux is too complex -- you're right. But there is an easier way to use React: MVC. React is the V in MVC. https://github.com/Rajeev-K/mvc-router Note that using MVC does not
22.
▲
by
whitefish
9y ago
You can use JSX for Web Components too, see: https://github.com/wisercoder/uibuilder There is no need for a complex framework like React. Web Components + JSX is better than React. Why use a proprietary framework with
23.
▲
by
whitefish
9y ago
I'd like to see React support shadow-dom and web components. Not holding my breath however, since Facebook considers web components to be a "competing technology". Unlike real web components, React components are brittle sinc
24.
▲
by
whitefish
10y ago
No. With 8 bit you had to execute multiple instructions to add two numbers. Same with 16 bit. This problem went away with 32 bit. Adding more bits beyond 32 does not bring proportional benefits because the numbers we deal with fit in 32 bit
25.
▲
by
whitefish
10y ago
Couldn't you say this about the software industry in general? In the 90's I used to have a Sun workstation on my desk. It ran the powerful Solaris operating system, but had just 16MB of RAM! Today you need 1GB of RAM to run an OS