- The Delphi Community
- Clipmate (written in Delphi, by the way)
- Everything search tool
- NBA Basketball
- My Nexus 5x phone
- Visual Studio Code
- Taylor Swift
- Bruce Springsteen
- Cream Cheese
- Being married
- Being a Dad
- Lonesome Dove
- Taking a nap on Sunday afternoon
- Working at Gateway Ticketing
- The Spring for Delphi Framework
- The Delphi MVC Framework
- Patty Griffin
- Mat Kearney
- Cool Spring days
- Iced Tea
- Raize Components (and yes, I liked them before Embarcadero bought them. 😉 )
- Harry Potter
- Loosely coupled code
- The Minnesota Timberwolves
- The Chrome Browser
- Donating to open source projects
- Raspberry Pi
- Pickled Herring
- Giving presentations at conferences
- Writing code
- The Good Wife
- My Roku
- The Caine Mutiny (The book, not the movie. The movie was terrible)
- Birds of Prey – all kinds
- Black Panthers
- Wood burning stoves.
- I’d like to offer my public and profuse thanks to the Danish Delphi Developers group – and most notably MVP Jens Fudge and his family – for their wonderful hospitality while I was in Denmark presenting at the DAPUG group. I talked for two days and had a great time. They were also kind enough to allow me to bring my 13 year old daughter along, who had a great time and a great experience. It was my third trip there and it’s always a very, very pleasant and enjoyable time. (Hidden secret of the conference: The hotel is magnificent and the food – oh, the food! — is incredible.) Anyway, thanks very much to all involved, and again, to Jens for his always superior kindness and hospitality.
- I seriously think that most people don’t understand Markdown. Markdown is supposed to be human readable and human writable. You aren’t supposed to need a special tool to use it. It’s so simple that you should be able to deal with it just fine in Notepad.
- I was honored to be the MVP of the Week this week. The best part was a chance to chat with my good friend Jim McKeeth on the Delphi Podcast. I don’t think it is posted yet, but I’ll publish the link when it is. I appreciate all the kind words.
- Baoquan Zuo has released a fantastic new IDE tool – CodeInsightPlus. This thing is pure gold. Go out and get it right now. My typing speed easily doubled with this thing, even over regular Code Insight. My favorite feature is when you have a class named “TWidgetDatabaseProcessor” and you type “twdp” and then hit enter and it finds it and completes it. And that just touches the surface of what it will do. Seriously, this is really cool. When you add this to the stuff coming from Parnassus, Source Oddity, and others, it’s a great time for the Delphi IDE.
- In a related matter, Delphi developer David Hoyle has released a very nice and very useful book on the IDE’s Open Tools API (OTAPI). The best part it is actually a free PDF download. Well worth a look. (And David, if you want to actually publish and sell this marvelous book, please let me know. I can make that happen.)
- Not that anyone probably cares, and not to be too much of a martyr, but I’ve quit the Delphi non-tech group. It was just getting so tiring, and I didn’t like how it kind of made me obnoxious. I fully confess I was addicted to reading and posting there. I decided it wasn’t a productive use of my time, and won’t be posting there anymore. Like I said, maybe no one cares, maybe people are happy. All I know is my blood pressure is reduced. 😉 If you want to find me, I’m active on the Delphi Developers Google Plus community.
- Does anyone know what the hell this “Delphi Parser” thing is? Are you getting emails on it? They’ve been sending me advertising emails, and I don’t have any idea who they are or what they do. I do know they win the prize for “The Most Expensive Delphi Tool of All Time.” Am I missing something?
- Have you donated to your favorite productivity tool lately? I just made a humble donation to Test Insight. I really like it, and so I donated. I encourage you to do the same for your favorite tool or framework, whether it be for a Delphi tool or framework, or a general utility, or whatever. If we all started making donations – even small ones – to those folks who make our developing and computing experiences better, well, I think that would be a good thing. Go on, do it right now.
Want to buy both of my books in electronic form? Well now you can get a deal on it – The Coding in Delphi Bundle. Buy the bundle and save $15!
As always, I’m very grateful to the Delphi community for all your support.
- My friends David Millington and Roman Yankovsky have teamed up to offer a Christmas time special. You can buy both of their tools for the price of Fix Insight. What are those tools? Well, David’s tool is Navigator – a powerful, easy to use way to navigate your code. Roman’s tool is Fix Insight – a static code analysis tool. Right now, you can get both for the price of Fix Insight – that’s a $40 in savings. I can vouch for both tools as being very useful and of high quality. Don’t miss this good chance to get two excellent tools at a low price. (While you are at David’s website, be sure to download the excellent and free Bookmarks plugin. And did you know that he has some open source items available as well?)
- ‘Tis the season for Delphi updates. Of course, Delphi 10 Seattle Update 1 is out. It even includes a few new features. It is available for all people on Update Subscription. (For those of you complaining about this, I hate to say it, but you were given plenty of warning and opportunities to get on board.) Dr. Bob reports on two hot fixes that are also available.
- It looks like I’m going to be speaking in Denmark in April at DAPUG’s annual conference. I have spoken twice before, and have always enjoyed my trips there, and the fine hospitality provided by Jens Fudge and his family. I’m looking forward to speaking there again. Not 100% sure what the topics will be yet, but I promise it will be interesting.
- I had a great time at EKON 19 – you should attend next year no matter where you are in the world – and the thing I enjoyed the most was my three hour seminar on Dependency Injection. I covered Dependency Injection in Coding in Delphi, but things have changed in the mean time, and there have been additions to the Spring for Delphi framework that make things even more powerful and capable. So much so, in fact, that I’ve decided to write a book entitled Dependency Injection in Delphi. It will very likely be shorter than my other two books, and I think to start I’ll sell it as an ebook only (MOBI, ePub, and PDF) on Leanpub. It will, however, go into Dependency Injection much more in depth than my two chapters in Coding in Delphi. In any event, you can follow this link and sign up for updates about the book and let me know how much you think I should charge for it. There’s absolutely no time table on this – as you saw above, I have a lot of preparation to do for DAPUG – but I will be working on it. I’ll go with “it will be available later this year”. Again, I’m humbled and grateful by all the people who have bought my books.
My deal with Embarcadero has expired, so More Coding in Delphi is now available for sale in electronic form.
That makes a total of four ways to buy my two books:
- You can buy More Coding in Delphi in paperback or electronic form
- You can still get Coding in Delphi in paperback or electronic form.
Both books are also available on Amazon.
Both books have been more successful than I could have hoped for, and I’m very grateful to all of you that have purchased. I hope you are pleased with it.
I just got back from attending EKON 19 in Köln, Germany. I had a really good time and learned a lot. In fact, I learned the most in one of the sessions I gave – a three hour workshop on Dependency Injection. Stefan Glienke was there – he maintains and enhances the Spring Framework – and he showed me something that the Spring Container can do that I didn’t know it could do — resolve primitive values by name and an anonymous method.
Here’s how this works. First, we’ll take a look at a simple class:
TPerson = class
function GetName: string;
function GetAge: integer;
constructor Create(aName: string);
property Name: string read GetName;
property Age: integer read GetAge;
This is a simple class — so simple that I won’t bother showing you the implementation, which I know you can figure out.
What is cool, however, is that you can inject both Name and Age properties. I’ll demo one as a constructor-injected parameter, and the other as a field-injected value.
First, we’ll register the Name property. We’ll get the name property using the following function that gets the user’s Windows Name:
function GetLocalUserName: string;
aUserName: array [0 .. Max_Path - 1] of Char;
aLength := Max_Path;
if not GetUserName(aUserName, aLength) then
raise Exception.CreateFmt('Win32 Error %d: %s', [GetLastError, SysErrorMessage(GetLastError)]);
Result := string(aUserName);
This is just a wrapper around the Windows API call GetUserName. The real fun is here:
Result := GetLocalUsername;
Result := 42;
First, we register the TPerson class so that the container can resolve things for it. Then we register a string with the name ‘name’, and delegate its “construction” to an anonymous function that calls our GetLocalUserName function. The point here is that we now have a “handle” – the string ‘name’ – to a string value that can resolve at runtime. We do the very same thing for the FAge field. That might seem like over-controlling things, but in effect it is quite powerful. We can use it to ensure that both interface and primitive values in a class are resolved with the Container. Imagine a constructor that requires not only interface dependencies, but a string value as well. You can let the container resolve the values for the entire class.
Now, all we need to do is to change the above class to have these attributes:
TPerson = class
function GetName: string;
function GetAge: integer;
constructor Create(aName: string);
property Name: string read GetName;
property Age: integer read GetAge;
Now, the Name property of the TPerson class will automatically be filled with the Windows user name without actually writing any more code to make it do that. The FAge field will be set with our favorite number ’42’.
(The code for this application can be found here.)
Now, at this point I bet you are asking “Why would I do that?”
It does, on the surface, seem like a bit of overkill. But, in the world of Dependency Injection, being able to resolve all the dependencies of a given class – interfaces, classes, and primitives — is golden. Not having to write code, and centralizing the resolution of constructor parameters, properties, and fields –no matter what the type — are very useful indeed. Remember, the more you can decouple your code via the Container, the better.
And you don’t even need but the one call to the ServiceLocator.
- I am doing two Embarcadero Partner Spotlights in the coming weeks. Both will be 15-20 minute videos about chapters in my book. The first will be on the Command Pattern, and the second will be on Aspect-oriented Programming. You can sign up here. There are some other good partner spotlights coming up as well, including Parnassus (which I talk about below.) You can also watch all the past Partner Spotlights on YouTube.
- I’ll be speaking at EKON 19 this year. Topics include Operator Overloading, Parallel Programming, and a three hour tutorial on Dependency Injection. I always have a great time at this event, and I always learn a lot. Marco Cantu and Cary Jensen will be there. I’d recommend attending – and you get early bird pricing before 01 October.
- I’ll tell you what, the advertising team at Embarcadero is playing at the top of their game. I can’t go anywhere on the web without seeing an ad for Delphi 10 Seattle. Google ads is working quite nicely for them. If you are a Delphi developer and use Google for searching, you have no excuse not to know DX Seattle exists.
- I’m a big user and fan of Parnassus Bookmarks, and they have released a version for DX Seattle. Highly recommended. And I look forward to seeing what they have in store in the future. David Millington is a great developer, and I expect some cool stuff in the IDE Plugin department from him. You should also check out his Navigator tool.
- The Embarcadero newsgroups are back up and running on new hardware and a new backend. They’ve been reliable and speedy for about two weeks or so, now, so hopefully they will stay that way. I think the “catch” is that you have to use SSL to connect. But in any event, if you are still into using the newsgroups, they seem solidly back up now.
- In the last Flotsam and Jetsam, I mentioned a few things that are leaking out about the next release of RAD Studio. Here’s one I missed, about new stuff in the designer and the IDE. Nice features. And oh, you can sign up for a webinar that looks like it will be showing all of this stuff, including a FireDAC driver for MongoDB.
- CodeRage X is coming soon — October 13-15, 2015. For sure sign up — it is totally free — and if you have an inkling, submit a presentation. Never done a presentation before? This is a great opportunity to do your first one. The presentations are pre-recorded, so there’s no need to be nervous in front of a crowd, and there’s always room for a new voice in the community. So come on, sign up to speak! I believe that the Call for Papers ends September 4th.
- I’ll be attending and speaking at EKON 19 this year — I always look forward to this event. I’ll be speaking on Operator Overloading, Dependency Injection, and Parallel Programming. This is always a fun and well run event, and I’d love to see you there. Sign up before October 1 for the Early Bird pricing.
- I’ll also be presenting two chapters from my new book in two different upcoming Partner Spotlights. Please signup and attend. And remember, Delphi XE8 owners get a free copy of More Coding in Delphi.
- Here’s an interesting link for you product naming conspiracy buffs.
- It’s Delphi Survey time. You can take it here. I can assure you from personal experience that the results of the survey have a big impact on the future direction of the product, so please take the time to fill it out as completely as possible. I think it is only out for a limited time –until the 28th if my math is correct — so do it right now.
- I was stunned to discover that Visual Studio Code didn’t syntax highlight *.pas files. Wow. So here’s a couple of things. First, vote here on UserVoice for this entry that asks for Object Pascal support. At that link I found this link, which is an unofficial project to add support. It seems to work – and I appreciate the effort from Wosi — but I find it ridiculous that VS Code doesn’t support Pascal out of the box.
- Looks like the next release of Delphi is just around the corner, as they are starting to talk about it with hints about new features. So far I’ve seen:
- Looks like the IDE will be have more memory available to it. That’s good new for those of us who work with multi-million line projects.
- iOS developers will be able to debug Universal 64-bit apps.
- Support for Android Services
- You can sign up for a webinar that gives a sneak peak into the upcoming release. It’s called “See What’s Coming in Delphi, RAD Studio, and C++Builder” and it is at various times during the day of 02 September. Register now.
- I attended the webinar about CodeSite and the Konopka Signature VCL controls and was very impressed. I knew the basics of CodeSite, but never really knew its full power. And I hadn’t looked at the VCL controls in a while, either. As I’ve said, Ray has forgotten more about good UI design than I’ll ever know, and his controls reflect that. A couple of things to note from the webinar and the Q&A:
- Both CodeSite and the Konopka Signature controls will be sold as separate products and not ship as part of Delphi. The limited-but-still-very-useful CodeSite Express will continue to ship with Delphi, RAD Studio, and C++Builder.
- CodeSite also has a .Net version, so if you are doing Net development, you can use can use it there as well. I like that Embarcadero is making a foray into the .Net world. Maybe I’ll get really smart on CodeSite and give a CodeSite for .Net presentation at our next Philly code camp.
- It appears that Ray will continue to work on both products, but that wasn’t 100% clear.
- The fate of Ray’s cool Radiant Shapes for FireMonkey wasn’t made entirely clear, but it was hinted that more news was coming on that front.
- I’m a huge FinalBuilder fan, and the folks at VSoft have just released Version 8. Sounds like a great release from a great product.
I hope most of you have heard by now, but my second book is out and it is called “More Coding in Delphi”. It’s a book very similar in nature to my first book (Coding in Delphi, which is still very much for sale) in that it covers coding techniques for Delphi Developers.
You can get the book for free if you own Delphi XE8. If you don’t yet own Delphi XE8, I suggest you upgrade, get the great product, and then get both my and Marco’s new book as well – both for free. It’s a win all around. Sorry, but the only way to get the ebook is to be a Delphi XE8 owner. Well, I shouldn’t say sorry; as I said – it’s a win for everyone to own XE8.
If you want a paperback copy of More Coding in Delphi, you can buy it from CreateSpace. You can also buy it on Amazon, but you’ll be doing me a favor if you buy it from CreateSpace – my royalty is markedly bigger there. CreateSpace is owned by Amazon if that makes a difference, and you’ll get the exact same book either way.
Here’s the Table of Contents of the main body of the book:
- Six Things Before We Start
- Writing SOLID Code
- Factory Pattern
- Observer Pattern
- Adapter Pattern
- Decorator Pattern
- Command Pattern
- Operator Overloading
- Multi-Threading and Parallelism Overview
- Using TThread
- The Parallel Programming Library
- Parallel For Loops
- Interception and Aspect-oriented Programming
- A History and Review of TSmiley
In addition, here are also Appendices about Duck Typing and “Things Nick Does When He Codes”.
More Coding in Delphi was a lot of work, but well worth it. It’s quite satisfying to complete a book.
I hope you like it.
- David Millington of Parnassus Software – author of the great and free Bookmarks plugin — has released a new commercial IDE plugin called Navigator. Looks pretty sweet.
- The book is this close to being done. I just have to get it past the folks at CreateSpace. Actually, the writing and editing is all done, it’s just the publishing part that is ongoing. You can find out more at http://www.leanpub.com/morecodingindelphi.
- Lots of interesting things happening at Embarcadero. Here are my comments on the various events:
- Embarcadero acquires assets of Raize Components – I really like this. First, I love Codesite. It’s a great tool for debugging. Many folks don’t realize that you can even use it to remotely instrument your application. Ray Konopka is a fantastic, meticulous developer who has forgotten more about UI design than I’ll ever know. Interestingly, both products are being sold as separate products, and not integrated into Delphi/RAD Studio. Perhaps we’ll still see a “lite” version in Delphi.
- Embarcadero unveils BeaconFence –- Now this is really cool. Beacons are growing in popularity, and you can do some really cool things with them. BeaconFence allows you to use beacons in some very cool ways. Imagine you are a warehouse, and you have a whole bunch of robots carrying product around to people who ship things (Cough, Amazon, cough). BeaconFence would allow you to know the location of everyone of those robots down to the inch. Or imagine you are a zoo – you could build an app that guests could download and run that would help them navigate around, find exhibits, and generally know where everyone is at any given moment – perhaps offering a discount as the guest walks buy the sno-cone vendor. This is some cool stuff, folks.
- CodeRage X is coming up on October 13-15. You can sign up here and you can submit your presentation ideas here.
- EKON 19 is coming on November 2-4. I’m going to try to be there. Always a good event.
- I’m going to be giving a Skill Sprint on Dependency Injection on August 18th during the new series of Developer Skill Sprints. You won’t want to miss it. Sign up today.
The True Gentleman is the man whose conduct proceeds from good will and an acute sense of propriety, and whose self-control is equal to all emergencies; who does not make the poor man conscious of his poverty, the obscure man of his obscurity, or any man of his inferiority or deformity; who is himself humbled if necessity compels him to humble another; who does not flatter wealth, cringe before power, or boast of his own possessions or achievements; who speaks with frankness but always with sincerity and sympathy; whose deed follows his word; who thinks of the rights and feelings of others, rather than his own; and who appears well in any company, a man with whom honor is sacred and virtue safe.
– John Walter Wayland
- Number 10 with a bullet!
- As you may have noticed on my LinkedIn Profile, I am once again an employee at Gateway Ticketing. This time around, I am a Senior Software Developer, meaning I am full-time Delphi Developer. I’m delighted to be back in the new beautiful building that Gateway has built. I’m also pleased to have shaved an hour off of my commute each way. I enjoyed my time at Veeva Systems, but the prospect of returning to Gateway and reducing my commute was just too much to resist.
- Why did Borland fail? Danny Thorpe gave an answer on Quora, and it is being discussed on Hacker News.
- The inestimable Julian Bucknall has released is well-known EZDSL data structure library at GitHub. Thanks, Julian!
- Book Update: As many of you know, I’m working on a new book called, naturally, “More Coding in Delphi” and I thought I’d give you an update on it. The whole book is written, and it’s going to be a little longer than “Coding in Delphi”. It’s now in that really hard stage where you have to read it and read it and update it and change the demos and fix things and do all the millions of little things that it takes to finish things up. In other words it’s in the “The last 20% takes 80% of the time” mode. But don’t worry, as I type this I’m sitting at Burger King getting ready to plow into things and “git ‘er done”.
A confession: I was given a free license to review FixInsight.
A summation: I really like it. It’s in a category tool that I think most Delphi developers don’t take advantage of.
A statement: It’s not as powerful as Delphi’s Code Audits, but it is more usable. I presume that Roman Yankovsky will continue to improve it and eventually it will cover as many rules as Code Audits does. Start using static analysis today, one way or another.
Full Comments: FixInsight is a static code analysis tool. A static tool is one that examines the code itself, apart from any runtime environment. It uses a parser – in this case, a fork of Jacob Thurman’s Pascal Parser – to examine the code and apply a set of rules against the result. Those rules can point to questionable constructs in your code that may be bugs or other problems. You can use static analysis to enforce formatting rules, find places where coding conventions have not been followed, and to enforce specific coding techniques. The compiler will do a lot of this kind of thing for you, but there are certain things that the compiler won’t see that
FixInsight does all of this for you in the IDE. Once installed, it provides a menu item that brings up the following dialog:
From here, you can select or unselect the Conventions or Warnings that you want to verify. Some of the Conventions and Warnings can be configured as shown above where you can set the maximum number of variables that will be allowed in a given method on the right side of the window.
Conventions are things that “should” be done a certain way; they might be described as enforcing a certain coding “style”. For instance, Convention C107 ensures that all private field variables in a class start with ‘F’, a long time Delphi convention.
Warnings are coding constructs that “look suspicious”. Things like a destructor without an inherited call, or the dreaded “Empty EXCEPT block” – that is, things that are likely just wrong code and that could cause problems in the execution of your code. A warning basically says “Something doesn’t look right here and you should take a close look to make sure that all is well and correct”.
Running Fix Insight operates much like the compiler and produces Convention and Warning messages in – Surprise! — the Message Pane:
If you double click on one of the items, it take you to the spot in your code where the problem occurs. Nice.
FixInsight also includes a command line tool for inclusion in a continuous integration process. In fact, I’d recommend this be the main way you use it. It can be used to fail a build that finds code in your repository that doesn’t conform to your definition of “clean” code.
You can tell FixInsight to ignore chunks of your code via the _FIXINSIGHT_ compiler directive.
The documentation is quite nice, with each rule clearly explained, though I found that FixInsight’s descriptions are very easy to understand, and you shouldn’t have any trouble figuring out what it is trying to tell you.
Here’s how I recommend you use FixInsight:
- Establish a set of Conventions and Warnings that you want to enforce.
- Use the IDE tooling to ensure that your code conforms to those rules and that you never check in code that violates any of your rules
- Run the command line tool as part of your continuous integration process, and break the build if any checked in code violates your rules
Do that, and it will go a long way towards keeping your codebase clean and tidy.
You can download a trial version of FixInsight here
I presume that Roman will add more Conventions and Warnings to future versions — there’s a lot of room here to do some very cool things.
Bottom Line: FixInsight is a fine entry into the Delphi Third-party market. Whether you decide to use it or Delphi’s own tool, you should be including static code analysis into daily routine and your continuous integration.
- Two things about Martin Harvey’s threading article that I posted. First, Alexey Gavrilov was kind enough to send me version 1.1a, which I have posted. Second, it turns out that the article/book is available on CodeCentral. So if you want to download it for yourself, you can. But now, at least, people can find it online.
- Embarcadero has put out a pretty cool “commercial” on YouTube. I think it is very nicely done.
- There is a new Delphi book out: Cross-Platform Development with Delphi XE7 & Firemonkey for Windows & Mac OS X by Harry Stahl. Only a couple of reviews on Amazon – one good and one not. Thanks to Robert Dawson for pointing it out in the newsgroups.
- Weird. Both Microsoft and Embarcadero are left off of this list.
Threading in Delphi, or in any other tool for that matter, is difficult. There are a lot of good resources out there for Delphi developers, but perhaps none better than Martin Harvey’s “Multi-threading: The Delphi Way”. There is a copy of it here — http://thaddy.co.uk/threads/ – but sadly it doesn’t include the graphics and the code.
Well, I was working on the TThread chapter for my new book, and guess what I happened across on my hard drive? The entire copy of Harvey’s work, including the graphics and the code samples. I have no idea how I came to have it, but I do. I thought it would be worth posting in its entirety, so I did:
It’s all there – graphics, code samples, and text. I hope I’m not violating any intellectual property rights in posting it. I certainly am grateful to Mr. Harvey for his work. If I am doing wrong here, please let me know and I’ll take it down. I’d hate to have to do that, though.
Otherwise, there it is as a valuable resource for the Delphi community. I hope it is helpful to someone.
- Stefan chastises me for making another one of my pronouncements on “evil” programming techniques. I admit to a bit of hyperbole, but it’s not without a point. The argument against my pronouncements is that the wise and judicious use of these so-called “evil” features or techniques is good. I don’t agree. I think that if a “feature” has the ability to be *easily* abused, then it should be avoided. For instance, some make the argument that there places where the
withstatement makes sense. Well, my counter argument to that is if you allow the
withstatement in a few places, it’s very easy to use it in just a few more places, and then the next thing you know, your code is full of
withstatements. It’s a slippery slope that you should never start down. The same is true for nested procedures. Sure, there might be places where they “make sense”, but if you allow them in one place, what is to stop a junior programmer from getting the wrong idea and go crazy with them? This is especially true for features that simply need not be used at all – such as
withand nested procedures. You can write beautiful code without them, so why risk sliding down the slope? Better to ban their use altogether. (Cue the “Then why don’t we all just use assembler” comments in 3..2…1….)
- I’m a big user and proponent of the Spring for Delphi framework. If you are, too, then you might consider donating to the project. The website now has a PayPal donate button.
- I recommend that you give a very careful read to Marco’s post about what was going on at the Microsoft BUILD conference last week. Lots of interesting stuff there for us Delphi developers, both in the Windows and cross-platform realms.
- Torry.net is for sale. Hat tip to Olaf Hess in the non-tech group for this piece of information.
- Stefan Glienke has two interesting polls going on:
- Let’s do some demographics of the Delphi developers – how old are you?
- How long ago did you start using Delphi?
- Ten Tips For Migrating From C# And .NET To Multi Platform Object Pascal And Delphi Firemonkey
- Another entry in the “They are evil” category: nested routines. Just don’t. In my codebase at work, there are methods that six, seven, even eight nested methods. I have even seen nested routines with nested routines. Argh. Despite being a formatting nightmare – how are you supposed to read and understand that? – a bunch of nested routines screams “Make me into a class”. If you have a bunch of methods at all should be grouped together, isn’t that pretty much the definition of what a class is? Anyway, nested routines should be banished.
- Wallace and Gromit run on Delphi.
- I of course want you to buy my book, but I have been doing research for my next book and am thus reading sections of Delphi XE2 Foundations. I can’t recommend this book enough. It’s a tour de force for Delphi and the RTL. I know how hard it is to write a book, and I can’t imagine how much work this one took. It’s excellent, and I highly recommend it (after you buy my book, of course….). Don’t be put off by “XE2” in the title, this is a great book for all Delphi developers. Kudos to Chris Rolliston.
- I’ve never really gotten into Quora, but it seems like a pretty cool site which has somehow managed to produce quality questions and answers without all the spam and other nonsense that often attends such a site. Here’s a Quora question about Delphi that many of you might like to answer and/or read about.
- Yesterday, I tweeted the following: “Of all the types of reviews out there, the ‘I couldn’t understand it so it must really suck, 1 star’ reviews are my favorite.” In researching my book, I’ve been re-reading Dependency Injection in .NET
by Mark Seemann. I looked up the book on Amazon, and was astonished to find that someone had given this amazing and enlightening book a 1-star review. Some people, I swear. This review is more along the lines of what the book deserves.
- Correction: Apparently, it was Borland C++ 3.0 that was the big box with the handle. Thanks for the correction from Jeroen Pluimers, who also found a picture. (You have to scroll down a bit, but it’s there…)
- A Clarification: Two points to make on my last post about subscriptions. First, it wasn’t about EMBT, but rather the software industry in general. Second, the point wasn’t “Software subscriptions are great!”, but rather “The industry is moving to subscriptions, and here’s why”. Many folks seemed to believe I was arguing the former. Perhaps I was just inarticulate. Sorry for any confusion.
Interesting linksHere are some interesting links for you! Enjoy your stay :)
- November 2017
- August 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- March 2016
- January 2016
- December 2015
- November 2015
- September 2015
- August 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014