Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!

John Doherty

Greenhorn
+ Follow
since Mar 13, 2017
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
11
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by John Doherty

William Ng wrote:If you don't mind me asking, why didn't you get a programming job after you graduated? After being idle for so, it will definitely not be easy. The tech industry is very fast paced six years is twice as long as in most fields. With your degree though, it will definitely aid you in getting back into the filed since you at least have the fundamentals down.  

A major connundrum of our education system is that it stuffs us with a bunch of theory. In school, we are taught things like the details of how computers work, algorithms, abstract data types, programming languages, operating systems, proofs, grammers to name a few. This is fine if you want to come out and start building your own compiler, or be able to figure out optimal solutions to programming puzzles, but in the real world that counts on make full fledged programs that help business, or otherwise, the practical stuff, it is nearly completely useless. Very few of us will ever need to write a compile or create a new programming language. This stuff is reserved for actual computer scientist. not for the rest of us working in the real world.

However, one silver lining to this is that it does teach you the fundamentals, so you can still understand new technology as it comes out, and as fades fade away. New technology, no matter how seemingly revolutionary or amazing, we still at its core, rely on the theory.

With that, I say go forth and conquer. Don't let your cs degree go to waste.



Lots of reasons but to boil it down. I wasn't ready for a coding job and the dedication it requires to be a good,competent coder. Now i feel that i am there (Maybe not but for me it feels like it).
4 years ago
Hi Folks,

I got a cs degree back in 2010. I worked jobs that werent related to IT field at all (I dont have any professional programming experience). Because i was away from coding for so long. I bought a couple of Java related courses on Udemy.

I started one with below:
https://www.udemy.com/java-the-complete-java-developer-course/

After i finish this, i will be going through the stuff below:


https://www.udemy.com/javaspring
https://www.udemy.com/building-an-e-commerce-store-using-java-spring-framework/
https://www.udemy.com/complete-e-commerce-course-javaspringhibernate-and-mysql/
https://www.udemy.com/spring-hibernate-tutorial/


At the point i have no idea what kind of project i can do to set myself apart from the usual candidate. I am wondering if anybody has suggestions, Can Android projects be enough too ? I have some stuff for that too.
I am planning to make a github account and a web page to display the project i will make and use things like project euler and other type of exercise sites to study for interviews hoping those exercises will be enough.

4 years ago
I think i found what i am after. So sorted list makes changes to itself every time its observable list has a change. It says so below:

https://docs.oracle.com/javase/8/javafx/api/javafx/collections/transformation/SortedList.html

Can you explain to me how its triggered ? What works in the background to trigger this change ?

PS:I might have gotten this wrong so if i did excuse me.
4 years ago
I open a new dialog to add the new item which has a code like below:


which leads to

4 years ago

Campbell Ritchie wrote:There is obviously some overriding in the add() method on the sorted list class, which causes the new element to be added in the appropriate location to maintain the sorted order. I cannot tell how that is implemented, but you may be able to find the code of the sorted list class and read it.



I will look into that but it sorts the list after every action deleting too.  Deleting item is below:

4 years ago
Hi Folks,

I am coding along to my course and i came across this sorted list that sorts our program every time we make a adjustment to it. I have used IntelliJ to write it. I understand how it sorts out itself. I don't know how it gets executed every time we add a new item to the list or we erase something from the list. Sorted List code block is like below.



My listener who listens to changes is below too.


4 years ago

Stephan van Hulst wrote:todoListView is presumably of the type ListView. A ListView doesn't have a setSelectionMode() method; that's a method of MultipleSelectionModel. It also doesn't have a selectFirst() method; that too is a method of MultipleSelectionModel.

So, in both cases we need to get the selection model of the list view in order to set the selection mode and the selection: Those are both properties of the selection model, and not of the list view.




Campbell Ritchie wrote:...and welcome to the Ranch




Thank you both. It makes a lot more sense now. I will try to look at other cases where there are more method chains and see if they work the same way.
4 years ago
Hi Folks,

I am learning Java programming from scratch i found the lines below in some of my coding lessons. I understand what they do as a whole but i dont understand why they need to be that way and how are they exexuted.


;




Why does the Second Line requires GetSelectionModel ? and just doesnt use SetSelectionMode ?



Example below is about adding a change listener to our TodoList options so when something is clicked on it, its details shown in our 2 boxes.




Why doesnt first line just can't be :  todoListView.addListener(new ChangeListener()) ?

I tried looking up Java Method Chaining in google but none of them show for things like i wrote. If you can help me out that would be great.
4 years ago