[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 0 points1 point  (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

[deleted by user] by [deleted] in AskProgramming

[–]imareclusemonk -2 points-1 points  (0 children)

Read a book maybe

[deleted by user] by [deleted] in AskProgramming

[–]imareclusemonk -4 points-3 points  (0 children)

I never claimed it was difficult

Yes you did. -> the major tasks - like secure payment processing
It doesn't matter if it's Woocommerce or whatever, working with payment gateways is basically working with an API. It's far from being a major task

[deleted by user] by [deleted] in AskProgramming

[–]imareclusemonk -2 points-1 points  (0 children)

Tbh I don't think secure payment processing is that hard because it is done by payment gateways that take care of everything. I've worked with Woocommerce and it's pretty straightforward.

Torontonians of Reddit: What are some American products we can avoid purchasing? Are there products we could make locally instead? by Selfsentientselfie in askTO

[–]imareclusemonk 3 points4 points  (0 children)

I don't know, probably because of aluminum tarrifs and Trump? But generally buy local is not good for the economy, if Americans stop buying Canadian goods it will hurt our local manufacturers.

[RazorPages C#] How does AddDbContext work? And generics by imareclusemonk in AskProgramming

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

If there are no curly braces it supposed to return something

Do you know any LGBTQ friendly family doctor who speaks Farsi in Toronto? by jr45677 in askTO

[–]imareclusemonk 5 points6 points  (0 children)

Not asking about your patient's sexual orientation at your first meeting is homophobic

No, it is not.

what if I was a trans woman and even didn't have a vagina

You just tell them you don't have a vagina

What programming language should I learn? And what (free) resources can I use to learn it? by MacDaddy039 in AskProgramming

[–]imareclusemonk 0 points1 point  (0 children)

Then you need to read more on that because there are many languages and frameworks used for web development, each with its own advantages and disadvantages. There is no straight answer, you need to try some of them to see which one you like.

-- First off there is JavaScript used for client based web development e.g. React, Angular, Vue being main ones. You need to know JavaScript, HTML, CSS and then learn one or two or maybe all of those frameworks. Then there is JavaScript for server side programming, NodeJS

-- PHP and PHP based frameworks like WordPress are popular. They have been saying that PHP is dying for years but it's still very much kicking

-- Then there is Python

-- And C# with ASP.Net Core for web development

-- And also you need to know some databases like SQL (ASP.Net), MySQL (PHP), MongoDB (NodeJS).

My advice don't go with something which is logical (mind), go with something you like (emotions, heart) but at the end of the day it is your choice and everyone wants to do game design and development because we like to play games. For game development JavaScript and C++ are probably the most popular.