Ever run npm test on fresh line of code, and see you terminal jam up on some newly written loop like for(let i = 0; i <…etc…etc)? You quit, then your fan starts getting very loud. Yet you notice your MacBook doesn’t even feel very hot. So, you check your activity monitor, and the number one highest CPU usage is kernal_task. Maybe you quickly close a bunch of running apps, like Spotify and Slack and Zoom, and the fan subsides; or instead, your cursor does that color palette spin. So does that really fix the problem?
My advice here is…
Another post today continuing with my math problem project. This one is very mathy, but if you understand the straightforwardness of the theory, this one is not as confusing as my previous entry.
If you’re coming from my last blog, you’ve probably picked up on the fact I started doing the classic Euler project. So here’s the next challenge…
## Problem: Even Fibonacci
- Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
You can skip this next section if you are familiar with the Fibonacci sequence(referred to as fib_seq from…
If you are new to programming, I’m going to recommend a book that will allow you to take your eyes off a screen (unless you really prefer it online) for 30min-1hr day: Code Complete (link to amazon).
In this blog, I will apply some lessons learned from chapter 9 on Pseudocode Programming Process (PPP) with an easy algorithm. If you’re looking into this blog, I’m hoping you have an understanding of procedural and object-oriented Ruby, and little bit of math. We’ll be using a few essential methods to solve our problem.
First things first, here is our problem statement:
Last week, I participated in an online event hosted by skilled. If you are unfamiliar with the site, basically they provide a platform for mock technical interviews. Pass or fail, I find it’s a worthwhile experience to check out their services if you are in the interviewing processes.
Anyone who has ever worked in software engineering can tell you that these types of assessments are the gatekeeper to getting a job offer. A resume only goes so far; these problems allow you the opportunity to prove your skills to a potential employer. …
First of all, what is Ruby-on-Rails? Simply, it’s a ruby gem, a code library, which is open source, and an MVC web framework. What’s great about that, is that using Rails, you won’t have create the base application functionality over and over again. So let’s jump into how to get started, and then run a migration (assuming you’re a Mac user).
Open a command terminal on you computer. Run the following:
gem install rails
Next generate a new rails app like this:
rails new your-apps-name
Notice the dashes between each word there, and it’s lowercase? That’s important. …
I’m assuming if you’re coming to this article from my last, you felt there was a little bit of unresolved information. Can you elaborate a little bit on this ORM thing? Why all this secrecy behind ActiveRecord?
An Object-Relation Mapper allows object-oriented programming to use an SQL database, which is not object oriented. If you are trying to create a program to store object values, using this system, the data is converted back and forth; its persistent. The basic “mapping” concept boils down to this very simply…think:
Class → Database Table
Instances → Table Rows
attr_accessor → Column name
In this first blog, I’ll discuss a little bit how the two are related and used by this Rubyist. In following entry, I will discuss ActiveRecord and ORMs.
So what exactly is this SQL? Simply, it’s a “domain-specific” programming language with a “special purpose”: it’s only used for talking to databases. I’ve used it to handle data in a relational database management system, or RDBMS. …
web developer making apps for people with appetite