A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by any one of the patent document or patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
The present disclosure relates to apparatuses and methods for programming a computing device.
Programming languages are increasing in complexity and functionality. The broad range of available computing devices, including desktop computers, laptop computers, personal digital assistants, cellular telephones, wireless email paging devices continuously spurs the need for even more sophisticated programming languages in order to utilize the functionality of those computing environments.
An integrated development environment (IDE), also known as an integrated design environment and an integrated debugging environment, can be helpful for computer programmers who are developing software for different computing devices. IDEs can simplify the task of programmers so that they need not understand all of the peculiar details of every computing device for which they are tasked with programming. An example of a known IDE is JSEclipse from Adobe Systems Romania, formerly known as InterAKT Bdul. Vasile Milea, nr 2H, et 1, ZIP 061344, Bucharest, Romania, based on Eclipse from the Eclipse Foundation, Inc. 102 Centrepointe Drive, Ottawa, Ontario, Canada, K2G 6B1. Another example is Microsoft Visual Studio from Microsoft Corporation of 205 108th Ave. NE, Suite 400, Bellevue, Wash. 98004. There are challenges associated with these IDEs.
An aspect of the disclosure provides an apparatus for programming a computing device including at least one central processing unit, a volatile storage unit and non-volatile storage unit interconnected by a bus. The apparatus may also include an input peripheral for receiving input from a user and connected to the at least one central processing unit. The apparatus may also include an output peripheral for generating output for presentation to a user and connected to the at least one central processing unit. The at least one processing unit is configured to execute a plurality of programming instructions implementing a source code editor coupled with a code development engine. The programming instructions further include an engine definition file readable by the code development engine. The engine definition file defines a plurality of tools for code development within the source code editor that correspond to a programming language used for developing software for the computing device.
The programming instructions can be implemented as part of an integrated development environment.
The tools can include a code completion tool. The tools can include a code correction tool. The tools can include a context-sensitive help tool.
The engine definition file can be based on the extended Markup Language (“XML”), or any other type of editable text file.
The programming language can be Java and the engine definition file can thus include Java development tools.
Another aspect of the disclosure provides a method of developing software for a computing device. The method may use an apparatus for programming a computing device. The apparatus includes at least one central processing unit, a volatile storage unit and non-volatile storage unit interconnected by a bus. The apparatus may also include an input peripheral for receiving input from a user and connected to the at least one central processing unit. The apparatus may also include an output peripheral for generating output for presentation to a user and connected to the at least one central processing unit. The method includes:
The input can be received via an editor.
The accessing can be performed by a development assistant engine.
The tool can be a code completion tool, a code correction tool, a context-sensitive help tool, or any other type tool.
The engine definition file can be based on the extended Markup Language. (“XML”)
The programming language can be Java and the engine definition file can include Java development tools.
Another aspect of the disclosure provides a method of modifying an integrated development engine (IDE). The method may use an apparatus for programming a computing device using the IDE. The method includes:
The tool can be a code completion tool, a code correction tool, a context-sensitive help tool.
The engine definition file is based on the extended Markup Language. (“XML”)
The programming language can be Java and the engine definition file can include Java development tools.
Another aspect of this disclosure provides a computer readable medium storing a plurality of programming instructions that can implement any of the foregoing methods.
Referring now to
Tower 54 houses at least one central processing unit, random access memory (or other volatile storage), read only memory and hard disc storage (or other non-volatile storage) all of which are interconnected by a bus. The computing environment of tower 54 renders tower 54 operable to execute IDE 70. IDE 70 executes on the central processing unit of tower 54, making appropriate and/or necessary use of other components within tower 54, and receiving instructions from developer D via keyboard 62 and generating responses for developer D on display 58.
Other types of input peripherals, in addition to or in lieu of keyboard 62 are contemplated. Likewise, other types of output peripherals, in addition to or in lieu of display 58 are contemplated.
Computing device 66 is a portable wireless email telephony device, but it should be understood that in other example embodiments computing device 66 can be any type of computing environment for which developer D may be called upon to develop software 74 using IDE 70. Software 74 can be any software object or software application or the like that executes on the computing environment device 66.
It should be understood that, overall, the environment of system 50, and the components therein, are examples and that other configurations are contemplated.
Referring now to
Source code 84, when based on a compiled language (e.g. C++), can be compiled to become software 74 for computing device 66. Source code 84, when based on an interpreted language (e.g. Java, JavaScript, VBScript) can be installed as software 74 on computing device 66, and then during run-time on device 66, software 74 will be interpreted according to a language interpreter on computing device 66. This step of compilation and/or installation is represented by the arrow indicated at 78 in
IDE 70 also includes a development assistant engine 88, which is configured to operate in conjunction with an editor 92, in order to develop source code 84. Developer D can utilize keyboard 62 and display 58 in order to manipulate editor 92 to develop source code 84. Development assistant engine 88 is configured to provide a number of development assistant tools to developer D as developer D uses editor 92. Example tools include, but are not limited to code completion, automatic code correction, and context-sensitive help.
Engine 88 itself includes an engine definition file 96 which defines the tools that are implemented by engine 88. Engine definition file 96 corresponds with the syntax and programming rules associated with language 80, while the remainder of engine 88 is not tied in any manner to language 80.
Engine definition file 96 is fully editable, and, in a present example embodiment, engine definition file 96 is based on the eXtended Markup Language (“XML”), but engine definition file 96 can also be simply a plain text file or based on any other type of markup language or the like. Engine definition file 96 can be a database file with entries that can be manipulated. In the present example embodiment, file 96 is an XML file used for ease of readability and manipulation. Engine definition file 96 can be implemented as a plurality of discrete sub-files rather than a single file.
An example engine definition file 96 is provided in Table I.
Engine definition file 96 working in conjunction with engine 88 implements the various development assistant tools. Those skilled in the art will recognize that Table I includes an example of at least a portion of an engine definition file 96 that includes content for a context-sensitive help tool wherein a text-bubble is provided adjacent to the text being entered by developer D. As per the example in Table I, assume that language 80 includes the command “While”, then engine 88 and definition file 96 can cooperate so that if the cursor in editor 92 is focused on the command “While”, then engine 88 would display in editor 92 a text-bubble that displays the comment “Utilized for Do-While loop structure. Syntax is ‘While (Condition)’. Correct syntax requires providing Condition which when true will cause looping, and when false will cause looping to cease”. The raw-data relationship that associates “While” with the previously-described example comment is maintained within definition file 96, while the logic to present this comment as a text bubble in association with “While” is embedded within engine 88. Engine 88 is configured to read file 96 to obtain the comment and its associated command, “While”, and implement logic within engine 88 to present the comment in association with the term “While” within editor 92. Thus, the aspects of the contents of comment that are specific to commands with language 80 are maintained within a separately editable engine definition file 96, without impacting engine 88.
Those skilled in the art will recognize that the code completion tool could include predictive text capabilities. For example, using the example engine definition file 96 in Table I, it is assumed that language 80 includes the command “While”. Thus, if developer D enters the text “Wh” into editor 92, then engine 88, working in conjunction with definition file 96 could predict that developer D was entering the command “While” and complete typing the remainder of the command so that developer D need not type the remaining letters of “ile” via keyboard 62. Engine 88 can examine file 96 and determine the presence of the “While” command and define a relationship that associates “Wh” with “While”,—thus the logic to complete “Wh” into “While” would be embedded within engine 88. Engine 88 is configured to read file 96 to obtain the keyword “While” and implement logic within engine 88 to actually perform code completion within editor 92. Thus, the command “While”, which is specific to language 80 is maintained within a separately editable engine definition file 96, without impacting the tool functionality in engine 88.
Those skilled in the art will recognize that an automatic code correction tool could include similar functionality to automatic spelling correction found in word processors. For example, again using the example engine definition file 96 in Table I, it is assumed that language 80 includes the command “While”, then if developer D enters the text “Whlie” into editor 92, then engine 88 would assume that developer D intended to enter the command “While” and would automatically change “Whlie” into “While”. Again, the definition of language 80 can thus be maintained in file 96, without impacting engine 88.
All of the tools can also work in conjunction with each other. Another example tool is a method and tips tool that provides information about a current method that is being worked on. Further tools that can be included within engine 88 will now occur to those skilled in the art.
Referring now to
To assist in further understanding system 50 and the understanding of method 300, method 300 will be explained in relation to its performance on system 50. Beginning at step 305, input is received at an editor. The input at step 305 is typically programming instructions that are received by editor 92, as those instructions are entered via keyboard 62, and simultaneously displayed on display 58 in accordance with the functionality of editor 92.
Next, at step 310, the development assistant engine accesses the input received at step 305. In system 50, the input that was received by editor 92 is now accessed by development assistant engine 88.
At step 315, the development engine accesses the engine definition file. In system 50, development assistant engine 88 will read the contents of engine definition file 96. In a presently example embodiment, development assistant engine 88 can load definition file 96 into random access memory for speed of execution and traversal of file 96.
At step 320, a determination is made as to whether any input received at step 305 matches any of the conditions of the engine definition file. Step 320 in a present example embodiment is performed by development assistant engine 88, which makes a comparison between any conditions that have been defined in engine definition file 96 with the input that was accessed by development assistant engine 88 at step 310. If a match is not found, then method 300 returns from step 320 back to step 305. However, if a match is found, then method 300 advances from step 320 to step 325, at which point a development assistant tool corresponding to the condition matched at step 320 is provided via editor 92 on display 58 to developer D.
Those skilled in the art will now recognize that the performance of step 325 can correspond with the above-described examples given in relation to the example engine definition file 96 Table I. For example, assuming that the input received at step 305 was “Wh”, then the code completion tool can be provided at step 325 to automatically type the complete command “While” within editor 92 and thereby obviate the need for developer D to finish typing the “ile”.
Note that, at this point, method 300 can cycle back from step 325 to step 305, and now detect the input “While” at step 305, such that during this cycle through method 300, at step 325 the context sensitive help tool can be provided at step 325 and thereby provide a text-bubble which displays the comment “Utilized for Do-While loop structure. Syntax is “While (Condition)”. Correct syntax requires providing Condition which when true will cause looping, and when false will cause looping to cease.”
Another example embodiment represents a method for modifying an IDE to correspond with a different or new computing device. This example embodiment will now be explained with reference to
Referring again to
An example engine definition file 96aM is provided in Table II
A comparison of Table II and Table I shows that Table II is substantially the same as Table I, except that new text identifying a new keyword has been added, namely, the keyword “until”. Additional context sensitive help has been added, namely, that if the text “Until” is detected then the following comment will be displayed: “Utilized for Do-Until loop structure. Syntax is “‘Until (Condition)’”. Correct syntax requires providing Condition which when true will cause looping, and when false will cause looping to cease.
Thus, once method 500 has been performed, developer D can immediately begin developing software for device 66aM, based on developer D's existing understanding of device 66, and without having to take any particular steps to learn about the functionality of device 66aM.
Thus, as manufacturers of devices such as 66 enhance, change or create new devices, those same manufacturers can simply provide a copy of language 80 that corresponds to the device, and likewise provide a copy of engine definition file 96 in text format, without having to provide a completely new IDE as well. Language 80 and engine definition file 96 are modular, and can be changed, without disrupting or requiring changes to, or recompilation of the IDE itself, or any of the other components therein. The foregoing can be useful when device 66 already relies on the essential substance of a well-known programming language that is already known to developer D, but includes various extensions to that programming language that are unique to the functionality of device 66 and yet which are unknown to developer D. Likewise, developer D can continue to use the same IDE environment with which the developer D is already familiar for any new devices 66 with which that developer D is not already familiar.
It should also be understood that method 500 can be modified to simply create a new definition file for any new programming languages that may be developed.
The foregoing provides certain example embodiments, but it should be understood that variations, subsets, and combinations of those example embodiments are contemplated. For example, it should be understood that the Engine Definition Files in Table I and Table II are greatly simplified in order to assist in explaining the teachings herein. Appendix I attached hereto shows a more detailed, yet still example, engine definition file 96 in the form of two files, MDScript.xml and Library.xml, which collectively can include engine definition file 96. Appendix II, attached hereto, shows a detailed example of text that can be added to engine definition file 96, such that collectively Appendix I and Appendix II can represent engine definition file 96aM.
The teachings herein can also be incorporated with one or more of the teachings of WO-2004-59938, WO-2004-59957, WO-2004-59939, and U.S. application Ser. No. 11/078,331, the contents of each of which are incorporated herein by reference. Indeed,
More specifically, system 50b also includes a data repository 100b onto which software 74b can be stored for eventual execution on device 66b using a runtime environment 104b on device 66b. Indeed, system 50b is configured for software 74b where software 74b is based on an interpreted language 80b, such as JavaScript or the like. Thus, runtime environment 104b is an application on device 66b that corresponds to language 80b—which is of course the same language 80b that is used by IDE 70b used to create software 74b. Runtime environment 104b also, of course, corresponds to programming language 80b.
System 50b thus also includes an application gateway 108b that is connected to repository 100b. In turn, application gateway 108b is connected to a wireless base station 104b, which permits device 66b to communicate with application gateway 108b via wireless link 112b. (Other infrastructures, however, that permit device 66b to communicate with application gateway 108b are contemplated). Application gateway 108b is also connected to a wide area network, which in the present example embodiment is the Internet 116b. Internet 116b, in turn, is connected to an application server 120b. Application server 120b can host any type of service 124b, such as a web-page, am application, or any other type of service that a user of device 66b may wish to access using software 74b via Internet 116b.
Example operation of system 50b is shown in
It is to be reiterated that software 74b and service 124b can be virtually unlimited in scope and thus that system 50b represents a generic architecture. A specific example can assist, however, in understanding the full potential scope of system 50b. Service 124b can include mapping information, while software 74b can be mapping software. Thus, should a user of device 66b wish to view the mapping information associated with service 124b, then the mapping software 74b needed to view the maps can be executed in runtime environment 104b and then service 124b can be accessed. One advantage of this example embodiment is that developer D can create different mapping software respective to different devices, and yet each of those devices can access the same service 124b, without modifying service 124b and/or having to cause 124b to be specifically tailored to each device that accesses it. Thus, as new devices are deployed, developer D can simply make software to those devices available in repository 10b, and no modifications to service 124b are required.
It is to be understood that combinations, variations, and/or subsets of the various example embodiments described herein are contemplated.
This patent specification claims the benefit of U.S. Provisional Application No. 60/916, 402, filed May 7, 2007.
Number | Date | Country | |
---|---|---|---|
60916402 | May 2007 | US |