Software Development and Programming Careers (Official Discussion Thread)

F K

All Star
Joined
Jan 13, 2017
Messages
3,204
Reputation
480
Daps
10,121
<redacted>
that looks like an unclosed element playboy :ufdup:

All joking aside, what do y'all use for CI/CD/ jenkins? travisci? gitlab?

also if i'm trying to break into dev ops is AWS cert worthwhile? should I earn ansible?, terraform? chef?
 

MrPentatonic

Superstar
Joined
May 2, 2012
Messages
4,226
Reputation
670
Daps
14,068
Reppin
NULL
In my city I can start contracting and commanding day rates wiith a year and a halfish experience,

Im 9 months in so far I can not wait, I think I've thought about the possible money I could make almost every day.

One of my homies done just that and he is killing it

You know when shyt just seems to good to be true lmao
 

Trustus

Black like the planet that they fear
Supporter
Joined
May 31, 2012
Messages
697
Reputation
1,170
Daps
2,222
@Obreh Winfrey
:snoop:I bombed my java written final so bad. I can't believe I just went blank :francis: I still can't figure out how to get pass the first section of the final. I couldn't populate a 4 arrays ( 2 in, 2 string) from a text file. I spent the whole 1 hour 30 minuites trying to do this task.
Code:
public static void main(String[] args) throws FileNotFoundException{
    int[] firstyr = new int[15];
    int[] lastyr = new int[15];
    String[] title = new String[15];
    String[] network = new String[15];
   
    Scanner input = new Scanner(new File("tvshows.txt"));
    int totalShows = 0;
    int i = 0;
    while(input.hasNextLine()) {
        String line = input.nextLine();
        Scanner lineScan = new Scanner(line);
        firstyr[i] = lineScan.nextInt();
        lastyr[i] = lineScan.nextInt();
        title[i] = lineScan.next();
        network[i] = lineScan.next();
        i++;
        totalShows++;
    }
   
    }// end main

:mjcry: I still haven't grasped the concept of file processing and arrays. At least the written part didn't bring down my final grade too much:mjgrin:
 
  • Dap
Reactions: F K

F K

All Star
Joined
Jan 13, 2017
Messages
3,204
Reputation
480
Daps
10,121
@Obreh Winfrey
:snoop:I bombed my java written final so bad. I can't believe I just went blank :francis: I still can't figure out how to get pass the first section of the final. I couldn't populate a 4 arrays ( 2 in, 2 string) from a text file. I spent the whole 1 hour 30 minuites trying to do this task.
Code:
public static void main(String[] args) throws FileNotFoundException{
    int[] firstyr = new int[15];
    int[] lastyr = new int[15];
    String[] title = new String[15];
    String[] network = new String[15];
  
    Scanner input = new Scanner(new File("tvshows.txt"));
    int totalShows = 0;
    int i = 0;
    while(input.hasNextLine()) {
        String line = input.nextLine();
        Scanner lineScan = new Scanner(line);
        firstyr[i] = lineScan.nextInt();
        lastyr[i] = lineScan.nextInt();
        title[i] = lineScan.next();
        network[i] = lineScan.next();
        i++;
        totalShows++;
    }
  
    }// end main

:mjcry: I still haven't grasped the concept of file processing and arrays. At least the written part didn't bring down my final grade too much:mjgrin:
you'll come back stronger! if it was easy everyone would do it
 

Obreh Winfrey

Truly Brehthtaking
Supporter
Joined
Nov 18, 2016
Messages
20,852
Reputation
25,252
Daps
131,941
@Obreh Winfrey
:snoop:I bombed my java written final so bad. I can't believe I just went blank :francis: I still can't figure out how to get pass the first section of the final. I couldn't populate a 4 arrays ( 2 in, 2 string) from a text file. I spent the whole 1 hour 30 minuites trying to do this task.
Code:
public static void main(String[] args) throws FileNotFoundException{
    int[] firstyr = new int[15];
    int[] lastyr = new int[15];
    String[] title = new String[15];
    String[] network = new String[15];
  
    Scanner input = new Scanner(new File("tvshows.txt"));
    int totalShows = 0;
    int i = 0;
    while(input.hasNextLine()) {
        String line = input.nextLine();
        Scanner lineScan = new Scanner(line);
        firstyr[i] = lineScan.nextInt();
        lastyr[i] = lineScan.nextInt();
        title[i] = lineScan.next();
        network[i] = lineScan.next();
        i++;
        totalShows++;
    }
  
    }// end main

:mjcry: I still haven't grasped the concept of file processing and arrays. At least the written part didn't bring down my final grade too much:mjgrin:
That looks like it should work. Is that what you wrote down or was that from after the fact? Arrays get easier. File operations always suck.
 

Trustus

