CommunityNews

CommunityNews

Javascript Does Not Need a StringBuilder

Javascript Does Not Need a StringBuilder.
Today I learned that Javascript does not need a StringBuilder for accumulating a large number of concatinations. As a Java programmer, that came as a shock to me. This article summarizes my exploration of this fact. Effective Java A StringBuilder is grilled into Java programmers. Effective Java [1] says, “Item…

Read in full here:

This thread was posted by one of our members via one of our news source trackers.

/js

Most Liked

davearonson

davearonson

StringBuilder is a great example of premature optimization.

Hakanai

Hakanai

Depends. If it’s the extreme case shown in that article, I’d say it’s worthwhile to use it, because the concatenation example literally didn’t finish for many of the runs.

Where Next?

Popular Frontend topics Top

New
New
First poster: bot
Building LightOS with React Native. The Light Phone 2 is a minimalist cellphone that was named one of Time Magazine’s best inventions of...
New
First poster: bot
Wasmino = WASM + Arduino (Running Arduino code in browser). Wasmino Running the “Fade” example Wasmino is an Arduino core fully compatib...
New
First poster: bot
How JavaScript engines achieve great performance. Ever wondered what browsers do to get JavaScript to execute quickly? Let’s take a look...
New
First poster: bot
Assertion Functions in TypeScript. TypeScript 3.7 implemented support for assertion functions in the type system. An assertion function ...
New
First poster: bot
TypeScript and Set Theory . How does set theory help to understand type assignability and resolution in TypeScript?
New
First poster: bot
Building a JavaScript Bundler. Learn the basics of building a JavaScript bundler.
/js
New
First poster: bot
Welcome to the Open Source Seed Initiative - Open Source Seed Initiative. Today, only a handful of companies account for most of the wor...
New
First poster: bot
Announcing: Rescript-tea. Rescript-tea is a Rescript implementation of The Elm Architecture, an MVU (Model-View-Update) pattern for orga...
New

Other popular topics Top

AstonJ
If it’s a mechanical keyboard, which switches do you have? Would you recommend it? Why? What will your next keyboard be? Pics always w...
New
siddhant3030
I’m thinking of buying a monitor that I can rotate to use as a vertical monitor? Also, I want to know if someone is using it for program...
New
AstonJ
SpaceVim seems to be gaining in features and popularity and I just wondered how it compares with SpaceMacs in 2020 - anyone have any thou...
New
AstonJ
Do the test and post your score :nerd_face: :keyboard: If possible, please add info such as the keyboard you’re using, the layout (Qw...
New
AstonJ
If you are experiencing Rails console using 100% CPU on your dev machine, then updating your development and test gems might fix the issu...
New
rustkas
Intensively researching Erlang books and additional resources on it, I have found that the topic of using Regular Expressions is either c...
New
PragmaticBookshelf
Author Spotlight Jamis Buck @jamis This month, we have the pleasure of spotlighting author Jamis Buck, who has written Mazes for Prog...
New
First poster: bot
zig/http.zig at 7cf2cbb33ef34c1d211135f56d30fe23b6cacd42 · ziglang/zig. General-purpose programming language and toolchain for maintaini...
New
AnfaengerAlex
Hello, I’m a beginner in Android development and I’m facing an issue with my project setup. In my build.gradle.kts file, I have the foll...
New
mindriot
Ok, well here are some thoughts and opinions on some of the ergonomic keyboards I have, I guess like mini review of each that I use enoug...
New