Blog

Page 141 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How do you write multiline strings in Go?
multilinestring

How do you write multiline strings in Go?

Published on September 2, 2023

## How to Write Multiline Strings in Go: The Easy Way! ๐Ÿ˜Ž Have you ever wondered how to write multiline strings in Go? ๐Ÿค” If you're coming from a Python background, you might be familiar with the simplicity of using triple quotes to define multiline strin

Cover Image for Safe (bounds-checked) array lookup in Swift, through optional bindings?

Safe (bounds-checked) array lookup in Swift, through optional bindings?

Published on September 2, 2023

๐Ÿ“ Safe (bounds-checked) Array Lookup in Swift, through Optional Bindings ๐Ÿค” Have you ever encountered a runtime error while accessing an index that is out of bounds in Swift arrays? It can be frustrating, especially considering Swift's focus on safety an

Cover Image for Print string to text file
file-iopythonstring

Print string to text file

Published on September 2, 2023

# ๐Ÿ“ How to Print a String to a Text File using Python Are you trying to print a string to a text file using Python and unsure of how to do it? You're in luck! In this article, we'll discuss the common issues faced when performing this task and provide ea

Cover Image for How to load all server side data on initial vue.js / vue-router load?
ajaxjavascriptjquery

How to load all server side data on initial vue.js / vue-router load?

Published on September 2, 2023

## ๐Ÿ“ How to Load All Server Side Data on Initial Vue.js/Vue Router Load Are you facing the issue of your server side data loading only after the page has rendered when using Vue.js and vue-router? This can be frustrating, especially when you want to load

Cover Image for Removing duplicate elements from an array in Swift
arrays

Removing duplicate elements from an array in Swift

Published on September 2, 2023

# Removing Duplicate Elements from an Array in Swift: A Simple Guide ๐Ÿงน Have you ever found yourself dealing with an array that contains duplicate elements, and you just want to keep one of each? Luckily, Swift provides us with a simple way to achieve thi

Cover Image for What is the difference between `let` and `var` in Swift?

What is the difference between `let` and `var` in Swift?

Published on September 2, 2023

# Understanding the Difference between `let` and `var` in Swift ๐Ÿค”๐Ÿ” So, you're diving into the exciting world of Apple's Swift language, but you're running into a common question: "What is the difference between `let` and `var` in Swift?" ๐Ÿคทโ€โ™€๏ธ Don't wo

Cover Image for How can I use String substring in Swift 4? "substring(to:)" is deprecated: Please use String slicing subscript with a "partial range from" operator

How can I use String substring in Swift 4? "substring(to:)" is deprecated: Please use String slicing subscript with a "partial range from" operator

Published on September 2, 2023

# How to Use String Slicing Subscript with Partial Range From in Swift 4 ๐Ÿ˜Ž So you want to use the `substring(to:)` method in Swift 4, but you're getting a deprecation warning? No worries! Swift 4 has a cool alternative for you called the **String Slicing

Cover Image for How do I print the type or class of a variable in Swift?
types

How do I print the type or class of a variable in Swift?

Published on September 2, 2023

๐Ÿ–จ๏ธ๐Ÿ”๐Ÿค”How do I print the type or class of a variable in Swift?๐Ÿค”๐Ÿ”๐Ÿ–จ๏ธ Have you ever found yourself scratching your head and wondering how to print the type or class of a variable in Swift? ๐Ÿค” It may seem like a simple task, but it can be surprisingly tri

Cover Image for How do I generate a custom menu/sub-menu system using wp_get_nav_menu_items in WordPress?

How do I generate a custom menu/sub-menu system using wp_get_nav_menu_items in WordPress?

Published on September 2, 2023

# How to Generate a Custom Menu/Sub-Menu System in WordPress using wp_get_nav_menu_items ๐Ÿ” Are you looking to create a custom menu/sub-menu system in WordPress but are unsure of how to do it using wp_get_nav_menu_items? Look no further, because we have g

Cover Image for Read and write a String from text file
file-iostring

Read and write a String from text file

Published on September 2, 2023

๐Ÿ“ **Tech Blog Post: Easy Ways to Read and Write a String from a Text File in Swift ๐Ÿ“** Hello there, tech enthusiasts! ๐Ÿ‘‹ Are you struggling to read and write data from a text file in Swift? Don't worry, you're not alone! Many developers face this issue