Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
goto11
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
goto11
3y ago
"Interiority" means directly showing the interior thoughts and emotions of characters, for example through first-person narrative or stream-of-consciousness. Tolkien follow a more classic style where we see the characters from the
32.
▲
by
goto11
3y ago
> The stuff comes from the sky, and it’s only afterward that you convince yourself you had something to do with it Oh yes, the romantic notion of "inspiration" from the gods. I guess this works if you are gentleman poet, having
33.
▲
by
goto11
3y ago
Weird then, that amazing software like Minecraft is written in Java, while Haskell seem to be mostly used for writing monad tutorials.
34.
▲
by
goto11
3y ago
> So, what if, instead of an abstract burrito metaphor, we taught people 4 monads: List, Maybe, State, and IO. We explain how do syntax does “something different” for each of them, and how IO is very similar to promises, but the others a
35.
▲
by
goto11
3y ago
Are you suggesting that flatMap is used all the time in JavaScript?
36.
▲
by
goto11
3y ago
Yeah, learning by example and by doing is the best way to learn any programming concept. But using misleading and confusing analogies along the way will just make the learning process harder, not easier. Explaining monads in terms of promis
37.
▲
by
goto11
3y ago
If we admit negative numbers for basements, then were are not using the natural numbers anymore. This is a completely different question since the integers does not have a beginning.
38.
▲
by
goto11
3y ago
But how would you e.g. explain the monad laws from this intuition? Promises in JavaScript are not monads and does not obey the monad laws.
39.
▲
by
goto11
3y ago
> You use monads all the time in other languages! No you don't. You are confusing monads with features which can be implemented using monads. In Haskell monads are used for modeling side effects, but this is not the case in othe
40.
▲
by
goto11
3y ago
Monads are a pattern for function chaining. Most tutorials go off the rails because they confuse types supporting this pattern with "being a monad". For example, arrays in JavaScript support the pattern through the `flatMap()` met
41.
▲
by
goto11
3y ago
Dijkstra have a certain way of writing as if his argument follows by logical necessity. But when you dig into the chain of reasoning, it hinges on the assertion that starting with 0 is "nicer". Which is of course a valid opinion,
42.
▲
by
goto11
3y ago
If the rewrite is by the same organization, the same forces which caused the first version to be badly designed will cause the rewrite to be badly designed.
43.
▲
by
goto11
3y ago
> People wrote great works before copywrite. Yes, wealthy aristocrats wrote whatever they wanted and less wealthy authors wrote what they got paid to write by their wealthy aristocrat patrons. Copyright and the publishing industry change
44.
▲
by
goto11
3y ago
You approach scalability problems by identifying bottlenecks through measurements, and then you redesign the problem areas to solve the problem. This might be changing an inefficient algorithm, add caching, partitioning a database or whatev
45.
▲
by
goto11
3y ago
> They spent far more time and money on the updates than it would have taken to do a clean rewrite Of course this claim assumes you can reliably estimate the time and cost of the rewrite and the claimed improved productivity after the re
46.
▲
by
goto11
3y ago
> A substantial rewrite might be an opportunity to use better tools and improved techniques that have been developed since the original was written. In some cases that could represent a huge improvement in things we actually care about l
47.
▲
by
goto11
3y ago
> Maybe the reason for the rewrite is because the original is hopeless and most of the people who worked on it are no longer around. Why are the current developers not able to maintain code they didn't write themselves? Is it becaus
48.
▲
by
goto11
3y ago
Browsers discontinuing Flash support is indeed a good reason for porting an app to a different platform. But this is also a very different scenario than the grandparent example, where the cost of maintenance due to bad code quality is suppo
49.
▲
by
goto11
3y ago
Sure, but my point is, if the code is not well designed, the result of a ground-up rewrite will not be well-design either, for the same reasons which caused the scrapped version to be badly designed. It is even likely the new version will b
50.
▲
by
goto11
3y ago
The key is identifying which parts of the code needs to be adapted or replaced and which do not. If the code is well designed with separation of concerns, replacing a framework or library or external dependency should not require all the
51.
▲
by
goto11
3y ago
Code is only greenfield until the first commit.
52.
▲
by
goto11
3y ago
> when the predictions say, that, forseeably, the company will lose money down the line because we waited to long for a rebuild, it may be time to pitch that to whoever allocates resources. Only developers who love greenfield or need a n
53.
▲
by
goto11
3y ago
A goal of TypeScript was that it could be added incrementally to already existing JavaScript code. This meant it has to support a wide variety of crazy pattern used in already existing JavaScript frameworks and libraries. If you want simple
54.
▲
by
goto11
3y ago
Is that distinction really significant? I know JavaScript is a trademark owned by Oracle, but in practice it is used interchangeably with ECMASCript.
55.
▲
by
goto11
3y ago
The second time you are doing exactly the same thing you will be a lot faster, and the third time you will write a script to automate it. If others are doing the same thing repeatedly across the industry, automated tools will appear. It fol
56.
▲
by
goto11
3y ago
Withholding salary? How is that legal?
57.
▲
by
goto11
3y ago
Like Java applets or Silverligt? The problem with those formats is they are black boxes - you can't link or search or anything which makes the web accessible and interconnected. They are more like apps than the web.
58.
▲
by
goto11
3y ago
HTML is not an alternative to CSS. The HTML still has to be presented in some way. HTML without any CSS just means it uses the default browser-supplied style sheet.
59.
▲
by
goto11
3y ago
The Icelandic Sagas are not really mythological though. They generally describe realistic historic events. The characters are probably all historical, although the events likely have been dramatized.
60.
▲
by
goto11
3y ago
These are the Icelandic Sagas, which means stories taking place on Iceland. In addition there exist a number of sagas written in Icelandic which takes place before the settlement of Iceland. These are often more fantastic and with more su
More ›