Flotsam and Jetsam #97

  • Well, the next release of Delphi must be getting close.  The Delphi Insider has information about Skill Sprints that will show some of the new features.  Mitov Software has an interesting screen shot that looks like it has some sort of multi-view for mobile apps.  Cool.  Here’s a community post on what it is – the Multi-device Preview.  The Code Sprint are showing off new features as well.  Marco has a video about EMS Notifications.  EMS is a very under-appreciated feature if you ask me. 
  • I endeavor to write clean code. I hope you do, too.  One nice measure of that the Embarcadero has given us is “Can Castalia properly parse your code?”.  I submit the following statement:  If Castalia has trouble parsing your code, then the first place you should look to solve the problem is in your code. Code that gives Castalia – which has a pretty good parser – a hard time is maybe just a touch over complicated or not well formatted.  Just a thought. Just my personal thought.
  • Yesterday I attended the Philly.Net Code Camp.  There were at least 500 people there, including a larger percentage of women than I’ve seen before – or at least it seemed that way to me.  I spent the entire day in the same room on the “Scripting” track, learning about node.js,  “this” in Javascript, more about what TypeScript is, and what is coming in ECMAScript 6.  It was a good time and I learned a lot.  These events occur twice a year, and the Philly.net crew do an amazing job putting the event together.  Did I mention that these events  are totally free?  I’ve spoken at the event in the past, mostly on non-technical topics.  I’ll try to do that for the next one.  In any event, it was a good event.  If you are in the area (people came from as far as New York), I’d recommend it. 
  • I’m plugging away on my next book.  Two areas that are giving me – ahem – “challenges” are the Parallel Library and MVVM.  Coming up with good examples leads the difficulty.  Just getting my head around all the stuff in the Parallel Library is proving difficult, I must confess.  I don’t want to do any code with `Sleep` in it, so finding a good example of code that take up time is hard.  MVVM is proving difficult to find a good example using LIve Bindings, and actually doing the “true” MVVM way as defined by Rob Eisenberg. I also have to get this chapter past Stefan Glienke, too. Hehe.   In any event, I promise by the time I publish, you’ll have a good solid chapter or two on those subjects that will make you smarter for reading them. 
  • As I mentioned above, I’d like to learn Typescript, mainly because you can apparently not have to learn many of the vagaries of Javascript while being able to achieve the same result.  However, Amazon seems a little thin on books. Anyone got any good resources for Typescript?  I found some good resources for node.js, the avenue that I want to approach Javascript from, but the resources on Typescript are a bit lacking. 

11 Replies to “Flotsam and Jetsam #97”

  1. Web requests, long running database queries, compression/decompression are all good candidates for real world time killers.

    Classics also include maths like mandlebrots, plasma, fractals.

    Anything with heavy IO, high latency or grinding math is good.

    • Thanks for the tips. I think I’m going with Primes and factorials. I just want something besides the typical “Sleep” demos……

  2. I feel your pain WRT MVVM. I’m itching to see more examples too. Stefan’s DSharp Presentation model is the closest I’ve seen to what I’m after but it’s not up to date(?)

    I’d really love to see a meaty example project in the RAD studio samples that demonstrates:

    – good coding practice, with separation of code: MVVM as well as persistence layer (that can be plugged in!)
    – unit and folder naming conventions (I’ve adopted a variation based on Malcolm G’s sample)
    – more realistic/substantial UI (eg. variety of controls with bindings beyond data, such as buttons enabled based on MV property, data entry error feedback, etc.)
    – cross-platform views (inc. mobile) sharing the same backend code
    etc.

    While bite-sized samples are helpful, project examples that can serve as a template (or cookbook) would be valued as well.

    Looking forward to your next book 🙂

    • No, it’s not up to date. Unfortunately my free time is limited and coding is not my only hobby 🙂

      It’s on my list for this year to work on it again – will see if it works out.

  3. We have now produced two different applications using MVVM (or at at least our understanding of it) and we change our approach slightly between both projects. I would love to see more material helping us refine our approach.

  4. “If Castalia has trouble parsing your code, then the first place you should look to solve the problem is in your code”.

    LOL, is that why Roman Yankovski fixed a ton full of bugs in it during his development of FixInsight (which uses DelphiAST which is based on the castalia parser)? And guess what? It had tons of parsing errors in Spring4D because it missed many new syntax elements. Now what?

    • DelphiAST is much more up to date! Roman is very quick to fix parsing problems, too. The whole project is speeding along very well.

  5. One time-intensive thing I do in threading demos is calculate the first n primes. Uses heavy CPU, but you can effectively make it go as long as you want. For something like the PPL, where you might have tasks, you could demonstrate tasks that find the 1000000th prime and 1000001st prime, etc.

Comments are closed.