Comparison between class and traits in Scala
Singleton Can create new instance Can have a constructor Can be inherited Class No Yes Yes Yes Abstract class No No Yes Yes Trait No No No Yes Object Yes No No No Also a small trick: Since an object…
Singleton Can create new instance Can have a constructor Can be inherited Class No Yes Yes Yes Abstract class No No Yes Yes Trait No No No Yes Object Yes No No No Also a small trick: Since an object…
I was pretty excited when LG releases their 4.4 ROM for my age-old phone. I even waited 4 months extra to update via their mobile support tool (because I’m rooted, so the only way to do an OTA update is…
Capitalism has its strength, but American capitalism should be aptly named ‘corporatism’. The governments serves the interest of big corporations, and they alone. They prioritise media before the rest of society. We have seen absurd cases like NASA’s mars landing…
Just discovered that Shift+Enter magically completes a line for you. For example, you can type String Hello = “Hello world Then Press Shift + Enter, you’ll have String Hello = “Hello world”; | (cursor waiting on the next line)
I have stuck at this field for a long time. Today it suddenly becomes clear to me: LINQ and lambda expressions are to very different things (though they complements each other on many occasions). Lambda expression Lambda expression, to sum…
If you installed Wireshark and, in fear of installing another service that might slow down your computer’s start-up time, you choose to have that service start on demand, but then when you start Wireshark you see the message ‘The NPF…
The subst help display this Associates a path with a drive letter. SUBST [drive1: [drive2:]path] SUBST drive1: /D drive1: Specifies a virtual drive to which you want to assign a path. [drive2:]path Specifies a physical drive and path you want…
When I tried to connect my HP laptop to a Samsung TV via HDMI, I expected sound to work out of the box, but unfortunately this is not the case. After making sure that my laptop output sound to the…
I started to use VMWare a lot recently, primarily due to the fact stuff I work with are very outdated and will slow down my computer if I work with it for a long time. Virtual Machines are very convenient:…
Hello Mr. Clark, Summarization State the problem Why we couldn’t do it last time, list as many reasons as you can Technical constraints, limitation of the language Time constraints Something we didn’t know how to do Solution What this solution…