GithubHelp home page GithubHelp logo

naiithink / ku-2022-01418211-dictionary Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 35.88 MB

Mirror of CS211-651/lab-11-12-dictionary-naiithink.git

Home Page: https://github.com/naiithink/ku-2022-01418211-dictionary.git

License: MIT License

Java 100.00%

ku-2022-01418211-dictionary's Introduction

CS211 - Lab 11-12 Dictionary

This project was developed in 2022 and no longer active

naiithink-dictionary.png

ส่งงานที่ https://classroom.github.com/a/zFxVAMJK

ให้นิสิตสร้าง JavaFX Application สำหรับเพิ่มคำศัพท์ และความหมายในพจนานุกรม

  1. มี UI หน้าแสดงคำศัพท์ทั้งหมดในคลังคำศัพท์ ที่สามารถเลือกคำศัพท์แล้วแสดงชนิดของคำศัพท์ ความหมายของคำศัพท์ และตัวอย่างประโยคจากคำศัพท์
  2. มี UI หน้าเพิ่มคำศัพท์ ที่ระบุคำศัพท์ ชนิดของคำศัพท์ (parts of speech) ความหมายของคำศัพท์ และตัวอย่างประโยคจากคำศัพท์ (เพิ่มได้หลายประโยค)
  3. ใช้ Collection and Map ในการเก็บคำศัพท์ในโปรแกรม
  4. ใช้การอ่านเขียนไฟล์ในการเก็บคำศัพท์เพื่อให้การเปิดโปรแกรมครั้งถัดไปมีคำศัพท์
  5. push ที่ Github Classroom

What I Have Done and Learned

  • A free version of naiithink's Dictionary1

  • Generics

    • Type bounding

      Type<T extends Class<?>>
    • Wildcards

      Upper bound

      <? extends Class<?>>

      Lower bound

      <? super Class<?>>
  • The relationship of generics

    • Covariance (more specific)
    • Contravariance (less specific)
    • Invariance (truely specific)
  • PECS - Producer Extends Consumer Super

    class Cat {
    
        private String name;
    
        public Cat(String name) {
            this.name = new String(name);
        }
    
        // ...
    }
    
    class Kitten extends Cat {
    
        public Kitten(String name) {
            super(name);
        }
    
        // ...
    }
    
    List<Kitten> kittens = new ArrayList<>();
    List<? extends Cat> cats = kittens;
    
    cats.add(new Cat("eiei"));    // compile-time error

    We cannot add a new Cat to the list of Kitten.
    List<Kitten> is a subtype of List<? extends Cat>.

  • The collection framework

    classDiagram
    
    Iterable <|-- Collection
    Collection <|-- List
    Collection <|-- Set
    
    <<interface>> Iterable
    <<interface>> Collection
    <<interface>> List
    <<interface>> Set
    
    class Map {
        <<interface>>
    }
    
    • java.util.Map<K, V> and its subtypes
    • java.util.List<E> and its subtypes
    • java.util.Set<E> and its subtypes
  • Lambda expressions and @FunctionaInterface

    An interface with only 1 abstract method.

    • java.util.function.Function<T, R>
    • java.util.function.Predicate<T>
    • java.util.function.Supplier<T>
    • java.util.function.Consumer<T>
  • java.util.Optional<T> class

  • java.lang.Thread class

  • java.util.concurrent package

  • Thread safety

  • Design patterns

    • Observer (events)
    • Singleton
  • Type safety and reflection

  • Improving to make it more universal - naiithink's StageManager

Experimental Features in Dev

Footnotes

  1. Currently, I have no plan to develop any other versions of this app.

ku-2022-01418211-dictionary's People

Contributors

naiithink avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.