silentstep21
Members
-
Joined
-
Last visited
Reputation Activity
-
I'd just like to thank the OP for this post. Some useful information there.
-
No it’s not.
-
silentstep21 reacted to davep in Why display: table; in clearfix?i assume it's because it worked cross browser many moons ago. https://css-tricks.com/snippets/css/clear-fix/ perhaps because you always want to clear floats after a table anyway so was the most suitable element for the job?
-
html5 doctor's interpretations seems fair enough to me
http://html5doctor.com/element-index/#article
http://html5doctor.com/element-index/#section
-
silentstep21 reacted to rbrtsmith in Should we *always* use wrapper divs?All it's saying is that you can only use that tag once on the page. So with that in mind should be high up.
Typical structure would be
```
<body>
<header />
<main />
<footer />
</body>
```
-
silentstep21 reacted to BlueDreamer in Should we *always* use wrapper divs?You can if you need to:
<div class="main-wrapper"> <main class="main"> ...content </main> </div>
-
You don't have to but being able to use things like word processor and spreadsheet apps can be useful.
I sometimes use spreadsheets for tasks such as creating/editing CSV info for importing data into a CMS, and word processors for writing stuff like project documents.
You don't have to use Microsoft or Google products either, there are plenty of alternatives.
-
silentstep21 reacted to silly.questions in Everything you need to learn about web development (and more!)What a very interesting list, @Stephen18.
However a recurring theme of "mistakes programmers make" YouTube videos is that new programmers worry too much about what there is to learn next or still to learn, as opposed to concentrating on the here and now. You should make use of what you have - concentrate on building the best possible page with just HTML and CSS first, for example. And when learning Vanilla JS learn it well before you even thinking about which framework or stack. This makes you learn what you are currently learning well, and resourceful with the building blocks you currently have. You will often realise that you do not need that WordPress plug in when you can add a few lines of CSS to achieve the same thing, or that your current theme can already do it for you. You will often realise that you do not need to import that JS library or add that framework because Vanilla JS will do the exact same thing,
There is also the point that you do not know what to learn next because what you are currently learning might interest you so much and set you off in a completely different direction for your next step.
Living in the moment is healthy, the unknown is exciting, and resourcefulness and problem solving is exactly what you were built to do - because you are a designer and a programmer, here and now, no matter how much you have to learn yet because you will always be learning and that is also a wonderful thing.
'Til death we learn, 'til death we create.
-
silentstep21 got a reaction from silly.questions in Everything you need to learn about web development (and more!)You should see this file I am attaching at all cost. It took me quite a bit of effort to collate it. It contains everything you need to learn about web development in 2020, plus some web design and Tech. It was meant just for me, but I thought other people would benefit if they see this extremely detailed list. Do let me know if I've missed anything.Computing and IT study and practice - Google Docs.pdf
-
silentstep21 reacted to Jack in What exactly are frameworks and libraries?Libraries tend to have a single or limited use case, for example, a templating library, or a date library. Frameworks are usually made up of many libraries and packages and have more than one responsibility. On the server, a framework might include a way of creating templates, a way of connecting to a database, handling email etc.
React is seen as more a library because even though it has a lot in terms of what it can do, it's primarily concerned with assisting with building UI components. Whereas a framework like EmberJS has a way of doing UI components, templating, testing, interacting with APIs etc.
-
silentstep21 reacted to rbrtsmith in What exactly are frameworks and libraries?So NodeJS isn't a framework it's a JavaScript runtime on the server-side. There are several frameworks and libraries built on top of Node such as Express and Koa. I'd definitely spend a bit of time getting familiar with Node
On the frontend React is considered a library but I'd say it sits somewhere in the middle of a framework and a library. I'd definitely look into learning this, Angular is pretty horrible and getting less popular, Vue I don't like much either but it is gaining popularity but still way behind React in the job market. Most frontend jobs I see are asking for experience with React.
The distinction between a framework and a library is a bit muddied and to be honest I don't think distinguishing is really that helpful. Both are essentially dependencies that we'd download via NPM and import to your application (assuming it's a JavaScript app).
Many will suggest that React is a library and Gatsby, NextJS and so on are frameworks built on top of React. I suppose you can look at a framework as an underpinning for the whole project (or service) Although React sort-of does this also.
-
silentstep21 reacted to fisicx in What is the difference between Software Development and Software Engineering?One uses the word Development and the other uses Engineering.
I use to maintain aircraft. Pretty much every company I worked had different job titles for the same thing.
-
silentstep21 reacted to rbrtsmith in What is the difference between Software Development and Software Engineering?Just job titles, pretty much interchangeable. Some might argue that software engineering includes more architecture, infrastructure but I really don't think it matters. My Job title is a senior software engineer but I've also been a front-end developer, JavaScript engineer. I did similar things in all those roles.
-
silentstep21 reacted to rbrtsmith in Is the JavaScript Engine the same as the JavaScript interpreter?I should add that with JavaScript it works slightly differently to an interpreter. An interpreter like the one used in Bash scripts will interpret one line than execute then interpret the next line.
JavaScript has what is called Just in Time Compilation (JiT) where the whole program is complied just before it gets executed, things like closures would just not work if it was interpreted line by line. There's some more information on it here https://stackoverflow.com/questions/7807235/javascript-just-in-time-compilation
These are nuances however and knowledge of this isn't really required for day to day working with the language. The fact JS uses JiT is a detail you don't really need to care about.
I see JavaScript as a compile target and I either write in the latest Es version or TypeScript and just allow the transpiler (Babel in my case) to handle the output and make sure that it's going to run correctly. (This is aside from the odd few polyfills that you might need to be added manually)
For Node you'd want Babel to compile to the correct Node version target e.g. Node 12 if you're running Node on a Lambda function.
-
Your JS code isn't compiled up front like it is with a language like c++, in languages that require a compilation step, you would write your code then run a compiler on it after. Instead, your JS is passed through an interpreter at run time that converts your JS code to bytecode. There are typically a few steps to this, including an initial pass over of your code to allocate memory. This technically is a form of compilation, but at runtime you would get errors that a compile time language would prevent happening.
The interpreter is part of the engine, an engine likely does a bit more in terms of scheduling code and optimisation. I'm not really 100% sure to be honest, you typically don't need an understanding of low-level implementations like this unless you want to work on browsers or API specs.
-
silentstep21 reacted to Jack in Should I stop using 'var' in JavaScript?I use const basically every time, with a few exceptions. What I mean by omitting the var, let, or const keyword is leaving the keyword off entirely. If you don't add any keyword, you create a global variable that can leak data and be reassigned, and that's absolutely not what you want.
// without var, let or const animal = 'cat' function printAnimal() { animal = 'dog' console.log(animal) // dog } printAnimal() console.log(animal) // dog
// with var var animal = 'cat' function printAnimal() { var animal = 'dog' console.log(animal) // dog } printAnimal() console.log(animal) // cat If you intend on using only modern JS I still think you should know how var works, even if you don't intend on using it going forward. It's still used and it's highly unlikely you won't come across it somewhere in the wild. I also think it's better to understand why some people don't use var anymore, rather than just accepting it as a given, and you can only really do that if you understand the pros and cons of all 3 keywords. Fortunately, the rules for all of them are straight forward to understand, so there's not much additional work required to do so.
-
silentstep21 reacted to rbrtsmith in Should I stop using 'var' in JavaScript?let and const are two of many features used in modern JavaScript. Typically you'd need to compile (often referred to as transpiling) this code AKA ESNext/ES6 into regular JavaScript (ES5) to be fully browser compatible, some features are already implemented but some are not so I'd recommend using a tool like Babel to do this job for you.
@Jack Why do you suggest that ommiting var completely is a bad idea? If you are compiling down there is really no benefit to using var these days. I've used const and let exclusively for the past 3-4 years, if you're unfortunate enough to be working on REALLY old projects then it's good to know how var works.
All of these keywords have what is known as lexical scope which means functions declared within a block can access variables outside of the function body, variables declared inside the function are not available outside of the function unless you leverage closure (returning those variables in some way)
var declarations will be hoisted to the top of the function they are declared in and can be reassigned to
let declarations are only hoisted to the top of the block they are declared in (block being curly braces) and can be reassigned
const declarations are also hoisted to the top of the block and cannot be reassigned to (often confused to be immutable which isn't the case)
If you are using ES6 with Babel then I'd always go with const unless you have a good reason to re-assign (which shouldn't be that often) in which case use let.
-
silentstep21 reacted to Jack in Should I stop using 'var' in JavaScript?I pretty much use const and let in all of my JS code, but I'd recommend understanding how scope works before you use any of them, and the pros and cons of each keyword. You'll come across var a fair amount still, so it's important to understand what the rules are for when you do come across it. What you should definitely avoid is omitting the var keyword completely. Doing so will create a global variable that can be accessed and changed anywhere and this is a potential cause for bugs and difficult to debug code.
-
silentstep21 reacted to rbrtsmith in Databases and mySQL for a Full Stack dev?Nobody cares about certificates or whatever when they hire you. You'll need a CV that is appealing and you have gained some experience in the tech stack they use. Essentially they want to see you have the ability to add value, and for a junior the main thing we'd look for is enthusiasm and ability to learn.
The bar to entry for frontend developers or backend developer is considerably lower to a full-stack developer. Perhaps do the TreeHouse course then focus on the area you enjoy the most - backend or frontend. Once you have a job spend a few years learning and then you might be in a better place to learn "the other side" so to speak and become a full-stack dev. Bear in mind this isn't the only progression. I know frontend developers who do little to no backend and still get paid a fortune and are very senior in the business.
When I said Treehouse is all you need I meant that I just did their frontend course and used what I'd been taught to build some examples to demonstrate to employers. I didn't get any certificate for the course it was just a load of focused tutorials which for the most part were very good. I don't know if the full stack course goes into enough depth given the entry level for full stack developers is much higher.
-
It's all to do with when the scripts will be parsed and executed. You want JS files the bottom of the document because the browser will pause rendering until any JS files have downloaded and parsed. Basically, the rest of page won't be visible until you wait for JS to finish, if you're on a slow connection, the user could be waiting a while to see anything.
I know developers used to place JS in the head of a document but this is considered bad practice. You see it occasionally on older websites or in some instances where JS code is placed too far up the document and has a reference to a file further down. For example:
<body> <script> $('button').toggle() // ReferenceError: $ is not defined </script> <button>clicky</button> <script src="jquery.js"></script> </body> The browser is going top to bottom, it comes across the first line of JS, but we haven't got to jQuery at the bottom of the document yet, so the JS engine doesn't know what $ is and will throw an error. This can be fixed by moving jQuery above the first line, but as mentioned above this blocks rendering and is bad practice. Instead you can prevent this by doing:
<body> <button>clicky</button> <script src="jquery.js"></script> <script> $('button').toggle() </script> </body> It's worth mentioning that even though I used jQuery as an example, because it's typically why people used to do this, it will happen with any JS code using this approach.
-
silentstep21 reacted to jpeters8889 in Where should one put the JavaScript: in the <head> or <body>?I've always put any JavaScript right before the closing </body> tag, I'm not 100% sure on the reasoning but I think its because if you JS alters any of the HTML or the DOM, then if its in the head then the JS is downloaded and potentially executed before the HTML has actually rendered, and then the JS will have no effect.
Saying that though there has been situations where I've had to put a JS file in the <head> but its rare.
-
silentstep21 reacted to rbrtsmith in Databases and mySQL for a Full Stack dev?You should definitely learn about databases, there are two popular types NoSQL (e.g. Mongo, DynamoDB) and SQL based (e.g. MySQL, Postgres). You'll want to learn about how this data is served e.g. JSON or GraphQL
A full stack developer should be able to build a moderately complex application and should as a minimum have knowledge of the following areas.
Deployment (Cloud based, AWS, Google Cloud Platform, Docker, CI/CD etc. There is a LOT to learn in this area)
Databases,
Backend - Microservices, FaaS, CMS, REST, GraphQL servers etc
Frontend - HTML, CSS, JS (ES6, React), A11Y, UX patterns
General - You should know how to write automated tests for your application with unit/integration/end-to-end tests, you should know how HTTP works in detail - what do the status codes mean, what about headers? cache-control etc etc. You should also have a good grasp of security - how do you handle authentication. You'll need to learn about capturing logs for front and backend systems (CloudWatch, Kibana, Grafana, SpeedCurve for performance monitoring). You'll need to know how Cookies work as they're used extensively.
I've said this before and I'll say it again though: If you're looking for your first role then going straight for full stack is setting the bar very, very high. Most full stack developers have been working professionally for years before they really attain the level of knowledge to market themselves in this way. Of course the choice is yours but you really are giving yourself a mountain to climb which is made much harder if you aren't already working full time as a developer (Working with others you'll learn much faster than doing online courses alone.)
I don't know anybody who's a full-stack dev that learnt it all upfront, they all got a job in a specialism and branched out.
It's worth noting that you'll make things a bit easier if you focus on JavaScript as you can use the language on the client and the server rather than having to learn multiple languages.
-
silentstep21 reacted to rbrtsmith in 3 or more columns side by sideThe (5% not 0.001%) are not all "luddites" Lots of people are working in institutions where they cannot update their browsers or OS like banks, majority of the public sector etc. I get that you are building a mobile specific site but that means your approach there is going to differ from the vast majority of people building websites. IMO if you can make it work on those devices it's no extra effort to make it work for desktop and laptop machines. I believe in a web that is open to all no matter what device you might be visiting from.
Unless CSS Grid is solving a problem that isn't possible without other tools that have full browser compatibility then I'd stay away. It's not that difficult to create a grid system with inline-block like Jack suggested, Flexbox is easier still and has much better support than CSS-Grid.
@Stephen18 I suggest you learn the full CSS Box model then creating layouts like you describe, grids etc becomes really trivial. It's one of the key foundations anybody using CSS really should know. https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/The_box_model
-
silentstep21 reacted to fisicx in 3 or more columns side by sideI suppose a lot depends on your target.
For one of my sites it's almost exclusively phones and tablets so using grid isn't a problem.
-
silentstep21 reacted to Jack in 3 or more columns side by sideBoth are simple to use if you understand CSS layout and the stats for older browsers are considerably higher than 0.0001%, at least where I'm from. Also if you consider grid V2 isn't well supported yet https://caniuse.com/#feat=css-subgrid it ultimately depends what need and how modern an application you're building.