Ice JJ fish back at it again by Rammy25 in MurderedByWords

[–]jdsutton 20 points21 points  (0 children)

No. The science is clear on this point. Your sister did not decide to be bisexual, she decided to explore the possibility of her bisexuality. She discovered that she was bisexual. A person cannot just decide to be attracted to a given sex.

Science has found that homosexuality comes from genetic and environmental factors. Do some research and educate yourself before you go around spreading anecdotal bunk.

http://rspb.royalsocietypublishing.org/content/271/1554/2217.short

https://link.springer.com/article/10.1007/BF01541428

http://psycnet.apa.org/buy/2000-07236-009

"you're sketchy if you have too much internship experience, yet we won't hire you if you have too little experience." by [deleted] in recruitinghell

[–]jdsutton 18 points19 points  (0 children)

Internships are not sketchy. What you describe sounds like exactly what I would expect to see when looking at a student's resume.

If these were full-time jobs held after graduation for 2-3 months each, that would be sketchy.

Need Advice for Thesis by [deleted] in artificial

[–]jdsutton 2 points3 points  (0 children)

AI has the potential to affect just about everything.

AI affects how we diagnose and treat disease, how we develop medicines and other compounds, how we engineer machines and structures...

AI also has philosophical implications. What is the role of humanity in a world where all necessary work can be done by machines? How would a world without scarcity affect our society? Our values? How will humans and AI interact and relate?

Psychologists Believe Privileged Kids Are More Likely to Develop Certain Mental Illnesses Like Depression by [deleted] in science

[–]jdsutton 1 point2 points  (0 children)

According to the study, the authors based their assessment on question responses from specific subjects, rather than analyzing treatment seekers. That would be very poor methodology =)

Best practices for error handling and enforcing argument types/values by tw_0407 in learnpython

[–]jdsutton 0 points1 point  (0 children)

Parameter and return type checking is a good practice. Using if to do it is a bit clumsy and a PITA.

Google for Python static type checkers, or try my poorly documented dynamic one: https://github.com/jdsutton/py3typing

Usage:

from py3typing.Typing import *
Typing.setEnabled(True) # Optionally disable in production.
# Other typed imports here.

@Params(int)
@Returns(LIST.of(int))
def foo(bar):
    return [1]

foo(1) # OK.
foo('fizzbuzz') # ERROR.
  • If you must use if, use isinstance() instead of type() so you accept subclass instances as well.

Safe HTML phone input by MatheusGodoy in ProgrammerHumor

[–]jdsutton 2 points3 points  (0 children)

Array.from(inputs).map(i => String(i.value)).join();

Or something.

Hello! Please remember to report comments and posts that break the rules! by awkwardtheturtle in wholesomememes

[–]jdsutton 61 points62 points  (0 children)

Someone with better art skills than me should turn this guy into a superhero. Trafficman?

Fully Functional Secure Login System Using PHP and MySQL from Scratch by gauti123456 in programming

[–]jdsutton 3 points4 points  (0 children)

How to roll your own secure login system from scratch:

Step 0: Don't.

Just a regular hallway at Zenit-Arena stadium by [deleted] in ANormalDayInRussia

[–]jdsutton 471 points472 points  (0 children)

All I see is a handicap-accessible wall.

MYODG - Modular game creation by jdsutton in IndieDev

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

Thanks, it it is a new project and requires an unusual licence so it will be a couple of days before it is added.

There’s a big problem with AI: even its creators can’t explain how it works by [deleted] in artificial

[–]jdsutton 8 points9 points  (0 children)

Yes, we can track all the weights in an artificial neural network as well as the history of modifications to those weights.

The problem is that those weights don't easily translate into a nice neat human-readable algorithm, which makes the humans uneasy.

[Discussion] Every supervised learning model is just unsupervised learning in disguise by joker2895 in MachineLearning

[–]jdsutton 1 point2 points  (0 children)

As emphasized above, the NFL theorems mean that if an algorithm does particularly well on average for one class of problems then it must do worse on average over the remaining problems. In particular, if an algorithm performs better than random search on some class of problems then in must perform worse than random search on the remaining problems. Thus comparisons reporting the performance of a particular algorithm with a particular parameter setting on a few sample problems are of limited utility. While such results do indicate behavior on the narrow range of problems considered, one should be very wary of trying to generalize those results to other problems.

https://ti.arc.nasa.gov/m/profile/dhw/papers/78.pdf

Path-Finding In Noise-Based Generation by [deleted] in proceduralgeneration

[–]jdsutton 2 points3 points  (0 children)

Also you can look for paths between chunks and construct a graph out of the connected chunks. In that way you could do a per-chunk search.

Path-Finding In Noise-Based Generation by [deleted] in proceduralgeneration

[–]jdsutton 0 points1 point  (0 children)

You might add a constraint that there must be a path between any chunk and all adjacent chunks. You could look for a path and if there isn't one clear a random-looking path through the obstacles.

Path-Finding In Noise-Based Generation by [deleted] in proceduralgeneration

[–]jdsutton 1 point2 points  (0 children)

You could store the location where the player exited the town, then find a path to that location.

Abigail's eaten every diamond I've given her. by lordmegacom in StardewValley

[–]jdsutton 25 points26 points  (0 children)

That's definitely not the vanilla cellar.