C# AND JAVASCRIPT LEARNING
Today I was able to write a C# program using ref keyword in my Reverse4 method. This method takes in 4 parameters, all passing by reference, then reverses the order of the numbers. The program demostrates the ability of the ref keyword to make possible passing a reference of the memory location of the variable and actually changing the value of the original variable from the method. I was also able to debug a program that was using the out keyword and find and correct all logic and syntax errors.
Read moreJAVASCRIPT SORT FUNCTION
Today I learned about the javascript sort() function. It really acts weird when sorting an array with numbers that have more than one digit. It only sorts the first digit. For instance 100 would come befor 23. The way around this behavior is to pass a function to the sort() function. So it would look like this: val = numbers.sort(function(a, b) { return a - b; }); and it would sort the numbers from lowest to highest.
Read moreHEROKU DISAPPOINTMENT
Heroku has decided to cancel their free tier service. This is very disappointing because I have apps hosted on their service. Because I am in school full time I can’t afford to pay for a new service. I will be trying to migrate my apps to a new free platform soon, many people have shared a lot of good options for this. I have learned how open two files at the same time using python with open("file1.
Read moreTIMER FUNCTIONS
Today I used python timer module to run process_time() on my dictionary api request. I solved the same problem two different ways. One way using an list and the other using a set. I found the set way to be faster. After thinking about why I can see that a set should be faster because it uses hash tables and time shouldn’t matter if the set is bigger or smaller. With a list the bigger the list is the longer it will take if you have to search through it.
Read moreBRANCHING OUT AND SOLVING PROBLEMS
Today I was able make make a request to a dictionary api to solve a problem in which I needed to find all the words that when spelled backwards are also acceptable scrabble words. Carol gave me the idea of the api during our meeting yesterday. Sometimes I have found you either need to walk away from the problem and sleep on it or get a fresh pair of eyes to help you solve it.
Read moreFIRST WEEK CHECK-IN
After the first week of being back to school, I have been able to get an idea of how the semester is going to go. I think it will go smooth, except for my writing class, which is a bunch of writing essays. I don’t think I will fail because I am not a terrible writer, but I am not the best writer either. I really like my Javascript and C# classes.
Read moreFIRST WEEK OF SCHOOL
So far this week has been very frustrating. HP sent out a firmware update that makes you use brand new ink cartridges from them or your computer will not print. So basically I have a bunch of refurbished ink catridges I can’t use and a printer I need and can’t use. I was not able to get into 2 of my classes for two days because they are switching systems so it crashed a few things but it will all work out it just has been a mesh this week.
Read moreSUMMERS OVER
Summer is finally over and it is time to go back to having deadlines and grade on programs. Although I am nervous I am excited also because I know I am investing in my future and the structure of school helps me focus. I have also been talking to a few different people online trying to expand my network and help in my journey.
UNSTUCK AND HACKERANK
I was able to finally solve the Underdog Devs problem I was stuck on and I also solved the Hacker Rank problem I was stuck on. The UD problem I had to use nested loops which is something I need practice on though I am getting better at them the more I solve problems using them. The Hacker Rank problem I was stuck on I needed to use self in my power method of the Calculator class without self being in there you get an error saying TypeError: Calculator.
Read moreSTUCK
I have been stuck on a problem for underdog devs practice problems for a few days I really wanted to figure this out on my own but I guess I am going to ask for help on this. The problem is “There is at least one country name that contains another country name. Find all of these cases.” I know how to find a name that is contained in another string but for some reason I can not get the program to produce the correct output.
Read more