Large Category

Home » Large Category

Services

Why learn coding in today’s world? I will tell you. Currently in the world there is a huge shortage of coders. Coding is today what literacy was in the 1800’s where only a small percentage were literate.  In the whole world less than half a percent know coding and in America it’s around 2% In the future most everyone will need to learn to code in this modern world. It’s almost as important as reading and writing a native human spoken language! A bit of a stretch but it makes a point. Coders percent of population in World Coders vs Everyone Else Coders percent of population in America Coders vs Everyone Else English is the language used for naming and documentation in the coding world. Of course in the industry the human language for coding is English just like Frenc...

TestNG SingleLinkedList Class

TestNG SingleLinkedList Class Source for testing SingleLinkedList with TestNG framework. /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package sdz.ds.lists; import static org.testng.Assert.*; import org.testng.annotations.AfterClass; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; /** * * @author larry */ public class SingleLinkedListNGTest { SingleLinkedList testList1 = new SingleLinkedList(); public SingleLinkedListNGTest() { } @BeforeClass public static void setUpClass() throws Exception { } @AfterClass public static void tearDownClass() ...

DS01 SingleLinkedList and Iterator

SingleLinkedList, Iterator and Unit Test This is the first article in a data structures tutorial series. We start with a linked list that is a singly linked list. This means it has nodes with only forward pointing pointers. This linked list is also an Iterator which is a design pattern. My version of this iterator has a reset() method to set the position pointer back to the first node in the list. Also this list does not give you access to the nodes themselves, only the element E that the node contains. The list can be made of any type of element E. As an example of unit testing I supply you with the TestNG code. If you are using Apache NetBeans 11 you may use TestNG for unit testing. Currently I could not get JUnit to work in NetBeans. Java API LinkedList class Interfaces and Classes Seve...

An overview of CSS 3 Part 1

What is CSS? CSS separates structural and semantic content from formatting or presentation. HTML is the structure, CSS is the presentation and JavaScript is the behavior. The presentation is the size, position, color, font etc. It’s the layout and looks. Rules make up style text. Rules can be placed within an HTML tag itself with “style” attribute, within HTML<style> tag, or better yet within style files that you link to your document. A rule is made up of a “selector” and a set of properties. More CSS, HTML and HTML5 articles CSS Intro | HTML Intro | HTML 5  | CSS Tutorial Site Of course the selector selects which parts of the page to alter in appearance. The rules are simply name:value pairs. And selectors can be simple or complex by using combinators....

HTML5 Overview

HTML5 Overview and Introduction HTML5 is comprised of tags. Tags are names(elements) inside of < and > (angle brackets). There are two basic types of tags. Structural and Semantic. Structural tags define what is on a web page. Semantic tags define purpose or meaning for some items on a web page and make good hooks for CSS Style rules. Either way they both define structure and not presentation. Presentation is left up to CSS3 or Cascading Style Sheets. And behavior is left up to JavaScript.  Though with CSS you can achieve some effects that resemble behavior. The behavior is part of the browser, not CSS or JavaScript. This article is not about CSS or JavaScript. Tags (Elements) Tags define elements. Some tags need open and closing tags and wrap text and other elements. Other tags...

Simple 3D Graphics using JavaFX

Simple3D Graphics JavaFX rewrite of my first article using Swing Simple 3D graphics using Java was my first article using Swing UI. As you know JavaFX is the replacement for Swing. In this article I will talk about JavaFX a bit more than the app itself because it was a conversion. This is not only a JavaFX app it’s a JavaFX FXML app. So like Android apps there are two ways to define the UI. You can build it with code within class  definitions and constructors. Or you can define the UI with XML. In this case its FXML for Java FX XML. SceneBuilder and NetBeans You can define the FXML with a text/code editor. This would be painful and you would have to know FXML fairly well and do a lot of looking things up. Or you can download SceneBuilder from Gluon. You can use the FXML generated by ...