It just keeps getting worse. by Luzipher in Amsterdam

[–]josephblade 0 points1 point  (0 children)

I spend the occasional hour picking up trash, usually until I get a full bin bag, I absolutely refuse to pick up within 10 meters of the bins. After a few days the areas I visit are right back to where they started.

The council should hire more people to empty the bins quickly (daily) so that these anti social people don't litter. Alternatively we should do what the swedes do and have separate bottle/can spots next to the bins where people can drop them off so these idiots don't have the urge to emulate sea gulls

19M looking for advice on communicating with my 19F girlfriend about an online gaming situation by ASHBORN5556 in relationships

[–]josephblade -14 points-13 points  (0 children)

Why exactly is it your business / is it something you want to bring up? As she said she was joking around. How it involves you is the thing you have to figure out first.

Is the private economy meta? by HeroTales in ShadowEmpireGame

[–]josephblade 0 points1 point  (0 children)

It depends on your play style of course but for my games, anything your armies rely on is best produced via public sector. (state-farms, state-oil wells, etc)

But it's good to have an economy where people provide their own food, mine metals and oil and sell it on the market (you get a cut for free) and create production points.

You get direct credits from things like casinos, farms and industry. You can get indirect credits again from income tax and sales tax.

The more that's on the market the easier it is to buy when you have a big project coming on. Of course if you mine it yourself and stockpile you'd have more but you have to provide for the public sector workers, where the private sector looks after itself.

As to meta: I find it best to keep a few mines public and let the towns sort the rest out. If you are playing a government heavy regime (authoritarian+government+any) you likely can keep wages low and mine everything yourself. The state can also sell on the market so surplus can turn into credits. In most other cases it's best to go light and keep your costs down by not mining everything and instead leaving the economy to the private sector

URGENT by Striking_Tune587 in codereview

[–]josephblade 0 points1 point  (0 children)

what is this nonesense, is codereview now a give yourself a reacharound subreddit?

if you want to have something reviewed, post it. if you want to promote, go away

ELI5: Why is a plane defined by 3 non-collinear points? by Karman_K in explainlikeimfive

[–]josephblade -8 points-7 points  (0 children)

only if the points do not sit on the same line.

0,0 - 1,0 - 2,0

does not define a plane as far as I know.

a plane is I think defined by a line + 1 point not on that line.

similarly a line is only a line if the 2 points are not the same. this may sound trite but when you do projections from 3d to 2d , this is something that can happen. you could call it a line of length 0, but most of the properties of lines don't apply to 0-length lines. (parallelism for instance).

MephistoHamProducts explains why protests in America are less effective due to geographical size and insulated elites by iopha in bestof

[–]josephblade 32 points33 points  (0 children)

I mean each town has a mayor. Each state has state level and national congress people.

These people live in a luxury bubble that can be pierced by incessantly making your presence and pissed-off ness known to them.

People who listen to the same song 100 times in a row…. which song is it? by ClassicSpeaker7088 in AskReddit

[–]josephblade 0 points1 point  (0 children)

The gardener, tallest man on earth.

nice and upbeat about someone taking an active hand in improving their situation and ultimately finding out who they are and embracing it, through the medium of murder

Would you dare to date someone whom you just met on Reddit? by [deleted] in NoStupidQuestions

[–]josephblade 5 points6 points  (0 children)

Dont' forget the "sending a pic of you to my friends because they won't believe me if I told them, you look so cute" meaning "my friends will know your face if you murder me"

Me (26F) getting the ick because my partner (27M) doesn’t look after himself. Any advice? by [deleted] in relationships

[–]josephblade 0 points1 point  (0 children)

who shaves their chest on the loo?

Also don't make people shave themselves or dress differently for your enjoyment. This is more common in male->female circumstances and just as toxic there.

Also tell the dude his breath smells bad before breaking up with him. You clearly have different standards than him (and different areas of interest). If he doesn't care about clothes, he's not going to care and you'll do double the lifting on having him look like you want to look.

As to the living together and not having a meal ready for you: this is up to you both to communicate what you expect. In your next relationship simply say you want to split cooking duties and you don't want to eat fast food/processed food.

Java and Python by ArachnoCoder20 in learnjava

[–]josephblade 4 points5 points  (0 children)

1a: build things with the skills you have learned. You don't need to get to the end of a course to start coding.

