« first day (503 days earlier)      last day (3497 days later) » 

12:04 AM
0
Q: Finding palindromic numbers most efficiently

tschodtAfter reading why is my project euler #4 program not working? I was contemplating the most efficient way to approach this (finding the target palindrome as early as possible). Is this snippet about as efficient as it gets? I am only considering the merits of the logic, not the choice of langu...

 
I learned some very valuable stuff reading from this post:
21
Q: Do stored procedures violate three-tier separation?

user61852Some colleagues of mine have told me that having business logic in stored procedures in the database violates the three-tier separation, since the database belongs to the data layer whereas stored procedures are business logic. I think the world would be a very grim place without stored procedur...

@CaptainObvious After reading this question
I found out that
Line breaks aren't particularly fashionable
(if it's all part of the same sentence)
 
12:43 AM
@200_success Can you please answer this query? I am yet to get an answer.
2
Q: Is SList class an ADT?

overexchangeI call the SList class an Abstract Data Type as it has a well define interface but implementation details are hidden from other classes and also satisfies following 6 invariants: Multiple users of SList class should be consistent in usage with same SList instance. For example multiple users ma...

 
@overexchange, did @Pimgd 's 2 answers help?
 
1:12 AM
0
Q: Short way to search text

techteejMaking an email program, I know that there has to be a better way to do this. email_provider = raw_input('Gmail, AOL, Yahoo! or Comcast? ').title() if email_provider in ('Gmail', 'Google'): smtpserver = smtplib.SMTP("smtp.gmail.com",587) if email_provider in ('Aol', 'AOL'): smtpserver ...

 
1:24 AM
Pet peeve of me... "It sounds like crap in my computer speakers"
Response: "It sounds great in my $100 studio headphones"
Next response: "It needs more drums!! The drums are getting drowned by all the other instruments!"
sigh
 
> Everything sounds like crap through your computer speakers.
 
^ that.
 
Moar drums @Phrancis! Come on bro! What's wrong with you?
2
XP
 
It's annoying getting told by general pop users that your mix sounds like crap, because their speakers can't play trebles or deep bass. (they can play mid bass really loud, giving the illusion of real bass)
 
0
Q: My first program. Please help me find what's slowing it down / refine the style of my code

DanielAs a new Python programmer (and very new, self-taught programmer in any language), I’ve finally managed to write my very first program that does something usefully for me! (I got a lot of great help from everyone here in writing this code, so thank you!) The only problem is, the program takes a ...

 
1:37 AM
My first title. Please help me find what is making it long / refine the style of my title
2
 
lol
2
 
Little better...
0
Q: Calculating parsimonies using Python; performance is lacking

DanielAs a new Python programmer (and very new, self-taught programmer in any language), I’ve finally managed to write my very first program that does something usefully for me! (I got a lot of great help from everyone here in writing this code, so thank you!) The only problem is, the program takes a ...

This... looks... odd...
harmPool = [28, 33, 36, 38, 40, 43, 45, 47, 48, 50, 52, 55, 55.86, 57, 59, 60, 60.86, 61.69, 62, 63.86, 64, 65.86, 66, 66.69,
        67, 69, 69.69, 70.86, 71, 71.69, 72, 74, 75.86, 76, 76.69, 77.86, 79, 81, 81.69, 82.86, 83.69, 84, 84.86, 86, 88,
        88.69, 89.86, 90.69, 91, 93, 95, 95.69, 96.86, 98, 100]
Well, anyways... Why does it seem like everyone asking about Python on CR wants to make their code... more Pythonic?
I never see any reviews asking to make code more... Javaic... C#ic... PHPic...
Is Pythonic perhaps just a buzzword?
 
easier and cooler to write than idiomatic python
 
1:53 AM
@overexchange I'm not sure what you mean by "Abstract Data Type". All I see is a linked list.
 
@Jamal sigh
I just heard a reference to this and it made me LOL
 
16
A: Should we treat questions asking for idiomatic versions of code snippets as primarily opinion-based?

200_successPythonicity Pythonistas take pride in the Pythonicity of their code. PEP 20 is a manifesto of "Pythonic" principles: Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. S...

 
> @Jamal JOIN ALL THE TABLES
 
7
A: What are Java Programmers called?

200_successAs a former employee of Sun Microsystems, I think I can explain why there is no single word for Java programmers. To preserve its trademark, Sun had a policy of discouraging any creative modification of the word "Java". For example, the use of the once-current word "Javatized" to mean "implemen...

 
2:09 AM
Eh... I guess this a is better than op... codereview.stackexchange.com/questions/63312/…
 
I must cry foul here.... I am no Java Code Monkey ... Oh, crap. I am! — rolfl 1 min ago
3
 
> And since HTML is touring complete, I think it deserves to be up there with the others.
You can take a tour of the internet using HTML. I guess it makes it touring complete.
5
 
@Phrancis Sigh
2
 
Hi @Yuushi :)
 
