top of page
  • Black YouTube Icon
  • Black LinkedIn Icon

Wanderer

  • Jul 14, 2017
  • 2 min read

Lost, I was. I might have found out how to bundle my code together, but I still was not able to connect React to SignalR. So today I decided that I will just type code. Yes, I just started typing, The only thing that was in my head was, make the chat system seem like it's functioning much more properly. I know, that is one heck of a vague term. There's no description, there's really no content in my intentions. But that was what it was, I wasn't sure what my intention was, I just started changing code here and there (mainly Redux though).

I might not know what I was typing, but I was having fun. Maybe that was the joy of programming, the feeling you get when you type away on the keyboard. It's as if I was exploring the woods, walking aimlessly, in hopes that I will find something promising.

My program broke.

I was expecting this anyways. I mean, I am typing away without being sure what I was changing. When my program broke, I find the errors and I fix it. Then I continue on with my new found liberty of typing. How worse can it get anyways? At the very most, I'm going to break my whole client-side and I've to write the whole program from scratch.

No sweat. *As my sweat from being nervous rolls down my forehead*

It broke again.

I fix it. It broke. I fix it.

It broke.

and this time.... I can't find the problem. I started to panic. "What was going wrong? The error does not even make sense!" I told myself as I continue to debug.

I looked through more than ten files of code and change code from every files to find the bug. It wasn't there. Nothing was working. At this moment, I told myself, "Maybe tracing my steps back would solve the problem." I undo like crazy. Undo. Undo. Undo. Then I saw this one line.

textChangedHandler(text) {

this.props,messageTyped(text.target.value);

}

<input

onChange = {this.textChangeHandler.bind(this)}

/>

Apparently, when you change the input, you send an "object" rather than a "string". *Bangs Head*

I change the code and ran my program. It worked. Everything worked. I wasn't sure what my intentions were, but I achieved what my unconscious desire wanted to achieve. I am sending the message in a much more functional way. There are countless times in our life, when we would start wandering. We forget where we were trying to go, but we should never stop and just keep walking. Life wouldn't go our way and it will break us again and again. Eventually though, it will work out. It definitely will work out...


 
 
 

Comments


Featured Posts
Check back soon
Once posts are published, you’ll see them here.
Recent Posts
Archive
Search By Tags

Get updates from new posts!

© 2023 by Zoe Marks. Proudly created with Wix.com

bottom of page