Uploaded April 2018 | Updated November 2026, 1 day ago
You don’t NEED jQuery today. Let’s look at the three things you totally can accomplish without dropping in the jQuery library on your app or site. $.ajax(), $().ready() and the jQuery DOM selector.
This is DevTips with David.
document.querySelector()
developer.mozilla.org/en-US/docs/Web/API/Document/querySelector
caniuse.com/#feat=queryselector
DOMContentLoaded
developer.mozilla.org/en-US/docs/Web/Events/DOMContentLoaded
caniuse.com/#feat=domcontentloaded
fetch()
developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
caniuse.com/#feat=fetch
CodePen used in the video
codepen.io/devtips/pen/VXbqqo
jQuery pushed Web 2.0 forward. But today the web has caught up. It wasn’t trivial to query the DOM ten years ago. jQuery solved that.
It also has a handy wait-for-the-DOM-to-load call. And it had handy features such as toggles for checkboxes, making AJAX requests (which are asynchronous JavaScript calls to other resources such as other JavaScript or XML or HTML documents), picking up form values, changing styles, or manipulate the DOM.
If you wanted to build something slightly more advanced back in the days, you almost needed jQuery. Today, you don't.
jQuery did things well. But I see people use it still and its fine. It just bugs me that today they could just as well NOT drop in that pretty big library, if all they want to do is either DOM selection, AJAX XHR fetching or waiting for the document to load.
You don’t NEED jQuery today. Let’s look at the three things you totally can accomplish without dropping in the jQuery library on your app or site. $.ajax(), $().ready() and the jQuery DOM selector.
This is DevTips with David.
document.querySelector()
developer.mozilla.org/en-US/docs/Web/API/Document/querySelector
caniuse.com/#feat=queryselector
DOMContentLoaded
developer.mozilla.org/en-US/docs/Web/Events/DOMContentLoaded
caniuse.com/#feat=domcontentloaded
fetch()
developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
caniuse.com/#feat=fetch
CodePen used in the video
codepen.io/devtips/pen/VXbqqo
jQuery pushed Web 2.0 forward. But today the web has caught up. It wasn’t trivial to query the DOM ten years ago. jQuery solved that.
It also has a handy wait-for-the-DOM-to-load call. And it had handy features such as toggles for checkboxes, making AJAX requests (which are asynchronous JavaScript calls to other resources such as other JavaScript or XML or HTML documents), picking up form values, changing styles, or manipulate the DOM.
If you wanted to build something slightly more advanced back in the days, you almost needed jQuery. Today, you don't.
jQuery did things well. But I see people use it still and its fine. It just bugs me that today they could just as well NOT drop in that pretty big library, if all they want to do is either DOM selection, AJAX XHR fetching or waiting for the document to load.


![Regular Expressions in JavaScript - #1 REGEX ULTRA BASICS
A regular expression (or regex) is way to find strings within strings. Its small code that when applied to a string, will give other strings - either the whole string or parts of the string. This video gives you the ULTRA BASICS of REGEX.
Regexes most common use cases are:
What can we use them for?
1. Validation
If something is formatted correctly. Like verifying if someone has inputted the correct things in a form like an email address or a postal code
2.Extraction
Extract parts of a string that we would like to use. Say find how many times someone wrote david in a text.
Replacement
Find all parts of the string with david and replace them with something else like devtips.
You will learn:
- creating regex in two ways in JavaScript: slash notation or with the constructor new RegExp()
- escaping the special characters
- the special characters and how they work: ^, $, *, +, [a-z], [0-9], w, d for example
Companion code used in the episode
https://codepen.io/devtips/pen/gzqKKP
Or try one of these tools to experiment with regexes. They all do basically the same, its just a matter of taste:
https://www.regexpal.com/
https://www.regexpal.com/
https://regex101.com/
Read more on MDN, its the best resource:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions Regular Expressions in JavaScript - #1 REGEX ULTRA BASICS](https://i.ytimg.com/vi/VrT3TRDDE4M/mqdefault.jpg)
![Your First Rails Application [ Ruby on Rails from the ground up - 4/5 ]
This is episode 4 of 5 in the DevTips Ruby on Rails from the ground up series. In this episode we start building our Rails application. Well start by going through the application structure (where everything lives), then well build a dynamic rails blogging application.
Be sure to checkout the DevTips Patreon community to get access to the code we create in this episode. https://www.patreon.com/posts/your-first-rails-3587815
- - -
Check out Mackenzies Channel: https://www.youtube.com/user/mackenziechild
This video was sponsored by the DevTips Patron Community - https://www.patreon.com/DevTips
Listen to Travis Podcast - http://www.travandlos.com/
Get awesomeness emailed to you every thursday - http://travisneilson.com/notes
You should follow DevTips on Twitter - https://twitter.com/DevTipsShow Your First Rails Application [ Ruby on Rails from the ground up - 4/5 ]](https://i.ytimg.com/vi/WIozWpjEgrE/mqdefault.jpg)






