ABOUT ME [The Code Newbie]
As mentioned before in my previous blog posts, I am a codeNewBie who has started learning front-end developme...
For further actions, you may consider blocking this person and/or reporting abuse
I am a newbie too! I found your post very useful. Thank you. I think it is so cool that you have an "in-house" mentor. I have the help of some great instructors, but they are not "in-house" :)Thanks ,again.
Hey Laurie, I am really really glad that it helped you in some way. hehe yes it is cool that my stack overflow sits right next all day haha! Thank you for your comment. Are you on Twitter? I would love to follow you to see your progress!
Thanks for the the article. 😊
It would be better to call the method isAuthenticated or hasAuthenticationInfo. For booleans it is always good to prefix the methods with is or has.
Use braces for if or put the return statement on the same line with if to avoid accidentally inserting a statement between the if and the return statement,thus breaking the code.
Have a nice day!
thank you Roland, I really really appreciate your suggestion :D :D
One suggestion would be to not be "learning front-end development". Just learn how to develop software, then you can do anything. So many people fall into this trap. You need to learn the basics and go from there. No one should be using front end frameworks before they know how things work overall. I've interviewed some boot campers that know nothing but how to build a website in the latest framework, knowing nothing about how to actually write software. Don't fall into that.
Thank you Chris, I really really appreciate your comment. I will definitely try to follow through your suggestion. Thank you again :D
Thank you for your insights, Suborna.
No problem 😊😊
Hey Amir, again it depends on the programmer's personal choice, whichever works best right? There are programmers who suggest shorter names because longer names get too long or ugly and some suggests to have longer names to understand it better. It all boils down to personal choice and whichever helps to get things working.
I am not experienced enough to have personal opinions just yet. But I am glad you liked the convention part :D :D
about 3. use some judgement, those huge variable numbers will get akward fast, just add two of them and you have a 100 chars line, very very hard to read, write expresive names but avoid 20char names also, take that function and pass to it 5 parameters and you got a paragraph of text for no reason, and in that case remove the comment, if the variable name is clear you don't need the comment. As always rules don't make up for lack of judgement is perfectly fina a 1 letter variable if the scope is a few lines and don't write Authentication if Auth is perfectly understandable. If you are new, find something interesting to make and do it, the judgement will come naturally, you'll find the right balance in variable lengths, the right thing to comment, the wrong thing to comment, etc.
He has mentioned exactly the same about writing comment and naming variables/functions, if one is mentioned clearly other isn't necessary. But as a newbie I would possibly do both to make it more readable for me. We both totally agree, auth is ofcourse fine if later you come back and remember it but as a newbie may be I won't. Again this is for complete beginners like us. Once we are experienced and we know what we are doing, we sure can make up our minds about how we want to name things and so on. He had some advice towards me and the things I was struggling with and I just put them together in my own way for others. That's all.
Using Same Username across multiple distinct accounts is a Great Idea I always use to follow to stay productive.