Giter Site home page Giter Site logo

java-course's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

java-course's Issues

EchoServer.java has unreachable if statement.

According to the documentation about thejava.nio.channels.Selector:

This method performs a blocking selection operation. It returns only after at least one channel is selected, this selector's wakeup method is invoked, or the current thread is interrupted, whichever comes first.

This means that the if (readyChannels == 0) { is redundant and unreachable in https://github.com/fmi/java-course/blob/master/11-network/snippets/echoclientserver/nio/EchoServer.java#L31

testIfPaymentFailsIfNullPaymentIsPassed passes when it shouldn't

assertFalse(wallet.executePayment(standardCard, null));

Този тест ми минава, без да имам check за null PaymentInfo. Причината е, че проверявам дали картата е регистрирана първо и понеже не е -> return false.

Fix:
assertTrue(wallet.registerCard(standardCard)); assertFalse(wallet.executePayment(standardCard, null));

Lecture 1 question

Сигурни ли сте, че https://github.com/fmi/java-course/blame/master/01-intro-to-java/lecture/PITCHME.md#L651 работи?

Според https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/util/Arrays.html Arrays.sort(char[] a) връща void. В лекцията се извиква .toString() директно на return value-то, но няма такова.

Когато го изпробвах, още IDEто ми се кара с cannot resolve method.

ПС: Не знам дали тук трябваше да вдигам issue-та, ако не е правилното място се извинявам :/

Race condition in 09-network's tests

Several runs on the given tests in 09-network reveal that (randomly) some of them sometimes fail and sometimes don't.
I suspect the problem comes from the fact that the server is on a different thread, thus a test may try to connect to the server before it has started.

The solution would be making each test wait for the server untill it has started. But I fail to find a painless and elegant way to do this in the current setup. How could this problem be fixed?

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.