« first day (2436 days earlier)      last day (2508 days later) » 

12:42 AM
Couldnt get jar to run for about an hour
realized the Main-Class line in MANIFEST.MF said Main-Class: main.class instead of Main-Class: main
I swear, programming is a living entity, and it's trying to get rid of me.
 
 
3 hours later…
4:00 AM
"Life is like a camera: just focus on what is important, capture good times, develop from negative, and if things do not work out, take another shot!" -Daireth Winehouse (source)
 
 
2 hours later…
5:57 AM
Life is like an enigma; it puts you in a state of quandary.
 
hey guys, is their like an api for unit conversion and measurements?
 
@SamIbraheem Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
 
I stumbled upon the JSR project but as far as I understand it was aborted and the whole thing doesn't work now?
 
7:02 AM
@OakBot Life is like a camera, wasting film on useless shots only gets you farther from your real potential.
 
7:46 AM
Life is like geometry; without it, life is pointless.
 
 
5 hours later…
12:47 PM
Morning, Java!
 
1:05 PM
Dang it @Uni!! Update your cloud!!
 
@Michael It doesn't need an update, so I'm not going to waste resources doing that.
 
Resources? What are you, a middle manager? xD
@Unihedron: The youngest PHB in history.
 
2:07 PM
hey someone here who feels confident about locks/synchronization who could help me understand something real quick?
 
 
1 hour later…
3:18 PM
Hey guys, I'm using JScience and I was wondering if there's a way to use a string input that expresses a unit into a Unit object by converting to an Object first
 
3:32 PM
Anyone here good with swing?
@SamIbraheem I don't know JScience but I might be able to help
What is/are the constructor(s) for a Unit?
 
 
2 hours later…
5:34 PM
Hello
we have only one hour to finish ramadhane left
:D
 
5:56 PM
@CardinalSystem Well Unit takes <> arguments with units and measurements, e.g: Unit<Temperature> and so on
 
Generic args.. hmm..
Are you using an IDE?
 
@CardinalSystem yes Android Studio
 
Could you find the class for Unit and show me what it looks like in there? It'll be something like
	public class Unit<T extends Object>{

		public Unit(T variable){
			//...
		}
	}
 
@CardinalSystem hangon
 
6:14 PM
@SamIbraheem Hold up, I think I got it
What Unit are you trying to parse a String to?
 
Temperature, length...
aactuallly many units
@CardinalSystem
 
I hate interfaces sigh
gimme a sec
@SamIbraheem What would it look like if you didn't use a string to define a temperature variable?
I'm still figuring out interfaces, so having an example could help (Since I'm good with parsing)
 
6:32 PM
I'm afraid this is my only option, since I'm using Spinners to get the selected measuring units
 
You would need to find an object that implements the unit you are parsing to
 
How does that happen?
 
If it were a list, you could do something like this:
		List<Integer> list = new ArrayList<Integer>; //Arraylist implements list

		If you can find a class that implements the unit, than you can parse it: Unit<Tempature> = Fahrenheit.valueOf(string);
 
Looks like a good idea
 
I'm still a little new to Java myself, so interfaces confuse me
 
6:43 PM
I know right? I just hate them
 
Hello World
@Cardi
Interface is 100% abstract classes, so first understand what it is abstract classes...
 
I know abstract classes
 
Interfaces are great; you guys just haven't found a good use for them yet.
 
I have, but they are a pain to work with when you don't know any objects that implement them
interfaces (IMO) is mostly useful in games like Minecraft where there are constant horrible updates. If it updated constantly, than having templates helps
 
of course, for example interfaces it's very good when I will make updates, make different versions, create APIs...ect
not just games, it's the base of every great app
 
6:58 PM
I'm still getting accustomed to them, so they are uneasy with me
 
Interfaces are very useful when it comes to Generics
 
well, that's true
I'm making a program for parents, and I had to figure out interfaces and generics before I could begin :P I know the basics of interfaces + generics, but as I said, I'm still a rookie. I'll probably understand them better next year
 
don't forget, it's according to your needs
I suggest you to work with the interfaces even if you do not understand, by the time u'll understand why we use interfaces
 
Did you know interfaces can have default methods?
 
7:25 PM
TBH I don't even know what a default method is
 
It's a method in an interface that has a default implementation; implementing classes don't need to override or implement it.
 
8:03 PM
suppress the urge to rant about his this is a hack and an abomination onto OO everywhere
hOi
Basically, they wanted Lists to have a .stream() method in Java 8, that would generate a stream from the List. But List is an interface, it can't have implemented methods. Enter default methods.
And now @fge will disagree with me 😀
 
8:26 PM
Kinda dangerous, don't hope that beginning programmers will use default methods by default
 
@JoostVerbraeken Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
 
Apart from hacks that Oracle wants to make to keep everything backward-compatible there's not really a reason to use default methods
 
Example of default interface methods: pastebin.com/rdPJt0r0
 
8:42 PM
It's like whenever I say something, the chat goes completely quiet. 🤔
 
@JennaSloan Well, maybe you should take the hint, then.
 
8:57 PM
Male programmers must be afraid of female programmers.
4
 
Nope, not at all
 
9:10 PM
Did you know, the first computer programmer was a woman.
 
How did this become about gender now?
(Because I was joking, in case that wasn't clear)
 
9:31 PM
/cat
 

« first day (2436 days earlier)      last day (2508 days later) »