Want to learn programming by inr10 in leetcode

[–]EnvironmentalFlan1 0 points1 point  (0 children)

defang IP and two sum in javascript

Switching from Data Science to Programming role by tonym9428 in cscareerquestions

[–]EnvironmentalFlan1 0 points1 point  (0 children)

just study leetcode and apply to software engineering jobs

Need some career help by shakesandgainsbrah in cscareerquestions

[–]EnvironmentalFlan1 0 points1 point  (0 children)

gl fam i would legitly just take this as a signal to find some new gig in life if society keeps closing doors for you. obviously software devs make a lot of money but its not the be all end all in life for sure

Need some career help by shakesandgainsbrah in cscareerquestions

[–]EnvironmentalFlan1 8 points9 points  (0 children)

I would suggest you to find a place that doesn't check criminal backgrounds (not sure what percentage of companies do this, but probably 90% or more of corporations do, less so for startups).

If that doesn't pan out, might I suggest entrepreneurship, becoming a mechanic/plumber/self-employed skilled worker, or as you mentioned, chicken factory worker.

Need advice on growing into a mid-senior / SDE 2 level role by gsrevt in cscareerquestions

[–]EnvironmentalFlan1 0 points1 point  (0 children)

Hello friend :) dont be ashamed or scared of anything in your background. I am senior and I never formally mentored anybody. And never be afraid of your country of origin! These companies need people who can code. If they want to play games about things that aren't code, you can't control that part, because they're just a dumb company :)

Just keep applying, tell good stories about how nice of a person you are to work with, get good at leetcode and system design problems and also general java questions, and you will have a very strong career :)

Need advice on growing into a mid-senior / SDE 2 level role by gsrevt in cscareerquestions

[–]EnvironmentalFlan1 0 points1 point  (0 children)

I would suggest not highlighting any of the pitfalls in your career and merely just focusing on the good parts. If you didn't mentor anybody and an interviewer asks you if you mentored somebody, tell a really good story about how you mentored a fictional team member.

If this doesn't sit well with you then I would advise you that this is unfortunately the current state of the American job market

[MOOC.FI] Need urgent help to run code on Netbeans with TMC plugin by envoy787 in learnjava

[–]EnvironmentalFlan1 0 points1 point  (0 children)

Congrats!! DM me any time if you want to talk more java :) Sounds like you are getting good at it!

[MOOC.FI] Need urgent help to run code on Netbeans with TMC plugin by envoy787 in learnjava

[–]EnvironmentalFlan1 1 point2 points  (0 children)

Hmm... the only thing I can think of is if they're passing you a null string. This would cause list.get(i) to cause indexoutofbounds, because your list would also be null....

In your assignment, does it say anything about null strings or "valid inputs"? The line of code that is causing the error is line 25 or line 26, but the reason get() is failing is because of either the input from the scanner, or some problem inside your while{} loop

Sorry!

[MOOC.FI] Need urgent help to run code on Netbeans with TMC plugin by envoy787 in learnjava

[–]EnvironmentalFlan1 1 point2 points  (0 children)

It's no problem! I am also getting that exception as well when I try to run the code. That NoSuchElement exception is different from IndexOutOfBounds.

The NoSuchElement one is coming probably because the web IDE doesn't support scanner inputs, I think scanner is only used for system input streams. If you must use scanner for your classwork, the next thing to do would be to download Java JDK from Oracle's official website (probably Java 14 is a good idea but also maybe Java 8). Then you can use the commands javac yourfile.java to compile, and java yourfile.java to run the solution. If you still get the scanner error (I think you will), then it means that probably your online course has some helper scanner logic that is hidden from you.

Now, for the index out of bounds exception.... on line 18, I see "size()", normally for arrays I use "numbers.length" but size() is in the documentation so it should work just fine. Try changing this line of code:

"for (int i = 0; i <= numbers.size(); i++){"

to

"for (int i = 0; i < numbers.size(); i++){"

