head first java programming phần 1 pptx

45 572 0
head first java programming phần 1 pptx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... in Codeville 11 4 Find the highest score in the results file 11 5 Iterate through the file with the open, for, close pattern 11 6 The file contains more than numbers 12 0 Split each line as you read it 12 1 The split() method cuts the string 12 2 But you need more than one top score 12 7 An ordered list makes code much simpler Hey, dude, it’s Chapter 4 time for a break - let’s catch some waves 12 6 Keeping... code more complex 12 8 Sorting is easier in memory 12 9 You can’t use a separate variable for each line of data 13 0 An array lets you manage a whole train of data 13 1 Python gives you arrays with lists 13 2 Sort the array before displaying the results 13 6 Sort the scores from highest to lowest 13 9 And the winner is ? 14 2 You somehow forgot the surfer names 14 3 Your Programming Toolbox 14 4 xiii table of... advantage of modular programming techniques to keep their workload manageable Head First Health Club is upgrading some systems 17 8 The program needs to create a transaction file 17 9 Use strings to format strings 18 0 The Format String Exposed 18 6 A late night email ruins your day 18 7 $50,000 for a donut?! 18 8 Only the sales from your program were rejected 18 9 The new bank uses a new format 19 0 Your coffee... everexpanding programming skills to some cool data-processing tasks Who won the surfing contest? 14 6 Associate the name with the score 15 0 Associate a key with a value using a hash 15 3 Iterate hash data with for 15 4 The data isn’t sorted 15 8 When data gets complex 16 0 Return a data structure from a function 16 8 Meanwhile, down at the studio 16 9 The code remains the same; it’s the function that changes 17 0 TVN’s... 10 4 When you call a function, the computer creates a fresh list of variables 10 5 When you leave a function, its variables get thrown away 10 6 Starbuzz is fully stocked! 11 0 Your Programming Toolbox xii 10 2 The rest of the program can’t see the password variable 11 1 table of contents 4 data files and arrays Sort it out As your programs develop, so do your data handling needs. And when you have lots... old format 19 1 Don’t just update your copy 19 2 So how do you create a module ? 19 3 The transaction file is working great, too 19 9 The health club has a new requirement 200 The Starbuzz code 205 The two discount functions have the same name 206 Fully Qualified Names (FQNs) prevent your programs from getting confused 207 The discounts get the customers flooding in 213 Your Programming Toolbox 214 xv table... the first time through, you need to begin at the beginning, because the book makes assumptions about what you’ve already seen and learned This is not Head First Python We use release 3 of the Python programming language throughout this book, but this fact alone does not make this book Head First Python We chose Python because it’s a great programming language to start with and it’s also a great programming. .. programmer? Programming lets you do more 2 So how do you run your code? 5 Create a new program file 12 Codeville: Your program is like a network of roads 13 Branches are code intersections 14 if/else branches 15 The Python code needs interconnecting paths 20 Python uses indents to connect paths 21 Loops let you run the same piece of code over and over again 28 Python’s while loop 29 Your Programming. .. next #1: Doing things “The Python Way” 386 #2: Using Python 2 387 #3: Other programming languages 388 #4: Automated testing techniques 389 #5: Debugging 390 #6: Command-line execution 3 91 #7: Ooops we could’ve covered more OOP 392 #8: Algorithms 393 #9: Advanced programming topics 394 #10 : Other IDEs, shells and text editors 395 xxi how to use this book Intro I can’t believe they put that in a programming. .. structure from a function 16 8 Meanwhile, down at the studio 16 9 The code remains the same; it’s the function that changes 17 0 TVN’s data is on the money! 17 4 Your Programming Toolbox xiv 16 4 Here’s your new board! 17 5 table of contents 6 modular programming Keeping things straight The code that you write will make its way into many programs. And, although sharing is good, you need to be careful One . XHTML Head First Design Patterns Head First Data Analysis Head First Servlets and JSP Head First EJB Head First PMP Head First SQL Head First Software Development Head First JavaScript Head First. Development Head First JavaScript Head First Ajax Head First Physics Head First Statistics Head First Rails Head First PHP & MySQL Head First Algebra Head First Web Design Beijing • Cambridge • Farnham. O’Reilly Learning Python Programming Python Python Cookbook Other books in O’Reilly’s Head First series Head First Java TM Head First Object-Oriented Analysis and Design (OOA&D) Head First HTML with

Ngày đăng: 12/08/2014, 19:20

Từ khóa liên quan

Mục lục

  • Head First Programming

    • Table of Contents

    • Intro

    • Chapter 1. Starting to Code

Tài liệu cùng người dùng

Tài liệu liên quan