ArticleslgStudy

computer science

Class browser

Class browser is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Class browser rather than just read about it. In short: A class browser is a feature of an integrated development environment (IDE) that allows the programmer to browse, navigate, or visualize the structure of object-oriented programming code. History Most modern class browsers owe their origins to Smalltalk, one of the earliest object-oriented languages and development environments.

Class browser — main illustration
Class browser — illustration

Key takeaways

  • Class browser belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Class browser to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Class browser from memory before moving on to harder problems.

Reference excerpt

A class browser is a feature of an integrated development environment (IDE) that allows the programmer to browse, navigate, or visualize the structure of object-oriented programming code.

History Most modern class browsers owe their origins to Smalltalk, one of the earliest object-oriented languages and development environments. The typical Smalltalk "five-pane" browser is a series of horizontally-abutting selection panes positioned above an editing pane, the selection panes allow the user to specify first a category and then a class, and further to refine the selection to indicate a specific class- or instance-method the implementation of which is presented in the editing pane for inspection or modification. Most succeeding object-oriented languages differed from Smalltalk in that they were compiled and executed in a discrete runtime environment, rather than being dynamically integrated into a monolithic system like the early Smalltalk environments. Nevertheless, the concept of a table-like or graphic browser to navigate a class hierarchy caught on. With the popularity of C++ starting in the late-1980s, modern IDEs added class browsers, at first to simply navigate class hierarchies, and later to aid in the creation of new classes. With the introduction of Java in the mid-1990s class browsers became an expected part of any graphic development environment.

In modern IDEs All major development environments supply some manner of class browser, including

Apple Xcode for macOS Cincom Smalltalk CodeWarrior for Microsoft Windows, classic Mac OS, and embedded systems Dolphin Smalltalk Eclipse Embarcadero Delphi Embarcadero JBuilder IBM WebSphere IntelliJ IDEA KDevelop Microsoft Visual Studio NetBeans Pharo Smalltalk RStudio Red Gate .NET Reflector Smalltalk MT Squeak Smalltalk Step Ahead Javelin [1] Strongtalk Visual Prolog Visual Smalltalk Enterprise Zeus for Windows IDE [2] Modern class browsers fall into three general categories: the columnar browsers, the outline browsers, and the diagram browsers.

Columnar browsers Continuing the Smalltalk tradition, columnar browsers display the class hierarchy from left to right in a series of columns. Often the rightmost column is reserved for the instance methods or variables of the leaf class.

Outline browsers Systems with roots in Microsoft Windows tend to use an outline-form browser, often with colorful (if cryptic) icons to denote classes and their attributes.

Diagram browsers In the early years of the 21st century class browsers began to morph into modeling tools, where programmers could not only visualize their class hierarchy as a diagram, but also add classes to their code by adding them to the diagram. Most of these visualization systems have been based on some form of the Unified Modeling Language (UML).

Refactoring class browsers As development environments add refactoring features, many of these features have been implemented in the class browser as well as in text editors. A refactoring browser can allow a programmer to move an instance variable from one class to another simply by dragging it in the graphic user interface, or to combine or separate classes using mouse gestures rather than a large number of text editor commands.

Logic browsers An early add-on for Digitalk Smalltalk was a logic browser for Prolog rules encapsulated as clauses within classes. More recent logic browsers have appeared as BackTalk and SOUL (Smalltalk Open Unification Language with LiCor, or library for code reasoning) for Squeak and VisualWorks Smalltalk. A logic browser provides an interface to Prolog implemented in Smalltalk (Lisp engines have often been implemented in Smalltalk). A comparable browser can be found in ILog rules and some OPS production systems. Visual Prolog and XPCE provide comparable rule browsing. In the case of SOUL, VisualWorks is provided with both a query browser and a clause browser; Backtalk provides a constraints browser. The comments of Alan Kay on the parallel of Smalltalk and Prolog emerged in the same timeframe but with very little cross-fertilization. The interest in XSB prolog for XUL and the migration of AMZI! prolog to the Eclipse IDE are current paths in logic browser evolution. Rules encapsulated in classes can be found in Logtalk and several OOP Prolog variants such as LPA Prolog, Visual Prolog and AMZI! as well as mainstream SICStus.

Web-based versions One variant of the Seaside web framework in Smalltalk permits a class browser to be opened at runtime in the running web browser: an edit to a method then takes immediate effect in the running web application. In the case of Vistascript (Vista Smalltalk) for Microsoft IE7, a right-click on the background opens a ClassHierarchyBrowser. This is somewhat like editing JavaScript prototypes in a web browser or Ruby, Groovy or Jython classes in an IDE running in a JVM.

See also List of integrated development environments

References

External links The Source Navigator and sourcenav NG source code browser.

Illustrations

Class browser: Screenshot of Gedit with Python, LaTeX and Class Browser extensions, displaying Inkscape's lorem ipsum extension.
Screenshot of Gedit with Python, LaTeX and Class Browser extensions, displaying Inkscape's lorem ipsum extension.

Worked examples

Example 1 — a first encounter with Class browser

Start with the simplest possible case. Write down what Class browser claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Class browser before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Class browser ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Class browser

In research
Class browser appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Class browser in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Class browser is common in secondary-school and first-year university syllabi. It links to neighbouring topics Class (computer programming), Code navigation tools, so understanding it makes those chapters shorter.
In everyday life
Look for Class browser outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Class browser” →

How to study Class browser in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Class browser means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Class browser out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Class browser in simple terms?

A class browser is a feature of an integrated development environment (IDE) that allows the programmer to browse, navigate, or visualize the structure of object-oriented programming code. History Most modern class browsers owe their origins to Smalltalk, one of the earliest object-oriented language…

Why does Class browser matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Class browser?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Class browser.

Tags

  • Class (computer programming)
  • Code navigation tools

Keep exploring