Web development languages
As a writer, when I first started out on my own publishing a book, I only knew what the basic building blocks of that were, but as I went deeper into it, and saw how complex these were, and how many different languages they comprised of, I was more than happy to share them with everyone who would have it. With this being said however, as soon as I began working on one side of the project, like the main character in my story or in our campaign; I’d like to introduce some of the technologies that we use when building websites that I’ve built previously and are now seeing come back with me at CTFS; a website that is a part of an open-source software platform for web development languages (CSS, JQuery, Vanilla JavaScript, etc.). So let’s jump right in…
CSS
CSS is not a new concept but we can think about it from a very simple perspective. In previous articles we’ve discussed CSS that allows us to style individual elements within HTML, which can be very helpful when making your webpage look good, especially if you work with a mobile web browser. We’re also going to dive a bit further into the technical side of things; so, what are those technical terms we’ve already covered? Well, if you’re working with WordPress then we have the following terms: Headings, Images, Tables, DIVs, and Lists. All of which have the same name in this article but there are really two key differences between them. The second is that you might have heard the term ‘CSS Preprocessing Language’ before; since it means all of the rules required to get your HTML code into the correct order and in which it should be, I tend to give it a lot more detail than I do with other types of programming languages. This will be covered a little more later in this tutorial. For now though, lets use just CSS, because you will be using it over and over again with every form of web development on here, and as such it will quickly become part of your coding vocabulary with most importantly, it will allow you to easily create responsive layouts. It will also make our writing better because we’re not doing too much inside JS anymore. So with that out of the way, lets start off by building one page with this technology already in place. Lets begin by creating a site called ctws.cfm which we’ll save below with a folder. Once we have done it, we’ll move onto the next topic, another language which is extremely easy to learn on its own, and the reason why we decided to use it with the ctws platform.
JQuery
JQuery has been around for years and it’s slowly finding its way into modern web development and some aspects of website design. There are two reasons for that. First, it makes sense since our users are already used to it so would need to keep up with it but this will allow us to put together features and make changes that would be difficult to achieve otherwise without this language being available. Secondly, I personally found jQuery to be the least demanding part of any web development project since you can write your code in plain JavaScript and yet have the best of both worlds using jQuery just the way we wrote it originally. This means that we don’t have to use JS for everything but instead make sure we put in that extra effort to use jQuery the way we originally did. If we look at the code snippets in this example, you can immediately see that we’re using the standard library which is Javascript and HTML respectively and it’s a relatively straightforward language to understand. Now, once again, onto Javascript, and what exactly does Javascript do? Well, this is where we find the main difference between the common PHP codebase code and the React JS version that’s used throughout React Native and our native iOS app. When reading through the ReactJS documentation we’ll find out that it basically comes with a React engine which sits on top of Javascript, giving it an awesome performance boost as well as allowing it to react to DOM events. To make sense of it though, we are not actually looking at ReactJS here since this was developed by Google and it’s used to provide access to the frontend of their services and apps. What we’re looking at today is a JavaScript file that is specifically written for managing HTML and CSS files in this case. There is very little that needs to be changed to change the layout of our websites as a whole and making sure that our ReactJS is providing its intended functionality to keep our users informed of the latest updates and fixes to web development, but it seems important that we do at least understand the basics so that we aren’t going to have a complete misunderstanding of the things that could go wrong with our site and our platform as a whole. This is why JavaScript is used across the board; so what’s required to build a website containing JavaScript is a NodeJs application and a server to host it on. Since our server is based on Vue, we’re going to install the packages that we’ll need for the main functions and classes of our website and then we can add them to our pages themselves and then finally, finally, we can include CSS, JavaScript, and even HTML files in our website. So if you want to take a look at the full code of my website here at Code Up, it’s pretty simple to follow now. If you’re interested in learning a bit more you can check out the ReactJS doc on MDN which provides a comprehensive guide on ReactJS and also explains some of the limitations and tradeoffs associated with it.
Vue
Vue is a popular topic amongst developers for a variety of reasons, with the main one going down to how fast and easy it is to pick up and develop. Its popularity comes mainly due to how user experience it has to offer with the majority of our users still using HTML and CSS as well but the fact that we can quickly convert data to Vue components is one thing. On the flipside though, when we use HTML and CSS with Vue we end up having to worry about a number of issues and solutions. One is, of course, keeping everything up to date with current versions of libraries but there is also the issue of how well the documentation is written. Another is integration into existing platforms and frameworks for instance Vuex has never been overly complex and if its not getting updated regularly then it’s probably time to consider closing your eyes and waiting for the update to arrive if you haven’t already installed it before. Lastly, the lack of support for the newer versions of certain libraries is something that we should avoid as much as possible since the majority of people are already using them so they shouldn’t be forced to wait for the appropriate solutions to come forward. So with that being the case, Vue is a must have language for any developer of any size.
Vanilla JavaScript
Vanilla JavaScript is arguably one of the less intimidating languages for programmers though. Although, I’m sure that it doesn’t take long for someone to master its basics and to be able to create websites with it. VanillaJS has a fairly high amount of similarities with jQuery and we’re going to discuss that later in this article but in general it’s a JavaScript implementation of normal JavaScript as well as a client side framework. The reason behind that is exactly what brought us to it in the first place and it goes for one main reason; since we’re working with one of the biggest names in web development it helps to have a clear understanding of the concepts. With that in mind, we can start off by taking a moment and thinking about the different parts of JavaScript that we use, the main ones being HTML, HTML5, and CSS. However, just like in Ruby or Python, there are some things which need to be kept to ourselves in order to build a fully functioning web application. Some ideas we could mention include adding JavaScript libraries like lodash or jQuery to our project as well as using JavaScript directly in our pages. Others could be custom JavaScript handlers that help handle specific pieces of information or even add dynamic content to the HTML that would otherwise be stored in session cookies. Then, we come back to the fact that sometimes we don’t even realize the JavaScript we’re writing isn’t working properly until there’s a problem with our website that we didn’t even know existed. To solve this, we’d have to debug our JavaScript and ensure that it doesn’t break because our JavaScript is working as expected or that its not causing any unexpected output or behaviour, but we don’t want to be too hard on ourselves. This is where things start to make sense and we’re going to tackle this by simply testing each of our JavaScript modules for errors before moving onto fixing them, and then checking whether they’re valid or not. These three tests we’ll run are known as the Mocha Test where we try our JavaScript again while it waits for the results from the initial test. After running these tests we will be able to assess their validity and safety and we’ll then have a list of errors that we could click on and fix. After that though, in order for everything to work properly you’ll have to set up a dev environment where a user will be able to interact directly with the website. You could then use CSS selectors to get in and look at the results, and then you’ll be able to select the errors that mean their the website isn’t working properly and then you’ll be able to go ahead and fix them. And you can read the

0 Comments