Quantcast
Channel: Programming – David Leston's Software Development Blog
Browsing latest articles
Browse All 18 View Live

Should you be persisting more state?

Lost state is state that has been destroyed, deleted, garbage collected or otherwise removed from storage not because of some domain specified reason.  In the best case because of limited storage...

View Article



Faster first byte.

override render(HtmlWriter) HtmlWriter.Flush DoSomeExpensiveOperation // or join with a thread that’s loading state base.Render(HtmlWriter) This way, you can send the headers and navigation to the...

View Article

Screen scraping poker web sites

Screen scraping is very brittle. It will require continual maintenance and will never be complete. A good screen scraper is like writing a parser. Extracting semantic meaning from text with a poor...

View Article

FTP with streams in .net c# vb.net

There needs to be a good opensource ftp library for .net.  I want to be able to write to the FTP stream, not pass a byte array or even a pointer to a file.  Why can’t I get a Stream Upload(string...

View Article

Using @ infront of literal strings

Using @ infront of literal strings lets you do: instead of: “C:\\directory\\file.xml” or “SELECT field FROM table where field=var” you can do: @”C:\directory\file.xml” and @”SELECT field FROM table...

View Article


Functional list processing with anonymous delegates

Derrick Coetzee has an article about functional list processing with anonymous delegates. Keep code close to where it’s used.

View Article

Closures for Java

In his talk, Closures for Java, Neal Gafter provides a description of and an argument for closures in Java. Click here to view the embedded video.

View Article

Automated Testing – Model-Based Testing

In his talk, Model-Based Testing: Black or White?, Mark Utting discusses the difference between black-box and white-box models and their affect on the ability to automate testing. Click here to view...

View Article


Favorite JavaOne Videos

I’ve moved over to Java. Here are my favorite sessions from JavaOne. Videos require free registration. You only need to register once for all the videos. Language: Languag-Oriented Programming and...

View Article


Design by Contract

I would like to see design by contract become mainstream. JSR-305, Annotations for Software Defect Detection, is a step in the right direction. The applicability of this standard is broader than the...

View Article

Phishing and other scams.

I always find these security talks entertaining. In his talk, Searching for Evil, Professor Ross Anderson discusses research done by himself, Dr. Richard Clayton, Tyler Moore, Steven Murdoch, and...

View Article

Creative use of closures in testing.

Having moved to Java, I do miss closures. xUnit.net has a creative use of closures in their unit testing framework: 1 2 3 4 5 6 7 8 9 [Test] public void DivideByZeroThrowsException() {...

View Article

Parleys.com

Parleys.com publishes talks from software conferences.  I like seeing high-quality slides alongside video of the speaker.  Paryleys’ podcast is an audio only version of the talks you can watch on their...

View Article


Authoring Iterators Using Google’s Collections Library

Let’s implement an iterator. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 /** * Removes duplicates from the elements returned by provided iterator. *...

View Article

Processing in batches and improving maintainability

Here’s a common pattern: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 void process(final List<Foo> foos) { final ArrayList<bar> batch = new...

View Article


Clean Code

The Clean Code Talks concentrating on writing testable code. In his talk, Unit Testing, Miško Hevery explains unit testing and makes a case for unit tests. Click here to view the embedded video. … In...

View Article

Architecting for scalability and audit logs by explicitly modeling state...

In his talk, Unsleash Your Domain, Greg Young presents a dense discussion of topics about which I am passionate.  At its core, the talk is about how to guarantee a correct audit log and architect for...

View Article


Duplicating data can save money

I have lots of records in my database. One application writes these records, many applications read these records. So I put them all in one database, and have all the applications access that database....

View Article
Browsing latest articles
Browse All 18 View Live




Latest Images