Skip to main content

Coding practice

 I think something is wrong with how I wrote the code. Sometimes I wonder why certain coders would put everything related to the current page to the same file or at least same folder while some put everything separately on different files and different folder, and some put all the functions in a different file altogether. When none would share the file at all.


While learning Go, I did two different ways for two different projects. One is to separate by the page and another is separated by functions. The second actually gave me a hard time because I just want to change one page and I had to find each function from different page. The first one makes me feel easier when I need to do correction and everything on the same page actually helped in correcting my mistakes or when I need to add things in or modify things. I would know I would miss anything. Well, maybe different coders have different preferences. I do find the naming of the file is important but somehow, if I put a generic one based on the page, it was easier for me to change things. Just some thoughts. I have been looking at codes that people done like a decade ago. It was the same decade I learnt programming and probably why I don’t think I got any better at coding at all.

c# is pretty rigid but well at the same time, it is easier for me to code around. The syntax was a bit weird to begin with and the truth is always check for null :) My code quality was what I am more worried about. I don’t want to be here and my quality of code still as it is ten years ago, now and the future. I better get some time off to learn online otherwise I will never improve. Actually I was wondering if I have got on a job that was meant for Junior Dev or an experienced Dev. What should Junior usually do ah. Signed up lots of courses but never had the time to even attend because always doing the projects that I am learning and doing at the same time. Understanding code is one part and doing is one part on a half done project. I do hope to write one that is totally new though. Hm…


This 29th of Nov will be my one year here. Well, can I be at least one year? or will I move one before that. So far, there is up and down, all in my mind. I am not sure how I really did though. Was I really bad or did I do ok or did I do more than expected? To me, the impression that I had was I didn’t do enough or I wasn’t good enough but what? All about rushing the overdue here and there with no specs at all while sometimes at a lost of what’s going on that nobody had answers to. I do find it adventurous at some point but most of the time a bit frustrated. Laptop wise is the worst of all things. I didn’t dare to off it yesterday so just downloaded the things I need from the laptop. Hopefully all the latest. Now I wonder if I should off it after yesterday. It cleared off certain things including some of my account sign up. Lucky I remember the address to get back so I can test out something that I have just changed. It was fine so far after testing for more than a dozen times. Planning to do more tomorrow. Finger X. 

Comments

Popular posts from this blog

War and Job

 现在哪里都要打仗了。是不是应该更要花时间找更稳定的工作。其实我的工作才是最没有保障的。应为我还不算这个公司的员工。然后还发现别的事。有问题到最后,我会先被赶走吧。那我现在更应该要找工作吧。不然等到仗都开始打了,我才找就太迟了。。。 Don’t deal with people with hidden agenda. Motto of life.

Missed

  My laptop battery seems to be bulging. I realized I missed the warranty expiry date by few days. I should have checked last month when I spotted it! 我很累。在梦里跑了半天。在找那间教室。写题的时候来不及写最后一句。打开折好的地图,怎么也折不回原本的那样。面试到一半就变成在学课题。有个像黑板那么大的电脑。而且不需要键盘。然后当我终于看到自己要找的教室,我就醒了。很不甘心。我找了那么久。我的背包和钱包还在那里。我赶快回去睡。看看能不能回到梦里继续走到教室。然后就忘了后来的梦。好像是和家人逛街的时候走散了。我找不到手机。。。 然后我又在找人。。。好累。 错过的那么一点。总是那么一点。

Coffee

昨天的梦好象卡了。梦到一半黑屏。可能喝了咖啡。可是平常都喝也没有这样。最不好的就是闹钟还没响就醒了。。。 昨天地铁坏,今天monorail坏。我还搭德士回来。。。不过也好。早一点到家。Puhlease! Hope everything goes smoothly.