« first day (962 days earlier)      last day (3352 days later) » 

Zak
Zak
05:00
95% ? That's pretty damn high.
congrats/
Yep.
Highest the bar has ever been set. Usually it is 93/90%.
95% to pass with an A.
congrats!
all that studying reviewing has paid off!
I've 'clinched' 4/5 classes with an A, and I've basically clinched that one too. I just need 30 points to pass.
@Mat'sMug Nope, only one of my classes had anything to do with code.
Zak
Zak
05:03
Reminds me of my A-levels: I needed 320/400 for an A, and I got... 320 exactly. Oh, and I was part of a year that trialled the additional-maths gcse.
Trying to beat Jamal's editing skills helped out his writing mark :-)
Zak
Zak
But they messed up the difficulty. Really bad.
Communication Theory, Managerial Finance, Networking Standards/Protocols, DBMS Systems, Writing In Your Profession.
Zak
Zak
Such that the A* Mark (the highest possible), required just 43/100.
@Quill-HATMANIAC Nah, I've been a good writer since I finished my grammar/punctuation course in HS.
@Zak Nice job.
Zak
Zak
05:04
IIRC, I got 97 on that one.
Cool.
0
Q: Graph theory using C++ STL

user11881I'm trying to practice STL so I implemented breadth first search and depth first search. I have designed the graph class so that vertices can be arbitrary hashable object. Any feedback would be appreciated #include <deque> #include <vector> #include <unordered_set> #include <unordered_map> #inc...

Zak
Zak
@Quill-HATMANIAC Sounds like breakfast time :)
You'll be eating breakfast soon, you rocket-insomniac
2
05:15
@Zak Just had marmite on toast myself :-)
@Quill-HATMANIAC starred for out of context
If I get 5/5, I'll have to ping Pops and ask for a special hat ;)
@DanPantry Marmite, what is with you brits?
@Quill-HATMANIAC marmite and tea.
Zak
Zak
am I the only person who is actually kinda ambivalent towards marmite?
@Zak that's impossible. You either love it or you hate it.
@Hosch250 uh.. :p
@DanPantry Zak said Marmalade first, so I thought it was the same thing.
@Quill-HATMANIAC I cannot believe you've done this.
@Hosch250 Ahhhhh.
I just realised how off-topic we are lol
> Quick, mods are away. POST PICTURES OF MARMITE
@RoomOwners wanna move this stuff?
05:21
@DanPantry Hey, I just got pinged by a mod in the RD room.
Zak
Zak
Hey @Mat'sMug, how's it going?
tired, man
Get some sleep? :-)
Or put some coffee in yourself
OK, everybody. Get Pawel the +100 badge so we can unfeature this: meta.codereview.stackexchange.com/questions/6186/…
05:24
I'm so tired, I think I'm hallucinating pictures of marmite in the 2nd monitor
6
Although, I suspect we all already voted on it.
@Mat'sMug Good thing we've only posted Vegemite ones.
0
Q: How can I implemented a clustered .Net 4.5 Console Application

Ed LandauHello: I am a newcomer to the world of Clusters so I am looking for pointers: My application most closely resembles that of a market trading application. It is a .NET 4.5 Console Application written in C#, using Entity Framework 6, that only interfaces with a database and a 3rd party API. What ...

that picture came straight from Australia, took forever to arrive here
@Mat'sMug So that is why it's upside-down
05:25
wait, how did I miss this?
2
wait, you missed the ducky?
@CaptainObvious Off topic.
I was on holidays during the announcement
Wow, my spotify discover playlist is way off this week
1 hour ago, by Duga
I'm voting to close this question as off-topic because this belongs on Code Review. — Aron 16 secs ago
it's that post ^^
05:27
@Mat'sMug ...
Damn it, StackOverflow, this is why we can't have nice things
Zak
Zak
deleted, I suspect already incoming
@Zak Already came.
@Zak No, the post that @Hosch250 said was off topic was that post.
@Zak s/incoming/closed
yeah, hammertime!
05:29
I have a horrible feeling I'm going to be in work for like half 6 because I'm going to leave early due to waking up about 4 hours early lol
Morning, @JeroenVannevel
hey @JeroenVannevel :)
Yahallo @JeroenVannevel
Oh boy, Spotify suggested I listen to Three Days Grace.
Well, I have been feeling a bit more angsty recently...
I guess if it is time for @JeroenVannevel to be getting up, it is time for me to go to bed.
See you later, all.
night, @Hosch250
05:31
@Hosch250 night
Night.
it's 12:34 in 2 minutes, I'm only staying up to see 1234 on the clock
night hosch250
1234, I'm out!
@DanPantry Bring me the Horizon are much better ;-P
05:45
Can someone suggest where I can post this open-ended question? I love SO... I tried codereview.stackexchange.com as suggested above but it was rejected there as well. — Ed Landau 7 secs ago
05:55
This belongs to Code Reviewbansi 59 secs ago
@Duga looks like working code
@Quill-HATMANIAC Looks broken, the braces are way off and can't be matching...
@bansi, Please read a Guide to Code Review for Stack Overflow users. Especially if code is broken, it is not suited for Code Review. And this code looks broken as the braces don't seem to match up or there is some really strange indentation issues — holroy 38 secs ago
nope, no missing braces
the indentation is wrong, but that's still on-topic
he just wants to speed it up
@holroy as per OP the code is working and need optimization. Perfect candidate for Code Review. — bansi 32 secs ago
A quick paste into VS reveals no missing braces. As long as the code functions (which the OP claims it does), it should be on topic for Code Review — Quill - HAT MANIAC 53 secs ago
06:04
I only see 8 opening braces, and 12 closing braces?!
paste it into VS and see
TTGH
Count the braces...
VS can do magic...
Are there missing braces?
Are we looking at the same code?! I count 8 opening braces, and 12 closing braces in the code. How many do you see in the OPs post?
Try prettyprinting it at prettyprinter.de, and you'll see many } at the same level...
Yeah, I'm not sure why VS was lying to me...
anyway, it'd be a matter of 'include all the code'
06:14
Still broken code as it is, and not recommendable for Code Review.
If you post it to Code Review make sure to include the heading, so that there are no brace problems. And as long as it does work, we can help you out. — Quill - HAT MANIAC 27 secs ago
@dilhan, Sorry, for branching off into another discussion, but as it stands the code is broken, and it'll be closed on Code Review. If you post the actual working code, we could help you, but we do need to see the entire code. If not, you are better off here at Stack Overflow. — holroy 7 secs ago
As it stands, the code is incomplete
It wouldn't be closed for 'broken code'
it would be closed for 'needs to include relevant code'
it would still be closed... whatever reason...
closing as the wrong reason is pointless
and makes it so much harder to be reopened
And allowing him to come over with something obviously being closed, is not making for a good experience for anyone. But I'm going to step back, I've made my point that if he cross posts it'll be closed, which you most likely agree on.
06:22
@Mat'sMug do you want to comment?
And that would make for an even worse experience for him as a new user.
He's going to get closed on Stack Overflow, he'll probably come over here with missing code, somebody will comment, and he'll either add it or not.
if he doesn't then it gets closed and nothing happens
And he gets a closed question on both sites, and leaves with a very bad experience. I believe it's better to try giving him advice as soon as possible, to help him get the best possible experience and hopefully a resolution to his issue.
that is why I commented 'if you add your code, and post it on code review, it'll be on-topic'
Yes, and on that we do agree, and it seems like he's trying to add the code to the post as we speak.
06:28
0
Q: Measuring performance of code using StopWatch

davidI have created a StopWatch class to measure the performance of any code. I use this StopWatch code in any of my multithreading projects as well. public static class StopWatch { public static ConcurrentHashMap<Long, Long> histogram = new ConcurrentHashMap<Long, Long>(); /** * Creat...

@Hosch250 Yes, my first bounty :) Who is Edward Edwards?
Monking all :)
@joranvar a Pirate
@Quill-HATMANIAC So, there's a theory about him and bounties?
yup, it's a hat earned by bounties
Oh, lol.
Haven't seen the hat yet
06:35
possible answer invalidation by Harshit Shrivastava on question by Harshit Shrivastava: codereview.stackexchange.com/posts/114368/revisions
06:57
0
Q: Constructe the url given an Enum

davidI have a below code which constructs the URL given a FlowType enum. private String getURL(FlowType type) throws Exception { StringBuilder url = new StringBuilder(); if (TestUtils.isProduction()) { if (type.equals(FlowType.HOLDER)) { url.append(VISITOR); } els...

monking
0
Q: My first Haskell: dice rolling

AnentropicYesterday morning I decided to stop procrastinating and start learning me some Haskell. So far I've made this, which is a simple cli 'dice rolling' utility that can be used like: $ ./dice 3d20 You rolled: 17 The code looks like this: import Data.List.Split import Data.Char import Control.Mon...

@Kent That tip may or may not work, depending where you use it. I found that tip elsewhere on the Internet, and made use of it, and then when I changed some things in my program it suddenly didn't work anymore. See here for more info: codereview.stackexchange.com/a/114723/92925RenniePet 36 secs ago
Regarding the question of how to get a Handler object, this information may be of interest: codereview.stackexchange.com/a/114723/92925RenniePet 35 secs ago
I'm voting to close this question as off-topic because it seems like a better fit for codereview.stackexchange.comStedy 46 secs ago
07:35
0
Q: Todovmc for emberjs v2

izumerootI have made todomvc for ember v2 https://github.com/izumeroot/ember2-todomvc I am beginner in EmberJS. I need your opinions about this application. May be you will find some bad solutions. My implementation works without controller. I use components instead controllers. Because in documentatio...

0
Q: C++ program;This program always appear problem.it is like this

Nikakulu#define N 3000 #include <stdio.h> #include <stdlib.h> #include <string.h> int system (const char * string); struct student // declare the structure type struct student {// The following four behavioral structure member char name [20]; float score [5]; float aver; int cla; }; void input (struct st...

07:58
0
Q: Type to byte array conversion in Swift

Michael DornerI need the byte representation of a given type, especially double, float, int8, etc. What do you think? typealias Byte = UInt8 enum ByteOrder { case BigEndian case LittleEndian } func pack<T>(var value: T, byteOrder: ByteOrder) -> [Byte] { let valueByteArray = withUnsafePointer(&va...

strangest thing -- my laptop turns on at night by itself even though the lid is closed and it was on standby mode
I could hear a youtube video while the lid was down
and apparently you people saw me come online
@JeroenVannevel lol
Haunted Laptop
08:17
0
Q: Why was my question which contains the code written by me closed as off topic?

TheIndependentAquariusUsage of Conditions Variables with Pthreads I saw this closure today. Why is this closed as off topic? This contains code written by me, and I received a very nice answer. What point am I missing?

08:28
Monking @all
@JeroenVannevel Wake-Up on LAN?
Monking
0
Q: Multiple producers accessing multiple shared queues

TheIndependentAquariusI request a review on the way multiple producers and consumers access multiple shared queues. What I have done here requires the threads to check for the space in queues minimum two times. Can it be made better someway? Of course, I can create another queue where these queues will be kept in th...

0
Q: Credit Calculator

WXHXIXTEThe code has been test to work by the parameters listed below I just wanted to know if there were any details that I missed or blatantly overlooked. Thanks in advance. Develop a Java application that determines whether any of several department-store customers has exceeded the credit limit on a ...

@Mast doubt it -- it happens infrequently
08:55
Wouldn't be better in Code Review at least? — Soner Gönül 34 secs ago
Zak
Zak
09:13
monking @all, again.
hello @Zak
09:56
Monking
10:17
0
Q: Implementing a long-running entity lock

usr-local-ΕΨΗΕΛΩΝRequirement I have an entity named ImportData which can be processed once in order to extract data from a file fed to the application. I need to make sure that, in case of concurrency, only one process is capable of processing that import data. Other processes shall not attempt to read the file...

10:30
If you're looking to get a code review / tips for improvement, I suggest looking at Code Review (be sure to check their FAQ for what's on topic though). — Jeroen 43 secs ago
I think you would get more responses if you posted the question in codereview.stackexchange.comelif 52 secs ago
@elif He has a programming problem (cannot achieve dynamic nature), so I don't think it would be proper for CodeReview — Vince Emigh 33 secs ago
@Duga correct
@Duga also might be a good fit
10:46
@Zak workplace.stackexchange.com/questions/59672/… might be a question you could weigh in on?
Zak
Zak
@DanPantry I did see that one. Decided I can't really offer general advice, especially when I haven't been on the managerial side of the equation.
I'm just 4 votes away from rep-capping on Space Ex. ^^
Now that's how you join a community :)
just got a bounty and accept on SO :-)
tfw you encounter dead code in your app :\
if (data.ReturnedAllocation && data.ReturnedAllocation.length > 0) {
There's no such field ReturnedAllocation on this data type...
11:02
Yes this code grew sort of organically which is part of the problem and part of the problem is a recursive algoritm which makes debugging hard. Maybe I should crosspost this to code review? — Thijser 42 secs ago
It could be worse
a jQuery dependency for just $(elem) actions
@Quill-HATMANIAC *vomits*
@Hosch250 implemented your remarks.
What about the content? Did you like it?
Monking
11:07
hello
ermagherd... I could puke at university assignments...
@skiwi you're third page rep man, you may not get site swag! you should do an answer streak to get to second page!
@Vogel612 any one in particular giving you grief?
"Implement this class.. it's supposed to store a bunch of objects coming from different containers of multiple types in the same file and also enable to do the reverse"
because who needs type-safety or object-specific serialization policies?
no that's not weird, thats inane
11:12
@Quill-HATMANIAC I don't think that's how it works, I don't get swag, swag gets to me
so they're just counter-practice, not really difficult so to speak?
they're beyond "counter-practice"
it's insane
@skiwi sounds like what would happen in mother russia
@Vogel612 wtf
@DanPantry yea exactly
11:13
if that was any more silly it would be a javascript array
4
"Hey here's an interface, use that to unify your different classes that can be used in this class"
@Vogel612 inb4 interface TaggingInterface {}
@DanPantry Array.prototype.wtf
no worse..
@Thijser Code Review is only for code that is already working as intended. Once you've got it working though, feel free to bring it over. — Zak 15 secs ago
11:15
interface HasSomethingToStore { // <-- no shitting you, that's what they called it
    Collection getItems();
    void readItems(Collection stuff);
}
@Vogel612 why
I have no idea
tell the person who wrote that they just killed 5 kittens
no that interface used to be empty...
the assignment was: "There's two methods, one for retrieving items, one for loading the state from a given collection"
to be honest though that does remind me of what I used to do before I became acclimitised to generic types and interfaces
11:16
I actually tried to constrict it with generics...
but last time I got deductions for "changing the method signature" by adding final
What's that what you are doing @Vogel612?
so I probably should really implement it using rawtypes
univeristy assignments
Do they know it's in Java?
@Vogel612 I'm surprised that constricting the method signature is considered a bad thing
I can understand changing it outright to use custom types
But if you use a covariant generic constraint, IMO that should be fine because you haven't changed the behaviour, you've just given a better compile-time hint
I probably used covariant wrong there. What I mean is derived type, but covariant sounds more fancy.
@Vogel612 And I thought my naming was bad. Guess there's always someone worse around.
11:18
s/covariant/contravariant.
@DanPantry I daresay I may not use Generics
also they basically make the assignment impossible, because you need to serialize and deserialize different types
@Vogel612 What you're doing screams generics though. Isn't a non-generic Collection deprecated now?
you basically work on objects anyways,so there's that
@Vogel612 Ah... and, of course, Java has type erasure. RIP
@DanPantry oh it gets you a rawtype warning
@DanPantry exactly
Zak
Zak
11:19
This is what happens when you throw a game together in half an hour:
0
A: Life is a Game - Play it

ZakFlawed Logic Dirk Reichel makes a good point that the logic for DetermineNextTickState isn't expressed correctly and should be If numNeighbours = 2 Or numNeighbours = 3. Additionally, this If x <> y Then is going to cause completely flawed results (it won't even have the desired semantics when ...

@Zak I thought @Mat'sMug was joking when he said someone made conway's game of life in excel
2
There's a hat going at the moment for voting/posting on meta too guys
16
Q: Has Apple hidden any tributes to Steve Jobs?

HugoIn Apple's software, are there any hidden tributes or memorials to Steve Jobs? Someone told me you can find his glasses in an app but I can't find them.

Zak
Zak
@Quill-HATMANIAC Isn't it still 35 minutes before it counts?
23/Dec +- 12 hours (UTC)
well I already have it
wat?
11:26
I got it earlier
it's called the Airance of Greivances
or something like that.
that's for posting though, right? caching....
> There's a hat going at the moment for voting/**posting**on meta too guys
@DanPantry yea I thought it was only for posting after I didn't instantly get it :D
@DanPantry Talking about meta.SE, just spam flagged a question there. Not often that I encounter spam there.
11:28
@Mast oh it isn't as rare as you might think
but it's close to the nest of spam-killers
0
Q: Count of one list items in another list

user92946I have 2 lists. One list of objects & one list of int as follows: class Test { int id{get;set;} string name {get;set;} } List<Test> lstTest = new List<Test>(); lstTest.Add(new Test{Id = 1, Name = "Name1"}); lstTest.Add(new Test{Id = 5, Name = "Name5"}); lstTest.Add(new Test{Id = 3, Name...

@Mast if you want to link it, I'll go and report it to sd
@Quill-HATMANIAC already down..
also sd probably already caught it
Oh okay lol
nope, I'm set to get pings for cr
You know what's more hateful than merge conflicts?
Merge conflicts without any apparent difference
11:33
@JeroenVannevel more merge conflicts
@JeroenVannevel Ha. Welcome to TFS.
<<<<<<< HEAD
    redisClient.hmset(keyLastEntry,
                        'value', valueObject.value,
                        'timestamp', valueObject.timestamp,
=======
    redisClient.hmset(keyLastEntry,
                        'value', valueObject.value,
                        'timestamp', valueObject.timestamp,
>>>>>>> master
What the hell is the difference here
non-printables?
WHY CAN'T YOU MERGE IT
unicode/whitespace
I call tabs vs spaces :D
11:33
tabbing vs spaces
^^
set your git to ignore whitespace changes
what's the key to show the tabbing character? or am I thinking of MS word
@DanPantry alternatively make your IDE format things for you...
unless you use python it won't matter but who cares about python
@Vogel612 that works if you're a single dev
if you're in a team and multiple people have screwed up IDE settings
a good IDE allows you to export formatting preferences
11:35
yeah, you can use .editorconfig (which I do)
That damn senior dev that refuses to follow any sort of common practice
what editor does he use @JeroenVannevel?
people just need to use the same prefs and who doesn't gets their PRs rejected
Eclipse. To write Javascript.
okay. never mind.
Zak
Zak
11:35
@DanPantry Why is everyone so surpised?
works-ish
Without syntax highlighting or any other feature.
@JeroenVannevel get a linter
make it part of the build process
you can enforce tabs vs spaces there if he refuses to be co-operative
also shoot eclipse...
We don't use PRs. We all have a branch of the CSO's branch and we tell him when we want him to merge our code
11:36
that way he can use tabs in js if he wants
you can get some minor syntax highlighting for js into eclipse, but eclipse really isn't made for dynamic languages
the build process will just refuse to use his code
The senior dev doesn't do that though. He copy-pastes his source and sends it via email to the CSO
@JeroenVannevel LOL
@JeroenVannevel RUN
11:36
He never tests it either.
or make the CSO enforce process
this sounds like the kind of guy who makes a really weird section of code that only he can understand for "job security"
2
a.k.a a douchebag
Yep. Exactly.
make an .editorconfig and add jslint
put jslint in your build processes
enforce a single style (tabs vs spaces, I prefer spaces)
@DanPantry there is no build process
11:37
I got praises from my co-workers for writing the major feature I worked on in a very readable, documentable way. All because they've seen the hell that was his implementation of it (but in Java)
obviously.
@Vogel612 you can put one very easily in using npm, which they are
They said now they'll be able to understand how the feature works
as I see this all runs off the CSO
which is ... wrong on so many levels
with the right devDependencies you can create a precommit hook in node that will prevent any code being committed if it doesn't adhere to jshint
11:38
His code is littered with interfaces and hundreds of lines of doing the same thing in extremely convoluted ways
What the CSO will see is this
"here, commit this code"
"can't. npm says your code is shit"
problem solved
The CSO can't afford to do it though
he doesn't have to.. like I said
11:39
Development would stall and you can't do that right when you're about to get VC
with the right devDependencies from npm, you can create git hooks completely in node
it won't stop him from deploying, it'll just stop him from merging crap upstream
There are only 4 devs, me included. I leave tomorrow. That leaves 3 devs and the VC rounds start now
They need the features
even if they're crappily implemented
@JeroenVannevel wait you leave?
@Vogel612 christmas holidays
My internship is over
11:40
oh. and even better christmas gift
In January I finish school and I'll see what their offer is in the meantime
go smack the senior dev upside the head seeing as you're leaving anyway
Sorry to interrupt, guys, but… what does CSO stand for?
with a large smelly trout
Chief Scientific Officer
11:41
complacent sourcecode officer, more like
3
@DanPantry /me can't do that -- might work here again
@MathiasEttinger carry on interrupting :D
ok, thanks /me start reading again
@MathiasEttinger if the conversation feels oppressive, it's a sign that you should interrupt and tell us to bugger off to the Nth
11:42
^^that
Not at all
Screw that. Interrupt me and I cut you
I tried to understand
But not used to the english terminology for various chiefs
that said, @JeroenVannevel you should get that senior away from there if you want to work in that company long.term
or work somewhere better
11:43
(or covertly install an editorconfig plugin in his eclipse)
people like that senior (and the CSO who enables them) make working on code a royal pain in the backside sooner or later
@Vogel612 He's been with the team for over 20 years, he's not going anywhere. They've gone through a few companies together
because they can make the code crap faster than you can clean it
raise it to the CSO and explain how it affects your workflow
Oh yeah, their MVP (Minimum Viable Product) was some of the worst code I've seen in a long time
The CSO knows
11:43
covertly swap every thousandth character to be followed by "much wow very bad code"
The CSO cries at night (I imagine)
regardless of how long the senior has been there, if it lowers profits the business will ultimately care
That said you're effectively working for free, so :s
also it's not like you want to get him fired...
They can't pay anyone new right now so it's a choice between no features and new but badly implemented features
you want to get him to follow coding standards
11:44
the latter always wins
That's not a really good way to create a good product
if he can't then you want him fired
That sounds like a sinking ship to me
^ that
@JeroenVannevel do you remember the code I was working on this summer?
Yeah I've been trying. I made some progress by getting him to use some proper guidelines but ultimately his way of logic is too deeply ingrained
11:45
I bet it started that way.
my memory doesn't go beyond the past week
It's not so much his whitespace or brace formatting or naming "conventions" that bother me
@JeroenVannevel it was even crappier than the university assignment from an hour or so ago
It's the way he implements things
indirection over indirection over indirection?
So extremely convoluted.. Values come from 20 different places, often an interface that magically appears
Code should be able to be read through. Yesterday I explained my implementation to the CSO and I was able to do so by just looking through the code from the entry point and following the branches
11:47
- been with the company 20 years
- company can't/won't pay
- has generally inefficient practices
Oh I remember stuff like that...
can't help but think those 3 points are related somehow
In his code.. entirely impossible. You can't get anywhere because it's all just tangled together
Ahhh. A pastafarian.
yea... "Calculate business numbers of multiple different classes"
11:48
oh well. I'm literally stuck with it for another 5 hours, I don't really care too much anymore
Unless you reapply...
I've written wonderful code, if I may say so myself. It's accompanied with 183 tests (183 more than they had before) and very extensive documentation so they can't mess anything up
I'm satisfied with myself
BusinessValueTree bvt = new BusinessValueTreeImpl(fac.getStf());
bvt.traverse();
BusinessValueResults res = bvt.evaluate();
@JeroenVannevel "so they can't mess anything up" - Famous last words
If I decide to work here again, I'll ask for the specs of what they implemented in the meantime, do a revert commit and start over
llol
Zak
Zak
11:56
Are there any mods around?
didn't see any yet?
maybe we can help?

« first day (962 days earlier)      last day (3352 days later) »