Better HN
topnewbestaskshowjobs
Log inSign up

twistedpairs

5 karma · joined Feb 21, 2020 (6y ago) · 9 submissions

Submissions

comment 6y ago · link · parent

Clojure really needs the equivalent of Portacle; self contained directory with everything in it that's needed to just start coding without faffing about.

comment 6y ago · link · parent

Using max possible days in month gives ~21 million js:

  [...Array(31).keys()]

  .map(num => Math.pow(2,num))

  .reduce((total,num) => total + num)

  / 100
$21,474,836.47

or since the sum is equal to the next sequential (2 to power of n+1) minus 1 cent => 2^31 - 1 = $21,474,836.47

comment 6y ago · link · parent

That's a given. That comment doesn't further the conversation in any way though?

comment 6y ago · link · parent

Is it just me or is the wikipedia article for duck typing really bad?

The example they have is not illustrative or explanatory at all.

  class Duck:

      def fly(self):  

          print("Duck flying")  



  class Sparrow:

      def fly(self):  

          print("Sparrow flying")  


  class Whale:

      def swim(self):  

          print("Whale swimming")  


  for animal in Duck(), Sparrow(), Whale():

      animal.fly()

output:

  Duck flying  

  Sparrow flying  

  AttributeError: 'Whale' object has no attribute 'fly'  

This moreso shows a dynamic typing issue.

comment 6y ago · link · parent

I mean it is beyond madness to even think that Go's dev tooling compares favourably to Java tools & ecosystem on the friggin' JVM.

Dev tooling surrounding the JVM blitzes pretty much everything both in terms of dev(maybe code reloading could be improved for Java ala Clojure) & operations.

Lightyears ahead of Go.

comment 6y ago · link · parent

> It's been 5 years, and the Eurogroup destroyed the Greek economy

That's not true. Greed which benefited Greeks at the time destroyed the Greek economy.