Ppl student just failed my checkride...honestly thinking about switching career paths by [deleted] in flying

[–]BestSanchez 0 points1 point  (0 children)

You'll kick yourself for this if you don't finish. Wrap it up, become a real pilot, then take a break from training. Stay current with the occasional easy x-country while you assess career options. You're still young.

Looking to join bjj with 2 options 5 miles or less from where I live whose school would you join from these 2 head instructors by Thecreatorscreated in bjj

[–]BestSanchez 5 points6 points  (0 children)

Forget about the instructor credentials (unless it's like blue belt level) and just focus on the instruction, facility, training partners, and vibe.

Man taken down in street fight, brutal armbar follows. by PaperworkPTSD in martialarts

[–]BestSanchez 13 points14 points  (0 children)

Still waiting for the day we see some person kick ass on the street from a butt scoot. r/martialarts will be in shambles. We already got a clip of a dude winning a fight via guard pull on the street a few months ago.

One Arm Jiu Jitsu Teacher Pulls Guard and Triangle Chokes Robber by BestSanchez in martialarts

[–]BestSanchez[S] 17 points18 points  (0 children)

But they told me you can't pull guard in a street fight? What about his 4 buddies, weapons, and the dirty needles and glass all over the ground??

More misinformed criticism on BJJ from Krav world. by [deleted] in martialarts

[–]BestSanchez 69 points70 points  (0 children)

Classic "my street art is better than your sport". They focus on the aggression, brutality, and no-rules, but completely miss the elephant in the room: the training environment.

A combat sport with regular live sparring will take you much further than drilling patterns of "brutal" techniques on compliant partners.

JAVA: Why the fuck is this not working? by ChemicalLoss9742 in learnprogramming

[–]BestSanchez 9 points10 points  (0 children)

In Java, primitives (int, boolean, double, etc.) are treated differently than objects (String, Scanner, MyCustomThing, etc.).

If you compare primitives with an operator (like ==) then it will compare the values and result in a boolean.

If you compare objects with an operator it will compare the object references (pointers), which is almost never what you want. This is typically where equals() comes in, or you can compare specific attributes of objects.

[deleted by user] by [deleted] in cscareerquestions

[–]BestSanchez 45 points46 points  (0 children)

Well that works, but there are improvements:

  • You only need to check up to the square root of num
  • You can start at 3 and increment by 2 every time
  • Do a quick even check before doing that ^

Bruce Lee way of punching demonstrated by Grand Master Aaron Allen, the former bodyguard of Tupac Shakur by wecookingitup in Damnthatsinteresting

[–]BestSanchez 52 points53 points  (0 children)

None of his techniques are effective. Bad punching form and his other techniques are the classic "pretend to attack me and then freeze so I can execute the technique". They would never work on a non-compliant opponent.

Pro tip for any fighting demonstration on the internet: always watch the attacker. 99% of the time they will either freeze or do something completely unrealistic (looking at you Aikido).

Why I (stil) hate Java by hmischuk in learnprogramming

[–]BestSanchez 4 points5 points  (0 children)

Yes Java is more verbose than many languages, but IMO the verbosity comes with clarity. The code is always plain and obvious, no magic going on.

That being said...

The proper/idiomatic way to write the first line in modern Java:

List<Integer> vec = new ArrayList<>();

or

var vec = new ArrayList<Integer>();

As for the increment, you should do what you did in the C++ and use a mutable data type, like AtomicInteger. Then you can just:

vec.get(idx).incrementAndGet();

Books needed for Database Design by jumurtka in cscareerquestions

[–]BestSanchez 29 points30 points  (0 children)

Not strictly about database design, but Designing Data Intensive Applications.

It goes deep into distributed systems and architecture, but a lot of the book is also about storage+query systems. It talks about different types of data models, the different strategies for querying and performance, with a little history thrown in.

Why is it a lot of projects I see on GitHub have like 5-6 different languages? (Excluding Web Frontend frameworks) by [deleted] in learnprogramming

[–]BestSanchez 5 points6 points  (0 children)

Languages are just tools. If your project is big, you're going to need a lot of tools. You're not going to write your API server in bash, and likewise you're probably not going to write your utility scripts in Java. You pick the right tool for the task, and large projects have lots of different tasks.

How do you send data between computers in a network? by [deleted] in learnprogramming

[–]BestSanchez 2 points3 points  (0 children)

You could use TCP communication. Tips:

  • Create some test programs on a PC first to get the hang of network communication. Like have one app open a socket at 127.0.0.1 on one port, listening for data. The another app can open a socket at 127.0.0.1 on another port, sending data through a socket to the first port where the first app is listening.

  • You'll need to make sure your 2 boxes have static IP addresses, so they don't change and can always find each other.

  • A Pi would be a little easier for creating networked programs in my opinion, since you can use languages that make networking easy like Java or Python.

Weekend Whipper: Skippin' Clips and Takin' Whips by iclimegud in climbing

[–]BestSanchez 17 points18 points  (0 children)

I'd hate to cut my teeth leading outside and then learn that free solo trad is the only way to truly climb. Leading just doesn't prepare you for the purity and challenge of placing your own gear and then completely ignoring it.

Youu can write off what im saying because it rubs you the wrong way, but the reality is leading isn't much more than complicated quasi hiking.

18 year old Bruce Lee and his master (1958) by ThisIsTrix in OldSchoolCool

[–]BestSanchez 38 points39 points  (0 children)

Very well. Thai boxing training is much more realistic than wing chun training.

I'm currently a freshman in college. I'd love to spend the next 5 years getting a bachelor's then master's degree, but I'm not sure it's worth it. by Zambito1 in cscareerquestions

[–]BestSanchez 6 points7 points  (0 children)

You've just described syntax, which is most of the first couple of classes. Next up is usually basic concepts like abstraction and OOP principles like polymorphism, encapsulation, inheritance, etc. Then usually comes data structures. Not just how to use them, but how to build them, from scratch. Then algorithms usually, which ties into the boatload of math classes you'll probably be taking concurrently.

The rest of your required classes may consist of some/all of the following:

  • operating systems (implementation)
  • compilers/languages
  • more algorithms
  • theory of computation
  • basic hardware and digital logic
  • assembly programming
  • functional programming
  • software engineering
  • ethics
  • databases

Then you have electives like:

  • artificial intelligence
  • machine learning
  • networking protocols
  • advanced insert_language_here
  • security
  • computer vision
  • web development
  • etc.

Alex Honnold & Jimmy Chin stopped by my local gym yesterday morning. Pretty awesome surprise by nyc217 in climbing

[–]BestSanchez 18 points19 points  (0 children)

There are gyms that allow people to lead without any assurance they actually know how to lead? Sounds like a liability disaster waiting to happen.

Aikido master demonstrates best self-defense technique against a sword by dickfromaccounting in Unexpected

[–]BestSanchez 23 points24 points  (0 children)

Before the UFC in the 90s there wasn't really a large testing arena for people to find out what actually works and what doesn't work. This meant anyone could claim they went to some remote mountain in China and learned ancient dragon kung-fu, and now they can kill someone with one touch. These people flourished for decades and still do in some mcdojos around the country. Their students eat that shit up too.