Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Submission + - Book review: Mastering Dart by Sergey Akopkokhyants (packtpub.com)

Jeffrey Johnson writes: I know how easy it is to criticise technical books, especially when we don't know the amount of effort that goes into making them. So I had a rare opportunity to witness the creation of Mastering Dart by Sergey Akopkokhyants, a colleague and friend of mine. I was there when he told me he was going to write it. I saw how he agonised over chapter content and order. I witnessed him create examples and massage explanations into a form that made them easy to understand. I even had an opportunity to preview the earlier drafts and give some feedback. I got to see just how difficult it is putting a book like this together.

I've never been fond of "advanced" books that try to teach me a language's basics all over again and then hastily cram some advanced features in almost as an afterthought. And I'm glad Sergey didn't fall into that same trap. This book is unapologetic in its focus on advanced topics like generics, reflection, futures, isolates, asynchronous programming and many others, while still managing to present them in an accessible and easy to understand manner. I'm not a Dart developer, so I judged this book on how well it was able to explain the many Dart-specific features I'm not familiar with. I've tried to keep my review as unbiased as possible.

I have no patience for a book that presents some code, but includes bits that are only explained in much later chapters in order to do it. This book manages to avoid that almost entirely, using examples that build incrementally and follow neatly into each other.

He starts off relatively simple in chapter 1, with a good explanation of modularity, functions and closures and mixins, but then ramps things up in chapter 2, focusing on more advanced techniques like generics and reflection. There's a rather nice explanation of the difference between Errors and Exceptions. I found the section on creating my own annotations relatively easy to understand (compared to some Java books I've read) and there was a nice progression into using them in reflection.

