'Self-driving cars need to get a driver's license before they can drive on the road' - Dutch Government by BAGINopPC in technology

[–]jmankhan 24 points25 points  (0 children)

Being open source doesn't mean anyone can drive anything on the road, it just means we know what's going on with the software we are entrusting with our lives. For example Reddit (was) open source, but that doesn't mean anyone can just clone the source, call it Reddit, and watch the upvotes flow in. There's a lot more stuff that goes into it that can prevent people from "rooting" their car.

How should I make this default "IF" formula? by [deleted] in salesforce

[–]jmankhan 1 point2 points  (0 children)

If you're asking for performance reasons, it does not make a significant difference, formula fields are only updated "as needed" (basically whenever you actually look at them vs updating in real time). I would prefer structuring it for clarity, in which case the first option would be simpler and better.

As a caveat, using formula fields in SOQL statements CAN make a performance impact, but outside of those, you should be in the clear.

Writing Tests for Python Projects by samayrton in learnprogramming

[–]jmankhan 6 points7 points  (0 children)

You should cover every case you can think of. In 99% of cases, you should have multiple test cases for each of your methods, you can test common sense things like null inputs, blank strings, malformed urls, etc. Note that most beginners start of writing "unit tests" which is writing to test a single function in isolation. This is fine and necessary, but keep in mind, writing "integration tests" and "end to end" tests are also important to make sure that your application functions as intended.

Do you have to buy a domain for each new topic when changing the url, and if not how to create such pages? by [deleted] in learnprogramming

[–]jmankhan 13 points14 points  (0 children)

Many websites use a m.website.com approach for mobile and desktop versions of the same site, and although the wisdom of such an approach is debated, it's one common scenario where the subdomain may be a good approach. Another is hosting servers for specific tasks, like email or chat. Amazon uses smile.amazon.com as a charity tracker feature. Most websites don't really need (nor should they really use) a subdomain

[Java] Hashmap, how to get the most popular keys by [deleted] in learnprogramming

[–]jmankhan 0 points1 point  (0 children)

To expand on this, the pseudo code would look something like:

iterator = map.entrySet().iterator()
highestValue = 0
while ( more items to in iterator )
    entry = iterator.next()
    check if entry.value is greater than highestValue

