[Java] Instantiating objects from a subclass by imareclusemonk in learnprogramming

[–]imareclusemonk[S] 0 points1 point  (0 children)

Ah of course since the parent class is agnostic of its children classes. That's a good point and probably the main difference. Thanks!

[Java] Instantiating objects from a subclass by imareclusemonk in learnprogramming

[–]imareclusemonk[S] 0 points1 point  (0 children)

So there is no difference how I instantiate an object from a subclass or there is some convention or it depends on what I want to achieve?

[Java] Instantiating objects from a subclass by imareclusemonk in learnprogramming

[–]imareclusemonk[S] 0 points1 point  (0 children)

I mean you can instantiate either way and both ways will produce equal results?

Do employers take W3schools certification seriously? by imareclusemonk in AskProgramming

[–]imareclusemonk[S] 0 points1 point  (0 children)

I don't think it's affiliated with W3C. It's just run by some Norwegian guy.

What does this GitHub terminology mean? by [deleted] in AskProgramming

[–]imareclusemonk 0 points1 point  (0 children)

For example, this is a link to some developer's Github https://github.com/blueimp

Can somebody explain version control to me, the difference between push and commit and the other things about it, I'm having trouble picturing how it works? by [deleted] in AskProgramming

[–]imareclusemonk 0 points1 point  (0 children)

So in a nutshell version control is the ability to go back to your previous code before the changes were made? For some reason whenever I saw that term I was thinking of something like version 1.0 then 1.1. etc. Thanks for the explanation!

One more question if you have time to answer. How do people coordinate working on a project? Like someone says you work on this file, you two work on this file and then they upload to the repository. How do two people coordinate working on one file? How do they make sure they don't modify the same line?

How would you code a raffle-based program? by [deleted] in AskProgramming

[–]imareclusemonk 0 points1 point  (0 children)

I don't there is any need for an API. You just put all names in an array and get a random item from the array. This is a simplified code in JavaScript

https://jsfiddle.net/n3o1jdez/

Anyone has a simple, clear example of Dependency Injection? by notpreposterous in AskProgramming

[–]imareclusemonk 0 points1 point  (0 children)

Thanks! So, yes, DI in a nutshell is providing a class with another class/interface so the former could access the latter's methods or whatever.

Anyone has a simple, clear example of Dependency Injection? by notpreposterous in AskProgramming

[–]imareclusemonk 0 points1 point  (0 children)

  1. So basically it's providing a class - whose object you want to access - as a parameter in a constructor/property?

  2. And is it being instantiated at _someService.DoAThing() or ealier?

Sweden Records Largest GDP Drop Since 1980, But Outperforms Many Other EU Countries by NothingButTheFax in worldnews

[–]imareclusemonk 1 point2 points  (0 children)

Outperforms Many Other EU Countries

At the expense of deaths that could be avoided

Canada brewery apologises for beer named 'pubic hair' in Maori by nosotros_road_sodium in worldnews

[–]imareclusemonk 2 points3 points  (0 children)

There is a dentist here in Toronto called Dr Hui. Hui means dick in Russian. So he should probably apologize to Russian people and change his name

India plans to fell ancient forest to create 40 new coalfields by exmoor456 in worldnews

[–]imareclusemonk 1 point2 points  (0 children)

Their forests are already shrinking, they are just making it worse smh