Ruby Built-in Data Types

Flat illustration of a developer coding in Ruby with floating data type labels and Ruby logo on a blue background.
Discover Ruby’s built-in data types including numbers, strings, arrays, hashes, and symbols with clear examples.

When learning Ruby, understanding its built-in data types is one of the most important steps. Data types define the kind of values you’re working with and how Ruby interprets and manipulates them.

Ruby keeps things simple but powerful — everything is an object, and each data type comes with its own methods and behaviors.

Let’s walk through Ruby’s essential data types with examples you can try right away.

Continue reading “Ruby Built-in Data Types”

How To Win Friends and Influence People – Dale Carnegie

How To Win Friends and Influence People – Dale Carnegie

What’s up everyone?!? I hope everyone has been staying healthy and everything. I just wanted to take a minute and share another great book that I have been reading and I feel like this could help other people.

The titular book is called “How to Win Friends & Influence People” – Dale Carnegie. This book was published back in 1936, and I absolute enjoy this book because it is such a classic, and I definitely could learn a few things from this book. Frankly speaking, I felt like sometimes I don’t understand people as well as I should, that’s why I picked up this book just so I could glean a few things, and well, it has worked wonders! It has answered a number of questions for me personally.

If you struggle with interacting with people, or simply wanting to become a better conversationalist, this book has a few tips for you. I highly recommend this book, I’m almost done reading it! If you have questions or a book recommendation for us, feel free to post in the comments below!

Linear Linked List – Search Element using Python

Linear Linked List using Python

What’s up friends?!?

Let’s continue on another linear linked list problem. I’m going to make this post short since I’ll use the boilerplate code from the last LLL problem we had. If you need any help, I’ll also post the link to GitHub so you can stroll along.

Anyways, for this problem, I just want to write some code to find a specific element inside the LLL. You could do this iteratively or recursively, whichever way you choose to do, but for the purpose of this program, I am just going to solve it iteratively.

Continue reading “Linear Linked List – Search Element using Python”

Made in America – My Story by Sam Walton

Made in America - My Story by Sam Walton

What’s up friends??

Made in America - My Story by Sam Walton Book

I want to veer off of programming topics, and instead, I just want to talk about a book that I am reading. I think we could all use a bit of fresh air away from programming once in a while. Reading is on my top 3 list of activities that I do everyday, it’s a way for me to have a break away from the programming world. As such, I definitely am happy to share one book that I currently am reading, and who knows, you might add this to your own reading list!

Besides programming, I like to learn a bit about other areas too, especially how businesses were brought up from the beginning and the obstacles that they had to face in order to achieve the goals. Hence, the book that I am reading is “Sam Walton: Made in America – My Story” by Sam Walton with John Huey.

Continue reading “Made in America – My Story by Sam Walton”

Linear Linked List – Insert Element Beginning using Python

Linear Linked List - Insert Element at Beginning using Python

What’s up friends?! Hope your week has been great as always, the weather here has been quite chilly and then hot at different days, so I’ve been taking advantage of it and go hiking quite a bit to clear up my head.

Today, I want to take a moment to introduce data structures. Data structures is one of my favorite topics ever, and in my personal opinion, possibly one of the most important courses of computer science in general, as it provides the foundation for later on. Well, WHAT IS DATA STRUCTURE? Data structure essentially is a way of organizing data for the machine to work efficiently, and you have seen it before, such as array! As such, I want to talk about linear linked list because I am positive colleges would definitely throw these at you, and you definitely are going to spend hours and hours on data structures!

Continue reading “Linear Linked List – Insert Element Beginning using Python”

Bubble Sort Algorithm using Python

Bubble Sort Algorithm Using Python

Hey!!! What’s up everyone?! I hope your week has been great! I have been working on tirelessly on my projects, so I am going to take a short break, and write up this article!

For today, I want to touch base on a classic algorithm that students have seen over the years, and it is called Bubble Sort Algorithm! Now, before I get started, there are obviously much better sorting algorithms are there, but for the sake of improving our critical thinking skills, Bubble Sort Algorithm is a good one!

Continue reading “Bubble Sort Algorithm using Python”

Permutations Using Python

How’s it going everyone?!?

I hope your week has been great and staying healthy. Today I am going to talk about permutations using Python. The version that I am going to use for this program is Python 3.8.3.

Well, what are permutations????? Permutations in mathematics basically are just different combinations of a sequence, and that is exactly what we are going to do. We are going generate a random sequence of integers and find different combos for this sequence!

Continue reading “Permutations Using Python”

Customizing the Author Box using the Genesis Theme

Permutations Using Python

I had some consulting work come in – task was pretty straightforward, then again what
exactly is “straightfoward.” In software though, nothing is ever “straightforward”, though
that word gets used a lot to describe something pretty close to being straightforward but not
exactly so.

Alright anyway, I was working off a Genesis theme. Themes, templates, architecture. I think
these terms are all synonymous, the keyword really here is architecture. There are some bad ones,
good ones and terrible ones. Genesis in my opinion is pretty good. But what qualifies as “pretty good”, really? For starters I’d say architecture that is lightweight, modularized, and loosely coupled. Architecture where we can inject new features seamlessly.

I was working on enabling an author box on a blog page, on every single blog post – so this was to be a global implementation for a blog. It’s been a while since I’ve worked with Genesis themes but good news is there’s a pretty big community around it and chances are I would be running into a frequent feature.

Continue reading “Customizing the Author Box using the Genesis Theme”

Accordion Menu in Vanilla Javascript

Accordion Menu in Vanilla Javascript

I’m back in the mood for more Javascript, more specifically “vanilla javascript” – which is just a phrase for writing Javascript in it’s true form, free from any frameworks or libraries. I guess the only thing we would be dependent on would be the “Javascript Engine” itself and the available “API’s” available for our use. I think this is pretty cool, we can do a lot with just “vanilla javascript” alone.

Now don’t get me wrong, frameworks and libraries are great – they take care of all the nitty gritty cross browser stuff but often come with unnecessary bloat or extra features that aren’t even utilized. Frameworks like ReactJS and VueJS manage DOM manipulation for you so you can offload having to manage a bunch of selectors. There are some key concepts to be learned in writing plain Javascript though, as we shall see – we can achieve the same functionality with much less code.

Continue reading “Accordion Menu in Vanilla Javascript”

The Early Days of Id Software – John Romero

The Early Days of Id Software - WeAreDevelopers Conference by John Romero

I decided to take a break from my usual programming and wandered the internet, I tried breaking away from any programming related videos. I was looking for something light, I don’t know maybe a web dev conference.

This post is based off a youtube video I stumbled on, it’s entitled “The Early Days of Id Software – John Romero @ WeAreDevelopers Conference 2017“. You know, I didn’t know who John Romero was and I played both DOOM and QUAKE back in the early 90s. John was rockin’ the long hair, it was super long, looked super cool though. I wish they would invite more people like John over to Web Dev Conferences.

Continue reading “The Early Days of Id Software – John Romero”