Amaru Shakur

Ranch Hand
+ Follow
since Jul 17, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Amaru Shakur

Amaru Shakur wrote:ok i want to make a very easy user interface for the client. there is a section where they would have to add the path to a file. its targeted at windows users

so lets say they need to specify this path
c:\ program files\Counterstrike\new map"

im making a file in the directory however i would like it if i could just have
Scanner sc = new(Scanner System.in);
String input="";
input=sc.next();

and they could put it in as c:\ program files\Counterstrike\new map
without having to worry about double \\ing to do the escape sequences for java.

any ideas?



actually it works im suprised. why is that does the scanner know to catch the escape sequences for me?
14 years ago
ok i want to make a very easy user interface for the client. there is a section where they would have to add the path to a file. its targeted at windows users

so lets say they need to specify this path
c:\ program files\Counterstrike\new map"

im making a file in the directory however i would like it if i could just have
Scanner sc = new(Scanner System.in);
String input="";
input=sc.next();

and they could put it in as c:\ program files\Counterstrike\new map
without having to worry about double \\ing to do the escape sequences for java.

any ideas?
14 years ago
thanks alot for the help.
and i am mostly talking about smaller companies. alot of them are open to negotiation or asked about desired compensation which is why i seek this informantion.

is there anywhere i could find the average salary range for software developer interns? because the ranges i am getting are very inconsistent. And what didnt help was an offer on the west coast that was in the high 20s with a 4k housing subsidence (however i didn't apply extensively there), where i have heard rates of 13/hr$ being paid by some companies. the reason i asked a range is because i wasnt sure if i was selling myself short and wanted some experience negotiating for when i seek permanent full time employment.

15 years ago
What are some typical ranges for experienced Summer Interns working in the software development industry in popular Urban areas hourly rate. Like NYC metro area, Boston, Southern California, Seattle, Chicago ect...
not just java related work it could be c/c++ or ruby rails, or the J2ee environment or web development work.

like if you can just say the area you are talking about and what any developer intern might get and what some of the better ones might get range wise (DONT say the company name please) per hour



when i say experienced im talking
3 years practical industry software development at 3 companies part time and summer positions
- j2ee experience , alot of backend experience oracle, mysql, c/c++ experience, javascript php experience, web development experience
- 3/4 cs undergrad
- 3/10 classes done for software engineering masters
- us citizen

I have gotten offers from everywhere i interviewed sometimes less than an hour after i interviewed. offers were between 20-27.50$ an hour. However one for 18$ an hour (this is all based on the NYC metro area, so either NYC, NJ, PA, or CT) threw me on a loop because i was wondering what is typical. I was thinking about trying to negotiate it to be competitive with the other offers because i had a significant interest there however i wish i had a better idea of interns pay scale.

thanks
15 years ago
Its one of the bullet points i have under a job experience here is how it reads



"Aided the transition of existing C++ code to run in a Java environment"


i dont think its reads right. basically we wanted to expand our java footprint so we saw how things were made in c++ and did our best to have makeas much of the project in java. what is a better way to write this thanks?
15 years ago
well like lawyers are a member of the american BAR association one could think of that as a group to protect that kind of white collar job.

if anything i think the ieee might be the closest for us. its trying to get there but more people need to get on board first
15 years ago
thanks alot

how about that uml diagram
15 years ago
so im going to do this before the spring, based on helping my friends study for this i think it shouldnt be too hard. i have a few questions

0 there is only one version of this test so any book for scja should be current right?

1 where can i find the topics list
2 where can i find that uml diagram everyone talk about
3 What are 2 great books to buy? (i want one that is really basic ie starts as if you were a terrible java programmer and one that will cover every topic i will ever see on the scja)
4 Where can i find a decent amount of free practice material? (old tests or something)
5 what is that book that is worthy for studying for the SCJP while studying for this (i think the author is a moderator here like Jane something). i was told to study both at the same time.

thanks all please number your answers
15 years ago
well really i dont think the person knows 100% what they want, they just want any testing in the applet which is pretty hard to test in my opinion (well all i know how to test is the components it works with but the applet itself is pretty hard (i even looked at jmeter but thats something for another day because its not focused on testing the applet it at best is could only tell me if the applet is a source of poor performance on other resources, i never did any unit testing focused on applets, its mostly been with databases and java interacting with them (through ejbs or spring ect)).

so in reality i think im just going to do some regression testing and keep it below the surface of the gui (no watir or selenium stuff).

but i was wondering if there are any other ways to test an applet or any good sources to look at.

the person mandating just wants any tests to test the applet for the sake of testing, however they would prefer if they had them similiar to the other unit testing (in those junit html pages).
15 years ago
ok so i want to give a preface that this wasnt my idea but i "must" be able to do regular asserts in order to test code inside an applet (like very simple stuffs that can be covered by the java Asserts , however in order to view the results it would be highly favored if i could have junit collect it due to junits very nice html list of erros and failed and passed tests).

this is what i did

i made an object lets call it FOO that holds AssertionErrors (you can populate it and "run it" which prints out all of the erros and their stack traces and you can print out the garbage (anything that might have been stored in there that isnt an assertion error and clear all of the garabage). Now rather than just calling the run method of this object at the end of my applet i would like to be able to initiate these testing protocols from outside the applet.

the only thing i was thinking of that i know would work is making this FOO class a static class and then having a driver call its run method and show all the exceptions stored in it with the respective stack trace. (but i still wont have the nice junit html output).

however is there any way i could keep FOO as a non static class populate it in the applet and some how send it to a junit class to pull all the garage out of it and show that as errors and all the AssertionErros in it as failed tests so i have junits nice html display sheet?
15 years ago
i would be hesitant to catch exceptions in your junit test methods. some say you should naturally let them be handled by junit and i agree. because if you get an exception anything done after that before the catch will appear to be a passed test even though you could have alot of bugs hiding due to ending the test from the exceptions you caught. i read a good article about this during the summer that i will try to find.


edit here is the url.

http://blog.platinumsolutions.com/node/113
15 years ago
thankyou very much i was never aware hava had these asserts in it.) now i stored all of the AssertionErrors that could be generated by catching them after each assert in a list. Now i was just going to go through the list and print the stacktrace for each error i had in it. However i was thinking couldnt i throw these into junit so i could get the nice html.
15 years ago
honestly i just want to be able to use the assertions and have a way to see if they are right. without changing methods to to test<method name> .

like lets say in my actionlistener i just want to assertNotNull("your top button is null",btnTop);

or if i just want to see if a string equals something

lets say in the init method i want to make sure a string is the right string.
String red="red";
assertEquals("your red string was set right", red,"red");

whats the easiest way to have these assert methods functioning in order to junit to find them. normally i was under the impresination you need to extend TestCase and start each method with test in order for junit to find it.

I was thinking about making an object that would have the assertmethods i need and just reverse engineering the junit methods (as in re writing the code behind the TestClass class) and embedding that object and making a static method that would run all the tests i populated it with.

I think there must be an easier way to do this care to elaborate? like i couldnt do it the regular way because i cant call my init testinit() for the applets sake. however couldnt i just store all these asserts in an object and then have a testSuite run them or find some other way to do things? thanks


like for this code below say that i just want to see if the color string is red. how would i put the assert in and what else would i have to do? thanks
public class HelloWorldSwing {

private static void createAndShowGUI() {
String color="red";
JFrame frame = new JFrame("HelloWorldSwing");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);


JLabel label = new JLabel("Hello World");
frame.getContentPane().add(label);


frame.pack();
frame.setVisible(true);
}

public static void main(String[] args) {

javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}
});
}
}
15 years ago
i am in a delema. i am told to use junit style tests with the asserts inside of an applet, like inside the code that makes an applet. the problem is java doesnt allow multiple inheritance and i cant also extend TestCase.

now i know how bad the design of putting assert statements inside an applets code smells design wise but its not my call.

i was wondering if there is an easy way to do this or do i have to remake junit asserts in a way. like make a assert object, that collects all these assert statements, and then have something run that object which will process the asserts and convert them to real junit asserts and obviously that object will extend TestCase.
15 years ago