1. Trang chủ
  2. » Công Nghệ Thông Tin

JQuery finding your way through scattered code

22 255 0

Đ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

Thông tin cơ bản

Định dạng
Số trang 22
Dung lượng 602,5 KB

Nội dung

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