Black like the planet that they fear
Supporter
Joined
May 31, 2012
Messages
697
Reputation
1,170
Daps
2,222
That looks like it should work. Is that what you wrote down or was that from after the fact? Arrays get easier. File operations always suck.
Yes, that is what I turned in.
That was just the first section of the test. the file looked like this
1989 1997 Coach ABC
but 14 more lines. the next section was to call a method named printSentences using the arrays as parameters and also sending the array size to print out all 15 entries in the array.:beli: couldn't even get to that point. The rest of the final had you pushing and popping certain arrays and along with other stuff. I just feel defeated. I hate these damn arrays and getting out of bound errors.
Stage 1: 3 pts Stage 2: 10 pts Stage 3: 1 pt (no code) Stage 4: 0 pts Stage 5: 0 pts Stage 6: 0 pts Compile: 10 pts Run: 5 pts (there was no output; I gave you this much because you at least read data from the file). Bonus: 0 pts Total: 29 pts
:snoop:
 

Thanos

?
Joined
Nov 21, 2016
Messages
5,444
Reputation
843
Daps
17,278
Reppin
Atlanta
@Obreh Winfrey
:snoop:I bombed my java written final so bad. I can't believe I just went blank :francis: I still can't figure out how to get pass the first section of the final. I couldn't populate a 4 arrays ( 2 in, 2 string) from a text file. I spent the whole 1 hour 30 minuites trying to do this task.
Code:
public static void main(String[] args) throws FileNotFoundException{
    int[] firstyr = new int[15];
    int[] lastyr = new int[15];
    String[] title = new String[15];
    String[] network = new String[15];
 
    Scanner input = new Scanner(new File("tvshows.txt"));
    int totalShows = 0;
    int i = 0;
    while(input.hasNextLine()) {
        String line = input.nextLine();
        Scanner lineScan = new Scanner(line);
        firstyr[i] = lineScan.nextInt();
        lastyr[i] = lineScan.nextInt();
        title[i] = lineScan.next();
        network[i] = lineScan.next();
        i++;
        totalShows++;
    }
 
    }// end main

:mjcry: I still haven't grasped the concept of file processing and arrays. At least the written part didn't bring down my final grade too much:mjgrin:

I don't remember Java that much, if this is 101 course and your professor ain't caring about effiency. just do 4 loops. This program would not output anything regardless. I'm 80% sure you don't need 2 scanners.
 

Trustus

Black like the planet that they fear
Supporter
Joined
May 31, 2012
Messages
697
Reputation
1,170
Daps
2,222
I don't remember Java that much, if this is 101 course and your professor ain't caring about effiency. just do 4 loops. This program would not output anything regardless. I'm 80% sure you don't need 2 scanners.
Yep intro to computer science course, I froze hence nothing printing out. I'm just mad that I didn't know how to do what was on the test. Hopefully, I can grasp the concepts for data structures next semester.
 

Obreh Winfrey

Truly Brehthtaking
Supporter
Joined
Nov 18, 2016
Messages
20,852
Reputation
25,252
Daps
131,941
Yes, that is what I turned in.
That was just the first section of the test. the file looked like this
1989 1997 Coach ABC
but 14 more lines. the next section was to call a method named printSentences using the arrays as parameters and also sending the array size to print out all 15 entries in the array.:beli: couldn't even get to that point. The rest of the final had you pushing and popping certain arrays and along with other stuff. I just feel defeated. I hate these damn arrays and getting out of bound errors.
Stage 1: 3 pts Stage 2: 10 pts Stage 3: 1 pt (no code) Stage 4: 0 pts Stage 5: 0 pts Stage 6: 0 pts Compile: 10 pts Run: 5 pts (there was no output; I gave you this much because you at least read data from the file). Bonus: 0 pts Total: 29 pts
:snoop:
Code:
import java.util.Scanner;
public class MyClass() {
    public static void main(String[] args) throws FileNotFoundException {
        int[] firstyr = new int[15];
        int[] lastyr = new int[15];
        String[] title = new String[15];
        String[] network = new String[15];
     
        Scanner input = new Scanner(new File("tvshows.txt"));
        int totalShows = 0;
        int i = 0;
        while(input.hasNextLine()) {
            String line = input.nextLine(); // 1989 1997 Coach ABC
            String[] fields = line.split(); // [ "1989", "1997", "Coach", "ABC" ]
            firstyr[i] = fields[0]; //1989
            lastyr[i] = fields[1]; //1997
            title[i] = fields[2]; //Coach
            network[i] = fields[3]; //ABC
            i++;
        }
        input.close(); // Should always close your Scanner
       
        printSentences(firstyr, lastyr, title, network);
     
    }// end main
   
    public static void printSentences(int[] firstyr, int[] lastyr, String[] title, String[] network) {
        for(int i = 0; i < firstyr.length - 1; i++) { //assuming they'll always be the same length
            System.out.printf("%s aired from %d to %d on %s.\n", title[i] , firstyr[i] , lastyr[i] ,network[i]);
        }
    }
   
}
 

Freedman

Choppers For Karate Nggas
Joined
Jun 27, 2012
Messages
18,036
Reputation
5,995
Daps
88,713
Reppin
Louisiana
My professor taught us to use Buffered readers/ writers for File Input/output and we only used Scanners for taking user input from the console :ohhh:
 
Top