Exercises for Programmers: 57 Challenges to Develop Your Coding Skills (Paperback)

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. 函數式),你可以再次通過這本書,使用新的方法解決熟悉的問題。

你需要一台電腦、一本程式語言參考書以及你想要使用的程式語言。