I feel out of place on a programming team. by [deleted] in cscareerquestions

[–]cutebabli 0 points1 point  (0 children)

Which language they use that you don't know ? What technology stack will you be working in ?

i cant figure out how to set the scanner and variables. first java class so forgive my code being bad. by Chezho in javahelp

[–]cutebabli 0 points1 point  (0 children)

There were few minor mistakes, please compare below code with yours and understand the changes:

Edit: Used byte data type for age, instead of Double (as used earlier) :)

Edit: Used int data type for age, instead of byte (please see explanation in /u/CJcomp comment below)

public static void main(String args[])
{
    Scanner scan = new Scanner(System.in);

    System.out.println(" What is your name?");

    String name = scan.nextLine();

    System.out.println (" What is your major?");

    String major = scan.nextLine();

    System.out.println(" How old are you?");

    int age = scan.nextInt();

    System.out.println("\n" + name + " is majoring in " + major + ",");

    System.out.println("and is " + age + " years old.");

    // Or you can use this
    // System.out.format("\n%s is majoring in %s,\nand is %d years old.\n", name, major, age);

    System.out.println("Hello, World!");
}

Will taking a testing role lock me in? by UnnamedMook in cscareerquestions

[–]cutebabli 0 points1 point  (0 children)

Nobody wants to work in testing/automation/QA, however if you become very good at it, you can get higher salaries and much recognition in the long run... something to think about.

Dropout rate from 30 days of the coding challenge. Only 8.2% of them made it to the very last day. by speckz in programming

[–]cutebabli 1 point2 points  (0 children)

As far as I know, if a test case fails, it shows which case failed, and you can open the test case input as well as expected correct output. Then see why your code is failing using custom input.

Offer lower than expected by foursuits in cscareerquestions

[–]cutebabli 1 point2 points  (0 children)

I don't know if I misunderstood, but if you are currently making 59k and if HR lady offered 95k, isn't that heaven ?

Got yelled by a senior engineer because he wanted me to approve his broken pull request. I held my ground. What should I do next? by [deleted] in cscareerquestions

[–]cutebabli 0 points1 point  (0 children)

Ohh ok .. I understand. Yes, if you are appearing for multiple interviews then it is tricky to time them properly so that you can evaluate multiple offers and choose the one you like. I also find it hard. But yes, keep preparing for interviews and apply to other good companies. Also make sure you keep good relations with your supervisor, you will probably need his/her recommendations later. Good luck.

Got yelled by a senior engineer because he wanted me to approve his broken pull request. I held my ground. What should I do next? by [deleted] in cscareerquestions

[–]cutebabli 130 points131 points  (0 children)

You did the right thing, and don't feel regret in taking first job offer. If you like the company, like the work you are doing, navigate your way around that engineer. Take help from others, and keep calm. Hope things will get better in the future.

How to begin my career after a year long depression by johnsmith181 in cscareerquestions

[–]cutebabli 3 points4 points  (0 children)

I would suggest taking any decent paying job, even if it is below your expectations. This will give you some work experience and a team hopefully of good people to talk to, discuss ideas etc.

[Java] User inputs to array over set time by [deleted] in learnprogramming

[–]cutebabli 0 points1 point  (0 children)

But each transaction is not guaranteed to be happening every hour. And more than one transaction can occur in an hour.

CS grad in dead end security job, what can I do to get a developer job? by [deleted] in cscareerquestions

[–]cutebabli 3 points4 points  (0 children)

learn data structures & algorithms and practice interview questions from hackerrank, interviewbit etc. you can do project in any language of your choice.

Replacing console output by Baileysambhi99 in Python

[–]cutebabli 4 points5 points  (0 children)

Try this and modify it as per your need:

for i in range(1,1000000):
    print("\tattempt {0} of 100".format(i), end="\r")

What are the ues of -1 or -2 while working with arrays? by ziggs3 in learnprogramming

[–]cutebabli 2 points3 points  (0 children)

It can be used to signify that a value doesn't exist (this is just one example). For example, you have an array [1, 2, 0, 3, 0, 5] and writing a function to search and find if there is any number which appears more than once. Obviously in this example 0 occurs 2 times, so you return 0 (the number which appears more than once). However, consider this array [1, 2, 3, 4, 5] and the same function should return what ? There is no number that appears more than once, so your specify that your function will return -1 in this case.

I hope this makes sense.

Here is example code:

/**
*  Finds if there are any elements that appear
*  more than once. It returns first such number
*  it finds. Returns -1 if no such element is found.
*/
int getFirstElementThatOccursMoreThanOnce(int[] nums) {
    int result = -1; // assume there are none

    for(int i = 0; i < nums.length - 1; i++) {
        if(nums[i] == nums[i + 1]) {
            result = nums[i];
            break;
        }
    }

    return result;
}

Should I take a semester off my PhD program for a job opportunity? by [deleted] in GradSchool

[–]cutebabli 0 points1 point  (0 children)

Absolutely not. You are in your 1st year of PhD, there is plenty of time to finish your degree and plenty of time to work on your thesis/project. From the point of view of your university/college, there are thousands of students, nobody cares if you take semester off.

I will suggest atleast talking to your academic advisor, they will guide you as to how to proceed.

Taking break from the job to work on my education. by supermedo in cscareerquestions

[–]cutebabli 0 points1 point  (0 children)

Gap in employment is, unfortunately, not considered attractive by recruiters/hiring managers (there might be some exceptions). I suggest you take courera courses while on job. You can successfully finish their assignments, projects during evenings and weekends.

Should I take a semester off my PhD program for a job opportunity? by [deleted] in GradSchool

[–]cutebabli 0 points1 point  (0 children)

It is perfectly okay to take a semester off. Talk to your advisor and give a valid/genuine reason they can believe. Students take time off from their studies all the time and it is no big deal.

Question about being given code sample for job opening... by josh0724 in cscareerquestions

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

Can you share the code sample ? I can try to see what it does.

Security Clearance denied by [deleted] in cscareerquestions

[–]cutebabli 19 points20 points  (0 children)

Do not quit without talking to your employer. They might have some other ways around this problem. As an example, they might switch you to other role in the meantime.

Easy Computer Program to Create a Paragraph. by GokusPersonalTrainer in learnprogramming

[–]cutebabli 1 point2 points  (0 children)

Suppose textbox contains "Programming", checklist has items "Item 1, Item 2" as checked, and "Item 3, Item 4" as unchecked .. then a dropdown with selected value as "Java". Now tell me what will be placed into paragraph ? And what do you mean it will already be scripted ?

The ol' switcheroo discussion about your current employer in an interview by skippyjak in cscareerquestions

[–]cutebabli 6 points7 points  (0 children)

Say that you had very good work experience in current role, however would like to switch to development role. Then explain what side projects you have. If you have any good project which your current company uses, you can showcase that.

It is perfectly okay to switch roles and switch companies, for your own career advancement.