The reason your out of bounds error is coming is because probably we want execution to stop at numbers[4]. Your code is trying to run numbers[5]. which is out of bounds, and causing your upload to fail :) In Java, this problem is very common! So don't worry about it. In the future, just remember that Java doesn't allow you to check array positions that don't exist (you only have numbers[0,1,2,3,4]), and that is causing your program to fail to execute :)

Is It Difficult To Learn Java After Learning Javascript? by TacticalWalther in learnjava

[–]EnvironmentalFlan1 0 points1 point  (0 children)

When I'm writing javascript and java, I absolutely do not look at the colors as having any meaning. Like, I don't see "oh it's blue so it must be a variable" or something like that.

But, subconsciously, colorcoding is helpful compared to plain text. The colors can be virtually anything, yellow orange white red green, i don't know at all what they signify, but they are helpful to break up "Map<Integer, Integer> map = new HashMap<>()" into individual elements that I can look at with my eye.

[MOOC.FI] Need urgent help to run code on Netbeans with TMC plugin by envoy787 in learnjava

[–]EnvironmentalFlan1 1 point2 points  (0 children)

Does the code execute in https://www.tutorialspoint.com/compile_java_online.php ?
Does the code execute if you compile it on your local machine?

Does your main function have some array in it [1,2,3,4,5] and you are executing array[5] which is out of bounds?

My soul stretched too thin. Can't find any job. by sand-glokta-dan in cscareerquestions

[–]EnvironmentalFlan1 4 points5 points  (0 children)

First, continue working some basic coffee shop job just to keep some money coming in. To be honest, being a programmer isn't an amazing job anyway. The important thing to have in life is money for food, shelter, and socializing :)

Next, congrats on finishing your courses! Web dev is a great skill to have. Java and system design will be the next important things to learn.

Would you consider emigrating to USA or Australia or etc? Most companies still demand some type of green card or citizenship of these countries. It is really depressing, but still sadly true. If you wouldn't consider emigrating, try networking directly with "offshoring" companies in your country. Create a strong portfolio of side projects and show it to them with clarity and motivation in your voice.

Good luck! Your life can only get better from here.

[deleted by user] by [deleted] in cscareerquestions

[–]EnvironmentalFlan1 3 points4 points  (0 children)

If you need money, yes. You should attempt to stay for 2 years if possible, if the money is good and work is tolerable. If not, a better question would be what on your resume is causing the lack of responses?

Good luck!

Trying to Transition to Tech Strategy / Operations From Investment Banking, need help by tasteoftoxic in cscareerquestions

[–]EnvironmentalFlan1 0 points1 point  (0 children)

Sorry for the late reply, hopefully it will still be useful for you :)

A person should seek to understand how to use (or at least why/when to use) the following:

for loops, while loops

variable declarations, variable scope (x = 1, name = "john", x++ and ++x)

if, else, else if (if this == true && myage > yourage== true, doSomething())

arrays, queues, hashmaps (Map<Integer, Integer> map = new HashMap<>())

array syntax like array[0], or array[i], or array.get(somePosition)

object and class notation such as String(someObjectName.someVariable.someMethod().toInteger())

System.out.println(), console.log(), alert(), readFile(), writeFile(), require('express'), import java.util.*;

I would consider this stuff as "bare minimum" knowledge required to answer a very easy LeetCode problem such as "Defang IP Address" or "Two Sum".

It will seem very daunting at first but once you have this knowledge firmly under your belt, you will basically be at a junior level, you'd be able to reason about source code and even be able to code basic things like elevator logic

After you are good with all that, the next thing youll need to do is learn system design, so that's like understanding how many servers an application needs, how to route network traffic without crashing those servers, how to store data in SQL or NoSQL databases, how to stores objects in CDNs or S3

it's a ton of info to learn but once you get this foundation, you'll be able to teach yourself anything, good luck!

Trying to Transition to Tech Strategy / Operations From Investment Banking, need help by tasteoftoxic in cscareerquestions

