Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bazoom42
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
661.
▲
by
bazoom42
3y ago
A Lisp which used < > instead of ( ) would itegrate very nicely with HTML.
662.
▲
by
bazoom42
3y ago
If they had to chose an existing scripting language, surely Perl would be the obvious choice? Perl is designed after how humans think, where other languages force you to think like a computer.
663.
▲
by
bazoom42
3y ago
> I also wonder what's the difference between Java and JavaScript, at first glance, they look very similar. JavaScript is a scripting language and therefore much easier to use. No slow compilation and build step, no complex and rigi
664.
▲
by
bazoom42
3y ago
The thinking was that JavaScript was a scripting language and therefore much simpler to use than Java. So web designers who were not professional programmers could combine a few predesigned Java applets and script them using JavaScript. Of
665.
▲
by
bazoom42
3y ago
The intention was that Java components could be combined and scripted through JavaScript. Such a component-based development model had proven succesful in Visual Basic, and Netscape hoped to create something similar for client-side web deve
666.
▲
by
bazoom42
3y ago
Integrated in the sense that JavaScript and Java-applets on the same page could communicate through an API. It was certainly used, since I remember using it out of curiosity. I don’t think the use was widespread since it only worked in Nets
667.
▲
by
bazoom42
3y ago
JavaScript was not very powerful when it came out though. It couldn’t modify the DOM (except input controls) and it couldnt perform background requests.
668.
▲
by
bazoom42
3y ago
Netscape had a line of web servers supporting server-side JavaScript. But who in their right mind would use JavaScript on the server side?
669.
▲
by
bazoom42
3y ago
In JavaScript, implicit varible declarations goes to the global scope, which is obviously a footgun. In python they go to the local scope as you would expect.
670.
▲
by
bazoom42
3y ago
I don’t think it is a question of age.
671.
▲
by
bazoom42
3y ago
> with a title I could not connect to anything in a book The book literally explains the title, at length. It is part of the meta-commentary running through the book.
672.
▲
by
bazoom42
3y ago
It didn’t happen, but it still killed the language.
673.
▲
by
bazoom42
3y ago
> If types were added to javascript it could also dramatically improve the performance of javascript virtual machines Are you sure? In my understanding modern JS engines basically makes type inference on the code anyway, and in the rare
674.
▲
by
bazoom42
3y ago
Back when Python 3 was initially concieved, the language just wasn’t that widely used, and mostly by enthusiasts. Some breakage wasn’t considered a big deal - it was expected users would easily update their code. But during the time it took
675.
▲
by
bazoom42
3y ago
He, the Perl 5 to 6 migration is already forgotten? I think this says something about how well it went, because at the time Perl was more popular than Python.
676.
▲
by
bazoom42
3y ago
Dont know if you are serious, but contraception.
677.
▲
by
bazoom42
3y ago
Maybe they just wasnt attempting to create decoration for your kitchen.
678.
▲
by
bazoom42
3y ago
It is definietely intentional, since some of the earlier and less expressionist drawings use classical perspective.
679.
▲
by
bazoom42
3y ago
Anyone who eschews an ORM just end up writing their own half-baked badly documented ad-hoc ORM. “Jusr use SQL” is not an alternative since you still need to map the result into a data structure.
680.
▲
by
bazoom42
3y ago
Imagine doing something similar in C#, i.e. copying all properties from one arbitrary object to another. This would require the use of reflection and would not be typesafe at all, since reflection in C# is not typesafe.
681.
▲
by
bazoom42
3y ago
Those languages all have the same issue since it is a logical consequence of having subtypes. You probaly just don’t realize it becase doing anything similar to the example would require convoluted reflection.
682.
▲
by
bazoom42
3y ago
> Nothing - nothing - needs more than about four or five significant digits. So if you have a million in the bank, you would be fine with a 100$ rounding error on each transaction?
683.
▲
by
bazoom42
3y ago
No, it is unrelated to the nominal/structural distinction. It is a logical but perhaps counter-intuitive consequence of supporting reflection in a statically typed language. Most languages avoid the issue by either not supporting refle
684.
▲
by
bazoom42
3y ago
In Java or C# you would need to use reflection to loop over the members of an object, but AFAIK this would yield the members of the current instance, not the nominal type.
685.
▲
by
bazoom42
3y ago
You can still get the original versions. The market for Tintin completionist is big enough that you can purcase basically every iteration of the Tintin albums. Btw the redrawing were much more than just toning down racism. Eg in The Black I
686.
▲
by
bazoom42
3y ago
Several Tintin stories were re-drawn and updated by Herge to be more modern, some of them multiple times. The article mention Tintin in Congo, one of the earliest stories. It was later redrawn to tone down the “white mans burden”-vibe, but
687.
▲
by
bazoom42
3y ago
If I understand you correctly, you are saying a real programmer would always know exactly what objects are passed to a function, just by reading the code. This would only be true for very simple code written in a top-down manner. For librar
688.
▲
by
bazoom42
3y ago
Yeah, rap is probably the closest modern popular culture has to Shakespeare. The rythm, rhyming, wordplay, dirty language etc.
689.
▲
by
bazoom42
3y ago
> Hey, let's just write the same thing 4 times so you know it's a string! Because quotation marks aren't clear enough! I dont follow. Can you provide an example of what you mean?
690.
▲
by
bazoom42
3y ago
The love of Romeo and Juliet is certainly more mature than say Othello and Desdemona, or Hamlet and Ophelia, or Antony and Cleopatra. So I think “childish” is coming from prejudice, not from the play itself. Btw the age of Romeo is never st
More ›