Wednesday, March 18, 2020

Introduction to JavaScript

Introduction to JavaScript JavaScript is a programming language used to make web pages interactive. It is what gives a page life- the interactive elements and animation that engage a user. If youve ever used a search box on a home page, checked a live baseball score on a news site, or watched a video, it has likely been produced by JavaScript. JavaScript Versus Java JavaScript and Java are two different computer languages, both developed in 1995. Java is an object-oriented programming language, which means it can run independently in a machine environment. It is a reliable, versatile language used for Android apps, enterprise systems that move large amounts of data (especially in the finance industry), and embedded functions for Internet of Things technologies (IoT). JavaScript, on the other hand, is a text-based programming language meant to run as part of a web-based application. When first developed, it was intended to be a compliment to Java. But JavaScript took on a life of its own as one of the three pillars of web development- the other two being HTML and CSS. Unlike Java applications, which need to be compiled before they can run in a web-based environment, JavaScript was purposely designed to integrate into HTML. All major web browsers support JavaScript, though most give users the option of disabling support for it. Using and Writing JavaScript What makes JavaScript great is that its not necessary to know how to write it to use it in your web code. You can find plenty of prewritten JavaScripts for free online. To use such scripts, all you need to know is how to paste the supplied code into the right places on your web page. Despite the easy access to prewritten scripts, many coders prefer knowing how to do it themselves. Because it is an interpreted language, no special program is required to create usable code. A plain text editor like Notepad for Windows is all you need to write JavaScript. That said, Markdown Editor might make the process easier, particularly as the lines of code add up. HTML Versus JavaScript HTML and JavaScript are complementary languages. HTML is a markup language designed for defining static webpage content. It is what gives a webpage its basic structure. JavaScript is a programming language designed for performing dynamic tasks within that page, like animation or a search box.   JavaScript is designed to run within the HTML structure of a website and is often used multiple times. If youre writing code, your JavaScript will be more easily accessible  if placed them in separate files (using  a .JS extension helps identify them). You then link the JavaScript to your HTML by inserting a tag. That same script can then be added to several pages just by adding the appropriate tag into each of the pages to set up the link. PHP Versus JavaScript PHP is a server-side language that is designed to work with the web by facilitating data transfer from server to application and back again. Content management systems like Drupal or WordPress use PHP, allowing a user to write an article that is then stored in a database and published online. PHP is by far the most common server-side language used for web applications, although its future dominance may be challenged by Node.jp, a version of JavaScript that can run on the back end like PHP but is more streamlined.

Monday, March 2, 2020

The 7 Personality Traits that Can Destroy Your Career

The 7 Personality Traits that Can Destroy Your Career Of all the things you think may destroy your career, you probably didn’t expect your own personality to be one of them. But while some character traits are innate, others are under your control. It’s up to you to tend your own garden- rip out the weeds and plant seeds for stronger, better plants. Whatever you do, make sure to keep an eye out for these 7 traits, which can really put a damper on your career.1. NarcissismMost people you work with are going to be able to tell if you’re an insufferable narcissist. You have an aversion to teamwork? Your colleagues can tell. Remember: your pain, your annoyance, your moods, and your bad day are no worse or more important than anybody else’s. Try to think about others every now and then. Your career will thank you.2. Complaining After the FactYou’ve had a meeting and things have been debated and discussed thoroughly. If you didn’t speak up then, you’ve forfeited your right to speak after. If yo u don’t have the guts to voice your opinions or contribute in the meeting, then keep your complaints to yourself.3.  Ignoring Your TeamDon’t pretend that you’ve done everything yourself with each small victory. Most workplace accomplishments are not solo ventures. Thank the people that helped you score those victories. Don’t ever be the guy who says â€Å"that’s not my job.† Pitch in! And never never throw anyone under the bus.4. GossipingNobody loves a gossip. You might make a few shallow friends fairly quickly at the water cooler, but you won’t keep them, and you could get yourself in real social and professional trouble.5.  Constant ComplainingNobody likes a pessimist. Start counting the number of times you complain or say something negative in a day. If it’s more than 3, you have a problem. If it’s more than 30, you’re well on track to being the most hated dude in the office.6. CrudenessYou don’t ha ve to be Suzy Perfect, but you should try to keep a little decorum. Try not to be flatulent or curse so much that no one wants to be around you. Be a force for good in your office!7.  Excessive SarcasmBe generous and nice. If you feel the urge to be sarcastic or snide, hold it back. There is a way to be a good person and make people laugh. Try not to get your way or get a laugh at anybody else’s expense.If you have any one (or more) of these traits, it might be time to start thinking about how to prune your bad angels and start watering your good ones.