JavaScriptSponsored by Flatiron School

121K

Solutions

41K

Contributors

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and  in almost every mainstream web browser.

Share tech news, updates, or what's on your mind.

Sign up to Post

0
Free Tool: SSL Checker
LVL 12
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Why Is Node.js the Best Framework for App Development?

Node.js makes use of JavaScript; which the most popular programming languages of today. For a very long time now, companies have embraced Node.js app development as it helps companies promote their apps in a short span of time. Node.Js framework is a brilliant tool whenever you want to design server-side web applications in JavaScript. There are several advantages when it comes to using Node.js for App development. It is one of the most popular and modernized frameworks preferred by developers for building easy to market web apps.
Why-Is-Node.js-the-Best-Framework-fo.png
1
0
0
function $(def){
	try{
		if(def.charAt(0) == "#"){
			return document.getElementById(def.replace("#",""))
		}else if(def.charAt(0) == "."){
			return document.getElementsByClassName(def.replace(".",""))
		}else if(def.charAt(0) == "@"){
			return document.getElementsByTagName(def.replace("@",""))
		}else if(def.charAt(0) != "#" && def.charAt(0) != "."){
			console.error("bad define with >>> " + def)
		}
	}catch(err){
		console.error(err)
	}
}
HTMLElement.prototype.text = function(str){
	this.innerHTML = str
}
HTMLElement.prototype.click= function(eve){
	this.addEventListener("click",function(){
		setTimeout(eve,0)
	})
}
function keyevent(key,eve){
	try{
	if(key.charAt(0) == "@"){
		window.addEventListener("keydown",function(){
			if(event.code == key.replace("@","")){
				setTimeout(eve,0)
			}
		})
	}else if(key.charAt(0) == "#"){
		window.addEventListener("keyup",function(){
			if(event.code == key.replace("#","")){
				setTimeout(eve,0)
			}
		})
	}else if(key.charAt(0) == "."){
		window.addEventListener("keypress",function(){
			if(event.code == key.replace(".","")){
				setTimeout(eve,0)
			}
		})
	}
	}catch(err){
		console.error(err)
	}
}

Open in new window

i made something like jquery
the using like almost like jquery
$("") for define the Elements use the dot for classes and # for id and @ for tags
and click method to make click event Ex.. > element.click(function(){//code here})
and text() like jquery edit the innerHTML value
keyevent to do event with press key and upkey and downkey
use the @ for keydown
use the # for keyup
use the . for keypress
and more coming

who can help me to add cool ideas

0
More on the two "villians" too. It has a nice description, not overly technical (though inevitable at times) for understanding. Crux of it is remediation is really for CPU vendors to issue firmware updates to protect against these attacks. The OS and affected vendor will "support" with their release to reduce the attack surface or make it harder to exploit.

Unfortunately, there are no software patches or operating system mitigations that can fully mitigate the impacts of the Spectre attacks and the flaws being abused. Only saving grace is browser vendors have begun updating their browsers to disable certain features which make the Spectre attack feasible via JavaScript. If really paranoid, back to basic to disable active scripting like Javascript.

https://research.kudelskisecurity.com/2018/01/04/meltdown-spectre-attacks-on-cpu-flaws/
1
 
LVL 50

Expert Comment

by:dbrunton
I think the microcode patches will come through the system vendor, Dell, HP etc etc.  Intel will probably supply them with the patches to distribute.

As for the lawsuits that will be interesting.  Unless it can be proven that there is a significant slowdown those lawsuits will go nowhere.  And at this stage there is no real evidence of that.  The most likely candidates will be those who run VM instances in the cloud and we'll need to wait for those to occur.

It will be a pity if the lawsuits don't succeed because I'd love a new Core 2 Quad processor replacement ...
0
 
LVL 66

Author Comment

by:btan
Agree. Nice.
0
I want study
0
 
LVL 8

Expert Comment

by:Flabio Gates
Do you want to learn javascript? Then better change your post to a question.
Then you can have a look here which lists lots of resources.
0
2
Free Tool: Port Scanner
LVL 12
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Oh, here's another technology I'd like to learn: Google Apps Scripting. There's a lot of common things I do with Google Docs & Sheets on a regular basis and being able to automate some of it seems pretty handy. I know EE has a ton of great stuff about VBA scripting for Excel, Word, and such, but I mostly work in Google Apps and I've had no info at all about scripting for those products. (I honestly expected the Google apps might not have been mature enough to support scripting, but I was completely wrong about that!)

Just looked up Google's documentation site for it, and the whole thing is based on JavaScript (I'm not good at JavaScript, but I'm at least familiar with some basics). That also means I've got plenty of experts in-office and on the site for when I need help :-)

Will have to start experimenting with it this weekend!
1
3
 
LVL 4

Expert Comment

by:Juana Villa
Mind blowing!
0
Used jquery ui sortable function for the first time this week. It was really easy to create a drag and drop list and serializing the order to save in a database was really easy. Not sure why I hadn't tried to use it before.
5
1
3
 
LVL 7

Expert Comment

by:Brian Matis
Ha! Seems like that can make for a pretty interesting way to get a deeper dive into the language's idiosyncrasies and behaviors that someone could easily overlook.
0
The other day Rourke told me about a game called Screeps where you code your AI units in Javascript. I'm surprised I haven't heard about these types of games before! The reviews say there's a barrier to entry for novice programmers but hopefully that won't scare too many off.
9
 
LVL 7

Expert Comment

by:Craig Kehler
That is great. So who is building a private EE server? :)
3
 
