Coding Master
11K subscribers
288 photos
13 videos
219 files
3.02K links
ADMIN : @Coding_Master πŸ‘¨πŸΌβ€πŸ’Ό

Hello guys, I Created This Telegram Channel To Share Useful Content On Web Development & Programming.

πŸ‘‰ Free Ebooks
πŸ‘‰ Free Tools & Resources Links
πŸ‘‰ Free Projects Source Code

So Stay Tuned With Us & Keep Learning πŸ˜‰
Download Telegram
Write a JavaScript program to determine whether a given year is a leap year in the Gregorian calendar.

<script>

year = window.prompt("Input a Year : ");
x = (year % 100 === 0) ? (year % 400 === 0) : (year % 4 === 0);
console.log(x);

</script>
Is Our Telegram Channel Helpful For You ??
Anonymous Poll
96%
Yes
4%
No
​​Tips For Being A Great Programmer:

1. Get good at Googling

Being a programmer is all about learning how to search for the answers to your questions. By learning to Google things effectively, you'll save a lot of development time.

2. Under promise and over deliver

It's better to let your team know a task will take three weeks and deliver in two than the other way around. By under promising and over delivering, you'll build trust.

3. Be nice to your designers; they're your friends

Designers provide solutions to user pain points. Learn from them and work cohesively to build effective products.

4. Write useful comments

Write comments which explain the "why" and not the "what".

5. Name variables and functions appropriately

Functions and variables should accurately denote their purpose, so myCoolFunction won't fly.

6. Take vacations

We all need time to de-compress. Take that trip you've been wanting. Your brain and your co-workers will thank you.

7. Delete unused code

No reason to accrue more technical debt.

8. Learn to read code

Reading code is an undervalued skill, but an invaluable one.

9. Establish a healthy work/life balance

You need time to de-compress after a long workday. Shut off work notifications, remove apps off your phone.

10. Only schedule necessary meetings

Can it be solved in an email or a Slack message? If so, avoid a meeting. If not, be conscious of the duration. Aim for less.

11. Pair program

Pair programming allows you to play the role of both teacher and student.

12. Write great emails

Learn to capture your audience in your emails by being succinct yet clear. Nobody wants to read your four-page email Jerry.

13. Get involved in the community

Surrounding yourself with like-minded people will motivate you to push through the lows.

14. Clean up your branches

Clean up your version control branches like you'd clean your house before your in-laws came for a visit. If you don't need it, discard it; don't just throw it in the closet.

15. Don't gate keep

Be inclusive. Don't tell others they aren't good enough to be in the industry. Everyone has value.

16. Keep learning

You've chosen a profession that requires continuous learning. Learn to love it.

17. Don't give up

It won't always be easy. But we all started at the same place. You can do it.

18. Take tasks that scare you

If it doesn't scare you, it isn't going to help you grow.

19. Clarify requirements before starting

You should understand the acceptance criteria before delving into writing the code. It will save you time and pain later down the line.

20. Have a toolbox

Have a set of tools which you know inside-and-out. Know which tools serve which purpose and when a project can benefit from using one over another.
Elegantly Manage SVG Icons in Angular Applications

svg-icon is a small library that offers a solution to a big problem: How to incorporate svgs into your templates in an orderly and efficient way. - http://amp.gs/wFAp

#angular
11. Write a JavaScript program to find which 1st January is being a Sunday between 2014 and 2050.

<script>
console.log('--------------------');

for (var year = 2014; year <= 2050; year++)
{

var d = new Date(year, 0, 1);
if ( d.getDay() === 0 )
console.log("1st January is being a Sunday "+year);
}

console.log('--------------------');
</script>