Curly Brace Confusion in JavaScript

Okay Guys,

I am STUCK on the Functions & if/else in Codecademy. I have tried everything I can think of and I am really having difficulty with this problem. I stumbled upon this post by Dave Ward: http://bit.ly/jlRVVC. No doubt the article is intended for seasoned programmers, but I found it helpful nonetheless. I realize that the placement of curly braces can make or break your code. I am going to need to have a better understanding of this before moving forward. Anyone out there have any pointers or advice? Codecademy said it expected an identifier and instead saw “else.” It might look a little gross, but here’s my code. 

var creditCheck = function (income)
{
if (income >= 100);
return (“You earn a lot of money! You qualify for a credit card.”) };

{
else;
return (“Alas you do not qualify for a credit card. Capitalism is cruel like that.”);
}

(prompt (“How much money do you make?”));

creditCheck(75);
creditCheck(125);
creditCheck(100);

Thanks everyone! Hope your JS is going well! I would love to hear some more stories of your progress to keep me going!

Newbie JavaScript Lessons

Hello all!

I began JavaScript on Codecademy for the first time this week. So far, it seems as though we jumped right into the finer points of this lightweight programming language without having a broader, big picture understanding of JS first. I’ve been googling to get a better grasp and perspective. I came across a couple of resources I found to be helpful:

1. w3schools provides great beginner definitions and explanations in a written tutorial format. They also offer a handy results tab where you can play around with the code you just learned without having to install a text editor of your own.

2. thenewboston YouTube channel. Sure he’s a bit of a brogrammer, but it makes the tutorials more entertaining. Plus, his instructions and explanations are easy to understand and he’s helping me learn JavaScript, so who cares, right? 

I’m also seriously considering enrolling in Treehouse. Their fees are quite low and I’m hoping to give them a try for a month and see how it goes. Anyone out there using Treehouse to level up their skills?

Oh, I also got stung by a yellow jacket today. Good times.

Finding a Text Editor

I finished CSS in Codecademy yesterday. The fancy resume I created for my final project wasn’t working or looking right, and yet I passed the section with flying colors. After spending some time googling my issue with minimal results, it was time to return to YouTube to refine my understanding of CSS. There are many helpful video tutorials on CSS, but there’s a little problem I keep running into: TextEdit isn’t cutting the mustard. In every video I watch, the teacher is using one snazzy text editor after another. I keep seeing useful features like highlighting, auto closing tags and preview. Me want! Notepad++ sounded great, but I couldn’t find a version for mac, which is what I’m using. But, aha! I found a resource to help with that. Mikes Massive Mess recommends a wonderful program called WineBottler which converts a number of Windows applications to mac. One such program is Notepad++! Yay! Thanks Mike!! Done and did. Everything is working beautifully. Now I can finally use the free text editor I want and get back to business.

Learning to Code

My husband finally convinced me a few weeks ago that I might just make a great programmer. He pointed out that I’m EXTREMELY detail oriented, I like putting things in their proper place, and I have a lot of patience with tedious, nitty-gritty stuff. Plus, I’m an artist and love making everything look pretty.

I took his advice and started my journey with HTML and CSS. After watching some YouTube tutorials, I signed up for the free lessons on http://www.codecademy.com. It seemed like the perfect place for a total beginner like me to get an introduction to a variety of popular programming languages. 

Shockingly, it’s going great so far. I’m finished with the HTML section and am about half way through CSS. I got my 100 lesson badge today and had to share my joy. Not bad for a girly pretty princess like me. I’m taking exhaustive notes and am looking forward to seeing what else I can make. I’ll keep you posted on my progress. I know I have just stumbled upon a universe of information and have a TON to learn and google. But, as of this moment, I’m enjoying my brain and am feeling very encouraged. 🙂

Get Cookin’ Thursdays!

photo

Spring is here and it’s time  for more interesting salads! Everything is so fresh and beautiful right now! This week we went for page 183 of La Tartine Gourmande: Arugula salad with beets, radishes, shaved fennel and feta cheese. So satisfying and nutritious! We weren’t able to find any fresh hazelnuts, but it didn’t hurt the final result one bit. And fennel is always great in a salad. Yum!

I am also very excited about a fruit I didn’t know existed (one of my favorite things) until a couple of days ago: Champagne Mangoes. We just ate our first one just now. I would have posted a pic but I just couldn’t wait. It was SO delicious!!! It had a much more delicate flavor than the common mangoes you always see around. Damen picked it up from the grocery store the other night on a whim. What a delightful discovery. Thanks babe!!!

I hope you’re cookin’ something delightful in your kitchen tonight. Happy Thursday to you and thanks for reading!