hey :)
 
2:25 AM
What is your favorite programing language ? Brainf*** ? — JaDogg 3 mins ago
 
2:40 AM
0
Q: Finding the largest repeating substring

atsay714Here is a function I wrote that will take a very long text file. Such as a text file containing an entire textbook. It will find any repeating substrings and output the largest string. For example, if there was a typo in which an entire sentence was repeated. It would output that sentence; given...

0
Q: Showing a spinner over content - fade out some elements and disable clicking on some elements

Sean AndersonI am displaying a loading spinner inside of various elements. There are four potential states an element could be in: Reduced opacity; unresponsive to pointer events. Reduced opacity; responsive to pointer events. Maintain opacity; unresponsive to pointer events. Maintain opacity; responsive to...

 
3:05 AM
Does this not run based on my browser (Chrome Version 36.0.1985.143) or does it just not run using snippets?
Or is it supposed to endlessly spin that "loading" circle
 
does not spin at all for me....
 
@rolfl browser issue, you wager?
 
FF 32.0.1 ... updating now.
now @ 32.0.2 .... and no spinning ;-)
 
$this->sucks;
Guess Chrome is still a "fringe" browser?
 
4:08 AM
2
Q: Small pre-C++11 pseudo-random library

glampertSome time ago (pre-C++11) I wrote a small random number generator library as part of a university assignment. The code has been stored on my hard drive for quite some time and today I dug it out and decided to post it here for review. It is now obsolete, since C++11 added a very extensive random ...

0
Q: Simple text DataBase

Welsar55So I made this simple text database system for storing a list of objects because I hate using other database programs. But I was just wondering what you guys think I could do to make this faster and less resource intensive. package com.gmail.welsar55.WDB; import java.io.BufferedReader; import ...

 
4:20 AM
@Phrancis Not the 2 answers didn't help
No*
 
4:34 AM
@200_success I mean SList class provides an abstraction of maintaining list of items.
@200_success OK, How would you like to see SList class to call it as an ADT?
 
4:54 AM
0
Q: How do i code fix the static member storing wrong value?

