Why Spring ???

本文是一次 spring 官網的 why spring 翻譯記錄(末尾有正經的彩蛋),試圖培養一下閱讀官方文檔的習慣。

不知這個場景你是否熟悉?

你丟了一個問題到 xx技術交流羣:請問大佬…怎麼解決?

某大佬高冷的丟出兩個字:看官方文檔。

此刻,除了感受到社會的”冷漠“,你有沒有思考過這樣一個問題。

你一般通過什麼途徑來學習的?通過視頻,博客?

你學的東西,原本的樣子是什麼?有沒有看過官方對它的解讀?萬一別人的解讀是錯誤的怎麼辦?

我一度沒有讀官網文檔的習慣(一般都以英文讀不懂爲接口),感覺是時候學習一下了。

最近打算重新瞭解一下這個又愛又恨的 Spring,從簡單的來,先看一下官網。

在官網首頁注意到了 why spring 欄目,行,就它了。

整個過程藉助翻譯工具翻譯,並記錄下來,混個臉熟,畢竟以後有更多的文檔要閱讀呢。

於是就有了本篇,希望這是個人學習的一個新起點,期待一些習慣的養成。

本文僅獻給使用 Spring 很久了,卻沒看過 Spring 官方資料的你(當然看過的大佬們也歡迎。。。)


進入正題,看官網怎麼說 Spring。

Spring.io

行文按照 why spring 內容從上到下,一段原文,一段翻譯進行。

Why Spring?

爲什麼是 Spring 呢?(這句看似簡單的發問透出了 Spring 無數的驕傲呀)

Spring makes programming Java quicker, easier, and safer for everybody. Spring’s focus on speed, simplicity, and productivity has made it the world’s most popular Java framework.

Spring 使每個人都可以更快、更簡單、更安全地進行 Java 編程。 Spring 對速度,簡單性和生產力的關注使其成爲世界上最受歡迎的 Java 框架。

“We use a lot of the tools that come with the Spring framework and reap the benefits of having a lot of the out of the box solutions, and not having to worry about writing a ton of additional code—so that really saves us some time and energy.”

– SEAN GRAHAM, APPLICATION TRANSFORMATION LEAD, DICK’S SPORTING GOODS

“我們使用了 Spring 框架隨附的許多工具,並獲得了許多現成的解決方案的好處,而不必擔心編寫大量額外的代碼-這樣確實爲我們節省了一些時間和能量。”

–某某大佬

Spring is everywhere

Spring 無處不在(先套近乎)

Spring’s flexible libraries are trusted by developers all over the world. Spring delivers delightful experiences to millions of end-users every day—whether that’s streaming TV, connected cars, online shopping, or countless other innovative solutions. Spring also has contributions from all the big names in tech, including Alibaba, Amazon, Google, Microsoft, and more.

Spring 靈活的庫受到全世界開發人員的信任。Spring 每天都爲數以百萬計的終端用戶提供令人愉快的體驗,無論是流媒體電視、聯網汽車、在線購物,還是其他無數的創新解決方案。包括阿里巴巴、亞馬遜、谷歌、微軟等在內的科技巨頭也爲 Spring 做出了貢獻。

Spring is flexible

Spring 是靈活的(胖子 🤣)

Spring’s flexible and comprehensive set of extensions and third-party libraries let developers build almost any application imaginable. At its core, Spring Framework’s Inversion of Control (IoC) and Dependency Injection (DI) features provide the foundation for a wide-ranging set of features and functionality. Whether you’re building secure, reactive, cloud-based microservices for the web, or complex streaming data flows for the enterprise, Spring has the tools to help.

Spring 靈活而全面的擴展集和第三方庫讓開發人員可以構建幾乎所有可以想象到的應用程序。在其核心,Spring 框架的控制反轉(IoC)和依賴注入(DI)特性爲廣泛的特性和功能集提供了基礎。無論您是在構建安全的、反應式的、基於雲的微服務 web 應用,還是爲企業構建複雜的流數據流,Spring 都有工具幫得上忙。

Spring is productive

Spring 就是生產力的象徵!(多吊)

Spring Boot transforms how you approach Java programming tasks, radically streamlining your experience. Spring Boot combines necessities such as an application context and an auto-configured, embedded web server to make microservice development a cinch. To go even faster, you can combine Spring Boot with Spring Cloud’s rich set of supporting libraries, servers, patterns, and templates, to safely deploy entire microservices-based architectures into the cloud, in record time.

Spring Boot 改變了您處理 Java 編程任務的方式,從根本上簡化了您的體驗。Spring Boot 將應用程序上下文和自動配置的嵌入式 web 服務器等必需品組合在一起,從而使微服務開發變得輕鬆。爲了更快,您可以將 Spring Boot 與 Spring Cloud 的豐富的支持庫、服務、模式和模板組合在一起,以在極短的時間內安全地將整個基於微服務的架構部署到雲中。

Spring is fast

Spring 就是快

Our engineers care deeply about performance. With Spring, you’ll notice fast startup, fast shutdown, and optimized execution, by default. Increasingly, Spring projects also support the reactive (nonblocking) programming model for even greater efficiency. Developer productivity is Spring’s superpower. Spring Boot helps developers build applications with ease and with far less toil than other competing paradigms. Embedded web servers, auto-configuration, and “fat jars” help you get started quickly, and innovations like LiveReload in Spring DevTools mean developers can iterate faster than ever before. You can even start a new Spring project in seconds, with the Spring Initializr at start.spring.io.

我們的工程師非常關注性能。使用 Spring,默認情況下,您會注意到快速啓動、快速關閉和優化的執行。其實漸漸的,Spring 項目也越來越支持響應式(非阻塞)編程模型,以獲得更高的效率。開發人員的生產力是 Spring 的超級能力。Spring Boot 幫助開發人員輕鬆地構建應用程序,而且比其他同類競品更簡單。嵌入式 web 服務器、自動配置和 fat jars 特性可以幫助您快速入門,Spring DevTools 中的 LiveReload 等創新意味着開發人員可以以前所未有的速度迭代開發。

Spring is secure

Spring 是安全的

Spring has a proven track record of dealing with security issues quickly and responsibly. The Spring committers work with security professionals to patch and test any reported vulnerabilities. Third-party dependencies are also monitored closely, and regular updates are issued to help keep your data and applications as safe as possible. In addition, Spring Security makes it easier for you to integrate with industry-standard security schemes and deliver trustworthy solutions that are secure by default.

Spring 在快速、負責地處理安全問題方面有良好的記錄。Spring 的 committers 與安全專業人員一起對任何報告的漏洞進行補丁和測試。第三方依賴也被密切關注,並定期發佈更新,以幫助您的數據和應用程序儘可能安全。此外,Spring Security 使您更容易與行業標準的安全方案集成,並默認提供安全可靠的解決方案。

Spring is supportive

Spring 是有支撐的(包你學習過程不孤單,頭大的不止你一個 😁 )

The Spring community is enormous, global, diverse, and spans folks of all ages and capabilities, from complete beginners to seasoned pros. No matter where you are on your journey, you can find the support and resources you need to get you to the next level: quickstarts, guides & tutorials, videos, meetups, support, or even formal training and certification.

Spring 社區是巨大的、全球性的、多樣化的,涵蓋了各個年齡和能力級別的人,從小白初學者到經驗豐富的專業人士。無論你處在其中哪個階段,你都可以找到你需要的支持和資源,讓你進入下一個層次:快速入門,指南和教程,視頻,聚會,支持,甚至正式的培訓和認證。

What can Spring do?

Spring 能幹啥呢?

  • Microservices

    Quickly deliver production‑grade features with independently evolvable microservices.

    通過可獨立開發的微服務快速交付生產級功能。

  • Reactive
    Spring’s asynchronous, nonblocking architecture means you can get more from your computing resources.

    Spring 的異步,非阻塞架構意味着您可以從計算資源中獲得更多收益。

  • Cloud
    Your code, any cloud—we’ve got you covered. Connect and scale your services, whatever your platform.

    您的代碼,任何雲-我們已爲您覆蓋。無論您使用什麼平臺,都可以連接並擴展您的服務(牛逼哄哄)。

  • Web Applications
    Frameworks for fast, secure, and responsive web applications connected to any data store.

    連接到任何數據存儲的快速,安全和響應式Web應用程序的框架。

  • Serverless
    The ultimate flexibility. Scale up on demand and scale to zero when there’s no demand.

    極致的靈活性。按需擴展並在沒有需求時擴展爲零。

  • Event Driven
    Integrate with your enterprise. React to business events. Act on your streaming data in realtime.

    與您的企業集成。對業務事件做出反應。實時處理您的流數據。

  • Batch
    Automated tasks. Offline processing of data at a time to suit you.

    自動化任務。一次適合您的離線數據處理。

不正經的彩蛋

why-spring

在 why spring 官方頁面的右上角注意到了這麼一張圖片,可以看到 Spring 周圍鏈接了各種線,寓意着 Spring 的勃勃野心,當然人家也做到了,確實在服務(侵入)到了各個領域。

不,這不是我要的彩蛋!

注意到沒?圖片裏又是飛機,又是汽車的,這不就是我們業界經常吐槽的寫照嘛:

面試造飛機,工作擰螺絲 ???

Spring 你夠了 !!! 😤

完結,撒花。

祝你學習 Spring 的過程,愉快而有趣(騙誰呢又)!

下回再見!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章