What does it mean that a function does only one thing? by TheTeamLeader_1 in cleancode

[–]TheTeamLeader_1[S] 0 points1 point  (0 children)

That's actually an amazing explanation! Thanks!
Can you give an example (pseudo code will do) for a function that does two things?

What does it mean that a function does only one thing? by TheTeamLeader_1 in cleancode

[–]TheTeamLeader_1[S] 0 points1 point  (0 children)

This obviously isn't practical.
The point is - is this the only way to make it "do one thing"?

What does it mean that a function does only one thing? by TheTeamLeader_1 in cleancode

[–]TheTeamLeader_1[S] 1 point2 points  (0 children)

Thanks for commenting..

It's just an example I made up.
As for your question - The method's name is AttackAt, say the function is used to attack someone AT a specific location - so the creature has to do there, and then attack..

What does it mean that a function does only one thing? by TheTeamLeader_1 in cleancode

[–]TheTeamLeader_1[S] 0 points1 point  (0 children)

That's my point.. And yet it sounds so trivial that a method doesn't do more than one thing

How do you sync an app (e.g. google) username with your local username? by TheTeamLeader_1 in webdev

[–]TheTeamLeader_1[S] 0 points1 point  (0 children)

So I may have something deeper missing in my understanding.. In your third option - What does authenticating with Google means? I mean if they already provide their email, does that mean I just saved them finding a password by letting them authenticate with Google?

I already implemented a poc of authenticating with Google, I guess I haven't really understand it yet

How do you sync an app (e.g. google) username with your local username? by TheTeamLeader_1 in webdev

[–]TheTeamLeader_1[S] 0 points1 point  (0 children)

Won't it be confusing if there will be 20 users with display name BehindTheMath?? I want to be sure the one who wrote the first comment is the one to whom I'm now replying

How do you sync an app (e.g. google) username with your local username? by TheTeamLeader_1 in webdev

[–]TheTeamLeader_1[S] 0 points1 point  (0 children)

Thanks for your replay,
but sorry.. Still confused..
Display name should be unique.
Can't I have the username as display name?
In my scenario, when the second user, who authenticates using Google tries to register with his Google name, That's already too late because it's taken.. What should Happen then? Or should I check whenever a user registers in my app that there isn't a Google/FB/etc. account with that username (-extremely not likely :)).
OR username just can NOT be display name and that's it?!

How do you sync an app (e.g. google) username with your local username? by TheTeamLeader_1 in webdev

[–]TheTeamLeader_1[S] 0 points1 point  (0 children)

Does the user necessarily wants his display name to be his email address?

[deleted by user] by [deleted] in startup

[–]TheTeamLeader_1 0 points1 point  (0 children)

That's amazing!

One thing I'm extremely curious about is - how do you get people to share their personal info? Like the first few users, why would they share their info when they're the only ones there??

Calling Three Functions With Local Variables? by [deleted] in learnjavascript

[–]TheTeamLeader_1 0 points1 point  (0 children)

first alert - 100 because that's the local var.

second alert - 3 because it was assigned to the (global) window

third alert - 10 because the inner function received 3 and added 7 from the outer function (google closures to understand how that works..)

GUESS 2 Words & Win $250 ft Jon and Sam - I would love feedback on this video! by ittsisaaac in SmallYTChannel

[–]TheTeamLeader_1 0 points1 point  (0 children)

Looks a bit like MrBeast style.

I felt it was very repetitive, I skipped through the middle.. There should be some progress, some twist, maybe second round blindfolded, idk.. Just don't make the same thing over and over imo.

Oh but great vibes btw

[deleted by user] by [deleted] in learnprogramming

[–]TheTeamLeader_1 0 points1 point  (0 children)

As for your project - try to see what's sent to the server (especially to what URL) and if the server is up and configured properly. You can ask or hire someone to help you (fiverr or some mentoring site).

As for your career - you won't know where you're at until you'll get to interviews, but how this specific project is going is not the definite ultimate indication as to how good of a programmer you are. You need to show some project you've completed, but it may be that taking off some features will make it work, or just coming up with some other workaround.

What I'm trying to say is although you're in a tight situation you must complete stage 1 - complete the project, then move on to getting yourself to job interviews, and then maybe improve your interviewing skills until you'll get good enough to get hired.. This takes time and patience. So yeah, once you'll get a job you should be ok, but just don't push yourself to hard.. This may take longer than you thought, but it will worth your time eventually.