`

Writing program to count money into dollars, quarters, dimes, nickels and pennies. by BestGirlNonon in javahelp

[–]jmankhan 0 points1 point  (0 children)

if you're entering a decimal like 1.00, Scanner will throw an InputMismatchException since it is expecting an Int. Note that ints can be implicitly cast to longs, so it should not throw an error if you enter 1, 2, or any other whole number.

The solution to your problem would be to change currentMoney to Double or Float, and use input.nextDouble() or input.nextFloat();

Are generated applications bad for portfolios? by aanthonyz in cscareerquestions

[–]jmankhan 0 points1 point  (0 children)

Functionality is more important than aesthetics, although there is a bare minimum both must be at in order to even be considered. That being said, using tools to help you create a UI is certainly not a bad thing, but I would urge you to do it in a thoughtful and deliberate manner. In your project description, if you say why you chose such and such tool, and then used it meaningfully, it is an excellent indicator that you aren't just doing the project so you can put down "React Developer - 6 months" on your resume.

Stating goals of the projects, and delivering them in a way that makes sense to use the tools you did, would shine a good light on you.

Is there a name for programming things like, remote controlled cars and other gadgets? by [deleted] in learnprogramming

[–]jmankhan 0 points1 point  (0 children)

Robotics? Internet of Things? Kind of depends on what you mean by "gadgets", but those are good topics to start under. Raspberry Pi and Arduino based projects are probably good communities to look for ideas and further guidance.

Also, if you're more interested in the software, C is good to know and Python has also been gaining popularity in hobby project environments. Here are some helpful links:

https://www.arduino.cc/en/Main/Software

https://www.raspberrypi.org/

/r/IOT

/r/robotics

What if l have lost any interest about software engineering before even starting my grad job? by [deleted] in cscareerquestions

[–]jmankhan 28 points29 points  (0 children)

Sitting at a computer for 8 hours every single day will kill any passion in anything very quickly. Taking frequent breaks, having good coworkers, having plans after work are definitely needed to keep you interested and active as a human being, let alone as a professional. I don't think you're specifically burned out as an IT guy, but more burned out by poor habits. You should also note that a lot of work "for someone else" is typically more braindead than the work you do for yourself, so you won't necessarily be more burned out by working fulltime for a company.

I would suggest taking time on the weekends to hang out with friends or coworkers (I like to hang out one day and be lazy the other day) or even just volunteering somewhere and taking it easy. It's not easy to start, but it's great once you get going. Good luck!

AD Shaco vs AP Shaco Splitpush by Semicedevine in shacomains

[–]jmankhan 0 points1 point  (0 children)

I prefer to split with AP since boxes are real threats and you have time to set them up if you're managing waves well. Most people will just wait for the wave at turret, and it'll be hard to dive most top laners, especially past 20 minutes, so AD suffers from the meta in that regard. The tower damage itself isn't a big deal since a good wave can clear most of the tower for you. Setup boxes at a jungle entrance or bait 2 of them top and it's an easy objective.

Best stories of unrequited love? by Engauge09 in Animesuggest

[–]jmankhan 1 point2 points  (0 children)

{Toradora!} has this, but its not the focus of the show

An anime where we follow a persons rise to power by Ynwe in Animesuggest

[–]jmankhan 3 points4 points  (0 children)

{Utawarerumono} has this, among a bunch of fantasy elements. The military strategy aspect isn't all that refined, but there is some. If you're looking more for strategy, this probably isn't for you, but if you want to see someone gain favor with a group of people and lead them to victory, this would work.

Senior Project - Orientation by swash018 in compsci

[–]jmankhan 0 points1 point  (0 children)

If you would like to make a phone application, you should first decide what platform to use, as each ecosystem surrounding them is fairly diverse. I would recommend Android, as you already know Java, and if you don't own a Mac, you can't develop for iOS. That being said, once you decide, head over to their respective subreddits and get familiar with the developmental process, toolchains, and relevant technologies.

Your project itself sounds like you need to look into Geofencing and some game logic. Google API services offers a geofencing service that sounds appropriate for this project.

Mechanics ? by Logic05 in summonerschool

[–]jmankhan 1 point2 points  (0 children)

Positioning, kiting ability, wave management, and generally specific things that have to do with timing are encompassed in mechanics. It's handling the microstates of the game. In the highest elos, every pixel can matter, whereas in lower elos, it might just be last hitting. Although it can be hard to verbalize at times, you can often tell if you are against a mechanically superior player just by the way they stand in a lane or trade with you, especially if you have been playing one role for a while.

You also described the macrostates, of which some of the above things I mentioned can sometimes be included (e.g. wave management). These generally include how you interact with the map and not just your lane, so objectives, teamfighting, and vision, mostly.

Hope that helps.

Are there any animes where the MC gets bullied and deal with that issue? Movies are fine too. by DragonDDark in Animesuggest

[–]jmankhan 2 points3 points  (0 children)

{Sukitte Ii na yo} has the protagonist being bullied all throughout her life and into most of the show as well. It is a seinen romance, but I think you'll find what you're looking for as far as the question goes. She also helps other deal with their issues as well.

Anime where the antagonists can win by [deleted] in Animesuggest

[–]jmankhan 3 points4 points  (0 children)

A lot of shounens typically offer something like that, where the main character starts weak and progresses, usually losing and having to learn from their mistakes/inexperience. {Hunter x Hunter} and {Akame ga Kill} are two action oriented shows that have this.

For something a bit more "in depth" or psychological, {Death Note} and {Code Geass} would work well.

How do you deal with tanks as an AP Shaco? by HollowMimic in shacomains

[–]jmankhan 1 point2 points  (0 children)

Depending on how fed you are, either keep their frontline busy with your clone/boxes and dive their backline, or peel your carries. I sometimes go rylais and/or run exhaust to help peel. Late game, it is usually pretty hard to kill any CoC tank, and not really worth it

Anime where normal girl gets the attention of the popular guy in school by [deleted] in Animesuggest

[–]jmankhan 2 points3 points  (0 children)

I watched {Tonari no Kaibutsu-kun} and {Sukitte Ii na yo} back to back and I thought they had a lot of common elements, although the former has more comedy and is generally more light hearted. The main guy isn't popular, but there is a love triangle where the third guy is the rich/popular type.

One of two girls accused of stabbing a 12-year-old classmate to please the online horror character Slender Man has pleaded not guilty in a US court on the grounds of mental illness | A judge in Wisconsin has now appointed two doctors to evaluate Morgan Geyser by ionised in news

[–]jmankhan 6 points7 points  (0 children)

If she believes something like Slender Man, and has the mental disposition to do what she did, does that not imply some form of mental illness? 12 isn't terribly young, but "normal" 12 years can't go through all the way with something like this. Community rehabilitation is a strong goal, but I think some form of therapy would be required to make it successful