What program does apple uses to create modular javascript files [closed] - javascript

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 4 years ago.
Improve this question
When I looked at the new MacBook website from Apple I saw a nice smooth scrolling effect on the wireless page. I started digging in the JavaScript and found an uncompressed JavaScript file and I was blown away. (https://www.apple.com/v/macbook/a/scripts/wireless.built.js)
There were so many comments, and you could almost follow what they were thinking when they created this script. I tried to create a JavaScript file like this on my own, but in less than 5 minutes I figured out that it was almost impossible to keep it nice looking and understandable. So my question is: What program does Apple use to create this kind of JavaScript files? It is not a default code editor, but a program that supports built file. There are some good ones out there, but they all have libraries you have to follow, this one is just plain JavaScript and nothing more.

There's no tool to magically make your code look nice.
Apple has a strict code style guide that requires all developers to show discipline when writing code, or their code will be rejected from entering their repo.
It's nothing special really, just proper developer discipline.

Related

Why do websites try to hide their front-end technoloies? [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 3 years ago.
Improve this question
Recently I started learning web development. I tried to read the HTML and CSS codes of some famous websites in my web browser. But I observed that they intentionally mess everything such as changing the real names of the bootstrap classes, while looking at the design architecture and page layout anyone could guess what kinds of technologies are used.
What would be the possible reasons?
I think it's not about security because any average programmer can still know everything about their front-end technologies if he puts some efforts.
There are multiple reasons.
Some companies, indeed, try to obfuscate some of all of the code to hinder some of the attacks. That is not 100% proof, of course, because a sophisticated actor can still reverse engineer almost any code that's out in the open.
However, most of the times it's simply how modern frontend development is done nowadays. The trend has been moving more and more towards using various build, bundle, code-minification and packaging tools. Like Webpack, for example.
What you see simply is a result of source code being processed packaged for optimal delivery and running in the browser.
The days when we could view web-page source and inspect pure HTML/JS/CSS, as it was written by the original developer, are long gone.

Look for Javascript usage [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've inherited a c# .net 3.5 project which I am task with converting to .net core. This is pretty much done.
However, in this project there are A LOT!!! of third party javascript libraries and I am certain there are many of them that are not being used or not needed.
Is there a way to scan the whole project to see if any of the libraries are not used?
I know this is unlikely but thought I'd ask.
Thank you
Using Chrome (but still valid with other browsers with little changes)
press F12 and click on "sources tab"
Then you can display all Resources used from your web page, images, css, scripts...
Or you can use a third party tool like this
https://marketplace.visualstudio.com/items?itemName=RobertHoffmann.FindUnusedFiles
but personally i prefrerr to do it manually not using an automatic tool.

Free Basics Platform(internet.org) [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 6 years ago.
Improve this question
Free Basics has a policy that you need to disable Javascript code in your website now I have a desktop version website and I want to register it on Free Basics platform should I responsive the same website and disable or hide the Javascript using some Php scripts or css or I have to make a new responsive website with not even a single line of Javascript code?
help will be much appreciated thanks
I was intrigued and looked at their technical guidelines - did you read those?
https://developers.facebook.com/docs/internet-org/platform-technical-guidelines
You have to have a site that is specifically designed to work on a low-end devices which are not capable (among other things) to run javascript. While you may detect javascript capability, other requirements of this platform are not easily detected, such as the requirement for smaller image sizes etc. After all, the target users for this applications might be in the area where 20 y/o computer on 9kbps modem is considered to be a good machine.
So I'd say that to pass their technical evaluation you will have to create a separate site, that is targeting their needs.

What to consider when finding a good editor for Javascript [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 4 years ago.
Improve this question
Which features should I consider when finding a good editor for Javascript?
Are there any standard set of features the major development companies expect from an editor when fielded for programmers use?
Probably the first thing you need to consider is if the editor you are going to choose supports the plugins that bring the syntax highlighting, code navigation and code insight of your favorite Javascript framework.
It would be nice to have offered Javascript, CSS and HTML helpers by the editor.
Probably you should look for the ability of the editor to offer integrated Javascript debugging by hooking itself to your favorite browser's dev-tools.
Some editors offer plugins which can debug your server side code. This is a huge plus.
You should look for the editors which supports subversion in-house. This makes your life lot easier.
Finally, the editor should be light enough to perform fast with all these features.

How to write own scaffolder (like RoR has?) [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
I would like to create own scaffolder for websites, something like Ruby On Rails has:
rails g modelname fieldlist
But for my own purposes - it should generate HTML, CSS and JavaScript files in proper folders (folder paths will be taken from configuration file) with specific content.
My question is: which language (or tool) is the best for such task?
I was trying to write that using bash but codebase became quick very large and messy.
My target is unix platforms (especially Linux) - I'm thinking about Ruby or Python, but can I achieve such task with e.g. JavaScript/node?
Are there tools for something like that? I've heard something about Yeoman but I'm not sure if it is capable for my problem here.
Well since your question is too broad and you seem to be looking for a website generator, at least for Ruby here are the most obvious choices:
https://www.ruby-toolbox.com/categories/static_website_generation
All of them use templates, which I assume that will be usefull.
One of the most popular choice is the jekyll, which powers github pages
If none of them work for you, you can investigate their source code to create your own solution.
If you are going the rails way there's rails apps composer

Categories

Resources