Java Coding Style Guidelines and Implementation Techniques
Guidelines for Coding Style
- Prologues: Clearly document the purpose and functionality of each class or method.
- Method Descriptions: Provide concise explanations of what each method does.
- Blank Lines: Use blank lines to separate logical chunks of code for readability.
- Meaningful Names: Choose descriptive names for classes, variables, and methods to enhance clarity.
- Braces and Indentation: Maintain consistent indentation and brace placement for improved code structure.
- Variable Declarations: Declare variables
Essential Freeware for Web Page Authoring and HTML Editing
Web Page Authoring Freeware
This is a list of software that made my life easier and freeware that I wish I had in the beginning.
Freeware Download Aids
%IMAGE_2% Freeware tools to help in unzipping and downloading software. Read this page first if you have never downloaded a program from the Internet or are downloading many files for the first time and using an older PC operating Windows XP or lower.
Freeware to Get You Started in HTML
Freeware for Writing HTML
If you are just starting out, you need two
Read MoreSoftware Specifications: Strength and Style Guide
Exam #1
In Class on Thursday 3/3
- Crib sheet allowed/encouraged (double-sided 8.5″x11″ sheet of paper or two single-sided 8.5″x11″ sheets of paper) (this crib sheet can include anything at all)
- Practice Exam available (skip last question)
Homework 1 Solutions
8. { x + 5 < y } whoops x = x + 5 to be corrected { x < y }
9. { x > y }
z = x - y // use forward reasoning
{ z > 0 }
Specification
Need to identify:
- Precondition
requires:Spells out constraints on the client/user of this method.
- Postcondition
modifies:
Understanding Programming Language Translators and Compilers
A translator is a program that transforms code written in one language (source language) into another language (target language) while preserving its meaning.
Types of Translators
1. Assembler
An assembler program performs a process called assembly. This process converts a program written in assembly language into its corresponding machine-language program (without executing it).
2. Compiler
A compiler takes a program written in a higher-level language (source program) and converts it into assembly language
Read MoreUnderstanding VLANs and Spanning Tree Protocol in Networking
Benefits of VLANs with Switches
Administrative Advantages
- **Virtual LANs based on Diverse Criteria:** Create VLANs based on workgroup, protocol, or service, not just physical location.
- **Simplified Device Moves:** Easily move devices to new VLANs by modifying port assignments.
- **Controlled Broadcast Traffic and Collision Domains:** Manage broadcast traffic and create collision domains based on logical criteria.
- **Enhanced Security:** Isolate traffic within a VLANs for improved security.
- **Network Traffic
Android Development: Preferences, Files, Databases, and Network Communication
Challenge 9 1. How do preferences, files, and databases differ? Under what circumstances would each be appropriate?
Shared Preferences store key value pairs in an xml file, this file can be read by other apps only if the MODE_WORLD_READABLE / WRITEABLE mode is specified.
Files are useful for writing larger amounts of information that might not be suited for a shared preference. Files can be stored in Internal Storage or External Storage(sd card).
Databases are ideal for repeating or structured data.
