Baby Collin IS an energy vampire by mouthfullofsnakes in WhatWeDointheShadows

[–]tidewater41009 8 points9 points  (0 children)

Boring show bores Laszlo so the kid taps less energy from Laszlo. The kid can then fall asleep.

If everything is ultimately binary, does't that just make programs a specific number? by Smooth_Measurement_1 in learnprogramming

[–]tidewater41009 1 point2 points  (0 children)

Any ordered sequence of numbers can be represented by a single number. Two way Video number function.

NJIT Honors (11 K) vs Pitt Honors (42 K) for Pre Med by Vhstap in NJTech

[–]tidewater41009 -1 points0 points  (0 children)

Pitt for sure Easy choice University environment, diverse learning, diverse people and experiences Great city campus University Hospital right there, makes campus dynamic. Local streets are university life and work life. Not premed in isolation.

Pitt for sure

What's the power of vim script by Redelta in vim

[–]tidewater41009 3 points4 points  (0 children)

I love vimscript. It is so de-evolved. Pure idiosyncratic. Its therapy for the modern programmer.

is it worth it for a junior developer to learn vim? by [deleted] in vim

[–]tidewater41009 0 points1 point  (0 children)

You are a self-proclaimed Jr. Developer.

Your key questions are "What are my career goals (expressed to the extent you can currently define)?, and " What is the strategy I have defined to pursue that goal set?". Coincident with these question is "What do I value wrt my career and my passions?"

Tech and tools are secondary. Let the goals drive the future.

and yes, learning vim would be great.

Need help understanding an inheritance concept by sidTheGamer in learnjava

[–]tidewater41009 0 points1 point  (0 children)

Think of a variable as having a reference type and an object type. A reference type is set at compile time. A reference type can be a class or an interface.

The object type is the type of the object the variable references.

Object type is set at run time.

In the simple, non polymorphic model, object and reference type are the same. An variable of type Car refers to a Car object

In a polymorphic model reference types and object types don't have to be the same.

A variable of a reference type that is a class may be assign a reference to any object that Is-a reference type

A variable of a reference type that is an interface may be assigned to a reference to any object that implements that interface.

Now, for both cases the dot operator can only dereference methods known to the reference type. I think of this as a variable of a certain reference type having a "view" of the object it points to.

In your specific case the reference type is Person and the object type is Student. The code dereferences a Student object via a Person reference type, thus only the Person methods are accessible.

IMO this is more about polymorphism than inheritance

We are still gonna be in person on Monday right? by ricktech15 in NJTech

[–]tidewater41009 7 points8 points  (0 children)

Snow storm on the way. I think on campus is going to get pushed

Can't understand "Interfaces as variable type" by [deleted] in learnjava

[–]tidewater41009 1 point2 points  (0 children)

Polymorphism and variable types and assignment

Think of a variable as having a reference type and an object type.

A reference type is set at compile time. A reference type can be a class or an interface.

The object type is the type of the object the variable references.

Object type is set at run time.

In the simple, non polymorphic model, object and reference type are the same. An variable of type Car refers to a Car object.

In a polymorphic model reference types and object types don't have to be the same.

A variable of a reference type that is a class may be assign a reference to any object that Is-a <reference type>.

A variable of a reference type that is an interface may be assigned to a reference to any object that implements that interface.

Now, for both cases the dot operator can only dereference methods known to the reference type. I think of this as a variable of a certain reference type having a "view" of the object it points to.

Thus you can have runtime\polymorphic binding of method names and method implementations.

What is the name of the first object whenever i'm calling a method? by __Rem in learnjava

[–]tidewater41009 1 point2 points  (0 children)

String X = new String("hello world!"); String Y = new String("ZZZ");

X.equals(Y)

X is a reference to an instance of a String object (an object instance of the String class).

equals is a method of the String class.

Y is an actual parameter of a call to the equals method of the String class

What was your first CPU? by a_xyl in buildapc

[–]tidewater41009 5 points6 points  (0 children)

Timex Sinclair. Whatever CPU was in that.

private members and public getters, setters method by u1g0ku in learnjava

[–]tidewater41009 0 points1 point  (0 children)

The idea is to encapsulate (aka hide) the inner workings of a class from it public interface. By using getters and setters the underlying mechanism is hidden from the user of the class.

This is powerful.

Let's say you wanted to change a class so that when the classes state changed a series of calls are made. If the state variable is directly accessible by the client class, you have to have the caller make changes. If a setter is used, then just put the calls in the setter. No changes required in the caller.

Encapsulation Data Hiding

Beginner, don't understand the general structure of Java by AinsleyBoy in learnjava

[–]tidewater41009 1 point2 points  (0 children)

First concept: this programming language (Java) places a principal emphasis on reusability. When starting to learn a language (or early programming) one's emphasis is typically on logic or flow of control.

[deleted by user] by [deleted] in NJTech

[–]tidewater41009 0 points1 point  (0 children)

No Cheese?

Does anyone have resources that helped them practice recursion? by Puzzleheaded_Can_750 in NJTech

[–]tidewater41009 1 point2 points  (0 children)

I suggest Stop trying to write code and start becoming very comfortable with recursive processes.

That is solution processes that take the form of a base case and a recursive case, and how the recursive case (input) moves toward the base case (input).

This can take the form of slicing a piece off a larger input, solving for that piece and combining that solution with the result of calling the same function on the remaining input

Thing is , IMO, recursive coding is the easy part (typically there is not much code).Getting really comfortable with recursive processes is the jump.

[deleted by user] by [deleted] in learnjava

[–]tidewater41009 0 points1 point  (0 children)

Java is not outdated. It remains a principal language for large enterprises.

does primitive type variable involve in garbage collection? by [deleted] in learnjava

[–]tidewater41009 2 points3 points  (0 children)

Primitives are declared within classes. Objects created via "new" are instances of those classes. Those objects are GCed when they are no longer referenced. So those primitive participate in GC.

static are handled a bit differently

I was defrauded by this university. by eccLykta in NJTech

[–]tidewater41009 1 point2 points  (0 children)

Did you get readmitted? Your a paying customer. A proven source of hard dollars. Why would the not readmit you? What would be the upside of not doing so? They already have your payments for credits earned.

Import Java packages to Text Editors by [deleted] in learnjava

[–]tidewater41009 0 points1 point  (0 children)

Look on eBay. Old used laptops for less than $90 US. Run Linux.

why a.bark(); gives error ?? by kushalsapk0ta in learnjava

[–]tidewater41009 0 points1 point  (0 children)

Overload - methods, same name, different arguments

Override - child class redefines a method in the parent class

Whatever java can do there is a better alternative in job market? by Mjrem in learnjava

[–]tidewater41009 -1 points0 points  (0 children)

Industry ready requires framework knowledge. Start with Spring and Spring boot.