Posts

Showing posts from May, 2022

On Loops

 forEach method accepts function that inputs each element in an array For... Of It is a block scope concept in JavaScript. It allows for iteration by use of bracket and curly braces. For... In Used in reference to iterating objects

On Smiling

 So, I've been really intentional about my facials. I used to have a crazy Resting Bitch Face. I'd always been frowning And the funniest thing is... I didn't even know I frown a lot. Yet, I was always wondering why I was unapproachable and don't make friends easily. Well, I'd begun working on my social etiquette, and smiling is a crucial part of it. I did a lot of mouth/lips exercises I consciously make the effort to keep a friendly demeanour as I exit. And I won't lie, I get more reception from people. The first time it worked was when I attended the Oracle Ng competition at UNN. I was sorta cheery as I exited the hall, and the female usher reciprocated. I won't lie, it felt good. Also with kids. I'd always bragged that kids don't come close to me. Little did I know it's cos of my Resting Bitch Face too. Until I tested this out. I'd gone to pay the NEPA bills, and the baby was on the floor. And I smiled at him. Immediately, he started chuckl

On Grasshopper app and getting stuck with a function exercise

Why ever did you second guess your ability, Chinenye? You see, Learning is a journey. After months of getting stuck with a function that accepts 2 parameters in Grasshopper app, I finally completed it yesterday What was the difference? My mind had become accustomed to what was required of me. I wasn't then tryna place why a function should accept arguements, and whether the arguements are actually placeholders My task now is simple -  Decipher the logic And do the code exercises using the hint And for that, I'm immensely grateful for growth. For learning. And assimilation . It's somewhat difficult for me at times (like the codebubb exercise I did today and was didn't know I should convert the string to array before proceeding But like I always say - The same way you didn't know how to add an image to your html file, same way you couldn't link your stylesheet and font awesome Same way Variable didn't just make sense to you. And now they all do make sense to y

On entrepreneurship

Image
  Emphasis on Intrapreuneurship. Yup, carry out internal projects. And while at that, why not have a flexible schedule and remote work!!  I've always maintained I'd rather be a Sheryl Sandberg than a Mark Zuckerberg.  Yes, I will be a c-suite executive of course. But I don't want the burden of the oga kpata kpata.  Gimme my salary. Lemme invest in stocks and bonds (and Crypto). I don't have strength for entrepreneurship and raising funding. At least not yet

On 2023 Presidential election

Hope is probably the most powerful weapon. It fuels optimism. I mean... Mr. Peter Obi is like the light Nigerians are desperately hoping would propel the country forward. I almost want to dream of a glimmer of light if he wins.  I'm crossing my fingers, clutching my chest and hoping he wins.  Nigeria electoral process is not exactly straightforward, so I fear my hope would be doused with freezing water 

5 easy and effective steps to finally code successfully from the scratch

So, I really want to talk about crossing the bridge from tutorial hell to programming Now, as someone who started actively JavaScript in February, I'm nowhere near an expert But I can guarantee that what you're about to read will help you finally start solving coding exercises and coding from scratch So, every newbie coder experiences this.  After taking tutorials, and learning about the syntaxes in a language. If you're like me, you probably coded along with a teacher. However, when it comes to your turn to create something, from the scratch, it's as though your brain is blank Now, the first thing you'd definitely see online when you browse how to be a problem solver is they'll tell you to " divide the problem into smaller problems " and then " Create a pseudo code for the problems" That's it. You're not told the next step. You're abandoned to figure out the next line of action. Expert coders may not even realize when they finall

On Beguile by Oma (Goddess)

Image
  I act like I'm okay but I've been seriously eyeing this perfume since it came out in April.  Bad news is - I already have 2 perfumes from this brand (Beguile by Oma - I'm their brand loyalist for life)❤️  But I'm not a spendthrift, so no mindless buying.  Which is why I'm working to hit a milestone (like finally cracking problem solving and building something) so I can tell my brain that I'm rewarding myself with it.  But I still stalk their page everyday to read reviews🥺🥺

On map method in Javascript

If you want to create a new variable by making adjustments to an initial variable, you can use the map method to do so The map method can be used in an array of just strings, or even array of objects So this is how it works - Let's say you have an array (of numbers) saved into a variable called "wholeNums" const wholeNums = [1,2,3,4,5]; And you want to return each of the elements, but multiplied into 3 This is how the map method works with it -  Step 1 You create a new variable for it and call the map method to the initial variable const newWholeNums = wholeNums.map( ) Step 2 Inside the map, you have to add a callback function. Basically, add argument that you want to run inside the map method. So it becomes this -  const newWholeNums = wholeNums.map(function ( ) { }) Step 3 Now, this function is supposed to have an argument to represent each of the elements in the wholeNums array const newWholeNums = wholeNums.map(function (nums ) { }) Step 4 This is where we add the &qu

On successfully deploying to Netlify

 Remember when I said I couldn't deploy my website to Netlify So, I was awake last night (today's midnight actually), and I'd wanted to download some videos per my YouTube night plans I figured I'd find some video solutions on how to deploy the site The solution I found suggested to add - CI= npm run build I wanted to leave it till morning. But I decided not to procrastinate and do it again I excitedly booted my laptop. Logged in to my Netlify account. And... It didn't work, again. I wanted to sleep.  But browsed around more on the community portal, and stack overflow. They all suggested the CI= npm run build command I was about to give up and came across an article  Apparently, you can manually deploy your site just by drag-and-drop method with the folder And you wouldn't believe it, I did that. And deployed 2 websites (the sparkle clone, and the softcom clone) I checked it out on my screen, they weren't looking too well. I left it for this morning. Grate

