Open in app

Sign In

Write

Sign In

Bret Doucette
Bret Doucette

471 Followers

Home

About

Nov 22, 2019

Part 5: What is Variable Scope in Javascript?

This is Part 5 of my I Need To Learn More JavaScript series. Part 1: What is a Closure in JavaScript? Part 2: What is forEach and Map in JavaScript? Part 3: What is a Reference in JavaScript? Part 4: What is Event Delegation in JavaScript? Part 5: What is…

JavaScript

5 min read

Part 5: What is Variable Scope in Javascript?
Part 5: What is Variable Scope in Javascript?
JavaScript

5 min read


Feb 22, 2018

Understanding this.setState({ [name]: value})

What is going on here? — When I first started learning JavaScript, I was confused about exactly what line 3 above what trying to accomplish. I knew that changing an input field created an event object and that line 2 was destructing that event object into two separate variables, name and value, but I had…

JavaScript

5 min read

JavaScript

5 min read


Apr 17, 2017

2 Tricks That Will Save You Thousands of Southwest Miles

I travel Southwest a lot. By getting the Companion Pass, I have racked up free flights all around the United States. Even if you don’t have the Southwest Companion Pass, a 50,000 signup bonus on any of the Southwest credit cards still goes a long way. For example, from Denver…

Travel

4 min read

2 Tricks That Will Save You Thousands of Southwest Miles
2 Tricks That Will Save You Thousands of Southwest Miles
Travel

4 min read


Apr 10, 2017

9 Reasons to Love Solo Travel

Here is my story. I hope it helps you find your adventure. — Three years ago, I was sitting on a bluff overlooking the bay surrounding Stockholm. The sun was in its final stretches before dusk. The weather was warm, but not too hot, and the wind was calm and comforting. In the distance, you could see 2 hot air balloons floating effortlessly…

Travel

11 min read

9 Reasons to Love Solo Travel
9 Reasons to Love Solo Travel
Travel

11 min read


Jan 25, 2017

Part 4: What is Event Delegation in JavaScript?

This is Part 4 of my I Need To Learn More JavaScript series. Part 1: What is a Closure in JavaScript? Part 2: What is forEach and Map in JavaScript? Part 3: What is a Reference in JavaScript? Part 4: What is Event Delegation in JavaScript? Part 5: What is…

JavaScript

8 min read

Part 4: What is Event Delegation in JavaScript?
Part 4: What is Event Delegation in JavaScript?
JavaScript

8 min read


Jan 13, 2017

Part 3: What is a Reference in JavaScript?

This is Part 3 of my I Need To Learn More JavaScript series. Part 1: What is a Closure in JavaScript? Part 2: What is forEach and Map in JavaScript? Part 3: What is a Reference in JavaScript? Part 4: What is Event Delegation in JavaScript? Part 5: What is…

JavaScript

7 min read

Part 3: What is a Reference in JavaScript?
Part 3: What is a Reference in JavaScript?
JavaScript

7 min read


Jan 5, 2017

Part 2: What is forEach and Map in JavaScript?

This is Part 2 of my I Need To Learn More JavaScript series. Part 1: What is a Closure in JavaScript? Part 2: What is forEach and Map in JavaScript? Part 3: What is a Reference in JavaScript? Part 4: What is Event Delegation in JavaScript? Part 5: What is…

JavaScript

4 min read

Part II: What is forEach and Map in JavaScript?
Part II: What is forEach and Map in JavaScript?
JavaScript

4 min read


Jan 4, 2017

Part 1: What is a Closure in JavaScript?

This is Part 1 of my I Need To Learn More JavaScript series. Part 1: What is a Closure in JavaScript? Part 2: What is forEach and Map in JavaScript? Part 3: What is a Reference in JavaScript? Part 4: What is Event Delegation in JavaScript? Part 5: What is…

JavaScript

4 min read

Part 1: What is a Closure in JavaScript?
Part 1: What is a Closure in JavaScript?
JavaScript

4 min read


Jan 9, 2016

N+1 Queries and How to Avoid Them!

A Tutorial in Active Record — What is a N+1 Query Simply stated, a n+1 query is an inefficient way query a database, and the best way to demonstrate such an inefficient query is through an example. Take a look at the following two models: class Article < ActiveRecord::Base has_many :comments end class Comment < ActiveRecord::Base belongs_to :article end This is…

Ruby On Rails

5 min read

N+1 Queries and How to Avoid Them!
N+1 Queries and How to Avoid Them!
Ruby On Rails

5 min read


Dec 9, 2015

Your Cookies are OverFlowing — Cookies in Ruby on Rails

During a recent project, two teammates of mine came across one of my favorite error messages. “Your Cookies are OverFlowing” The error is the result of storing too much data in a session; in the case of Rails, 4K. It is documented in the ActionDispatch::Cookies. …

Web Development

2 min read

Web Development

2 min read

Bret Doucette

Bret Doucette

471 Followers

Founder of TrekWeather.com

Following
  • David Gerken

    David Gerken

  • Scott Galloway

    Scott Galloway

  • Thomas Despin 🏝

    Thomas Despin 🏝

  • Coate

    Coate

  • Nemil Dalal

    Nemil Dalal

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech