« first day (363 days earlier)      last day (3659 days later) » 

12:01 AM
GOAL!!!
@rolfl this comment is obsolete, but I had upvoted it and now I can't undo the vote or anything
If the code isn't in the question, the question isn't on topic. — AD7six 7 hours ago
The code is in the question now...
 
12:20 AM
@Mat'sMug Got 'em.
 
thanks!
Montreal 1 Boston 0 (end of 1st)
MTL 11:23 (PPG) - P.K. SUBBAN (1)
 
Do we need ?
Oh wait, I think SO does have a tag for it (just not shortened).
 
12:41 AM
GOAL!!!!
 
1:33 AM
2-1...
hi @Geobits!
 
Umm.... hi!
 
Hi!
 
I'm, uh, just popping in. I happened to be in the neighborhood and all.
 
Well, well, wellcome to The 2nd Monitor then! :)
 
That's fine. It's sort of quiet at the moment, but that happens.
 
1:44 AM
What an odd coincidence... I logged into chat and all of a sudden my one and only answer on CR got an upvote.
I should hang out here more often.
 
odd...
and post some more answers, too! ;)
 
2:01 AM
0
Q: Pacman game implementation in Java

user2279952I assume you've all played Pacman, I mean, most people have. I am a 10th grader, and I am working on building Pacman for my intro to Java class in school. However, the project I'm working on demands that someone review my code. About the code: I have not started the graphics yet. I have jus...

Hm... a Pacman game.
 
nice!
 
0
Q: Pacman game implementation in Java

user2279952I assume you've all played Pacman, I mean, most people have. I am a 10th grader, and I am working on building Pacman for my intro to Java class in school. However, the project I'm working on demands that someone review my code. About the code: I have not started the graphics yet. I have jus...

 
And the OP is taking intro to Java. Too bad my first Java class will go straight to OOP...
Thanks, Captain Obvious.
 
@CaptainObvious the comments are ... quite reviewable!
 
While I'm here, this may warrant a napalm strike. The OP also doesn't yet have 15 rep.
1
Q: Approximating the square root using an iterative method

user3182162I wrote this code, based on the Newton-Raphson method, to find the square root of a number. I'm wondering how I can optimise this code, as I am out of ideas. #include <stdio.h> int main(void) { float n, x, i; printf("Enter the number you wish to find the square root of.\n"); pri...

 
2:05 AM
Thanks @Jamal!
I think this is how we can get new users to stick around: $$$welcome-them$$$
 
I have two other recent answers, that didn't receive much attention, but this doesn't seem like the best time to over-pimp.
 
I was thinking, should we have a talk about over-pimpin'?
 
Perhaps, if it has or can become a problem.
 
hard to tell
3-3 dammit
 
ouch
@Mat'sMug - are you in Monreal, or somewhere else in QC?
 
2:12 AM
About 20-30 km north of Montreal
 
Ahh, local enought ot be local, not just the-last-canadian-team popular.
 
huh, hadn't realized we were the last canadian team still on board... already
I'm working on an answer, listening to the game on the radio [game is going overtime] and chatting all the while
 
0
Q: Output of 'ldd' to dictionary

JuicyI want to use the output of the terminal command ldd: root@kali-vm:~/Desktop# ldd simple linux-gate.so.1 => (0xb7722000) libcurl-gnutls.so.4 => /usr/lib/i386-linux-gnu/libcurl-gnutls.so.4 (0xb769c000) libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xb7539000) libidn.so.11 => /usr/lib/i38...

 
@Mat'sMug Montreal was always the only canadian team in the playoffs.
 
lol
I'm only following the local team ;)
> Uh-oh. Red flag. Helper smells. Let's see...
 
2:27 AM
Wow.... Microsoft Visio is 300 bucks...
 
yeah it pretty much doubles the cost of your Office license
 
Why the hell wouldn't I just use paint?
For $300.
 
hahahaha
 
I mean, either $300 is ridiculous, or there's a lot more to Visio then what I experienced when I got a free copy when I was a student.
 
Score: 18
Created: Apr 28 at 2:03
Clicks per day: 26.25 (105 total)
 
2:39 AM
I... guess this is off-topic.
0
Q: What is the largest prime factor of the number 600851475143