A Post Head Hike

English: The Hollywood sign seen from the farm...

English: The Hollywood sign seen from the farmers market in los angeles. (Photo credit: Wikipedia)

Being an original country girl (Washington State to be exact.) living in a big city, I have an intense need for nature hikes. The air quality, concrete and traffic can really get me down sometimes. Hikes recharge me on a deep level that I find very satisfying.

Back in January, just a week after hiking Bronson Canyon, I heard some very disturbing news. Did you hear about the head/body parts found by the Hollywood Sign? Read more here if you dare: http://articles.latimes.com/2012/jan/18/local/la-me-0118-head-found-20120118 That just happened to be one of my most frequent and favorite hikes in Southern California…until that happened. It’s just so terrible. What a way to go.

When my Mom heard the news, she immediately called me to make sure I wasn’t hiking that trail any more for fear of the killer leaping out from the bushes and attacking me. I did stop hiking the trail, but it was more because I didn’t need my serene hiking thoughts interrupted with “I wonder where they found the head?”

Knowing we are moving to Austin, Texas in October (That’s a difference of 1,383 miles in case you were wondering.), I’ve decided to soak up as much LA awesomeness as I can possibly cram in between now and our moving date. I couldn’t let a head (…and hands…and feet.) defeat me. I had to attempt it at least one more time to prove to myself I could do it. Damen joined me. That helped. It was quite lovely, and we only encountered one massive film crew (Crime scene show…weird.) at the trail head.

There are few things that make me reflect as lovingly on LA as looking down on it from high. Mid-hike I came upon this and had that moment once again.

I know I complain about you a lot, but LA, I’m really gonna miss you.

Budget Weddings Are Hard

Did I mention I’m getting married soon? September 16th to the sweetest, most adorable nerd in the world. We are planning a DIY vintage picnic themed wedding…on a budget. You are probably imagining all the awesome fun we’re having planning it huh? Well, let me tell you friend, it has not been the picture of joy and delight I hoped it would be.

I’ll just share with you a small snippet of my struggles so far. I have had dress shop employees snicker when told how much I had to spend on “the dress.” I’ve had wedding planners tell me our entire budget was waaaay less than any of her other budget couples and that most couples are simply gifted with a planner from their family mid planning. Really?! My fiance and I had to laugh, when at a potential venue, we weren’t able to hear what the other was saying due to the low flying ghetto birds.

I’m just going to say it right now: trying to have an affordable wedding in Los Angeles sucks. Country folk seem to have it made! I’m so jealous of your gorgeous barns, luminous grassy fields and totally wholesome backyards. I hope you understand how very, very lucky you are.

Then again, I’m pretty lucky too because I found the man for me! And, we are still going to pull off a beautiful celebration with close family and friends. Plus, we finally found a natural tree filled venue that we love: Temescal Canyon Gateway Park.

Image

One of my Maidens of Awesome (I’m forgoing “bridesmaids” because my ladies are just that special.) took me hiking a couple months ago. It was such a great day. We even climbed a tree! I was overcome by the unbelievable beauty of Temescal Gateway Park. I saw that it had event facilities and tried not to get my hopes up. My prayers were answered when I heard back from the event coordinator: we could afford it! Hallelujah! I was so happy and so relieved.

For any brides out there with a total wedding budget under $10k, check out the awesome parks that Southern California has to offer. Some are perfect for outdoor weddings. They don’t have to be a million miles away from civilization either. Another contender for our wedding that was VERY affordable was Malibu Creek State Park. We couldn’t book with them because another couple had booked for the same day. However, it is absolutely gorgeous! We camped in another area of the park earlier in the season and had a fantastic time. Do yourself a favor and check it out.

I know it’s easy to get discouraged and frustrated when every place you think, hope and pray will be affordable isn’t. Don’t give up though. Don’t forget to ask for the scouting talents of your family and bridesmaids. Sooner or later you will find a great setting that works for you.

Movie of the Year (so far)

Image

Have you seen Moonrise Kingdom yet? Go! I think it is Wes Anderson’s masterpiece. What a sense of humor, wonder and reverence this director has. This was one of those special movies that gives weight and respect to a child’s emotional landscape. Love it. This film is completely hilarious, surprisingly violent, tender, emotionally honest, and thoughtful. I was surprised to find myself nostalgic for the sixties childhood I never had. I totally adore this movie. See it this weekend.

Welcome!

My name is Nicole Chabot and this is my new blog. I’ve been wanting to embark a blogging adventure for a quite some time now and am finally ready to get started. This blog will be one part girly online diary, two parts rants, raves, and occasional reviews followed by a Splash of Awesome.