Skip to content

Programming by Design

If you're not prepared to be wrong, you'll never come up with anything original. – Sir Ken Robinson

  • About
  • Java-PbD
  • C-PbD
  • ASM-PbD
  • Algorithms
  • Other

Author: William Jojo

Signal Handling

Posted on October 19, 2021November 22, 2024 By William Jojo
Ciss-150, Docs

(Updated November 22, 2024) Overview As we have seen, many hardware and software components vie for CPU time. In addition to hardware interrupts when a device needs servicing and software interrupts that perform privileged actions within the OS, signal handling components allow programs to try to intercept some of the kinds of interrupts that may … Read More “Signal Handling” »

CISS-150 Windows Memory

Posted on October 18, 2021 By William Jojo
Uncategorized

Overview The memory layout of Windows is a bit more complex than that of Linux. While we have seen some of the Linux memory model, it is also a good idea to get a sense of how other OSes perform similar memory virtualization. Get the Software Login to your Windows 10 guest and get the … Read More “CISS-150 Windows Memory” »

Godbolt: Behind the Compiler

Posted on October 18, 2021July 26, 2024 By William Jojo
Ciss-150, Docs

(Updated July 26, 2024) Overview The C compiler produces platform-specific executable code, which can also be viewed as assembly language, given the correct set of options provided to the compiler. This can be particularly useful when we want to learn a bit more about what is going on behind the scenes. Maybe we want to: … Read More “Godbolt: Behind the Compiler” »

IntelliJ: Adding Command Line Arguments

Posted on September 10, 2021January 29, 2025 By William Jojo
Docs

(Updated January 29, 2025) Overview Using an IDE to build and run programs is typically only done during development. Many developed programs will run on servers without a text or GUI interface of any kind and will write errors and such to log files for review when something goes wrong. Since these programs are often … Read More “IntelliJ: Adding Command Line Arguments” »

bits

Posted on February 20, 2021October 2, 2024 By William Jojo
Uncategorized

(Updated October 2, 2024) 8,000,000 possible numbers. 8M bits in 1M bytes. byte[] ba = new byte[1000000]; ba[0] ba[1] ba[2] ba[3] | byte0 | byte 1 | byte 2 | … 01234567 01234567 01234567 ^ ^ | | 2000007 2000023 byte 0 01234567 ^^^^^^^^ |||||||└ 2000007 ||||||└ 2000006 |||||└ 2000005 ||||└ 2000004 |||└ 2000003 ||└ … Read More “bits” »

Strings

Posted on February 10, 2021 By William Jojo
Uncategorized

public class Strings { public static void print_array(int[] potato) { int x; for (x = 0; x < potato.length; x++) { int y = 0; System.out.println("potato["+x+"] = " + potato[x]); } } public static void main(String[] args) { double cost = 0.0, price, sub; int count; for (String a : args) { System.out.println(a); String parts[] ... Read More “Strings” »

TED, Podcasts and Text on Technology, Design and Learning

Posted on February 7, 2021August 13, 2024 By William Jojo
ciss-110, ciss-111, Other

(Updated February 7, 2021) TED Technology, Design and Learning Roman Mars on City Flags and Proper Design The late Sir Ken Robinson on Schools and Creativity The late Sir Ken Robinson on changing educational paradigms Podcasts on Technology, Design and Learning 99pi Ways of Hearing – Episode #1 Time (2017) (Begins at 6:04) 99pi Octothorp … Read More “TED, Podcasts and Text on Technology, Design and Learning” »

Background Sounds

Posted on February 7, 2021August 13, 2024 By William Jojo
ciss-110, ciss-111, Other

(Updated December 28, 2023) When programming or writing content for my books, I prefer to have some ambient noise, but something more than just white noise, but not as distracting as the punk music that Cameron Howe used in Halt and Catch Fire – which was a very accurate depiction of the technology world at … Read More “Background Sounds” »

Python and Java

Posted on January 31, 2021August 13, 2024 By William Jojo
ciss-110, ciss-111, Other

(Updated January 31, 2024) Table of Contents Overview Statements Data Types Basic I/O Conditional Constructs Iterative Constructs Files Arrays Functions/Methods Overview This document is intended to provide a 10,000-foot view of the differences between Python and Java. This is not intended to be an exhaustive comparison of features and/or details. This document should be viewed … Read More “Python and Java” »

CISS-110 Project 3

Posted on January 20, 2021January 20, 2025 By William Jojo
CISS-110-Project

CISS-110 Project 3 This project deals with reading input from the user, storing the input into variables and displaying those variables. Learning outcomes Build a program from the ground up. Introduce basic GUI tools. Using correct data types. Watching for lost precision in calculations. Working with Integer.parseInt(). Confirmation program produces desired results. This program is … Read More “CISS-110 Project 3” »

Posts pagination

Previous 1 … 5 6 7 … 18 Next

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Copyright © 2018 – 2025 Programming by Design.