Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Roboprog
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
69 ms
·
691.
▲
by
Roboprog
10y ago
Java: the language so ugly it has to wear a (IDE plugin) bag over its face while you're doing it. Yes, I'll go have that talk with H/R now...
692.
▲
by
Roboprog
10y ago
> more readable Well, you have very detailed trees, anyway. But the forest is often quite obscured: http://stackoverflow.com/questions/39672359/make-all-identif... Yeah, I know I'm complaining about one
693.
▲
by
Roboprog
10y ago
It's funny that the guy that wrote the definitive catalog of refactoring techniques prefers to work in a dynamic language. http://www.martinfowler.com/articles/rubyAtThoughtWorks.html
694.
▲
by
Roboprog
10y ago
It depends on your tools. I refactor JS stuff in intelliJ from time to time, no big deal, at least for rename. (1) OTOH, if you don't have plugins for things like Struts or Spring (faking the desperately needed dynamicism in config fi
695.
▲
by
Roboprog
10y ago
Sounds like it works just like Go-lang, then. Is there a way to cast something anonymous, just a value read in from JSON, to such an interface? This would allow you to specify an important subset of things that an object needs to do, verif
696.
▲
by
Roboprog
10y ago
Rather than strict, one at a time down to arity-1, currying, I wrote a utility to wrap up functions so "bare parens" simply called the function, or one of its partially applied "derivatives", with however many arguments
697.
▲
by
Roboprog
10y ago
I did a lot of C in the 90s. Appropriately, in the first half to do "systems" type programming (we made development tools to emulate IBM mini computer facilities on PCs and unix , etc), less appropriately in the second half (bulk
698.
▲
by
Roboprog
10y ago
One other thing: more important than the typing, is having to read excess logorrhea for the life of the project. (IDEs are good at generating filler, but I don't want to read it)
699.
▲
by
Roboprog
10y ago
Said elsewhere, but I've not done Haskell or F#, either, but I understand they are both similar, at least in regard to currying.
700.
▲
by
Roboprog
10y ago
Oh, I very much realize that about Java. I was so excited about Java, 20 years ago. (of course the industry alternative was C++, so I'd rather be shot in the foot than the head). I never saw any Simula 67 until VERY recently. Hmm. S
701.
▲
by
Roboprog
10y ago
Something like that. https://www.youtube.com/watch?v=o9pEzgHorH0 http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom... https://www.youtube.com/watch?v=rhV6hlL_wMc (in p
702.
▲
by
Roboprog
10y ago
Argh. I've never done Scheme. In fact, it's been since the mid 80s when we dabbled in Common Lisp at school. Most of this stuff I had to be re-introduced to again looking at Ruby and doing some reading about 10 years ago. The f
703.
▲
by
Roboprog
10y ago
Similar to that, yes - you have a higher order function, "foo" in this case, that accepts a function as an argument, and returns another function. FWIW, you want to have an operation to bind the first (or first N) formal parameter
704.
▲
by
Roboprog
10y ago
Consider this: http://ramdajs.com/docs/#sort Say I want to sort a list of objects/records that have a "name" field by name. I can compose some functions to do this, and use the resulting function where
705.
▲
by
Roboprog
10y ago
I hear you. Compile time types can be useful, but again, I'm just weary of hearing from the people who want to make them mandatory, and seem unwilling to consider the tradeoffs. Enter the XML config file... :-( I ranted quite a bit la
706.
▲
by
Roboprog
10y ago
Gotcha. Sorry about the tangent, as you were primarily discussing grokking what the names of things were doing anyway.
707.
▲
by
Roboprog
10y ago
Apologies, as I am going to make a few assumptions. If you write fewer classes and class hierarchies, and use higher order functions (see also - partial function application), you will have much less "refactoring" to do - often, s
708.
▲
by
Roboprog
10y ago
First they tell you the types are optional. Then one day the type declarations are not, and you have to define "JSON schemas" or some such thing for other people's glop that you just want to shovel over a fence without concer
709.
▲
by
Roboprog
10y ago
For financial work, you want to use a fixed precision or binary coded decimal library, such as java's BigDecimal. You knew that, but I'm just spelling it out for others.
710.
▲
by
Roboprog
10y ago
Well, here's one way around that, at least on the server: https://github.com/roboprog/nashorn_play/blob/master/script/...
711.
▲
by
Roboprog
10y ago
I suppose this is orthogonal to compile time types, but I had to write my own utility to support PFA "decoration" of functions. It of course knows nothing about the number or type of arguments in the original function. (I usuall
712.
▲
by
Roboprog
10y ago
For those of you unfamiliar with partial function application, it's a good way to replace many classes that consist of nothing other than a single "do the work" method and a constructor or setters for the configuration/d
713.
▲
by
Roboprog
10y ago
Does Typescript have a facility to support partial function application? Say I have a function of arity 4, and want to bind / partially apply (some might say "inject") 2 arguments to it to create a function of arity 2, can TS
714.
▲
by
Roboprog
10y ago
Free your mind. Drop all that getXXX setXXX Java-esque noise. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... https://developer.mozilla.org/en-US/docs/Web/
715.
▲
by
Roboprog
10y ago
Install Batarang in Chrome. the "$scope" objects are attached to the browser DOM, and the tool adds another tab to element inspection that shows you the data attached to each level, as well as references back up to enclosing leve
716.
▲
by
Roboprog
10y ago
Yeah, I'm sick of the "static types and classes!!!" crowd, too. I've come to the conclusion that "mandatory and immutable" should be the default, but there are precious few languages in which that is the case,
717.
▲
by
Roboprog
10y ago
To summarize other comments: If you are running a Fortune 1000 IT group, you'd be a fool not to use Oracle; if you are running a startup, you'd be a fool to use Oracle. It's a pain to create something using Oracle. But it&
718.
▲
by
Roboprog
10y ago
I know :-( Give it a year. Without MS support, they will be forced to give up these older versions. Of course by then, IE 11 will seem quite "vintage", but that's life.
719.
▲
by
Roboprog
10y ago
Seconded. I am working on a project at UCD Med Center for California Dept of Public Health, which includes a pilot tie-in with Epic (even if it's just Epic shaking hands with our system and putting a short task's page in a frame)
720.
▲
by
Roboprog
10y ago
Been there, done that. But you might mention to bosses/clients that MS no longer supports/patches anything older than IE-11 on desktop versions of Windows. They are most likely using an un-patch-able version of Explorer. Virii,
More ›