Home New Trending Search
About Privacy Terms
#
#StringHandling
Posts tagged #StringHandling on Bluesky
Preview
One Swift mistake everyone should stop making today TL;DR: You should use replacing(_:with:) rather than replacingOccurrences(of:with:)

🔧 𝑶𝒏𝒆 𝑺𝒘𝒊𝒇𝒕 𝒎𝒊𝒔𝒕𝒂𝒌𝒆 𝒆𝒗𝒆𝒓𝒚𝒐𝒏𝒆 𝒔𝒉𝒐𝒖𝒍𝒅 𝒔𝒕𝒐𝒑 𝒎𝒂𝒌𝒊𝒏𝒈 𝒕𝒐𝒅𝒂𝒚 by Paul Hudson (@twostraws.bsky.social)

Your string replacements behaving unexpectedly? 𝑟𝑒𝑝𝑙𝑎𝑐𝑖𝑛𝑔𝑂𝑐𝑐𝑢𝑟𝑟𝑒𝑛𝑐𝑒𝑠 has subtle gotchas. Discover why and what Apple's modern alternatives offer.

#Swift #StringHandling #Debugging

1 0 0 0
Preview
Day 8 of Java Mastery: Printing With Concatenation Let's learn something fun - concatenation! Don't worry about the big word. It simply means joining different pieces of information, like text and variable values, to show a single result. Imagine your name is stored in a variable. Wouldn't be amazing to print something like: Akito will get a job! Yes, that's exactly what we'll learn, and it's very easy!

🔗 Day 8 of Java Mastery: Concatenation in Java

Need to join words, sentences, or values together in Java? That’s where concatenation comes in! 🧩✨

Read Blog: https://wp.me/paNbWh-5c

#Java #JavaMastery #Day8 #Concatenation #LearnJava #100DaysOfCode #CodeNewbie #StringHandling #JavaBasics

2 1 0 0