brianllamar The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? Why does my code return 1? steps taken each number can be a prime, set range 1 to number find out which numbers in range are number.prime? print t...

 
Is this.. a Stack Overflow question? Welcome to Code Review! Please see our help center, we're very different ;) — Mat's Mug 14 secs ago
 
0
Q: What is the largest prime factor of the number 600851475143

brianllamar The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? Why does my code return 1? steps taken each number can be a prime, set range 1 to number find out which numbers in range are number.prime? print t...

 
That question is confusing.
What does the first sentence have anything to do with the second?
 
@nhgrif it's non-working code, but it's also very unclear - I voted to close as unclear and then noticed Why does my code return 1?..... bah, off-topic anyway.
 
Yeah. Even if it were on topic though... the first two sentences are unrelated..
The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ?
What do the prime factors of 13195 have anything to do with the prime factors of 600superlargenumber143?
 
2:48 AM
the blockquotes are unintentional:
>> The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
>>>Why does my code return 1?
...yet I don't know how to edit it.
haha retagged this one, it only had ! Now with , and ! Just the way I like 'em! (looks at tag score... wtf has more in )
 
0
Q: How Does This Naive Stack Implementation Look?

Onorio CatenacciConsider this naive stack implementation in Elixir: defmodule Stack do defstruct name: "", value: 0 def init() do _s = [] end def push(name, value, s) do s_new = [%Stack{name: name, value: value}, s] {:ok,s_new} end def pop(s) do [h|tail] = s {:ok, h, tail} ...

 
@CaptainObvious added
ugh.. 2nd overtime period. is this going to be 7 games?
afk
actually, shutting down, bye @all!
 
3:10 AM
Bye!
 
3:33 AM
0
Q: Pacman game next steps and criticisms?

user2279952This is the outline for code for a Pacman game. Please give me any suggestions you have on what my next steps should be and how I should clean up the code. The more specific, the better. But basically, anything you say will be fine. Please write the suggestions as answers or in the comment sectio...

 
^ dupe
 
0
Q: Programming Puzzle - N Teams K Wins each

dharm0usI found a problem here. I am sharing the problem and my attempt at solution. I would like to find out if this is the best approach possible. One day, at the "Russian Code Cup" event it was decided to play football as an out of competition event. All participants was divided into n teams and play...

 
 
2 hours later…
5:37 AM
0
Q: Why this jQuery code is slow

user1181942I have a jquery function which adds tag to first row of table. I tried using append, however its not working, so i got a solution which is very slow and it somehow gives error "Script on this page is causing internet explorer run slow..." Function is as jQuery.fn.fixGridView = function () { ...

 
 
1 hour later…
6:46 AM
Monking @Yuushi
 
0
Q: Intv Q: data structure to build a employee database

claudiusTime: 1 hour Design a data structure to store an organisation hierarchy. Create a Employee Database for an organization. Each employee may or may not have a manager. One employee may have many subordinates. This can grow upto any level. Find direct and indirect subordinates for a given employ...

 
^ OT and closed by @Jamal ;)
 
hey @Vogel612
 
Hi there.
How are you doing today?
 
6:55 AM
wow some people really show amazing lack of reasoning..
 
It never ceases to amaze me.
 
0
Q: Could this code be improved? (AFNetworking 2.0 related )

TanderI've built a base class that I use a lot in my iOS app t make calls to web services. I built the base class to make the actual call and this base class is only ever used by another class. The idea was that should I decided to change from AFNetworking to something else, I would not need to rewri...

 
in german that is called "gesunder Menschenverstand"
literally translated: healthy humanreasoning
 
7:17 AM
0
Q: Any Improvements on my LineOfSight method

Enes UnalMay there be any performence and/or code standard improvements on the following LineOfSight code? static List<Coordinate> getIntersects(Coordinate c1, Coordinate c2) { // Bresenham's line algorithm from http://rosettacode.org/wiki/Bitmap/Bresenham's_line_algorithm#C.2B.2B List

0
Q: Not showing number of frames for specific video even if it is present in current path in matlab

prash2Below code is showing error for correct_script_video.avi.But it is working fine for other videos.This video is present in current path but still its showing error.What is the reason? Error is: Error in VideoReader (line 132) obj.init(fileName); Error in framescheck (line 1) obj = V...

 
7:37 AM
0
Q: Unit of Work with Generic Repository Pattern MVVM, vol. 4

J.MarciniakContinuation of this question: Unit of Work with Generic Repository Pattern MVVM, vol. 3 I have made some changes. The methods GetFeedBySomething() have been replaced by Find() GetRepository() has been added to UoW I separated DAL from Model Model inherits IBaseEntity from DAL (not sure is it ...

0
Q: MySQL Selecting three tables with relationship

Mustafa M JalalI'm really excited that I got my code done without the help of the web :) however, I always come here to give and take. I learn here a lot and I appreciate the help of you. also there might be someone out there who might use some help from the stuff I post, even though it's basic :/ so anyways, ...

 
7:51 AM
Hi @Amon..
 
@Vogel612 good monking!
 
8:26 AM
0
Q: Key and value mapping from one object to another

RessuI've been trying to figure out a clean way of managing mappings between two objects. In the case of this example, it's two hashes. This spec should illustrate the problem at hand: describe 'key mapping' do let(:have) { { data1: 'foo', data2: 'bar', data3: 'baz' } } let(:want) { { LINE1: 'foo...

 
8:56 AM
@all morning
 
Good morning everyone. :)
 
Morning.
 
9:33 AM
Morning
 
Morning
 
9:47 AM
Physics at their best... with some extra lag (tm)
 
looks good :)
 
Hmm, this question:
0
Q: Find all the missing number(s)

Gokul NathRecently I've attended an interview, where I faced the below question: Question: "There is an sorted array. You need to find all the missing numbers. Write the complete code, without using any generics or inbuilt function or binary operators. First and last terms will be given. Array will be sor...

So someone is hiring someone for Java, and asks to write code that doesn't make use of all possible Java features, is that not counter productive? Would I even want to work for a company with such an interview process?
 
0
Q: Find all the missing number(s)

Gokul NathRecently I've attended an interview, where I faced the below question: Question: "There is an sorted array. You need to find all the missing numbers. Write the complete code, without using any generics or inbuilt function or binary operators. First and last terms will be given. Array will be sor...

0
Q: Trying to apply Stategy pattern on a model

HichemSeeSharpI want to build a service pricing list for bonded zone company, it provides many services that have different methods of calculation, and each type has many prices according to customer groups. This is the model: public abstract class Service { public virtual int Id { get; set; } ...

0
Q: Program Simulating Dictionary Using File Handling

Anmol Singh JaggiI have made a program in C++ simulating a dictionary with very basic functionality . I do not have much experience in File Handling with C++ . Also, I want it to run on Linux and Windows. It would be great if you could review/improve it on these things -: The File Handling part of the code. ...

 
I can understand if there's some requirement like O(n) or O(n^2) and you are asked to give an implementation that doesn't invalidate that... but plain outright banning libraries?
 
@skiwi: The point might be to see if you are able to implement something like this
 
9:53 AM
But what would a Java oriented company gain with me being able to do such a task?
 
it is more about seeing if you are able to transform algorithms to code
 
I understand that part
perhaps I fail to see the bigger picture
 
yeah, and maybe I see too much good in this. sometimes those interviews are just ridiculous
 
I'm more inclined to think that a regular programmer should know how to use libraries, and than when you are intending to hire a programmer for implementing algorithms, that you would give some harder example
I haven't ever been to an interview myself though I must say, still at university
 
it is problematic to give harder examples
for one you don't have that much time
and you cannot expect everyone to know every "hard" algorithm
so you go down to something that is harder than the gcd of two numbers but still is widely known
 
9:59 AM
I see, it's a bit of an edged blade, you cannot really get it right as an interviewer
 
I have never been on the other side of the desk so these are only assumptions
 
I wonder how much opensource code would help when applying for a job
For example that trading card game I'm implementing, wondering if that would matter, though in a resume it's hard to prove that you really made it
 
I have no clue there
some portfolio is always nice
but then again some of the HR people don't even know how to read code
 
Then you're out of luck I guess
Atleast, not getting any precedence over other candidates
 
IDK
some time back I got contacted by a google head hunter
he said he was impressed by my work and wanted to offer me a job
it soon became apparent that he had mistaken me for someone else with the same name and he scraped my email address from my github page
 
10:05 AM
aw
 
he said he was impressed by my github account but at that time I only had about 4 projects there which were crap
I think he was in a hurry and did not bother to take a closer look
 
I hope to ever get contacted like that, it would be cool
well... I mean a genuine contact, not the mistake that was made at you
 
the head hunter got onto the other one because of his many contributions to bigger open source projects (linux kernel modules, python ...)
you have to stick out to get contacted
 
Maybe I'll be crazy enough one day to just do such a thing for fun
Unrelated to this convo, since earlier this morning I am considering some functionality which would be placed between java source and the javac to compiled bytecode, with integrated IDE support
But still need to experiment a lot to see if it's even feasible
Later today I can explain a project coordinator of mine how the github issue tracker works... I'm a bit tired over getting emails etc. about bugs, features
 
10:27 AM
@rolf I'm sick and didn't manage to post a picture yesterday, so here is two:
 
Time to see if I can get April's Code Challenge done by end of May
 
Oh the ambiguity I just saw in an enhancement for my TCG
"Add monster to field action"
It means a player action where you can add a monster to the field
I had to read it multiple times
 
@skiwi sometimes I feel like I did not become a programmer but a linguist
 
hehe
I feel like I'm never hapy with my designs
 
10:37 AM
I am usually happy until I see that I need to change it ^^
I am currently working on updating the structure of a project to make it compile faster
and now I am somewhat stuck
halfway through the transition
 
That's... unfortunate
 
maybe you have an idea what to do:
I have a tree of objects that can be represented in different ways
either you traverse the tree to the leaves and draw the objects there
or you gather all objects to the root and draw them there (transforming them on the way up the tree)
the latter is done in three different representations of the objects
until now I had an interface for each of these representations and all objects in the tree had to implement it
however, this led to tight coupling of the tree structure with the representations which is not necessary (the tree itself has nothing todo with it)
so I built a visitor interface that would traverse the tree and dispatch to an own method for each tree node
which cleanly separates the tree from the representation (each representation can now use its own visitor implementation)
 
that sounds... complex
 
yeah, and I am not done yet
and the worst part is: this is going to be implemented by students so they must understand it
the problem with the visitor is: I loose the clean function interface as I cannot simply return the resulting representation (that would forbid using one base class for all visitor implementations as the return type changes)
and another problem is, that the previous design allowed for easy caching of values at the nodes which would be prevented in the visitor implementation but is necessary for efficiency
 
10:50 AM
Monking @SimonAndréForsberg
 
Monking @SimonAndréForsberg
@Nobody It's too complicated for me to just understand I'm afraid I can't be of much help
This is going to break some minds for people reading this: It is of the signature Card -> void, hence an implementation for this functional interface is a lambda that is an implementation of the Consumer<Card> functional interface.
 
probably I am also not able to explain it good enough
 
I'm wondering though, what work do you do with students? What is your position?
 
I implement the code which is then used by another one for teaching
 
Intersting... so you work at an university or Högeschule?
 
10:53 AM
in this semester I will be around during the exercises to catch up some flaws of the code and improve it but in the further semesters they will be on their own with the other one (who might himself have problems understanding the code)
university
 
I wish our teachers here would have dedicated people for doing that instead of rolling their own broken code...
@SimonAndréForsberg This one might be intersting for Java 8 ^^
 
he did so last year (when I was taking this course myself)
 
0
Q: Is there a way to capture all functional interfaces of a certain type?

skiwiAssume I have the following hand-crafted functional interface: @FunctionalInterface public static interface OnHandCardAddedListener extends HandView { @Override void onCardAdded(final Card card); @Override default void onCardPlayed(final int cardIndex) { } @Override def...

 
I was so pissed with this code that I began to reimplement it during the exercises
so he offered me to do it for money :)
 
that's cool, are you still a student then?
 
10:55 AM
yep
 
I should offer my Java 8 services for money to my university
 
but don't let them suck out your enthusiasm ;)
2
 
@nhgrif Naming the prime factors for another number was probably intended to be an example of what prime factors are - for those few around here who doesn't know what it is. And perhaps it was also an example for "The code produces the correct results for this number"
@Jamal I actually think that comment by n.m. was very helpful. He was right that the question belongs on CR. The fact that the question did not contain the code within the question is a minor detail IMO - We can't expect users on other SE sites to know about that rule.
 
@SimonAndréForsberg sorry, but I have to disagree there..
we can expect users on other se sites have enough brains to deduce, that a codereview needs some code to be reviewed...
and if they can't be bothered to think about it, before recommending a site to repost a question, or adequately express concerns on that, we should be free to remind them, that their head is not for wearing hats only..
 
@kleinfreund White-backed Vulture, in the mist
Monking, CRitters!
 
11:12 AM
morning @rolfl
 
Quick question, what do you like more??
 
Hey skiwi
@Vogel612 bananas
 
@Inject
ContractDistributor foobar;
or
 
Why is there no BiIntConsumer :(
 
ContractDistributor foobar = ContractDistributor.obtainInstance();
@rolfl well, I like Mango more, when they are nice and ripe. Else it's also bananas ;)
 
11:16 AM
That Java? (the @Inject ?)
 
Damnit, what I wanted to do doesn't work
 
J2E,..,.
 
Gotta go in a bit though
 
CDI Dependency Injection on a Jboss 7.1.1.final
 
I prefer the second option, because I know it.
Does not mean I am right
 
11:17 AM
@rolfl Nice. :)
 
What is that, in the sky, @kleinfreund ? A plane?
Or did you manage to capture a comet, or something?
 
I wondered that myself.. It doesn't really look like a plane when you zoom in, right?
 
(and I really, really like the fire-pic, but the sky pic was a bit to 'empty' .... I could not find anything to focus on (which is probably the point).
 
Would be a strange angle for a plane anyway.
 
Yeah
 
11:19 AM
@kleinfreund: It might be a spark flying near the camera
 
I love these gradients from orange to blue.
 
Yeah, that is true, and you have no dust spots on your sensor ;-)
 
@Nobody A spark near the camera would probably appear way bigger.
 
depends on how near it is:)
 
Also this was shot outside the window from a fairly high place. No explanation for a near source comes to my mind.
 
11:21 AM
I think it myst just be a plane, with a short vapour trail, and it is higher, in the sun.
 
I love this debate with Netbeans... Claims code doesn't compile, I add an extra cast, it compiles, claims the cast is redundant, I remove it, code doesn't compile, repeat
 
creating the overexposure/flare for just that spot
 
@skiwi never had that with Eclipse..
 
Except if there is something on the lens which reflects a small amount of light.
 
That's not a lens glitch.
 
11:22 AM
@Vogel612 I think I hit the limit in Netbeans 8 here, I think the javac actually accepted it
 
A lens glitch wouldn't be as sharp, right?
 
Out of interest ... there's an interesting article about scratches on the front element.....
 
@Vogel612 I understand your thought, I think n.m. did more good than harm in this case though. Sure, it would be even more helpful if it was written "If you post your code within the question itself then go to Code Review", but I'm somewhat realistic. We struggle so much getting people to understand that CR is not for broken code, if they aren't completely aware about all of CR's rules, I think that's OK.
 
going somewhere now
 
@SimonAndréForsberg accepted..
@skiwi on the matter of casts...
boolean persistenceDone = (Boolean) Whitebox.getInternalState(cut, PERSISTENCEDONE_FIELD);
 
11:23 AM
@Vogel612 Where's my green checkmark and my 15 rep?
 
ouch there
 
^^^^ This picture, taken with vvvv this lens
Read all about it:
 
Interesting.
 
@SimonAndréForsberg here
 
@SimonAndréForsberg I thought this, but then I thought--why not just show a much simpler example?
 
11:24 AM
7
A: Division without / operator

Simon André ForsbergA couple of comments first It would be better to let your divide method should return an int, not do the output to System.out itself. Do the output in main like this: public static void main(String[] args) { System.out.println(divide(-4,-10)); } The variables N and D are short and don't f...

 
(in Spock's voice)
 
TTGTW
 
@nhgrif Good point. On that part, I agree.
 
0
Q: always add db index (comments => [user_id])

Stefanos.IoannouI use the rails_best_practises gem and it came back to me with this alert: /../db/schema.rb:65 - always add db index (comments => [user_id]) So in db/schema.rb, the line 65 shows the schema of the comments table. create_table "comments", force: true do |t| t.string "commenter" t.te...

 
11:40 AM
@rolfl Can you explain this?
 
'tis a glimpse into the ghost world where everything is upside down!
 
11:56 AM
That actually makes sense. :~P
 
Seems like someone just had to do a real review of this question:
0
A: Find all the missing number(s)

Simon André ForsbergRegarding your current code: Public or private You have three public static variables, but your findMissingNumbers method is private. It would be better having it the other way around. You wouldn't want outside code to modify your static variables, those are meant to be used only by your findMi...

 
12:08 PM
I am off programming some robots, see you later
 
I like how the review is at least double the length of all other posts..
 
@Vogel612 I am a bit sad that none of the other posts pointed out the flaws in the original code. Many of those other posts really deserves some comments...
 
they are probably all taken over from SO.
 
They all seem to be a variant of "You did it that way, I would do it this way".
 
btw, are you knowledgeable in JEE / CDI?
what is the difference between @Singleton and @Stateless especially concerning performance and scalability?
 
12:20 PM
I mean, the OP must learn somehow, right? What does the OP learn by copy-pasting other people's code?
 
nothing.
 
Unfortunately, I'm not knowledgeable in CDI.
 
gotta work on my orthography again T.T
 
However, I'd assume that @Singleton is for singletons, and @Stateless is for stateless things.
Singleton and Stateless are two very different things IMO.
 
I guess @Singleton only Instantiates a single instance in any case and @Stateless has a few in a pool, but if there's no need, It would also just instantiate 1..
 
12:21 PM
And speaking of scalability, a Singleton is rarely scalable at all in my experience ^^
 
that was also my guess...
 
Yeah, there's really no point in instantiating multiple stateless objects...
 
but one could.
 
@kleinfreund a lot of lens artifacts are visible only when taking directly-at-bright-light photos.
 
However, @Singleton should probably be used for... well, singletons with state.
Exactly, one could. If you wanted to. For whatever reason. Probably when you don't have an object nearby that is ready to use, you just create a new one.
 
12:23 PM
Singleton beans provide the smallest memory footprint of all the session bean types but must be designed as thread-safe.
 
I'd assume Stateless is better than Singleton.
 
That could well be an internal lens reflection.... but I would expect it to be symmetrical.
Did you crop that photo?
 
Because there is no state, the application server is not required to ensure that each method call is performed on the same instance. This makes stateless session beans very efficient and scalable.
Alright, I'll make it Stateless then..
 
Well the Mug didn't show up yet today..
so It looks like it's getting a close race, right now..
Could I have some eyes (esp. C# experienced) on an answer of mine from this morning?
0
A: Bresenham's line algorithm implementation

Vogel612Conventions: That is in my eyes the definitely biggest problem in your current code. Naming conventions. All programmers agree, that naming is one of the most difficult things to do. Therefore it is useful to define conventions to abide when naming. The C# convention for naming methods is not ca...

4 hrs. and not a single vote...
 
12:29 PM
Damn it, Mug also got an upvote!
 
@Vogel612 Hmmm .... and no +1 from Bruno.
shameful.
 
I'll take a look on that C# answer
+1 on the C# answer
I remember that I have seen some good comments on answers that just provides a core-dump as an alternative way of doing something, anyone has such a comment nearby?
 
none in the auto-comment plugin?
 
Nope, that's why I'm going to add one
(You can customize the auto-comments)
At least there was none that was applicable for our lovely site known as Code Review.
 
I got it too now...
just need to get the comments tailored slowly..
the standard comments are only for answers..
 
12:38 PM
Yeah. While on CR, comments are mostly needed on questions.
If you haven't already, up-vote
9
A: Pacman game implementation in Java

lealandThis is a great code review opportunity because your program 1) works, and 2) has tons of room for improvement. Almost every line of your code could be refactored, but don't take that negatively. Every day I come out of code reviews with changes suggested to my awesome code. It's just how the bus...

Awesome review by quite new user with only 168 rep.
 
@SimonAndréForsberg Nice. That's how you ask a "homework" question
 
@Brandon I actually doubt that it's real "homework".
rather it's probably a presentation or something..
 
@Vogel612 Sure, but you get the idea. It's for school I meant
 
Well that's true ;)
 
I see it is time to tackle some of the harder Java unanswered questions.
Tomorrow......
 
12:54 PM
Speaking of Java questions...
 
You could start with this then:
10
Q: Can I make the thread safe case faster?

fgeThe code below is part of one of my projects called largetext, which actually stemmed from a question on StackOverflow. The goal is to provide access to a very large text file as a CharSequence so that it be usable with not only java.util.regex but also grappa. In the next version, I want to pr...

The only thing I can spot there, is the curly braces placement...
 
1:16 PM
Vyorp vyorp vyorp
 
check me out on Philosophy
You've earned the "Popular Question" badge for Gun Control Vs. Drunk Driving.
+20
Gun Control Vs. Drunk Driving

You've earned the "Nice Question" badge for Gun Control Vs. Drunk Driving.
 
0
Q: Major code bloat reduction with jQuery

user3596322Basically I want some help in reducing the bloat of this code. I am new to javascript so this represents an attempt at learning jQuery by doing. All of this code works as I want it to, but it is not efficient or maintainable long term. I realize there is no context for what is going on, but I fi...

 
@Malachi I'm surprised that question hasn't turned out to be a massive discussion about whether to have gun control laws or not.
 
@SimonAndréForsberg it's trying
this one is borderline
-1
A: Gun Control Vs. Drunk Driving

Ceiling GeckoI'd like to address my take on the thorough answer that ryan posted. While I agree that the two statements can be determined to make an analogy (and I agree with ryan's answer on the majority of points that he made, I personally don't believe it is a very effective one. I'd like to emphasize th...

I just downvoted it
 
1:33 PM
Speaking of which, I have to say that from a European point of view, the idea of specific gun shops, as exists in the U.S., is just... completely crazy to me.
2
What to do about this question?
2
Q: Best practice creating model?

user200900Version 1 public class User { public String firstName; public String lastName; public User(Context context){ SharedPreferences pref = context.getSharedPreferences("Session", context.MODE_PRIVATE); this.firstName = pref.getString("fname", ""); this.lastName =...

The original seemed to be not real code, but now there's been a small invalidation of answers.
 
0
Q: So, I've implemented Quicksort in C# - comments and tips welcomed please

Th3Minstr3lOkay, so I'm a self-taught programmer and have been brushing up on all the 'boring' bits that CS students do that most of us self-taught ignore. Things like Algorithms and Data Structures (particularly). So I found a nice exercise book that explains how algorithms work, but then leaves the implem...

 
1:48 PM
(wakes up, +100) !
 
hey, I'm back here
Of course Murphy's Law always hits, when I show progress to clients, I get nice "Error" error messages
4
 
at least they're nice error messages ;)
 
What's up everybody?
 
@syb0rg Work.
 
Mmm, fun stuff.
 
1:53 PM
@Mat'sMug I'm ahead by 24 now. ! :) Monking, btw!
 
monking!
 
Does anyone here have a lot of experience with CMake?
 
@Mat'sMug Is that some kind of comment about Catholic brothers, or about discontinued USA Network TV shows?
 
0
Q: Lambda expression issue in Netbeans

skiwiI am having an issue with my Lambda expression in Netbeans 8.0 and am wondering if I did something wrong, or Netbeans or the javac compiler does it wrong. I have the following code: public interface HandView extends View<Hand> { void onCardAdded(final Card card); void onCardPlayed(fina...

I think Netbeans is wrong there... ^^
 
@Donald.McLean pick one: [monking|[good] morning|hi [there]|hello|hola|heya|oi] - I kept things simple, went with [0] and output was "monking" ;)
3
hmm bug:
 
1:59 PM
sweet...
 
@skiwi I don't think there are any IDEs that are 100% accurate syntax checking Scala code.
 

« first day (363 days earlier)      last day (3659 days later) »