Exercises for Programmers: 57 Challenges to Develop Your Coding Skills (Paperback)
暫譯: 程式設計師的練習:57 個挑戰提升你的程式碼技能 (平裝本)

Brian P. Hogan

買這商品的人也買了...

相關主題

商品描述

When you write software, you need to be at the top of your game. Great programmers practice to keep their skills sharp. Get sharp and stay sharp with more than fifty practice exercises rooted in real-world scenarios. If you're a new programmer, these challenges will help you learn what you need to break into the field, and if you're a seasoned pro, you can use these exercises to learn that hot new language for your next gig.

One of the best ways to learn a programming language is to use it to solve problems. That's what this book is all about. Instead of questions rooted in theory, this book presents problems you'll encounter in everyday software development. These problems are designed for people learning their first programming language, and they also provide a learning path for experienced developers to learn a new language quickly.

Start with simple input and output programs. Do some currency conversion and figure out how many months it takes to pay off a credit card. Calculate blood alcohol content and determine if it's safe to drive. Replace words in files and filter records, and use web services to display the weather, store data, and show how many people are in space right now. At the end you'll tackle a few larger programs that will help you bring everything together.

Each problem includes constraints and challenges to push you further, but it's up to you to come up with the solutions. And next year, when you want to learn a new programming language or style of programming (perhaps OOP vs. functional), you can work through this book again, using new approaches to solve familiar problems.

What You Need:

You need access to a computer, a programming language reference, and the programming language you want to use.

商品描述(中文翻譯)

當你編寫軟體時,你需要保持最佳狀態。優秀的程式設計師會不斷練習以保持技能的敏銳。透過超過五十個根植於真實情境的練習題,讓自己變得敏銳並持續保持敏銳。如果你是新手程式設計師,這些挑戰將幫助你學習進入這個領域所需的知識;如果你是經驗豐富的專業人士,你可以利用這些練習來學習下一份工作所需的熱門新語言。

學習一種程式語言的最佳方法之一就是用它來解決問題。這本書正是圍繞這個主題而寫的。這本書提供的問題不是基於理論,而是你在日常軟體開發中會遇到的實際問題。這些問題是為學習第一種程式語言的人設計的,同時也為有經驗的開發者提供了一條快速學習新語言的學習路徑。

從簡單的輸入和輸出程式開始。進行一些貨幣轉換,計算償還信用卡需要多少個月。計算血液酒精濃度並判斷是否安全駕駛。替換檔案中的單詞和過濾記錄,並使用網路服務顯示天氣、儲存數據,以及顯示目前在太空中的人數。最後,你將挑戰幾個較大的程式,幫助你將所有內容整合在一起。

每個問題都包含約束條件和挑戰,以推動你更進一步,但解決方案則取決於你自己。明年,當你想學習一種新的程式語言或程式設計風格(例如物件導向程式設計 vs. 函數式程式設計)時,你可以再次閱讀這本書,使用新的方法來解決熟悉的問題。

你需要的:

你需要一台電腦、一份程式語言參考資料,以及你想使用的程式語言。