overexchangePart I-IV recommend code changes as mentioned in link1, for the initial code given at link2 Here are the code changes that are made as shown below. /* Fraction.java */ import java.io.*; /** The Fraction class implements nonnegative fractions--rational numbers. */ class Fraction { /* pri...

 
5:10 AM
monking
 
heya @janos
 
hey @Yuushi how's it going
 
@janos Not too bad thanks. Just wrapped up most of a development branch, just created tickets/branch for the next thing, about to start working on that
...on a Friday afternoon. Probably not the best idea, but oh well :)
 
Fridays tend to be highly productive for me too
where on this planet is it afternoon already?
 
5:30 AM
@janos Australia
 
a-ha!
 
5:51 AM
I feel kind of bad hacking together such a crappy database
but it really only needs to be super simple...
 
6:01 AM
Monking @all
 
monking
 
0
Q: Finding the largest repeating substring

atsay714Here's my code that takes a large string, and searches for the longest reoccurring substring. It compares the first letter with every other until it finds a match, then saves it. Then it compares the first 2 letters with every other until it finds a match then saves it. Then 3, 4, etc... Then it ...

0
Q: How to efficiently generate HTML CSS Table using Java?

WebbyI am trying to generate HTML table using Java. I have an object which I am iterating to make an HTML table. Below is my code and it is working fine. StringBuilder sb = new StringBuilder(); sb.append("<html>"); sb.append("<head>"); sb.append("</head>"); sb.append("<table>"); sb.append("<th style ...

 
monking @all
 
monking
 
Monking @chillworld
 
6:21 AM
in an hour I'm going for attempt 3 => inscription at school :D
 
6:46 AM
monking
 
Monking
 
7:00 AM
Monking
 
Time to close down tabs from 130 ;-)
Monking @Vogel612
 
@skiwi do you have a custom search engine just to find the tab you are looking for?
 
@Christoph Actually I don't look at most of the middle tabs ;-)
I have a bunch of 20 pinned ones, and then other opened ones
 
7:17 AM
0
Q: Javascript: How do I append a string to search query only once?

nasektIn this case, Let's take Google as example: The code is JScript .NET, which is basically a .NET version of Javascript.Regardless of language, Anyone with appending type of skill can answer my question The problem is, when I keep issuing the request it keeps appending over and over again, http:/...

 
totally unrelated, but kinda hilarious:
I ordered a display and received it yesterday. When I took it out of its anti-static bag, a resistor followed which, telling by the footprint, could only fit in a place without any solder paste applied at all. I mailed the vendor asking if it's needed (because it was obviously not soldered to the board) and if I should just solder it to the board. This is their answer (emphasis by me):
*This resistor should be getting loose during shipment*,it is
indispensable for this module,due to it will control the backlight,resolder
it on the board is ok,could you polease try it?
 
Lol what @Christoph
 
@Christoph is that [sic]?
 
@Vogel612 copy/pasted and I added the two asterisks
 
what the crap is it with level 1 customer support??
 
7:26 AM
actually this is a great response, I was just surprised that it "should be getting loose during shipment". If they couldn't tell me about the details I'd have to send it back
 
7:43 AM
@overexchange I'll tell you one more time.

It looks decent. Not good, not bad, but decent.
When I look at your rules, the answer is no. It's not a good ADT; It is not an interface. You're receiving the name of the implementor - it might be common, generic water, but it's still labelled "Spa". ADT is about Water, not Spa. Or Evita. Or any other kind of bottled water brand. It's about the abstraction itself.

And those invariants of yours? The code you posted - it doesn't satisfy all of them. It satisfies the first, but such a thing is true for any object in Java that maintains a collection
 
8:00 AM
@Phrancis alligator duck is a little frightening. It's like a Hulk version of @ducky.
 
alligator duck is ... alligating!
 
8:28 AM
0
Q: Constructor with lot of a parameters, need design improvement

Marko MilojevicI'm developing a software for examining programming laboratory exercise for faculty. I have an Error object that can be attached to students work. It can be attached to class implementation (mark code in java file as error), to class itself (student didn't implement something required) or to the ...

 
Just 23 tabs left open!
 
you needed more than an hour for that!?
 
I also did some other things, but I did have to open each tab and check if there was anything meaningful on it
 
Well he did post a wiki link... Those things are dangerous.
 
> Those things are dangerous.
dutch computer programmers?
I suck at chat formatting
 
8:37 AM
@Christoph That's a new one... you're going a step too far. Usually people come a few steps short.
No, the wiki links in general.
Before you know it you're all "Huh, that's interesting"
 
I'm missing parts of the conversation... is someone talking to nobody or do I have someone blocked?
 
aargh, the decisions.
if you are classifying shapes using some Facade...
would you have invalid shapes fail on creation or on classification return Classification.INVALID; ??
 
That depends on the implementation
 
Hmm, my laptop uses 30 minutes of battery charge every hour
 
@skiwi that's something to be happy about, isn't it?
 
8:44 AM
@Vogel612 If it's not lying, then yes
 
@Pimgd I have some class Shape.
this shape has a field depending on what kind of shape it is.
so there is no Triangle extends Shape
 
@skiwi I had a laptop that ran 30 minutes on 93% of it's battery power. Then it lasted another hour on 7%.
@Vogel612 Do you want to support "invalid" shapes
 
@Pimgd well that is kinda the question....
 
well it's a poor question, severely lacking in context =D
 
If I would I'd have to call my classification every time to check if it's invalid or not
But OTOH a separate validation needs to use the same (or at least a similar) pattern as the classification implementation..
So you have a shape.
You have it's type.
and you can classify it.
you cannot add data to the shape, because that'd change it's type
 
8:51 AM
You're still telling me all this too abstractly
in a drawing program, you can perfectly have "invalid" shapes
 
but can you draw them??
 
Sure
 
and why would a classificator need to draw a shape?
 
A ground region where the borders cross themselves
...
 
@Pimgd confusion ensues
public class Shape {
	private final ShapeType type; //composition over inheritance
	private final double[] values;
	private final ValueKind valueKind;

	public enum ValueKind {
		ANGLE_RADIANS, ANGLE_DEGREES, SIDELENGTH
	}

	private Shape(ShapeType type, ValueKind kind, double... values) {
		this.type = type;
		valueKind = kind;
		this.values = values.clone(); //defensive copying just in case
	}
 
8:53 AM
Third and last time: You're presenting the problem to me on an abstract level. I'd like to have context, what's it for? What are you gonna do with it? What's the goal of what you're building?
 
@Pimgd currently it's just a finger-exercise..
 
Then I can't answer your question
I can't tell you what a block of clay is supposed to look like if you're just practising
 
@Vogel612 Wasn't clone() kind of broken and should be avoided? Or are there exceptions to that
 
Once you've got a shape in mind you can ask again, I'd be able to help you then
 
@Pimgd thanks for the insights.
@skiwi was it???
 
8:56 AM
@Vogel612 I see you use it on arrays though, might work there
 
@skiwi it's a shallow clone, as of this so question
maybe that's not exactly what I want..
 
0
Q: Constructor with lot of a parameters, need design improvement

Marko MilojevicI'm developing a software for examining programming laboratory exercise for faculty. I have an Error object that can be attached to students work. It can be attached to class implementation (mark code in java file as error), to class itself (student didn't implement something required) or to the ...

Reopen?
 
@Vogel612 On an array with primitives it might still work, though I wouldn't use it myself
 
this.values = Arrays.copyOf(values, values.length);//defensive copying just in case
 
Only, why?
What is the risk vector you have with an array of primitives?
People cannot supply their own array either way
Or well
People can change the array ofc oruse
 
9:00 AM
@Pimgd I'd say yes.
 
You're right, you need defensive copying
 
@skiwi do you think that comment is unnecessary?
 
@Vogel612 I think it would be to trained developers
Arrays.copyOf clearly demonstrates that it is copying
 
ewww
Shape.values
what does it even mean
height, width, size, rotation, x, y, z, relative position, pixels...?
 
@Pimgd find a better name for the definining characteristics double array that can be lenght, degrees or radians angles...
 
9:05 AM
@Pimgd it means he got past the off-by-one-errors and is now in the naming minefield
 
@Vogel612 What exactly are you trying to do? Store shapes as generic as possible? But also offer the option for it to recognize what it is?
 
@skiwi something along these lines, yea.
I assume all values are of the same "Kind" here
 
Oh yeah right... just an exercise... I'mma go back to my work, I should be doing that
 
and I also assume all "values" are given at creation of the "Shape"
 
I'm just wondering why the values are not classified there
Or are either specification mutually exclusive?
 
9:09 AM
yes.
 
I think the problem here is that if shape can be any shape within the boundaries that define their validity, nothing substantial can be said about those values
 
you can only specify a shape by either the inner angles as degrees, or the inner angles as radians or the sidelengths
I got types for up to hexagons...
 
so that's why they are named "value" (maybe "data" would also work?)
 
everything beyond is a polygon
 
Do you need to retrieve that data?
I would find it more logical to have a converter in front and save data in a single way
 
9:10 AM
@skiwi for analytic purposes..
back to german lesson
 
Everything beyond is a polygon?! @Vogel
 
I'm glad it's a typing exercise; for production there's so many red flags
And they mainly consist of you trying to be clever. ... which you'd have to document later anyway, so it doesn't save you any typing.
 
9:49 AM
Fridays are absolutely horrible
 
nah
 
obviously depens on your plans for the weekend
 
0
Q: Java very slow execution of A* Pathfinding Algorithm

MuneebI am creating a Maze game in java and wants to add a smarty ghost (like Pacman) that move towards user location to catch him. For smarty ghost I chose A* PathFinding Algorithm and found below links for implementing this algorithm : https://code.google.com/p/a-star/source/browse/trunk/java/PathFi...

 
I'm feeling tired like hell... don't know why I event went to university apart from that I have two mandatory things
> Sometimes, however, java programmers may be called "Code Monkeys," by other programmers simply because java is considered an "easy language" requiring "no real skill,"
 
@CaptainObvious VTC, not askers code.
He downloads it, it's slow and now we get to fix it.
and it looks broken
 
10:04 AM
Did you write the code in the above links ? Or did you just found them and copy-pasted them ? — JaDogg 31 secs ago
 
@JaDogg you see the point where the indentation is off?
He added that bit.
 
ah seems like it still it's serious copy pasta.
 
0
Q: how to make it short

eagleauto populate user info from database when user input employee number same function when user input name/extension/mobile/email some codes are duplicated, is there anyway to make it short? $(document).ready(function () { $("#empnum").change(function () { var fourdigitpatrn = /^[0-9...

 
@CaptainObvious can't edit title, bad edit under review
 
> If you need help in making ZIP archives, please contact the
student helpdesk.
 
10:20 AM
@skiwi derp
Call me mean but certain things (like how to use computer 101) has got to be required prior to learning programming and such
 
@skiwi are there people who cannot create a zip but doing a degree in IT ?
 
@JaDogg that would be... sad
 
@Pimgd Meh, you are mean .... when I went to university I had to write my own zip....
 
0
Q: Fuzzy matching dict keys

wimWhat do you think of this idea? It's supposed to be a dict that makes a reasonable guess at the key you were trying to access for getters and deleters. Setters should be untouched. Similar to how tab completion in bash works, if some command you are typing only has one reasonable completion th...

 
LOL, But it's the sad truth. I've seen those kinda people. (They are professional free-riders).
 
10:25 AM
@rolfl I think you went to university somewhat earlier ;-)
 
Well, yeah, there was this thing called turbo pascal ... ;-)
(and I still occasionally press Ctrl-K to paste.... the Ctrl-K for indent here in SE is .... confusing)
 
Some points are valid though... if they can't open a .rar file, that might be because the policy doesn't allow them to install paid software (and winrar is paid)
 
and 7-zip is not.
2
 
7-zip is sooo good.
@rolfl can signing a petition on change.org bring CR closer to graduation ? (as a special exception of area 51)
 
@JaDogg no
26
Q: The race has started. Are you running?

Mat's MugPCG.SE is going on a mission. And so the race begins. For Code Review!! -- syb0rg 2 days ago Let's see: Programming Puzzles and Code Golf Voting & Activity PCG.SE Voting and Activity Chart Compare to: Code Review Voting & Activity CR.SE Voting and Activity Chart ...

38
Q: Once upon a time in Stackland

Mat's Mug Uh question, why have you folks not graduated yet? - jul 13 at 21:18 by Undo It's been quite a while since the 100 days later update, which was posted around the 100th day after our last site review, which brings us back in November 2013. If a baby was conceived back then, that baby is prob...

Those are relevant posts

Beta status review 2014-04-10

Apr 10 at 20:17, 2 hours 6 minutes total – 286 messages, 16 users, 80 stars

Bookmarked Apr 10 at 22:28 by 200_success

And that.
 
10:35 AM
@Pimgd thanks :D
 
Netbeans being helpful today
2
 
@Pimgd Those started being noticed by me since Netbeans 8
Did you upgrade to 8.0.1 yet though?
 
yeah I did
 
0
Q: OOP: aliasing utility class method in extended class

kasimirConsider this setup: class UtilityClass { function get($input) { // do something and return } } class SessionClass { $this->utils = new UtilityClass(); // bunch of methods } class BaseClass { function __construct($session) { $this->session = $session; }...

 
shudders
Something about "stateless" and "object-oriented" just doesn't mix well for me
 
10:49 AM
proxy objects that .... modify ... stateless things. that must be it
 
@JaDogg I recognized that code a lot, it is indeed copy-pasted. I'm not sure why @Pimgd claims that it's "not A*" though
 
You don't look at the direction
That's how it supposed to work...
That implementation does a lot different, including revisiting visited nodes and not giving a rats ass about the proper direction to start in
By the way, the "revisiting visited nodes" is how it becomes so slow
 
@Pimgd revisiting visited nodes because of no hashCode and equals, or because of something different?
 
1
Q: Index of letter removed to make string palindrome

Anubhav AgarwalThis code finds the index in the string removing which will make the string a palindrome. If string is already a palindrome it should return -1 def palindrome(string): return string == string[::-1] def palindrome_index(string, start, end): while start < end: if string[start] == ...

 
@SimonAndréForsberg because simply not checking if they're visited.
so instead of A*, you get "try all the possible paths"
 
11:03 AM
I am using that algorithm myself, with that exact code, in one of my projects... (if I only could remember where...)
but I have not had any problems with it
I knew I should have just implemented A* myself.... I've done it in Delphi about 10 years ago, surely I could do it in Java as well...
 
11:19 AM
0
Q: n-layered application structure in asp.net mvc

Ivo CoumansI've been trying to set up an n-layered application in ASP.NET MVC 5. I've "converted" my account controller to look like this. I would like some feedback as to whether this is in the right direction. What I'm trying to achieve is to off-load my Controllers and leave the logic to the Service. So...

 
sometimes the starred messages line up nicely to say something different than they said before =D
 
Fixed ;-)
 
Awww... oh well, I still have the picture
 
@Pimgd hai
i saw your update
 
@overexchange This lengthy one?
4 hours ago, by Pimgd
@overexchange I'll tell you one more time.

It looks decent. Not good, not bad, but decent.
When I look at your rules, the answer is no. It's not a good ADT; It is not an interface. You're receiving the name of the implementor - it might be common, generic water, but it's still labelled "Spa". ADT is about Water, not Spa. Or Evita. Or any other kind of bottled water brand. It's about the abstraction itself.

And those invariants of yours? The code you posted - it doesn't satisfy all of them. It satisfies the first, but such a thing is true for any object in Java that maintains a collection
 
11:26 AM
ok
 
1
Q: Advice on using union to find distinct values from multiple tables in mysql

RedGiantHere's a fiddle example. I'd like to know if there's any room to improve the following query which is to find distinct values from multiple tables when someone searches for a model name. Two of the tables are storing phones' series attributes and model attributes. The model attr table is there t...

 
i would like somebody review this query
0
Q: How do i code fix the static member storing wrong value?

overexchangePart I-IV recommend code changes as mentioned in link1, for the initial code given at link2 Here are the code changes that are made as shown below. /* Fraction.java */ import java.io.*; /** The Fraction class implements nonnegative fractions--rational numbers. */ class Fraction { /* pri...

i modified the query as recommended
 
@overexchange Does it work?
 
i tested the code
 
you should change the title to not say "how do I fix" because people will immediately think it needs to be closed as broken, even if it is not
2
 
11:36 AM
^^^ that
 
0
Q: Fractions in Java

overexchangePart I-IV recommend code changes as mentioned in link1, for the initial code given at link2 Here are the code changes that are made as shown below. /* Fraction.java */ import java.io.*; /** The Fraction class implements nonnegative fractions--rational numbers. */ class Fraction { /* pri...

I made it like that
 
but the query is on hold
 
yes, we'll reopen it when we think it's on-topic
 
and I'm still editting
 
11:39 AM
what i observed is, when query get hold, it never gets re-opened
 
@overexchange - from the lab notes:
> .... but Java cleverly looks for a method called toString to convert each
Fraction to a string. This is standard in Java: any object can have a
toString method, and if it does, that method will be automatically called when
you concatenate the object to a String.
You should know that that is a common understanding of how things work, but it is not quite accurate.
 
0
Q: Fractions in Java

overexchangePart I-IV recommend code changes as mentioned in link1, for the initial code given at link2 Part I: Constructors (1 point) Modify the no-parameter constructor to call the two-parameter constructor. Then, fill in the fourth constructor so that it uses the good style and correctly duplic...

I like it now
 
The 'right' way to understand how string concatenation works, is to say "Java will call String.valueOf(xxx) on all operands in the concatenation.
 
voting to reopen
 
docs.oracle.com/javase/8/docs/api/java/lang/… <--- note the special handling of null values.
> Returns:
> if the argument is null, then a string equal to "null"; otherwise, the value of obj.toString() is returned.
 
11:45 AM
0
Q: Traversing and printing complex Dictionary types (Scripting.Dictionary) - Dictionary inside of a Dictionary

vba4allBased on this SO post - also reposted on vba4all.com with a few more details and explanations. Please notice there currently is no error handling whatsoever as I didn't analyse and consider any traps yet. Although feel free to supply details/code based on your assumptions. For Example - the code...

 
FTW!
 
@skiwi This might be interesting read for you: tutorials.jenkov.com/java-reflection/generics.html
 
@SimonAndréForsberg So I can make even more hacks? ;-)
 
@skiwi something like that :)
 
It looks like a decent tutorial.
 
11:53 AM
Ah yes, it does make sense
 
I think I will use some of it in the TCG project
 
@Pimgd thank you
 
These are both things that I have heard of but just haven't investigated enough before
I don't think I'll use the Proxy-thingy anywhere though.
 
@SimonAndréForsberg You make me open more tabs now!
 
@skiwi you would have probably opened more tabs anyway, sooner or later.
I'm still very proud of you that you closed one yesterday. Must have felt good, huh?
 
11:56 AM
Well, today I closed 100 of them!
There's not even a scrollbar right now.
 
Ouch, that's so.... normal?
 
Yes ^
That tutorial seems to be written in Java 7? Maybe Java 8 added some new reflection methods
Class typeArgClass = (Class) typeArgument; It should use generics there
 

« first day (503 days earlier)      last day (3497 days later) »