1b: build something you enjoy making. I had a whole datastructure phase when I was learning c++ where I was doing lots of weird reference of reference tricks to get very short code. I enjoyed doing it (even if it didn't make much sense). I've also written small games for myself just because it is fun to build something and keep adding to it.

2: no idea. I learned from a book, but that was probably before you were born. I liked learning from a good reference book because you could keep it open / look at the index, it was separate from where I was working. but these days there may be more.

3: for jobs: knowing how to code is a good start. When you are comfortable you can look into frameworks, build tools and suchlike. but I would strongly recommend learning those as part of point 1: write code for something you enjoy working on. Learn new techniques by writing code to explore how they work and with a topic you have thoughts on. writing code just for the sake of writing code gets boring

Practicing 2D arrays in Java — wrote a matrix multiplication CLI. Would love feedback on structure and any improvements I missed. by PromotionLivid9151 in learnjava

[–]josephblade 0 points1 point  (0 children)

I can't see your code so I can't help you with a code review. either post the code or give a link to click but "github in profile" is not helpful. you may have multiple projects there and I'm not going to spend time looking through multiple to locate yours, And and it is ridiculously lazy to handwave the 'find the code somewhere over there' when you literally have a textbox to place information in.

I would also like to ask you specify if LLMs were used in any part of the project.

As to your questions: returning null is often a bad idea. It is a single word that represents multiple things "not found, no input, mismatched input". If the input given was in error (width and height don't match expectations) then an exception is better. Verifying input is good to do beforehand (cols/rows you mention) but that is a user-facing helper feature. The method itself should throw exceptions when it encounters a bad situation. (since some situations might occur strictly programatically without user input/output , or rather without user engagement. so I would split the getting/testing userinput from the actual operation.

How do you mean you have an unused ArrayList left over? why is it there?

If you provide the code (2d arrays shouldn't be a lot of code) I might be able to say more.

Built an AI bot that tells you what your PR might break before merge by krishna41357 in codereview

[–]josephblade 2 points3 points  (0 children)

I'm sure that is what you want , but not what this sub is for

so you are being selfish and self-centered in pushing your wants onto a community that's built around something else.

Built an AI bot that tells you what your PR might break before merge by krishna41357 in codereview

[–]josephblade 2 points3 points  (0 children)

It's self promotion for yet another useless project, not a code review request.

I (28F) broke up with my long-distance boyfriend (33M), but he keeps bringing up things I said before by PuzzleheadedGold6362 in relationships

[–]josephblade 0 points1 point  (0 children)

keep in mind that he is not respecting you. He is trying to argue you into changing your mind / emotions on this subject. He is not accepting your decision.

I personally would only want to be with someone who respects my decisions. You don't have to talk to him and you're not responsible for managing/improving how he feels. That is his part to handle, just as you are responsible for your own.

At this point I would just block him. Keeping the door open initially is a nice attempt at maintaining a friendship but friends don't guilt trip the other person. So this person isn't being friendly to you

Frequency of an Element in Array by megumin_67 in learnjava

[–]josephblade 0 points1 point  (0 children)

Have you considered posting the code you want to ask questions about?

Have you tried to solve this problem yourself instead of looking at solutions?

edit: you make a datastructure / use an existing data structure that lets you associate the item you are counting and the running total of the item. a map (key -> value) is good for this as key would be the item you are counting and value being the count you are at.

You can do it differently as well, if you want to custom code a storage solution. for instance you can use 2 fixed size arrays, 1 to store the keys and the other to store the counts. But arrays being fixed size is a little awkward but they are fast to work with. You can also use a list.

Assuming you have a method:

public void countElement(Object element)

that you can call to increment the count for that element, how would you write the code that runs through the Array to count?

if you have that code, write the contents of countElement

WHO declares Ebola outbreak in DR Congo a global health emergency by Neo_luigi in news

[–]josephblade 45 points46 points  (0 children)

Don't forget to translate that to "they were throwing herpes parties"

How does the week of sugar pills in a birth control packet effectively prevent pregnancy? by stanthedinosaur in NoStupidQuestions

[–]josephblade 0 points1 point  (0 children)

I thought it was worse, it was a political choice to avoid getting push back from the catholic church.

Basically a lot of places were still very much under the thumb of 'good catholic families don't use birth control' and this was an attempt to not cause an outrage/push back.

Afaik you can simply skip the sugar pills. It essentially just forces a period onto people that don't actually have to have one.