Thursday, March 19, 2020

How to Impress Employers with a Quality Cover Letter

How to Impress Employers with a Quality Cover Letter How to Impress Employers with a Quality Cover Letter The cover letter is the first thing anyone sees when you apply for a job, the idea being to convince the reader to learn more about you via your resume. No matter how great your resume is, without a good cover letter to go with it, you might as well spit in an envelope and send that instead. N.B. Spitting is only advised when applying to be a cobra. Before you start expectorating, however, you should try these tips for writing an outstanding cover letter. Research and Customization There’s nothing wrong with using a template letter, especially if you’re applying for several similar jobs, but you need to customize each one you send out to reflect the specific job. This requires doing a little research about the role and the company, making sure that you emphasize the qualities specified. You should also try to find the name of the person who will read your letter. If you address it to them directly, it will reach them more quickly than if you use â€Å"Dear Hiring Manager.† Keep it Short Employers may have to read dozens of cover letters every day. As such, if you write a thirty-page epic about why you’re perfect for the role, it might never get read. It’s far better to keep things short (roughly one A4 page). As well as ensuring that someone reads your cover letter, this lets you demonstrate your ability to communicate clearly and concisely in writing, which is a valuable skill in itself! Structure We can’t tell you what to write in your cover letter: That depends on the job! However, we can set out what most cover letters should include: A formal greeting/salutation An introductory paragraph where you identify yourself, the role you’re applying for, how you found the position, and your reasons for applying A few paragraphs outlining your strengths as a candidate, what you would bring to the role and examples of how you’ve applied relevant skills in the past A concluding paragraph reiterating your suitability for the role, when you’re available, how to contact you, and thanking the reader for their time A suitable closer/valediction Proofread It! Obviously, we’re keen on proofreading (we wouldn’t be here if we weren’t). But even if you’re not the type of pedant who gets their knickers in a twist about misplaced apostrophes, proofreading your cover letter before you send it to employers is crucial to success. A cover letter with spelling and grammar mistakes may suggest you don’t care about the job. As such, even if the roles to which you’re applying don’t require perfect written English, you must check carefully for mistakes before sending your cover letter and resume to employers.

Tuesday, March 3, 2020

JavaScript Nesting IF Statements

JavaScript Nesting IF Statements Nesting if/else statements helps to organize and isolate conditions in order to avoid testing the same condition twice or to minimize the number of times various tests need to be performed.   By using if statements with both comparison and logical operators, we can set up code that will be run if a specific combination of conditions is met. We dont always want to test the entire condition in order to run one set of statements if the entire test is true, and another if it is false. We may want to choose between several different statements, depending on which particular combination of conditions is true. Suppose, for example, that we have three values to compare and wish to set different results depending on which of the values are equal. The following example shows how we can nest if statements to test for this (in bold below) var answer;if (a b) {  Ã‚  if (a c) {  Ã‚  Ã‚  Ã‚  answer all are equal;  Ã‚  } else {  Ã‚  Ã‚  Ã‚  answer a and b are equal;  Ã‚  }} else {  Ã‚  if (a c) {  Ã‚  Ã‚  Ã‚  answer a and c are equal;  Ã‚  } else {  Ã‚  Ã‚  Ã‚  if (b c) {  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  answer b and c are equal;  Ã‚  Ã‚  Ã‚  } else {  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  answer all are different;  Ã‚  Ã‚  Ã‚  }  Ã‚  }} The way the logic works here is: If the first condition is true (if (a b)), then the program checks for the nested if condition (if (a c)). If the first condition is false, the program bumps to the else condition.If the nested if is true, the statement is executed, i.e. all are equal.If the nested if is false, then the else statement is executed, i.e. a and b are equal. Here are a few things to notice how this is coded: First, we created the variable answer to hold the result before we started the if statement, making the variable global. Without that, we would have needed to include the variable on the front of all of the assignment statements, since it would be a local variable.Secondly, we have indented each nested if statement. This allows us to track more easily how many nested levels of statements there are. It also makes it clearer that we have closed the right number of blocks of code to complete all of the if statements that we opened. You may find that it is easier to put the braces there first for each if statement before you start writing the code that belongs inside that block. We can simplify one section of this code slightly in order to avoid having to nest the if statements quite as much. Where an entire else block is made up of a single if statement, we can omit the braces around that block and move the if condition itself up onto the same line as the else, using the else if condition. For example: var answer;if (a b) {  Ã‚  if (a c) {  Ã‚  Ã‚  Ã‚  answer all are equal;  Ã‚  } else {  Ã‚  Ã‚  Ã‚  answer a and b are equal;  Ã‚  }} else if (a c) {  Ã‚  answer a and c are equal;} else if (b c) {  Ã‚  answer b and c are equal;} else {  Ã‚  answer all are different;} Nested if/then statements are common in all programming languages, not just JavaScript. Novice programmers often use multiple if/then or if/else statements rather than nesting them. While this kind of code will work, it will quickly become verbose and will duplicate conditions. Nesting conditional statements creates more clarity around the programs logic and results in concise code that may run or compile faster.