Film review - 365 days: This day

Image
  Omo, there are terrible dialogues And then there is the catastrophy of 365: this day I knew heads-on going in that the movie is trashy. But nothing could prepare me for this cringe-fest I intentionally succumbed myself to!  It was as though the screenwriter was learning English Language as they were writing the script They could have conversed in their indigenous language, and saved us this horror Not even the sex scenes could salvage the damage. It was a nightmare indeed

Film review - Blood Sisters

Image
Movies for me is primarily for entertainment. Not to poke for plot holes, or any other criticism. Yes, there are movies that are Frankly horrible... Case in point - Chief Daddy 2 (coughs) But I've decided that since I'm no longer learning screenwriting so I'm not about to be dissecting every scene So even with chief daddy 2, I was entertained by Falz's character.  The point of my writing is this -  Blood sisters is a great film It was on point. The sound track, cinematography, sound effects, movie progression. The movie kept me on my toes to some extent. Yes, I got bored and skipped the episode 4 The climax and resolution didn't quite do it for me But I am honouring Nollywood for their efforts. Go watch Blood sisters. A bloody amazing film

On Javascript (pause and play button)

  For the pause and play button You create a button with 3 items inside 1. A span with a play text 2. A span with a pause text 3. A span with no text inside but has a class of "switch" Now, the third empty span will be styled differently in the stylesheet. And can be placed as an absolute of 50% of the button container. It can also have a different colour What happens is that it covers either the pause, and play span Then you get to the JavaScript You add an event listener, to when the button is clicked, then a new class will be added to the spans in the button. Or you can toggle it. For instance -  button.addEventListener('click', function ( ) {         if (span !contains('slide')) {      span.classList.add('slide')      } else {       span.classList.remove('slide')      } }) Now, in your CSS file, the "slide" class to be added will be styled together with the "switch" class already in the third span, whereby it pushes th

On Learning toggling in JavaScript

They said that learning is fully understood when you either teach to other people. Or when you verbalize it. Basically, it forces your brain to be active about learning, and enunciating what you'd learnt properly And that's exactly what happened today as I'd been learning toggling So this is what I understand -  1. You have a button that you want to add an event listener to Let's call the function - menuIcon const menuIcon = document.querySelector('.menu-icon'); 2. After adding the event listener to the button, you create a function menuIcon.addEventListener('click', function ( ) {    *The function goes in here* } 3. This function role is to toggle between a class. 4. Preferably, you'd have 2 classes in place. Let's call them, "hide-links" and "show-links" 5. The " hide-links " is in the html file already and styled in the stylesheet. And for the most part, it's probably displaying " none " or " h

On building JavaScript without help - 1

I know, I have not garnered the expertise YET That I'm very much, still a beginner in web development But it doesn't make me feel any less sad. Because when I follow along tutorials, I grasp what the instructor is doing. And I code along with them However, when push comes to shove (as it did this afternoon, I'm stuck) However, I'm not going to beat myself up, cos I actually succeeded in creating a toggle on the DOM And I'd been wrapping my head around how I did those.  Of course, I know this is a progress, and I tried. And I created something without following along instructions. I'm just recording this here, so I'd reminisce over how I'd felt. At how "slow" I'd felt at this point, this day. I still have a long way to go. But I console myself with the fact that 5 months ago, I didn't know what the hell "a variable" was I was unable to link my stylesheet cos I didn't know how to add a folder A month ago, I didn't know h

On trying to deploy a website oj Netlify

 I wanted to publish my finished Sparkle Nigeria homepage with Netlify. And I was momentarily taken back to when I was planning to use Netlify app. I don't understand how it works, YET I'd downloaded a YouTube video, and was following along with the guy. Until it got to the deployment part. His worked. Mine didn't. I searched the error message, and what I was seeing at the support forum was gibberish to me. Go figure. However, I'm not beating myself up. It just means I'm training my brain. The same way I drop sweat and my body feels exerted after a full yoga work out, that's how my brain is feeling.  It's a process. And one that reiterates to me that I have to learn git this May - unfailingly