Dart has two flavours of optional parameters, positional and named parameters.
A couple of weeks ago I jumped in to Dart with a little project to learn the language; to convert my canvas-astar.js project. I’m glad to say that what Google claims is true, since Dart borrows syntax from some common languages, it’s very easy for the seasoned developer to learn. It took me around an hour of studying and then an hour of porting to get it in the state that it is.
As far as I’m aware you can’t change the tab size on GitHub when viewing code on the web interface (yet). While I’m sure this feature will eventually be added, in the meantime it kind of sucks to write your code using 4 character tabs and then having it mangled up when viewing on the web UI.
To disable the context menu on an element using Dart, simply add a listener to
onContextMenu which calls
e.preventDefault() to stop the event from bubbling up.
Just over a year has passed since I created my blog and I just wanted to reflect a little on how I feel everything has gone, the impact it’s had on my life and go over the most popular posts to date.
You’ve all seen it before, you hit a webpage with a menu on the left and somewhere in the main section it says something like “for more look at the left menu”.
This article explains why you should use the
Any() method over
Count() in LINQ to SQL.
Say you have two (or more)
Dictionary objects and want their contents merged, this can be done with LINQ very conveniently like so.