Hey Guys! I don't have any problem with code right now, but I have a question.
Do I have to worry if my code is not perfectly written in freeCodeCamp tasks or should I just proceed to the next one if it works correctly?
What I mean is that my function works correctly but when I went to the "Get Hint" section, the solutions posted there were different from my solution.
@TCzechowski There's a saying, "It's not enough for the code to work" so yes technically you can move on, but I wouldn't for a few reasons. 1. Your here to learn, seeing how others solve the problem is an EXCELLENT way to learn better/alternative ways of solving a problem. 2. I personally believe there is 1 optimal way to solve a problem that not only works, but is readable, simple, documented, efficient and arguably can't be improved upon. Odds are the first solution you find wont be the best solution as such refactoring/optimizing you code should be done earlier rather than later. Id consider readability and simplicity to be the most important, as long as its not horridly inefficient.
and all I just said should be applied to all code you write, not just FCC.
@bradtaniguchi That's why I asked if I should move on or should I actually study the code and try to do it the "better" way :) Problem is that I don't fully understand the solution provided by FCC but hey, I'll try to dig deeper / do research and understand it eventually :)
@TCzechowski Yes, you can learn a lot from the solutions by looking up anything you don't understand in them. It's also good to at least know there's alternatives to learn later if you can't learn them now :D
@bradtaniguchi Sometimes it's like learning new language - I understand random words in a sentence but can't understand the full meaning of it :P
@groundzer00 welcome. It's quiet right now but feel free to ask questions in one of the many FreeCodeCamp channels
I will , but im quiet interested in frontend so ill stay on front end channels .Thanks!
Bharath Bhushan nh
Hello every one I am a frontend developer . I been doing this from one year I am intermediary in html css is and angular. I would like to make to make some friends in the same stream that I am in and would like to talk to them orally, through Skype. I could help you and I can explain you thing if you are new to web development and same I true if any one who knows much can teach me. So any one wants to become friends with me Skype so that we can have conversations on Skype and talk about frontend.
Don't take this wrongly forms are great form of helping each other, but my intention is oral communication can improve our communication skills and knowledge in tech.
save-dev Default: false Type: Boolean Save installed packages to a package.json file as devDependencies.
When used with the npm rm command, it removes it from the devDependencies object.
Only works if there is already a package.json file present.
@AJ-Brommy Ah okay, thanks a lot
You saved my day
no probs :) glad it's helped :)
I feel stupid, I should've taken a look at the doc
no worries - all part of learning :)
Yeh, it happens sometimes, we get stuck at trivial things
quick question. Is it "wrong" or bad practice or anything that to align something vertically i put display: flex; align-items: center; ? i mean..im only putting flex on it to display it in the center vertically. even if it is a single item.
there are vertical align options
but i don't think they work initial quite as one my think, i can't remember. I think you need to get the height to be 100% first or something.
@thodorisanta align-items: center; will vertically align items inside that element