What is the purpose of p5js or js processing [closed] - javascript

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I recently got to know p5js and also heard that processing is similar to it. Basically, p5js is founded on the html canvas and it can draw things on it. I was wondering if its just the simpler syntax for drawing that it uses is the reason for its popularity or does it also run faster or sth else? Because I cant seem to find a reason but that the syntax is easier to understand.

P5.js is a JS library that (I feel) is aimed to make displaying elements and user interaction simpler. Processing is the java version of P5. I am not sure, but I doubt they are faster than natively doing them in JS or java. It is often aimed at beginners, but became popular for lots of reasons, and it is now taught by Khan Academy, along with others, which is spreading its popularity quickly. It is just a helpful library that makes many things easier and quicker.

Related

When something can be done via JS or CSS, which way should I choose? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
For example, I can use CSS to implement a navigation. And I can do that via JS too. And in many situations CSS and JS both perform well.
Which one is the good choice for web design?
A good rule of thumb is: If you can do it with CSS, go for it.
Philosophically, CSS should be focused on presentation and JavaScript should be geared more towards function.
Of course, It depends. While CSS is much easier to implement than javaScript in most cases, easier doesn't always translate to better. One good example are CSS animations vs a javaScript library like velocity.js. You have far greater control over your animations and generally better performance across all devices with frameworks like velocity or GSAP, but often it comes down to each individual project and which technology would make sense for your particular needs. Realistically, however, most projects will implement both technologies in the best cases where they fit. I hope this helps. For more info on this here's a link that does a great job explaining some of the differences when animating: https://css-tricks.com/myth-busting-css-animations-vs-javascript/ .
And here is a similar question with very good answers: Better or Worse: Styling with JavaScript vs CSS

How to implement a simple cube in WebGL without using any libraries as glMatrix and etc? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I was learning three.js, and this library is awesome, it simplifies my development process. But today I want to start learn plain WebGL just for better understanding, and I want to implement the basic samples from the scratch without using any already done JavaScript library such as glMatrix, sylvester, j3di and etc...
I've tried to search in web some plain examples, but any sample, which is close to plain (I mean "without using any additional libs" in this context) uses some libraries.
Of course, library use is very good when you're developing a product to economy your time, but my aim today is different, I just want understand how to make planes, cubes and other in WebGL from scratch just for well understanding.
I'm asking for such samples, because even in MDN or Khronos official wiki there are suggestions to use libraries:
MDN: https://developer.mozilla.org/en-US/docs/Web/WebGL/Creating_3D_objects_using_WebGL (sylvester.js, glUtils.js)
Khronos: http://www.khronos.org/webgl/wiki/Tutorial (webgl-utils3d.js, J3DI.js)
So can you help me with showing some WebGL sample with cube or plane, which doesn't use any library.
I think this Greggman's article covers everything you are looking for, and does not rely on any third-pary math library.
http://games.greggman.com/game/webgl-3d-cameras/
http://greggman.github.io/webgl-fundamentals/webgl/lessons/webgl-3d-camera.html

If my main skill is javascript than which other skills would complement it best [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
So if i excel at javascript than learning what other libraries, languages, framework, business related things would help me improve as a developer and get hired.
I know just knowing js isn't enough and that developer must know some basic stuff like
jquery, css3, html5, etc.
But what else.
I rarely see a job in which it says you need to know javascript there are always a lot of something else.
Well this is not the perfect place to ask this question but to help you I would like to suggest you some options.
If you are aiming to become a full-time front-end developer then along with the Javascript you must have excellent knowledge of HTML5, CSS3 and JQuery.
Also you must start practicing at least two of the following JavaScript frameworks:
Angular JS,
Node JS,
Grunt,
Dojo,
MooTools.
It would be good to have knowledge of SASS & COMPASS as well.
A good knowledge of Photoshop or Illustrator is also required.
Rest you can research yourself and choose as per your choice.
Best of luck!!

What JS/HTML5 Game Engine/Frameworks that works on Webworks Playbook OS 2.0? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Actually there are lots of JS/HTML 5 Game Engine/Frameworks. The lists are here. So I just want to know what framework must I use, considering:
Documentation and community must be good.
I have been using Corona (using Lua language), and I think if the design of framework is like Corona SDK, I think it will be easy for
me to understand.
Performance is optional, because the game I want to create is a simple game. Just using image/sprite and event touch.
If all you're looking for is something simple with Sprites and Events you could use LimeJS. It's a very well documented, nice framework. And easy to use, as well. It uses Python and Git for its framework downloads and updating of namespaces though, but it's all well explained and easy to install.
www.limejs.com

Help impress interviewer with javascript and jQuery skills [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
One of the interviewers asked to impress him with the JavaScript and CSS skills. He provided a link to two websites and asked to write a JavaScript application (page or pages) that takes content from one or both of these websites and demonstrates my command of jQuery and CSS. It doesn’t have to be useful to end-users, but it should be interesting to programmers.
What interesting things should I write? What would impress you in the candidate?
P.S.
The sites have real-estate information.
So, what would be the best way to read information from a given URL and extract some of it using jQuery?
That interview question is so subjective. What impresses one person might be basic to another. Why not ask a more meaningful question that demonstrates whether or not the candidate actually knows the language.
With all that said and if you really want to work for this company, I would study up on the basics of both js and jquery and really learn how to optimize basic functions. If you had to impress me then you should try to optimize a block of code as best you can without making the code unreadable. There's nothing better than clean, fast and readable code.

Categories