
Design Patterns Part 1 – You Create Me!
Coding Blocks
00:00
Using a String Builder?
With a string builder, it doesn't do that. You just keep appending to the object, correct? And then at the end of it, it creates you a string. So which one produces the faster operation? A string builder dot append, food dot append bar dot append and just keep on doing operations like that or concatenations with plus sign. Or the last one would just be doing a bunch of string objects and then, well, I guess we already concatenated. That's the plus plus plus. The format, I think, would be faster.
Transcript
Play full episode