Skip to main content

Posts

Setting defalt parameters in Javascript

Learnt something new today. To set default parameters, should no input be given, check if type of variable is undefined. If it is, define default parameters.  Perhaps I have already learnt this but it has left my memory stores. I think this is new information to my brain though. Pretty cool! Thanks to edabit.com  , my new favourite site <3 <3 <3 function moodToday(mood) { mood = typeof mood != 'undefined' ? mood : "neutral";  return ("Today, I am feeling " + mood); }

Using Git commands on Command Prompt

When I first installed Git, I just used all the default settings, because how was I to know what I was doing. I had to reinstall Git at some point and discovered this amazing option to allow you to run Git commands on Command Prompt. <3 <3 <3 I'm lovin' it!

Where you at git

I'm trying to clone project files from azure and am running into all sorts of brick walls. One day, I will master setting up new projects but that day is not today -_- Problem of the day: I can't find my git.exe(git executable). It's driving me nuts. I'm pretty sure it was all set up properly when I was doing the python course months ago but lookey here. Nothing works. It took me awhile to even figure out how to look for the git.exe file. Finally happened upon a comment online suggesting using the git command. $ where git Thank you, stranger, for making my life easier.

Colours(or colors)

Trying to make sense of certain terms can be confusing, especially when your brain tells you isn't that all the same? So here I am giving myself a reminder: 'color' : refers to text colour 'background-color' : refers to background colour 'background' : shorthand for different background tags like colour, image url, etc.

Fixing it

Today, the first day of 6 weeks of live projects. Trying to figure out how to use SendGrid in C#'s .net framework. I was following the tutorial provided by Microsoft  when I was momentarily held back by red squiggly lines. Googled. Got confused. Stared at the solution some more, and somehow, it began to make sense. The tutorial is old and uses an older version of SendGrid. I had 2 options. Migrate to the latest version or uninstall and install the old version via Package Manager Console in Visual Studio. I'm still trying to figure things out, so I decided to go with the later option and use the older version. The red squiggly lines are gone and I'm feeling just a smidgen more pleased with myself.  Note to self: Do not panic when encountering red squiggly lines.

Crippling anxiety

I feel really anxious. The more I learn, the more I realise I don't know anything. I could have just learnt something, and yet, when I do the drill required of me, I take forever. I guess I went through a similar rollercoaster of emotions when I first learnt to paint. It takes me awhile to give myself a pep talk to convince myself to press on. This is really putting a dent in my confidence. Or should I say, blasting a gaping hole. I am constantly questioning myself. Can I really do this? Do I have the aptitude? It is not that I don't have the interest. I actually do find programming quite interesting. I do wonder if there will ever come a day when I will feel confident doing it. Right now, I just want to curl up in a ball of self pity.

Catastrophic Failure!!!!

A little difficult not to take this personally 😄