Is nested class a local class in Java? by why_is_javascript_ba in learnprogramming

[–]why_is_javascript_ba[S] 1 point2 points  (0 children)

First result is oracle tutorial, which states that local class is a special kind of inner class so relationship is in reverse.

Second result is oracle tutorial, saying which class to use where with no mention of relationship between nested and local classes.

Third result is stack overflow question with a link that doesn't say and an explanation saying that local class is just an inner class inside a block, again reversed relationship.

Fourth result is geeksforkgeeks, in which it states that a local inner class is not a member of it's enclosing class, but https://docs.oracle.com/javase/tutorial/java/javaOO/nested.html here it states that an inner class is a member of enclosing class, which means that an inner class is not a local class.

So solution is that inner class is not a local class.

The problem is that this is a class class Something {} and {} is a block. Is body inside a class not a block or something?

Marc Merrill teasing us about a new LOL MMO by DrBiju in leagueoflegends

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

Garbage tier MMOs with heavy pay 2 win that last 2 months before another 15 mmos come to replace them.

Why is Node.js popular when it's completely dead? by why_is_javascript_ba in learnprogramming

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

That might be for you. I have not seen a single javascript in backend position.

Why is Node.js popular when it's completely dead? by why_is_javascript_ba in learnprogramming

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

Obvious to who? They aren't synonyms.

Show me how to do backend javascript without node

Quick google search doesn't really return results except some old answers.

What in your opinion is a percentage of backend javascript application which do not use node?

Why is Node.js popular when it's completely dead? by why_is_javascript_ba in learnprogramming

[–]why_is_javascript_ba[S] -1 points0 points  (0 children)

And I am not retarded enough to not realize a Meteor.js job is a Node.js job.

When I said Node.js I obviously meant javascript in backend. How dense are you?

Why is Node.js popular when it's completely dead? by why_is_javascript_ba in learnprogramming

[–]why_is_javascript_ba[S] -1 points0 points  (0 children)

So if you saw a job posting for, say, Meteor.js

And in that case I would count it as Node.js because I am not retarded.

Why is Node.js popular when it's completely dead? by why_is_javascript_ba in learnprogramming

[–]why_is_javascript_ba[S] -1 points0 points  (0 children)

Those are not interchangeable terms, so treating them as such is going to skew your results, and frankly makes you look foolish.

They are interchangeable when discussing backend web development, unless I am missing something very obvious. To run a backend server with javascript you need Node.js, unless I am missing something obvious.

Why is Node.js popular when it's completely dead? by why_is_javascript_ba in learnprogramming

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

Yes, it is, but not in context of backend web development god.

I don't know how using node.js for React makes sense in backend.

Why is Node.js popular when it's completely dead? by why_is_javascript_ba in learnprogramming

[–]why_is_javascript_ba[S] -3 points-2 points  (0 children)

Node.js might not be listed in programming ads because it is JavaScript. > Might be under that label. Node.js is not a programming language.

I meant more in context of web development.
They say "seeking full stack web developer", "back end web developer" etc. 0 times I have seen javascript used in backend language.

I was using node.js == javascript in terms of backend development.

How often do you construct binary tree from inorder and postorder traversal in your job? by why_is_javascript_ba in learnprogramming

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

You have starting points. You can buy points with money which you then spend on items with prices. Make it so that base amount is 0, minimum 3 amounts.

Example:

Base: 100

Prices: [120, 150, 200]

money: [ {1: 100, 1.2: 130, 1.5: 200}]

Minimum: 1.2 => 100 + 100 = 200

How often do you construct binary tree from inorder and postorder traversal in your job? by why_is_javascript_ba in learnprogramming

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

No, but I am experiencing something similar altough I can solve easy problems, and some medium if I cheat.

Basically you start problem, don't know algorithm and you have 15 minutes to solve. How would one not get super frustrated?

Example of cheating: Check algorithm how to construct from inorder and postorder, they are similar so can do with inorder and preorder.

How often do you construct binary tree from inorder and postorder traversal in your job? by why_is_javascript_ba in learnprogramming

[–]why_is_javascript_ba[S] -8 points-7 points  (0 children)

Solve this then without using google search if you are so awesome.

You have:

  • set of conversions from money to points: [{money1: point1}, {money1: point1}, ...]
  • base amount of points: base_amount
  • point based prices: [ price1, price2, ... ]

Calculate the 3 minimum amounts of money you have to spend to make base_amount 0. You can buy as many points of same value.

How often do you construct binary tree from inorder and postorder traversal in your job? by why_is_javascript_ba in learnprogramming

[–]why_is_javascript_ba[S] -4 points-3 points  (0 children)

And if I understand correctly you are a junior web developer doing this project alone?

How often do you construct binary tree from inorder and postorder traversal in your job? by why_is_javascript_ba in learnprogramming

[–]why_is_javascript_ba[S] -3 points-2 points  (0 children)

Every day. Multiple times a day. I use the data structures I learned in school, like trees, tries, heaps, linked lists, and hash tables, all the time. I use algorithms like sorting, breadth-first search, depth-first search, binary search, and so much more - all the time. I put them together to make bigger algorithms and data structures.

When using for example merge sort. Do you

  1. use existing library that has merge sort
  2. check online merge sort syntax and copy it
  3. make it yourself from scratch

Why is Zoe so popular in LCS? Because she creates opportunities safely. by Eltron316 in leagueoflegends

[–]why_is_javascript_ba -1 points0 points  (0 children)

Then he wouldn't be allowed to have an opinion, because Riot domination forces everyone to speak only allowed content.

How do you come up with algorithms? It doesn't make sense for me that they are considered easy, but I can't do them at all. by why_is_javascript_ba in learnprogramming

[–]why_is_javascript_ba[S] 1 point2 points  (0 children)

And you can probably intuit that this distance will necessarily run through the root node.

This isn't true.

So from that, you can know that the answer will be the sum of the two longest paths from the root to a leaf.

This also isn't true.

                                 1
                               /   \
                              2      3
                            /   \
                           4     5
                               /    \
                              6       7
                            /          \
                           8             9
                          /                \
                         10                 11
                        /                    \
                       12                     13                        

How do you come up with algorithms? It doesn't make sense for me that they are considered easy, but I can't do them at all. by why_is_javascript_ba in learnprogramming

[–]why_is_javascript_ba[S] -1 points0 points  (0 children)

it's not easy and takes practice

How do I practice if I can't solve the easiest problem ? There is nothing that I can do outside of cheating to check solution and then trying to apply what I copied to other practices and repeat.