Jump to content

Talk:Minification (programming)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by WaylonEaston21 (talk | contribs) at 14:25, 14 December 2022 (Json Minify Full Guideline – Easy For You: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

So.. how many external links do we need, exactly? They outweigh the content of the article like 2-to-1. Markusbradley (talk) 02:45, 30 March 2009 (UTC)[reply]

Good point. This was valid earlier when there were links to dime-a-dozen free online JavaScript minifiers. I've rewritten the article to include only the most important and unique tools and programming libraries. I'll have to rewrite the "web dev" section too, replacing the external link list with a para explaining what they do and why they're useful. On a side note, Wikipedia is missing an article on Content encoding. -- Tom Jenkins (reply) 12:24, 11 August 2009 (UTC)[reply]

I don't see how would external links do any harm as they're not SEO. From my point of view, I worked hard building a CSS minifation tool and writing a very good article on how to dinamically do it with PHP. They were removed for the reason stated above. As long as the information linked is valid, it should stay there, there's no need in removing it. -- Claudiu

Anti minification - code formatting beautifier

I think that the section about "JavaScript formatting beautifier" should be added. Because it is another process, which is the process opposite to Minification, IMHO. See e.g. http://jsbeautifier.org/ -- Andrew Krizhanovsky (talk) 10:07, 22 December 2011 (UTC)[reply]

Minified source code is also very useful for HTML code

Minified source code is also very useful for HTML code. As an example, successive whitespace characters in HTML are rendered as a single space, so replacing all whitespace sequences with single spaces can considerably reduce the size of a page.

This is factually incorrect: CSS can be defined in such a way that whitespace is not collapsed and since CSS is unknown from the point of view of the HTML no assumption can be made about whitespace. -- Fursday 21:04, 1 September 2014 (UTC)[reply]

Example

It isn't clear that the for loop example in javascript is slower when a is pre declared in any reasonable number of use cases. — Preceding unsigned comment added by 73.73.227.12 (talk) 21:49, 6 October 2016 (UTC)[reply]

The example seems to go beyond as what has been defined as minification above: "...process of removing all unnecessary characters... These unnecessary characters usually include white space characters, new line characters, comments, and sometimes block delimiters," Andreasabel (talk) 11:10, 8 May 2020 (UTC)[reply]

Introduction

".. though the term obfuscation may be distinguished as a form of false cryptography while a minified code instance may be reversed using a pretty-printer."

How does this contradict the first part of the sentence? --129.13.72.197 (talk) 07:05, 16 October 2014 (UTC)[reply]

Maintenance and rating of JavaScript articles

Concerning editing and maintaining JavaScript-related articles...

Collaboration...

If you are interested in collaborating on JavaScript articles or would like to see where you could help, stop by Wikipedia:WikiProject JavaScript and feel free to add your name to the participants list. Both editors and programmers are welcome.

Where to list JavaScript articles

We've found over 300 JavaScript-related articles so far. If you come across any others, please add them to that list.

User scripts

The WikiProject is also taking on the organization of the Wikipedia community's user script support pages. If you are interested in helping to organize information on the user scripts (or are curious about what we are up to), let us know!

If you have need for a user script that does not yet exist, or you have a cool idea for a user script or gadget, you can post it at Wikipedia:User scripts/Requests. And if you are a JavaScript programmer, that's a great place to find tasks if you are bored.

How to report JavaScript articles in need of attention

If you come across a JavaScript article desperately in need of editor attention, and it's beyond your ability to handle, you can add it to our list of JavaScript-related articles that need attention.

Rating JavaScript articles

At the top of the talk page of most every JavaScript-related article is a WikiProject JavaScript template where you can record the quality class and importance of the article. Doing so will help the community track the stage of completion and watch the highest priority articles more closely.

Thank you. The Transhumanist 01:11, 12 April 2017 (UTC)[reply]

Hello fellow Wikipedians,

I have just modified one external link on Minification (programming). Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:

When you have finished reviewing my changes, you may follow the instructions on the template below to fix any issues with the URLs.

This message was posted before February 2018. After February 2018, "External links modified" talk page sections are no longer generated or monitored by InternetArchiveBot. No special action is required regarding these talk page notices, other than regular verification using the archive tool instructions below. Editors have permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see the RfC before doing mass systematic removals. This message is updated dynamically through the template {{source check}} (last update: 5 June 2024).

  • If you have discovered URLs which were erroneously considered dead by the bot, you can report them with this tool.
  • If you found an error with any archives or the URLs themselves, you can fix them with this tool.

Cheers.—InternetArchiveBot (Report bug) 01:47, 1 February 2018 (UTC)[reply]

Missing Criticism section

There is no criticism of such a practice, because code minification can lead to bugs related to syntax errors, resulting in application hangs and crashes. -Mardus /talk 17:18, 8 November 2019 (UTC)[reply]

Json Minify Full Guideline – Easy For You

Hi guys, in this article, I will talk about json minify full guidelines; if you have any queries about json minify so, I will resolve your problem must read the complete article.

What is Json Minify

JSON minify refers to the process of removing unnecessary whitespace and other characters from a JSON data structure.

This can make the data structure more compact, which can make it easier to transmit over a network or to store in a file. JSON minify is often used to reduce the size of a JSON data structure, which can improve its performance and reduce its storage requirements.

To minify JSON, you can use a tool that is specifically designed for this purpose. These tools can remove extra whitespace, comments, and other unnecessary characters from a JSON data structure. Some popular tools for JSON minification include JSON Minify, JSON Compactor, and JSONLint.

To use a JSON minification tool, you typically need to specify the JSON data structure that you want to minify, and the tool will output the minified version of the data structure.

Some tools may also allow you to specify options for the minification process, such as which characters to remove and whether to preserve certain formatting elements.

It's important to note that JSON minification is not the same as JSON parsing. JSON parsing refers to the process of converting a JSON data structure into a more usable format, such as a JavaScript object or an array.

JSON minification, on the other hand, simply removes unnecessary characters from a JSON data structure without changing its structure or data.

Json Formatter

JSON Formatter is a tool that allows you to easily format and indent JSON data structures. This can make it easier to read and understand JSON data, which can be useful for debugging and development purposes.

JSON Formatter typically works by taking a JSON data structure as input, and then automatically adding indentation and other formatting elements to make the data structure easier to read.

Some JSON Formatters may also allow you to customize the formatting options, such as the level of indentation and whether to include line breaks or other whitespace characters.

To use a JSON Formatter, you typically need to provide the JSON data structure that you want to format. The tool will then automatically apply the appropriate formatting, and will output the formatted JSON data structure. Some JSON Formatters may also provide additional features, such as the ability to validate JSON data or to convert JSON data into other formats.

Overall, JSON Formatter is a useful tool for anyone who works with JSON data structures. By providing an easy way to format and indent JSON data, JSON Formatter can make it easier to read and understand complex data structures, which can help with debugging and development efforts.

Minify Json Online

Minify JSON online refers to the process of using a web-based tool to remove unnecessary whitespace and other characters from a JSON data structure.

This can make the data structure more compact, which can improve its performance and reduce its storage requirements.

To minify JSON online, you can use a tool that is specifically designed for this purpose. These tools are typically accessed through a web browser, and can be used to minify JSON data structures without the need to install any software on your computer. Some popular tools for minifying JSON online include JSON Minify, JSON Compactor, and JSONLint.

To use an online JSON minification tool, you typically need to provide the JSON data structure that you want to minify, and the tool will output the minified version of the data structure.

Some tools may also allow you to specify options for the minification process, such as which characters to remove and whether to preserve certain formatting elements.

Overall, minifying JSON online can be a convenient and effective way to reduce the size of a JSON data structure.

By using a web-based tool, you can easily minify JSON data without the need to install any software on your computer. This can make it easier to optimize the performance and storage requirements of your JSON data.

Json Methods

JSON (JavaScript Object Notation) is a data format that is used to represent and exchange data. JSON data is structured as a collection of key-value pairs, with the keys representing the names of the data elements and the values representing the data itself.

JSON provides several methods for working with data. These methods include:

parse(): This method is used to convert a JSON data structure into a JavaScript object or array. This allows you to access and manipulate the data in the JSON data structure using standard JavaScript syntax.

stringify(): This method is the opposite of parse(). It is used to convert a JavaScript object or array into a JSON data structure. This allows you to create JSON data structures from existing JavaScript data.

toJSON(): This method is used to convert an object into a JSON data structure. This method is commonly used with JavaScript classes to convert an instance of the class into a JSON data structure.

fromJSON(): This method is the opposite of toJSON(). It is used to convert a JSON data structure into an object. This method is commonly used with JavaScript classes to create an instance of the class from a JSON data structure.

Overall, JSON provides a set of useful methods for working with data. These methods allow you to convert between JSON data structures and JavaScript objects, which can be useful for data storage, transmission, and manipulation.

Json Example

Here is an example of a JSON object:

{

  "name": "John Doe",

  "age": 42,

  "email": "johndoe@example.com"

}

This JSON object contains three key-value pairs, where the keys are "name", "age", and "email" and the values are "John Doe", 42, and "johndoe@example.com", respectively. The keys and values are separated by a colon, and each key-value pair is separated by a comma. The entire object is enclosed in curly braces.

Json Array

Here is an example of a JSON array:

[

  {

     "name": "John Doe",

     "age": 42,

    "email": "johndoe@example.com"

  },

  {

    "name": "Jane Doe",

     "age": 38,

    "email": "janedoe@example.com"

  }

]

This JSON array contains two objects, each of which has the same three keys as the object in the previous example. The entire array is enclosed in square brackets. Each object in the array is separated by a comma. WaylonEaston21 (talk) 14:25, 14 December 2022 (UTC)[reply]