Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
klibertp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
79 ms
·
841.
▲
by
klibertp
6y ago
Apparently when the fetch fails, it triggers an `fetch:error` event[1], which can (probably) be handled somewhere. No idea about formatting the response, though. I think it's quite natural for there to be large gaps in functionality pr
842.
▲
by
klibertp
6y ago
> Show us an AJAX call that GETs data <button class='btn primary' _="on click fetch /clickedMessage put the result into me
843.
▲
by
klibertp
6y ago
It looks interesting. There is a lot of complexity that can be hidden behind a well-crafted DSL. REBOL's View dialect and TCL's TK are examples of DSLs which make developing UIs much simpler than it would be with a full language.
844.
▲
by
klibertp
6y ago
What 5 y.o. wouldn't understand an explanation as simple as this: > This way it is easy to jump to a location in C code which handles next opcode. Just read a void* pointer and do a goto *p. This feature is an extension to C and C++
845.
▲
by
klibertp
6y ago
> Elixir is a niche dialect of a niche language (Erlang). Nitpick: Elixir is not a dialect of Erlang. It doesn't even compile to Erlang, but directly to the BEAM bytecode. Erlang and Elixir are very different languages. Think of it
846.
▲
by
klibertp
6y ago
> Try moving $5million dollar worth gold If I read the price correctly that would be something like 80kg. I can't be bothered to dig deeper, but that would be just a few gold bars, I suspect. Not very hard to handle, IMO...
847.
▲
by
klibertp
6y ago
Still, keeping the guy who served his full sentence of nearly 20 years in the country (and with various additional restrictions) for anothe 15 years is not a nice thing to do. They should have shot him dead in Rome and be done with it, like
848.
▲
by
klibertp
6y ago
> whether multiple assignments is readable or not, That's the whole point: multiple assignments (and everything else) are NEITHER readable NOR unreadable, objectively. There is no way to argue either way. Appeal to majority is a fal
849.
▲
by
klibertp
6y ago
> you might think you're making a point by repeating "it's all opinions", but that doesn't mean your single opinion is equal to everyone else. You're very wrong. Readability is currently impossible to measur
850.
▲
by
klibertp
6y ago
You know, it wasn't that long ago when booleans in Python were essentially: True = 1 False = 0
851.
▲
by
klibertp
6y ago
Would be ok if the variables were named like `PROTOCOL`, `SEPARATOR`, `HOST_PREFIX`. The names shown in GP are... well... a shining example of how naming things is hard , at least :)
852.
▲
by
klibertp
6y ago
I'm ok with "code intelligence", or even more precisely "autocomplete based on code intelligence". All good. Just not "intellisense", please ;) > I personally wouldn't go back from VSCode to an edi
853.
▲
by
klibertp
6y ago
> Intellisense Could we please call it "autocompletion" instead? The feature did not originate from Microsoft IDEs, and while they are free to call it whatever when talking about their editors, the rest of the world (well, that
854.
▲
by
klibertp
6y ago
What opinion about Clojure?! Where? You're jumping to conclusions without any basis, while trying to caution others not to jump to conclusions? I'm talking about the general ease of use of features in programming languages. If you
855.
▲
by
klibertp
6y ago
It might not be immediately clear, but the "data oriented programming" discussed in this subthread is about using code as data to be interpreted. That TCL has way less primitive data structures and even less syntax for them doesn&
856.
▲
by
klibertp
6y ago
> Nobody said you "need" REPL. Well, you did, quoting the article: > Yes, if you are not using the REPL, you are not doing Clojure right. or should I understand this another way? > but that's besides the point. True.
857.
▲
by
klibertp
6y ago
Yes; I didn't mention it because, while they are technically literals, you are expected to write your own types and use your own constructors. But yes, F#, OCaml, Haskell, Idris, Elm, etc. are also very data-centric.
858.
▲
by
klibertp
6y ago
REBOL and TCL are languages which go at least as far as Clojure in data-centric programming. Both feature incredibly elegant DSL for a variety of tasks, like constructing parsers or defining GUIs. Personally, I don't have an opinion on
859.
▲
by
klibertp
6y ago
> If you write your code the correct way, Then you don't need a REPL. This is a very weak argument, overall: there are programming techniques to compensate for any deficiency in the environment. The fact that you need to use them is
860.
▲
by
klibertp
6y ago
I think this is caused because of the disconnect between the source in files and an environment in a REPL. There are alternatives: You can keep your source inside your environment, like in Smalltalk. Whatever state you modified, it stays mo
861.
▲
by
klibertp
6y ago
> There is no other language that places such an emphasis on programming directly with plain and naked data literals. Counterexamples: Erlang and Elixir. Arguably also Prolog. Also Lua. Many Schemes, and Racket. Of course, REBOL and Red.
862.
▲
by
klibertp
6y ago
I just tried it out of curiosity and the startup time is absolutely brutal: -▶ time dotnet ./Clojure.Main.dll <<<"" Clojure 1.10.0-beta1 user=> user=> dotnet ./Clojure.Main.dll <<&l
863.
▲
by
klibertp
6y ago
No, when starting debugging you most often know the results of a bug. You can break conditionally on when the results appear, then work your way up the stack or jump to the beginning of a block to re-examine it. Or you can rerun the program
864.
▲
by
klibertp
6y ago
That's quite a... disturbing... picture you're painting... :D
865.
▲
by
klibertp
6y ago
> you have to step through your program, one line at a time You can set more than one breakpoint at a time. Hitting 'c' will get you to the next breakpoint, no matter where it is. > and step through it over and over No, you
866.
▲
by
klibertp
6y ago
The same as with every other sport: injury. You don't want to risk injury by extrapolating a faulty training method from magical thinking. In my experience, the arts and systems geared more towards full-contact spars have way, way less
867.
▲
by
klibertp
6y ago
> Once AGI is realized, no human developer will ever be paid again. Well, we'd be in the boat with teachers, reporters, authors, attorneys, bankers, management, some artists... and a lot more of professions which were done in by AI
868.
▲
by
klibertp
6y ago
FYI: you've been downvoted because you talk about downvotes, which is frowned upon here. Have you referenced the Gell-Mann effect only it would be ok. Also, don't worry about things "being downvoted": there are often lar
869.
▲
by
klibertp
6y ago
> How can you trust your judgement on whether they’re truthful about bigger things? You can't. You will believe what you want to believe, and good liars are great at finding out what you want. A well constructed lie rests on verifia
870.
▲
by
klibertp
6y ago
> Type-driven dispatch Smalltalk and everything since then would like a word with you. > And tagged unions (or algebraic datatypes) [...] type-directed features like pattern matching. Erlang and Prolog would like to have a chat, too.
More ›