JQuery finding your way through scattered code

22 255 0
JQuery finding your way through scattered code

Đ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

1 Software Practices Lab. The University of British Columbia JQuery: Finding your way through scattered code Andrew Eisenberg, Doug Janzen, Kris De Volder, Ryan Wannop Software Practices Lab. The University of British Columbia 2 Software Practices Lab. The University of British Columbia Typical ways to explore scattered concerns: Browse structural views - package structures, inheritance hierarchy Search for a specific pattern - regular expressions Follow relationships - calls, instantiates, references JQuery: Motivation Most modern IDEs can help with all of this, but… 3 Software Practices Lab. The University of British Columbia JQuery: Motivation Explosion of browsers Package Explorer Search Call Hierarchy Inheritance Hierarchy Browsers are too specific Poor use of screen Real- Estate Exploration itself is scattered and tangled 4 Software Practices Lab. The University of British Columbia JQuery: How it works Avoiding loss of context: Problem: Too many browsers leads to loss of context. Solution: Support many views within a single tool. Choose New Browser Start with Package Browser 5 Software Practices Lab. The University of British Columbia JQuery: How it works Abstract Class Browser Both views in same window Package Browser Bundled with many more browsers 6 Software Practices Lab. The University of British Columbia JQuery: How it works Incrementally perform the exploration by extending each view with a sub-view 1. Select extension point 7 Software Practices Lab. The University of British Columbia JQuery: How it works Incrementally perform the exploration by extending views with a new extensions 1. Select extension point 2. Choose sub- query 8 Software Practices Lab. The University of British Columbia JQuery: How it works Incrementally perform the exploration by extending views with a new extensions 1. Select extension point 2. Choose sub- query 3. Continue exploration Bundled with many more sub-browsers 9 Software Practices Lab. The University of British Columbia JQuery: How it works Filtering by regular expression Search for “Figure”: • Open query dialog • double-click 10 Software Practices Lab. The University of British Columbia JQuery: How it works Filtering by regular expression Search for “Figure”: • Open query dialog • Edit query [...]... Columbia drawFr JQuery: Versatile Code Navigator Browse Scattered Code 1 Browsing structural views 2 Searching for a specific pattern 3 Following relationships Current IDE’s: “explosion” of disconnected views loss of context disorientation JQuery: within a single navigation view retain context reduce disorientation Software Practices Lab The University of British Columbia JQuery: Customization JQuery can... Columbia JQuery: An Example Task: Make a enhancement to the JHotDraw codebase Nontrivial, but some details abstracted away Based on an actual task we performed with little prior knowledge of the codebase Software Practices Lab The University of British Columbia JQuery: The Plan Menu Change Pen Color ??? ??? Frame Rectangle No Frame Text Software Practices Lab The University of British Columbia JQuery: .. .JQuery: How it works Filtering by regular expression Search for “Figure”: • Open query dialog • Edit query • Close dialogue (query automatically reexecutes) Software Practices Lab The University of British Columbia JQuery: How it works Filtering by regular expression Browser is now filtered by “Figure” Can customize queries in many other ways too Software Practices Lab... files (in next release) See our website! Software Practices Lab The University of British Columbia JQuery: De-tangling searching Why use 4 browsers when you can use 1? Software Practices Lab The University of British Columbia Questions? Download JQuery (new release out soon): Google: Prevents tangled and scattered searches Reduces disorientation of complex exploration Maintains context Andrew Eisenberg:... Text Software Practices Lab The University of British Columbia JQuery: Executing the Plan creates createColorMenu Draw Application calls createAttrMenu Change Attribute execute Command Determined that Pen Color sets Menu FrameColor Attribute ??? ??? Frame Rectangle No Frame Text Software Practices Lab The University of British Columbia JQuery: Executing the Plan creates createColorMenu Draw Application... setAttr getAttr drawFr Frame Rectangle implemented by setAttr Attribute Figure sidetrack to explore FigureAttributes calls No Frame Text Software Practices Lab The University of British Columbia dataflow JQuery: Executing the Plan creates createColorMenu Draw Application calls createAttrMenu Determined that Pen Color sets FrameColor Attribute Change Attribute execute Command Figure setAttr implemented . 1 Software Practices Lab. The University of British Columbia JQuery: Finding your way through scattered code Andrew Eisenberg, Doug Janzen, Kris De Volder, Ryan Wannop Software. context disorientation JQuery: within a single navigation view retain context reduce disorientation Browse Scattered Code 20 Software Practices Lab. The University of British Columbia JQuery: Customization JQuery. Columbia JQuery: An Example Make a enhancement to the JHotDraw codebase. Non- trivial, but some details abstracted away. Based on an actual task we performed with little prior knowledge of the codebase. Task: 14 Software

Ngày đăng: 24/10/2014, 11:51

Từ khóa liên quan

Mục lục

  • JQuery: Finding your way through scattered code

  • JQuery: Motivation

  • Slide 3

  • JQuery: How it works

  • Slide 5

  • Slide 6

  • Slide 7

  • Slide 8

  • Slide 9

  • Slide 10

  • Slide 11

  • Slide 12

  • JQuery: An Example

  • JQuery: The Plan

  • JQuery: Executing the Plan

  • Slide 16

  • Slide 17

  • Slide 18

  • JQuery: Versatile Code Navigator

  • JQuery: Customization

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

  • Đang cập nhật ...

Tài liệu liên quan