Normal Taylor cover image
Normal Taylor
Normal Taylor
@dossiette
TBD / TODO
USA
Joined on Oct 4, 2022
8 posts
0 followers
11 following

Using self vs. $this in PHP

In PHP, both 'self' and '$this' are used to refer to class members, but they have different contexts and usages. Using 'self' What is 'self'? 'self' i...
Using self vs. $this in PHP

Guide to Parsing JSON in Swift

In Swift, parsing JSON is a common task when working with web APIs or data fetched from the server. JSON Structure Before parsing JSON, it's essential...
Guide to Parsing JSON in Swift

Extracting filename and extension

To extract the filename and extension from a file path in Bash, you can use various string manipulation techniques. Using parameter expansion Paramete...
Extracting filename and extension

Using NestJS Logging Service

NestJS provides a built-in logging service that allows you to log messages at different levels of severity. It helps you track and understand the flow...
Using NestJS Logging Service

Concatenate Two Slices

In Go, you can concatenate two slices to create a new slice that contains elements from both original slices. Using Append The append() function in Go...

Checking Whether a String Contains a Substring

In JavaScript, you can easily check whether a string contains a substring using different methods and techniques. Using String.includes() The String.i...

Writing a Switch Statement in Ruby

In Ruby, a switch statement is achieved using the case statement. It allows you to compare the value of an expression against multiple conditions and...
Writing a Switch Statement in Ruby

Using `docker exec` command

To access a Docker container's shell, you can use the docker exec command, which allows you to run commands inside a running container. Using docker e...
Using `docker exec` command