Chapter 3 has a ton of examples of different types of constructors and how to use them. He even creates his own enum class for one of the examples (at the time of writing Dart didn't support enums).

Chapter 4 covers asynchronous programming in the form of Futures, with examples that introduce concepts a bit at a time. The chapter finishes off with quite a detailed section on Zones and Isolates.

He devotes the whole of chapter 5 to the Stream framework and builds on his earlier explanation of Futures by using them here.

Chapter 6 focuses on collections, including two clear examples of the Comparable interface and Comparator type, and how to user the latter for classes that don't implement Comparable. Iterators are here of course, and there are brief subsections explaining all the kinds of built-in collections and a nice table to help you decide when to use what.

Only after laying all this groundwork for the language itself, does he start with JavaScript interoperability in chapter 7, including the ubiquitous jQuery.

Chapter 8 covers Internationalization and Localization, including a bit on gender, which I thought was quite interesting.

Again, having laid the foundation of working with JavaScript and HTML in earlier chapters, he uses chapter 9 to deal with client-server communication. There are two detailed sections on AJAX and WebSockets.

Chapter 10 deals with various types of storage, including local storage and Oracle's IndexedDB. He also takes time briefly to mention handling WebSQL, in case anyone is still supporting this deprecated technology.

Chapter 11 introduces some HTML features like the geolocation and notification APIs, as well as two long sections on native drag and drop and HTML 5's Canvas.

Rounding things off is the chapter on security. He has a short piece on generating certificates, and a section on Captcha and JSONP (JSON with Padding).

While the web-based chapters aren't exhaustive (this could be an entire book on its own), they are detailed enough to act as a springboard for investigating further.

I found the book useful for learning these advanced features, but also as a quick reference when looking up specifics later.

I'd recommend this book to anyone who has just finished learning Dart and wants to go deeper into the language.

Submission + - House and Senate Science Committees in Creationists Hands. (dallasnews.com) 3

willy everlearn writes: Does anyone else find it scary that we have put creationists on both the House and Senate's science committies? The very core of a creationist's argument is"No matter what evidence you show me my belief will continue." Extend this to Climate Change, Vaccinations or any other of myriad topices these right wing hold as sacred. What can we do about it?

Comment Re:I currently get robocalls on my mobile (Score 2) 217

You mean I'll be getting MORE unwanted calls?

. What is so difficult about the FCC understanding that I do not want calls on my mobile from robocallers and/or telemarketers.

What is difficult for people to understand is the difference between telemarketers and political opinion surveys. Politicians will never, ever give up their political opinion polls. There WILL be a loophole.

Submission + - An Open Letter To Everyone Tricked Into Fearing AI (popsci.com)

malachiorion writes: If you're into robots, AI, you've probably read about the open letter on AI safety. But do you realize how blatantly the media is misinterpreting its purpose, and its message? I spoke to the organization that released letter, andto one of the AI researchers who contributed to it. As is often the case with AI, tech reporters are getting this one wrong on purpose. Here's my analysis for Popular Science. Or, for the TL;DR crowd: "Forget about the risk that machines pose to us in the decades ahead. The more pertinent question, in 2015, is whether anyone is going to protect mankind from its willfully ignorant journalists."

Submission + - Ad Company Using Verizon Tracking Header To Recreate Deleted Cookies (itworld.com)

itwbennett writes: The story began a few months ago when it was reported that both Verizon and AT&T were injecting unique identifiers in the Web requests of their mobile customers. AT&T has since stopped using the system, but Verizon continues. Now, Stanford computer scientist Jonathan Mayer has found that one advertising company called Turn, which tracks users across the Web when they visit major sites including Facebook, Twitter, Yahoo, BlueKai, AppNexus, Walmart and WebMD, uses the Verizon UIDH to respawn its own tracking cookies.

Submission + - Bernie Sanders offers amendment declaring human caused global warming to be real (examiner.com)

MarkWhittington writes: As deliberations for the Keystone XL pipeline continue in the Senate, the new Majority Leader Mitch McConnell has allowed any amendments any senator might offer to be considered and voted on. Taking full advantage of that indulgence, the independent senator from Vermont Bernie Sanders has proposed one of the strangest amendments ever to make its way to the United States Senate. The amendment will state that it is the opinion of the Senate that human-caused global warming is real, according to a Tuesday story in the Hill.

Submission + - The Death of Next Generation Firewalls (supertechguy.com)

supertechguy writes: Next Generation Firewalls are built on concepts that are currently getting some major overhauls. Many of a NGFW features depend on the ability to view unencrypted traffic as it passes the border of a network. With the push to fully encrypt the web and SSL/TLS Pinning eliminating MITM techniques, how will NGFWs maintain the features that currently make them one of the most powerful security appliances available? Now knowing that shelf life is decreased, is the high price of a NGFW way over the top?

Submission + - Encryption is Not the Enemy

Trailrunner7 writes: There are few things scarier these days than a politician stepping in front of a microphone, taking a deep breath and opening his mouth to pontificate on security. A long list of American elected officials have reinforced this, and on Monday, UK Prime Minister David Cameron jumped to the head of this undistinguished line with his dangerous statement that encrypted communications shouldn’t be allowed.

Cameron, speaking in the wake of the terror attack in Paris last week, said at an event Monday that the UK government can’t allow any form of communication that can’t be read.

“Are we going to allow a means of communications which it simply isn’t possible to read?” Cameron said, according to the New York Times. “My answer to that question is: ‘No, we must not.’ “

Aside from the specter of attackers identifying and exploiting an intentional backdoor, there is the problem of trying to bend software makers to the will of the government. Even if by some miracle the backdoor proposal succeeds, the government still would face the hurdle of getting software makers such as Apple to prevent secure communications apps from showing up in their app store. Apple does what Apple wants and generally not much else. And, as Doctorow says, how would Cameron address the global open source community, which produces much of the secure communications software?

These kinds of systems just flat don’t work.

“It won’t work. The basic problem with these proposals is they work against regular people who don’t care. But to make it work, you have to close the loopholes,” cryptographer Bruce Schneier, CTO of Co3 Systems, said in an interview. “If you can’t do that, you don’t hurt the bad guys, you only hurt the good guys. It plays well on TV to someone who doesn’t understand the tech. Everything works against my grandmother, but nothing works against professionals.”

Submission + - Climate Change denier Sen. Ted Cruz to oversee NASA (upi.com)

An anonymous reader writes: Texas Senator Ted Cruz, a climate change denier, is to become chair of the US Senate Subcommittee on Science and Space, which oversees agencies like the National Science Foundation, NASA, and the White House Office of Science and Technology Policy.

Submission + - 5 major Linux appearances at CES 2015 (itworld.com) 1

sfcrazy writes: We saw Linux invasion at CES 2015. It's exciting to see different companies using different operating systems based on Linux. The big story were: Panasonic to use Firefox OS for their smart TVs, Samsung putting Tizen on their TVs, Intel to see Ubuntu powered USB sticks, LG to use WebOS for watches. All of these are different operating systems using the Linux kernel. Never before have we seen so many choices, so much diversity all offered by Linux and Open Source technologies. The year of Linux is here? Already?

Submission + - Linux Controlling a Gasoline Engine with Machine Learning

An anonymous reader writes: Here's a short (2 min) video of PREEMPT_RT Linux controlling a gasoline engine from one burn to the next using a Raspberry Pi: https://www.youtube.com/watch?... It's using an adaptive machine learning algorithm that can predict near chaotic combustion in real-time. A paper about the algorithm is available at: http://arxiv.org/abs/1310.3567

Slashdot Top Deals

E = MC ** 2 +- 3db

Working...