•   
  •   
  •   

Technology Microsoft: Python programming in Visual Studio Code is now faster and smarter than ever

17:34  14 may  2021
17:34  14 may  2021 Source:   techrepublic.com

Python programming: Our new tool can help clean up your buggy code, says AWS

  Python programming: Our new tool can help clean up your buggy code, says AWS Amazon Web Services will automatically catch Python coding bugs and quirks - for a monthly a fee.Developer working on computer at night

Microsoft has released the May 2021 update to the Python Extension for Visual Studio Code, which introduces Pylance as the default language server for Python alongside speedier start-up times and an auto-reload debugger for Python scripts.

an open laptop computer sitting on top of a table: Python in VS Code now includes Pylance support scyther5, Getty Images/iStockphoto © Provided by TechRepublic Python in VS Code now includes Pylance support scyther5, Getty Images/iStockphoto

Must-read developer content

  • 10 ways to prevent developer burnout (free PDF)
  • Developer career 101: How to stand out in the field of software development and engineering
  • Coding interviews suck. Can we make them better?
  • IBM reaffirms support for open-source devs after internal Linux kernel maintainer argument goes public
an open laptop computer sitting on top of a table: Python in VS Code now includes Pylance support © scyther5, Getty Images/iStockphoto

Python in VS Code now includes Pylance support

Low-code and no-code won't kill developer jobs, here's why

  Low-code and no-code won't kill developer jobs, here's why Developers are the Jedis of innovation. Low-code and no-code won't change that, but it will bring more people into the field of software development and help companies be more agile.Will the low-code and no-code movement result in fewer developer jobs? Or, will it actually encourage more people to become developers? In this episode of Dynamic Developer, we're going to talk with Marcus Torres, GM of IntegrationHub and VP of Platform Product with ServiceNow, about how the low-code and no-code movement is affecting the field of software development.

Pylance is Microsoft's language support extension for Python, providing smart suggestions and type information designed to help developers write code more quickly.

It's based on Microsoft's Pyright static type-checking tool for Python, which it released in 2019 to help developers quickly clean up and auto-complete code snippets.

Savannah Ostrowski, Microsoft's Program Manager of Pylance and Python in Visual Studio, said the upgraded support for Pylance within its Python extension – which is its most popular VS Code extension – "provides what we believe is the most performant and user-friendly Python editing experience for Visual Studio Code ever."

SEE: The best programming languages to learn--and the worst (TechRepublic Premium)

"Python strikes again": Top programming languages rankings features shake-ups

  In the next six months, TIOBE Software CEO speculates that Python could be coming for the top spot in the company's Programming Community index. So which language will fall?SEE: The best programming languages to learn--and the worst (TechRepublic Premium)

Ostrowski said Microsoft had been making enhancements to Python language support via the Pylance extension since it launched it last year. The company has also been working on making language support better for developers regardless of whether they're using Pylance or a different language server, and plans to concentrate on offering open-source language support options for users going forward.

"We've invested resources to standardize the way that language servers communicate with the Python extension (via Language Server Protocol)," said Ostrowski.

  • Microsoft is boosting its support for the Python programming ecosystem
  • Python programming language: These three new releases just arrived
  • Coding interviews suck. Can we make them better?
  • DevOps is getting code released faster than ever. But security is lagging behind

"This work has enabled us to further improve the performance and overall experience of other language servers, like the open-source Jedi language server."

Python programming language: These three new releases just arrived

  Python programming language: These three new releases just arrived Three new versions of the Python programming language have been released, including the first beta preview of Python 3.10.It what the Python release team called "a very busy day for releases", Monday, 3 May saw the release of Python 3.8.10, 3.9.5 and 3.10.0b1.

The May 2021 update also brings markedly improved stability and performance, including faster start-up time. The company is claiming a 10% faster boot time for Windows and macOS users, and up to 20% faster for Linux users, which Ostrowski credited to improvements in Microsoft's Python environments discovery mechanism. "We've also seen that it is decreasing the number of times the Python extension becomes unresponsive by 15% across the board," said Ostrowski.

SEE: C++ programming language: How it became the foundation for everything, and what's next (free PDF) (TechRepublic)

Meanwhile, a new debugger feature brings live reload for Python scripts, after previously only supporting Django and Flask. This means that changes to code will be applied even after the debugger hits a breakpoint, without having to reload the debugger for them to take effect.

Miscellaneous changes and improvements to Python in VS Code include:

  • A "Default" language server option that dynamically chooses which language server to use
  • Automatic indenting following `match` and `case` statemens.
  • Addition of a Python: Refresh TensorBoard command
  • Added compatability with pypy3.7 interpreter.

Users can download the Python extension here, or install it directly from the extension gallery in Visual Studio Code.

Programming languages: From Python to 500,000 lines of Go, how one organization is making a big switch

  Programming languages: From Python to 500,000 lines of Go, how one organization is making a big switch Go's performance compared to Python made it the winning programming language for a rewrite of the Kahn Academy's backend server.Developer working on desktop

Also see

  • Listen to TechRepublic's Dynamic Developer podcast (TechRepublic)
  • How to become a developer: A cheat sheet (TechRepublic)
  • 5 programming languages application solutions developers should learn (free PDF) (TechRepublic)
  • A guide to The Open Source Index and GitHub projects checklist (TechRepublic Premium)
  • Programming languages: Developers reveal most loved, most loathed, what pays best (ZDNet)
  • Programming languages and developer career resources (TechRepublic on Flipboard)

Apple's Swift programming language: Cheat sheet .
Apple's Swift has far-reaching effects on all platforms, not just iOS, OS X, watchOS and tvOS. Learn why Swift matters, how to use the programming language and how it differs from Objective-C.In 2010, Apple started developing Swift, a new programming language that would rival Objective-C in a few areas--specifically, type safety, security, and better on-hardware performance. Swift is more than 2.6x faster than Objective-C and more than 8.4x faster than Python. Swift 1.0 was released in September 2014.

usr: 0
This is interesting!