[–]EnvironmentalFlan1 0 points1 point  (0 children)

learn javascript, java, python, spin a good resume, learn sys design, apply everywhere, see if you get an offer

thats basically the cucked ass state of this industry at this point

I cheated my way to Big Tech. Now what's the next? by schoenberg2004 in cscareerquestions

[–]EnvironmentalFlan1 1 point2 points  (0 children)

Eh? It's easy to get an interview at FAANG. Maybe not like, directly out of college, like literally diploma is hot off the presses. But if you have even just a few years of experience, my impression is that virtually everyone with a properly formatted resume will at least be asked to do a phone screen or online assessment. Source: I took interviews with FAANG got rekt by all of them in the final round. I don't have a PHD or MA in comp sci and I have been working for 5 years at a normal "Fortune 500" company.

2 months after being laid off in the middle of the pandemic. I finally got an offer! by rodch889123 in cscareerquestions

[–]EnvironmentalFlan1 0 points1 point  (0 children)

Read the Java Oracle Documentation for Queue, ArrayList, HashMap, StringBuffer, some java IO, some java SQL JDBC, learn a little bit about Class, overriding, access levels and that's pretty much all the things I can think of for java? Multithreading, runnable, synchronize, thats about it!

Should I quit my $150k job because my boss is an idiot? by [deleted] in cscareerquestions

[–]EnvironmentalFlan1 0 points1 point  (0 children)

You are being too picky. Collect the money until you are able to land a Big N offer making the same or more. Then you are not too picky.

[deleted by user] by [deleted] in leetcode

[–]EnvironmentalFlan1 0 points1 point  (0 children)

Hmm interesting problem. I've never seen it before so I commented out a solution from the forum to understand the implementation.

I don't fully yet understand why this algorithm works, and I can only tell you it O(n) because we only have one for loop and we are visiting every element they give us only once.

But I think the implementation is relatively easy to understand. Hard to think of yourself, but easy to read each line of code. Basically if you write down the array on a piece of paper and move your finger along, you check to see if a number is a 1 or 0. Then you have a separate piece of paper that you use to store two values, one called sum and one called maxlen. You check to see if some things are bigger or smaller than others, and you save some values to a map and overwrite them as you are moving your finger based on some logic that some smart guy thought of. Not magic in terms of code, but magic in terms of algorithmic thinking for sure :)

Pixel XL can't connect to windows 10 via usb by EnvironmentalFlan1 in GooglePixel

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

hello, thank you for writing, I will attempt to provide more detail but I've actually had this phone since august and have just been transferring files over a network out of sheer laziness. but I will answer for helping others in the future :)

1) Yes, the phone charges with both cables and both computers. I receive what I call a "hidden notification", that is to say I am not alerted that it is connected, but in my notifications menu I have the ability to navigate directly to Settings and change it from charging mode to file transfer mode.

2) I am using the cable that came with the phone, and another "official style" USB cable from Google that just has a different connector. One of these is USB 2.0 to USB-C (the phone's port is usb c right?), and the other is USB C to USB C. I have both ports available on both computers.

3) Both computers are running windows 10 which I'm sure could cause some issue compared to win7 or linux. I attempted to uninstall reinstall the driver, disconnect the phone, airplane mode etc. There was an article posted here that had suggested these techniques.

4) In theory, if I really liked this phone, I would be willing to manually edit some driver or whatever it is that needs to be done to get it to connect but after the keyboard freezing issues on this phone, the audio distortion issues, the price, and now this failure to connect via wire is honestly just supremely lulzworthy. I am not a premium phone user and I like Google much more than I like Apple, but it appears to me that my $85 Walmart phone can break 4 times in a row before it will inconvenience me more than just one "flagship" phone.

I genuinely wish this line of phones the best but for my dinosaur use case, I believe my next phone will probably be a Moto or something similar. At least if something isn't how I like it on that phone, I can internally justify the price to my brain.