Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Roboprog
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
Roboprog
6y ago
Would I be correct in guessing that you are more likely to write an abstract class in the next month than to write a higher order function? Part of the problem in these discussions is that there are at least 2 populations with vastly differ
62.
▲
by
Roboprog
6y ago
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/mast... “Fun” stuff to read. So if I want to write higher order functions, rather than classes / interfaces, I have to write, and worse, READ, mas
63.
▲
by
Roboprog
6y ago
Thanks to the author of this, even if it was put up a while back. I loved the detail of the business service tools used.
64.
▲
by
Roboprog
6y ago
But I don’t write “classes”, and don’t want to be lead down that path. Allegedly TS has a solution for doing partial function application or currying, such as in the Ramda.js library, but the example that was provided to me a few weeks ago
65.
▲
by
Roboprog
6y ago
Once you stop making hundreds of classes with globally visible names and members, and start using function scope, functional programming, and mostly short lived value objects, much of the OOP induced pain of programming simply goes away. Al
66.
▲
by
Roboprog
6y ago
If you are trying to build for a business, or something you yourself will have to maintain for years to come, vanilla JS seems like the way to go. Perhaps Typescript isn’t a fad to be abandoned, unlike say GWT, CoffeeScript, et al, but why
67.
▲
by
Roboprog
6y ago
I would rather have Clojurescript than Typescript, but absolutely, less is more, and it feels like a bad idea to tie implementation of this runtime to another dependency. My love of the C++, Java, C#, ad nauseum, lineage of Enterprisey OOP
68.
▲
by
Roboprog
6y ago
Sure do. I wonder if they have a checksum mechanism like browsers do? You can add an “integrity” attribute to script tags in the browser. https://developer.mozilla.org/en-US/docs/Web/Security/Subres...
69.
▲
by
Roboprog
6y ago
Sounds like McConnel’s Rapid Development book.
70.
▲
by
Roboprog
6y ago
You run the risk of being lynched by the Haskell mob, with talk like that. But I agree, in principle. The hardcore “sound types” crowd believes that anybody using dynamic types is doomed. I must not have the same problems they do. First cl
71.
▲
by
Roboprog
6y ago
Thanks. That goes on my to-do list, then.
72.
▲
by
Roboprog
6y ago
I would love to have a tool that would display code as some kind of annotated AST, rather than the layout imposed by most IDEs or tools such as gofmt. Put a bag over Java’s ugly face, that kind of thing. I don’t want to look at IntelliJ’s “
73.
▲
by
Roboprog
6y ago
Like measuring nitrogen content as a proxy for protein?
74.
▲
by
Roboprog
6y ago
I learned Pascal before learning C in college back in the 80s. For me, C felt like a step backwards towards assembly language. Things missing in C: Bounds checking; Non-null references; Subranges; Sets; Nested functions?
75.
▲
by
Roboprog
6y ago
Functions could be parameters in Pascal, but not return values. This allowed closures (mostly) without a garbage collector. C and its descendants was such a step backwards.
76.
▲
by
Roboprog
6y ago
Thanks. It’s a shame they couldn’t display left and right arrows if you click into the middle of the previously entered text, though.
77.
▲
by
Roboprog
6y ago
I was thinking more of the nuclear RV in the book Snowcrash. The world had become anarchy, and the wealthy owner was unconcerned with safety.
78.
▲
by
Roboprog
6y ago
Yes, implicit currying where supplying the final arg actually calls the underlying function is one kind of partial function application. Ramda is one thing I use. I also use an in-house library to explicitly apply arguments to return a a n
79.
▲
by
Roboprog
7y ago
Great comment. I am part of the minority that is dreading being forced to use Typescript some day, at least until they come up with a solution to annotate partial function application and the like. TS solves problems I don’t have, and prom
80.
▲
by
Roboprog
7y ago
That was certainly true in 1990. The use of JITs has changed that to a large extent, as frequently used code paths can be rewritten at runtime in many cases. Static types tend to push people towards copy-pasta code, as well, which can even
81.
▲
by
Roboprog
7y ago
Saving the revision history from the previous source control system would require reading the manual or Google for 20 minutes. I got deadlines! Of course, if the previous system is a proprietary monstrosity, it may well be next to impossib
82.
▲
by
Roboprog
7y ago
I hear that. I worked at a place in the early 90s that had a product to port System/36 based RPG II code onto newer platforms. It kept 4 of us pretty busy, and RPG is just a small language doing flat files on a mini with a simple scr
83.
▲
by
Roboprog
7y ago
That certainly helps. Thank God for the “blame”, er, “annotate” command.
84.
▲
by
Roboprog
7y ago
I think it all comes down to having an understanding of your organization’s persistent data. You need to have a culture where people are allowed to become familiar with what is in their files and databases, and make sure they pass that know
85.
▲
by
Roboprog
7y ago
Aside: I have only experienced COBOL code second hand, though I was briefly threatened with it back in ‘88. I do appreciate how it seems oddly more compact than most “Enterprise!” java code - e.g. copy books vs beans. How many times we go
86.
▲
by
Roboprog
7y ago
I got a laugh out of the ad at the bottom of the page: “convert COBOL to Java”. I mean, it’s the first thing that went through my head when I saw the article, but... We got off of that 60 year old language, and are no longer beholden to IB
87.
▲
by
Roboprog
7y ago
I log this for coarse statistics about what our user base is running, but that is about it. The good news: IE use is down over the last year to only about 40%. The bad news: the growth elsewhere is all Chrome, with less than 1% Firefox or
88.
▲
by
Roboprog
7y ago
For vertebrates, yes. Not all animals https://en.wikipedia.org/wiki/Protostome
89.
▲
by
Roboprog
7y ago
Or perhaps Brave was supposed to be one of those items? Clearly, the article needed editorial proof reading in a few spots.
90.
▲
by
Roboprog
7y ago
Centralize on the peer who hosted/called the meeting?
More ›