JavaScript

Search documents
2025 年 08 月编程语言排行榜|Python 在 AI 编程助手加持下,一路狂飙!
菜鸟教程· 2025-08-11 00:29
Core Viewpoint - The TIOBE Index for August 2025 highlights that AI programming assistants have significantly boosted Python's popularity, achieving its highest ranking ever in the index [1][3]. Group 1: Python's Dominance - Python has reached a historical peak in the TIOBE Index, with a rating of 26.14%, far ahead of its competitors [18][23]. - The gap between Python and the second-ranked C++ is nearly 17%, indicating a substantial lead [17]. - The rise of AI tools like Microsoft Copilot and Google Gemini Code Assist has improved coding efficiency by approximately 20% when using popular programming languages [5][9]. Group 2: Competitors and Trends - The top six programming languages in the TIOBE Index are dominated by Python, C++, C, Java, C, and JavaScript, showcasing a "stronger gets stronger" phenomenon [9][22]. - Other languages such as Go, Perl, Delphi, and Fortran are engaged in a competitive struggle for rankings, with Perl making significant progress this year [10][23]. - Legacy languages like Visual Basic, SQL, and Ada continue to maintain relevance in specific domains, despite their declining popularity [14][13]. Group 3: Historical Context and Future Outlook - Python's historical ranking has improved significantly over the years, moving from 7th place in 2015 to 1st in 2025 [29]. - The article speculates on the potential for Python to dominate the programming landscape further if it overcomes its performance limitations [20][19]. - The TIOBE Index serves as a reflection of current trends in programming languages, influenced by the number of engineers, courses, and third-party vendors [30][31].
2025 年 07 月编程语言排行榜|主流编程语言内卷升级,安全系“黑马” Ada 正在逆袭?
菜鸟教程· 2025-07-11 02:31
Core Insights - The TIOBE Index for July 2025 reveals that Python, C, C++, Java, C, JavaScript, and Go have maintained their positions in the top seven programming languages for three consecutive years, forming a strong "first camp" [1][4] - The competition for the 8th to 12th positions is fierce among older languages like Visual Basic, SQL, Fortran, Ada, Perl, and Delphi, showcasing a "twilight of the gods" in the programming world [1][3] - Despite the emergence of newer languages like Rust, Kotlin, Dart, and Julia, they have not yet broken into the top ten due to the resilience of established languages [4][5] Rankings and Market Share - Python's market share has surged to 26.98%, significantly widening the gap with the second-ranked C++ at 9.80%, marking a dramatic lead [7][10] - The top ten programming languages in July 2025 are: Python, C++, C, Java, C, JavaScript, Go, Visual Basic, Ada, and Delphi/Object Pascal [14][16] Language Characteristics and Trends - Python is recognized for its ease of use and active community, despite criticisms regarding its performance speed [11][12] - Older languages like Visual Basic and SQL maintain relevance due to their roles in enterprise legacy systems and database foundations, respectively [5][4] - Ada is experiencing a resurgence in high-security applications, while Fortran remains entrenched in scientific computing [5][4] Historical Context - The TIOBE Index is updated monthly and reflects trends in programming languages based on the number of engineers, courses, and third-party vendors, providing insights into the current landscape of programming languages [20]
2 万程序员签名!Node.js 之父炮轰 Oracle,这事对行业有重大影响。网友直呼:它就是寄生虫
程序员的那些事· 2025-06-29 11:31
Core Viewpoint - The ongoing legal battle between Ryan Dahl, the creator of Node.js, and Oracle over the JavaScript trademark centers on the claims of generic use and abandonment of the trademark by Oracle, which has not actively used it in product development for years [5][28]. Group 1: Latest Developments - On June 18, the Trademark Trial and Appeal Board (TTAB) dismissed the fraud claims against Oracle, which alleged that Oracle misled the USPTO by using Node.js website screenshots to prove the use of the JavaScript trademark [3][4]. - The focus of the case is now on the more critical claims of genericity and abandonment, with a deadline for Oracle to respond to the trademark cancellation application set for August 7 [5][7]. - As of the writing, over 20,455 individuals have supported the stance that JavaScript is not Oracle's product, highlighting the public interest in the case [8]. Group 2: Background of the Trademark Dispute - The trademark dispute traces back to 1995 when Sun Microsystems registered the JavaScript trademark during its collaboration with Netscape [14]. - Oracle acquired the trademark in 2009 through its purchase of Sun but has not utilized it in any significant product development, leading to claims of abandonment [15][18]. - In November 2024, Deno Land, founded by Ryan Dahl, filed a petition with the USPTO to revoke Oracle's ownership of the JavaScript trademark, citing generic use and lack of actual use over the past 15 years [12][22]. Group 3: Industry Impact and Underlying Issues - The trademark restrictions have led to confusion in the industry, with developers often using ECMAScript as the official name instead of JavaScript, which has hindered community events and led to legal threats from Oracle [25]. - Oracle's insistence on retaining the trademark is viewed as a legal deterrent, reflecting its historical approach to trademark enforcement, as seen in its lengthy litigation against Google over the Java trademark [26]. - The case represents a broader struggle between the open-source community and corporate control over technology, with Dahl asserting that JavaScript should be considered a public good rather than a corporate asset [27][29].
2025 年 06 月编程语言排行榜|SQL 的未来在哪?SQL 算不算编程语言?
菜鸟教程· 2025-06-11 01:41
Core Viewpoint - The TIOBE programming language ranking for June 2025 indicates a decline in SQL's popularity, dropping to 12th place, marking its historical low, while Python continues to dominate the rankings with a significant lead over other languages [2][20]. SQL's Historical Context - SQL reached its peak ranking at 6th place in October 2003 but was removed from the TIOBE index from 2004 to 2018 due to debates about its classification as a programming language [5]. - SQL was reintroduced to the rankings in 2018, benefiting from its stronghold in the database domain, and returned to the top ten [5]. SQL's Applications - SQL is integral to various sectors, including banking, e-commerce, healthcare, and education, where it manages vast amounts of structured data [7]. SQL Database Overview - A list of common SQL databases includes MySQL, PostgreSQL, SQLite, MariaDB, Oracle, SQL Server, and IBM Db2, with most being open-source [9]. Rise of NoSQL - The emergence of NoSQL databases poses a significant threat to SQL, as NoSQL is designed to handle unstructured data and offers greater flexibility, making it suitable for rapidly changing requirements [10][12]. - NoSQL databases, such as MongoDB and Redis, are increasingly favored for their ability to manage big data and high concurrency scenarios [13][16]. Programming Language Rankings - As of June 2025, the top programming languages are Python, C++, C, Java, C, JavaScript, Go, Visual Basic, Delphi/Object Pascal, and Fortran, with Python holding a commanding lead at 25.87% [20][22]. - SQL's ranking has dropped significantly, now positioned at 12th place, reflecting a shift in developer preferences towards more flexible programming languages [26]. Historical Trends - The TIOBE index tracks the popularity of programming languages based on various metrics, including search engine queries and community engagement, providing insights into industry trends [29].
零JS,他用4.6万行HTML+CSS手搓了个《我的世界》,程序员哭诉:网友把服务器玩爆了
3 6 Ke· 2025-05-28 12:14
Core Concept - A developer named Benjamin Aster created a clone of Minecraft using only HTML and CSS, without any JavaScript, showcasing the potential of these technologies in building interactive web applications [1][3][17]. Project Overview - The project consists of 480 lines of CSS and 46,022 lines of HTML, resulting in a 3D world where users can add and remove blocks and rotate the view [3][4][17]. - The game allows interaction within a 9x9x9 grid, featuring 7 different types of blocks [3][6]. Technical Implementation - The project utilizes 35,001 `<label>` tags and 5,840 `<input type="radio">` buttons to manage the state of the blocks, with each block having six sides represented by labels [6][7]. - The `:has()` selector in CSS is a key technique that enables the interaction logic, allowing for dynamic visibility of block types based on user selection [6][13]. - To generate the extensive HTML structure, Aster employed Pug, a templating language, which simplifies the creation of nested elements [6][7]. Animation and Interaction - CSS animations are used to control the 3D view and rotation, with specific rules defined for button interactions that trigger animations [9][12]. - The design allows for a seamless user experience, where pressing and holding buttons initiates animations that manipulate 3D transformation properties [12]. Community Response - The project gained significant attention on Hacker News, with users expressing admiration for the innovative use of CSS and the creativity behind the implementation [13][14]. - Aster noted that the project was originally an experimental work from three years ago, aimed at exploring the limits of pure CSS [14][17]. Access and Experience - Users can experience the project through a dedicated website, which has seen increased traffic, leading Aster to switch hosting services to accommodate the demand [14][15]. - For optimal performance, it is recommended to access the project using desktop browsers, particularly those based on Chromium or Firefox [15].
2025 年 05 月编程语言排行榜|Python 统治了世界,其他编程语言都是弟弟
菜鸟教程· 2025-05-12 08:32
Core Viewpoint - The TIOBE Index for May 2025 highlights Python's dominance in the programming language landscape, achieving a market share of 25.35%, a significant increase of 2.2% from the previous month, marking a rare and substantial lead over its closest competitor, C++ [1][3]. Programming Language Rankings - The top programming languages in May 2025 are as follows: 1. Python: 25.35% (+9.02%) 2. C++: 9.94% (+0.41%) 3. C: 9.71% (-0.27%) 4. Java: 9.31% (+0.62%) 5. C: 4.22% (-2.27%) 6. JavaScript: 3.68% (+0.66%) [2][24]. Python's Market Position - Python's market share surpasses C++ by over 15%, showcasing a dominant position that is uncommon in the programming language rankings [3]. - The historical context indicates that only Java in 2001 had a higher market share than Python currently does [1]. Limitations of Python - Despite its popularity, Python has two main limitations: 1. Performance issues due to being an interpreted language, which inherently runs slower [6]. 2. Higher frequency of runtime errors, as many bugs are only discovered during execution [6][4]. - Critical applications, such as aerospace control systems, still rely on languages like C++ and Java due to these limitations [5][4]. Factors Contributing to Python's Popularity - Python's simplicity and ease of learning have made it the preferred language for many entering the programming field, especially as the demand for programming talent grows amid digital transformation [11]. - The language's extensive ecosystem, including libraries like NumPy, Pandas, TensorFlow, and PyTorch, has further solidified its position in various domains [12][13]. Application Areas of Python - Python is widely used in several fields: - Data analysis: 50% of respondents use Python for this purpose [16]. - Web development: 49% [16]. - DevOps and automation: 35% [16]. - Machine learning: 31% [16]. - Educational purposes: 28% [16]. - Software testing: 26% [16]. - The language is also utilized in scientific computing, numerical simulations, and web development frameworks like Django and Flask [22].
不同程序员的老婆生了娃,他们的代码长啥样?笑死!
菜鸟教程· 2025-05-05 10:49
Core Viewpoint - The article humorously illustrates how different programming languages would approach the creation of a newborn baby, showcasing the unique characteristics and quirks of each language's syntax and style [1][3][6]. Group 1: Python - The Python version emphasizes precision, capturing the birth time down to the millisecond, reflecting the meticulous nature of a programmer [1]. - It includes a welcoming function for the newborn, demonstrating object-oriented programming principles [3]. Group 2: Java - The Java implementation is characterized by a heavy use of getter methods, highlighting the verbosity often associated with Java code [5]. - It also includes a welcoming message, similar to the Python version, showcasing the commonality of this feature across languages [3]. Group 3: JavaScript - The JavaScript version introduces randomness in determining the baby's gender, adding a playful element to the code [6]. - It also includes a whimsical welcome function, reflecting the dynamic nature of JavaScript [6]. Group 4: C++ - The C++ version focuses on memory management, with the newborn being allocated on the stack to prevent memory leaks, showcasing the language's emphasis on performance [8]. Group 5: Go - The Go implementation is noted for its strict struct alignment, reflecting the language's focus on simplicity and clarity [10]. Group 6: PHP - The PHP version uses an array to represent the newborn, indicating a more flexible and less structured approach compared to other languages [10]. - It features an anonymous function for the welcome message, which is a common practice in PHP [10]. Group 7: Bash - The Bash script version humorously suggests that the newborn will likely become an operations and maintenance professional, reflecting the practical use of shell scripting [11]. Group 8: HTML - The HTML representation of the newborn suggests a static structure, with a recommendation to add animations, indicating a focus on front-end design [15]. Group 9: C - The C version uses the var keyword, indicating a more modern and flexible approach to variable declaration, typical of C developers [15].