{"id":3385,"date":"2010-10-27T15:35:52","date_gmt":"2010-10-27T14:35:52","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/3385-lessons-from-evernotes-flight-from-net.html"},"modified":"2010-10-27T15:35:52","modified_gmt":"2010-10-27T14:35:52","slug":"lessons-from-evernotes-flight-from-net","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/3385-lessons-from-evernotes-flight-from-net.html","title":{"rendered":"Lessons from Evernote\u2019s flight from .NET"},"content":{"rendered":"<p>Evernote has released version 4.0 of its excellent note-taking product. Software developers have taken particular interest in the <a href=\"http:\/\/blog.evernote.com\/2010\/10\/26\/evernote-4-for-windows-is-here\/\" target=\"_blank\">blog post announcing its release<\/a>, because of what it says about .NET, in this case the Windows Presentation Foundation, versus native code:<\/p>\n<blockquote>\n<p>Evernote 4 is a major departure from Evernote 3.5 in every way. While 3.5 added tons of great new features, there were some problems we simply couldn\u2019t fix: the blurry fonts, slow startup times, large memory footprint, and poor support for certain graphics cards were all issues that the technology behind 3.5 (Windows .net and WPF) was incapable of resolving. As a result, we ended up chasing down platform bugs rather than adding the great features our users wanted. <\/p>\n<p>So we decided to start over from scratch, with fast, native C++ that we knew we could rely on. As you\u2019ll see, the results are amazing. This new version will set a foundation for rapid improvement.<\/p>\n<p>Evernote 4 is designed to give you a great experience on any computer that you use, whether you\u2019re on a netbook, a five year old Windows XP machine or a super fast top-of-the-line Windows 7 computer.<\/p>\n<p>On our test hardware, Evernote 4 <strong>starts five times faster, and uses half the memory<\/strong> of Evernote 3.5.<\/p>\n<\/blockquote>\n<p>A bit of background. WPF was introduced in Windows Vista and was originally intended to be the main GUI API for Windows, until the notorious reset midway through the Vista development cycle which marked a retreat from managed code back to native code in the operating system. I\u2019d guess that the issues faced by the Evernote team were not so different from those faced back then by the Windows team at Microsoft.<\/p>\n<p>WPF is not only based on .NET. It also uses DirectX and hardware acceleration under the covers, enabling rich multimedia effects. The layout language of WPF is XAML, giving freedom from scaling issues which cause hassles in the native API.<\/p>\n<p>So what are the lessons here? Is WPF no good? <\/p>\n<p>It is not so simple. WPF is brilliant in many ways, offering the productivity of .NET coding and a powerful layout framework. However it was a technology which Microsoft itself hardly used in its key products, Windows and Office \u2013 a warning sign.<\/p>\n<p>When Microsoft built Visual Studio 2010 and .NET 4.0, the development team used WPF for the Visual Studio shell. This move by an internal team to create such a complex product in WPF was good for the framework itself. The font issue was addressed, performance improved. Evernote might not have found all its issues fixed in version 4.0, but it would likely have been better.<\/p>\n<p>After I tweeted about Evernote\u2019s experience, a couple of Microsoft folk contacted me to make this point. The trouble is, even version 3.5 of WPF was not the first version, and it never sounds altogether convincing if, when a customer complains about your product, you tell them everything is fine in the latest and greatest build. Why did Microsoft not get this right before?<\/p>\n<p>That said, I am sure the latest WPF is better than before, though it is still heavyweight relative to native code. Factors that might suggest a WPF solution include:<\/p>\n<ul>\n<li>The application only needs to run on Windows<\/li>\n<li>There is no need to support older machines<\/li>\n<li>The application makes use of data visualisation or other multimedia effects<\/li>\n<li>The development team lacks the resources to build equivalent functionality in native code<\/li>\n<\/ul>\n<p>The last point is important. Maybe a hotshot team of C\/C++ developers could make a better job, but if you don\u2019t have such a team or the money to hire it, it is not so relevant.<\/p>\n<p>There is another possible approach, without abandoning .NET. Silverlight has many of the features of WPF, is lightweight, and runs on the Mac as well as Windows. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Evernote has released version 4.0 of its excellent note-taking product. Software developers have taken particular interest in the blog post announcing its release, because of what it says about .NET, in this case the Windows Presentation Foundation, versus native code: Evernote 4 is a major departure from Evernote 3.5 in every way. While 3.5 added &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/3385-lessons-from-evernotes-flight-from-net.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Lessons from Evernote\u2019s flight from .NET<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,67,77,80],"tags":[104,586,825,955,1040],"class_list":["post-3385","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-professional","category-silverlight","category-software-development","tag-net","tag-microsoft","tag-silverlight","tag-visual-studio","tag-wpf"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/3385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=3385"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/3385\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=3385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=3385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=3385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}