LVL 7

Expert Comment

by:Brian Matis
I love that idea Craig!
0
1
This looks like an interesting way to build a javascript application without introducing framework library dependency hell. I definitely plan to give it a try.
4
 
LVL 2

Expert Comment

by:Michael Arciniega
Seems like it would also pair well with micro libraries from http://microjs.com/.
1
 
LVL 11

Author Comment

by:Brandon Lyon
Yeah that's probably a good pairing
0
I've started hacking together a project in Typescript and now I keep thinking my Sublime linter is broken when I open a regular js file. Static checking ftw.
1
 
LVL 2

Author Comment

by:Michael Arciniega
I'm building the project with a MEAN stack and that's what the new Angular prefers to use. As I'm getting familiar with the stack its been really nice having it catch simple type mismatches and broken dependencies before I even deploy it in the local container.
0
 
LVL 2

Author Comment

by:Michael Arciniega
Unfortunately even the best tooling won't save you from spending two hours debugging a database issue before realizing you meant to do a POST instead of a GET....
1
Get expert help—faster!
LVL 12
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

This is an amazingly simply way to make an Electron desktop application from a webpage. I love it :D
3
 
LVL 7

Expert Comment

by:Brian Matis
And I wonder if it works with browser notifications? Those notifs can be pretty handy for something like Hipchat.
0
 
LVL 11

Author Comment

by:Brandon Lyon
Electron has a notifications API so it could probably work if one decided to add that. I can't tell if Nativifier does that or not and I haven't tried yet.
1
Using a WebRTC data channel it's possible for a mobile device to peer share content similar to torrents. This is an interesting approach for scaling user generated content in mobile apps and on the web.
2
3
 
LVL 6

Expert Comment

by:Mikkel Sandberg
That's good stuff. Had to go back and watch the videos on functors though :P But he's entertaining and explains things well :)
2
3
Is Java a terrible first programming language to learn? Do you agree with Stanford switching their intro course to JavaScript? Or would you have picked something else?

https://thenextweb.com/dd/2017/04/24/universities-finally-realize-java-bad-introductory-programming-language/#.tnw_AFXiESVy
2
 
LVL 11

Expert Comment

by:Jeffrey Dake
I definitely think there is something better to start with than Java, but not sure JavaScript is the answer.
1
 
LVL 7

Author Comment

by:Brian Matis
I imagine the appeal of JavaScript is how you can run it in a browser and don't need to worry about dev environment setup or learning a command line to get started.

What language would you choose, Jeff?
0
4
 
LVL 7

Expert Comment

by:Brian Matis
Alrighty... You've piqued my interest! Will have to give this a try some weekend soon. Saved for later!
1

JavaScriptSponsored by Flatiron School

121K

Solutions

41K

Contributors

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and  in almost every mainstream web browser.