« first day (697 days earlier)      last day (3313 days later) » 

12:00 AM
RELOAD!
 
There are 1262 unanswered questions
 
AMMO!
2
 
When I'm in a crowd, I slip to a section where I have an escape route and others form a wall blocking me from the rest of the crowd.
When I get in a conversation, I'm sometimes interested, but I prefer to be alone.
 
When I am in a crowd, you would not know I was introverted.... but, when the crowd is done, I disappear for a day or two...
 
Hmm. Being in a crowd doesn't bother me very much, but I do need my alone time to recharge.
 
12:03 AM
@LokiAstari there are a few typos in your New Year blog post
 
I hate it.
 
@mjolka: Thanks I'll take a look tonight.
 
I typically find a dark corner and study the wall.
 
I know a number of people who hate crowds... My wife, for one. Good thing we're not in crowds that often
 
Some family members tells me I have problems, and I need to essentially get a life.
 
12:04 AM
pros are -> prose is. who's -> whose. colleges -> colleagues. tittle -> title are the ones i can see
 
She seemed to do OK last few concerts we went to in Nashville, but the excitement about the concerts may have overridden the anxiety of crowds
 
//Pass the test. Assume the data manipulation was successful.
//Recommend verify the data changes in the database in addition to running this test.
Assert.IsTrue(true);
"Unit testing"
> This code is not what we are concerned with
You should beeeee
 
@JeroenVannevel Defeats the purpose, doesn't it?
 
@Phrancis It does for sure
int result = 1 + 2
// Assume result is 4
Assert.IsTrue(true);
^ That's the equivalent
Oh and // Use calculator to verify after each test run
 
I had a problem today, where an update to database records for a few entries actually resulted in accidental key violations. DBA said nothing about it and just blindly did it. groan
The old VB6 app was just like "eh, can't reconcile violations, so I'm just not going to display the records instead of firing an error!"
What a crappy application
 
12:21 AM
0
A: Data Access Layer code for MSSQL Databases

Jeroen VannevelI will review the tests because they definitely need some work! GetDataTableTest() The Test suffix is redundant, they're all tests. What I want to know is what scenario is being tested when the test fails. For this reason I prefer to following the [UnitUnderTest]_[Scenario]_[ExpectedResult] ...

Enough unit testing for today
 
@JeroenVannevel can you tell which unit testing framework is used in that question?
 
@mjolka It's too general but I would guess just MsTest
[TestMethod] is MsTest although I don't know what other frameworks use
I believe there's also [Fact] and [TestFixture] for others
 
hm, can't find an Assert.DoesNotThrow like in nunit
 
Wait... Assert.IsTrue(true) ??? Wtf?
 
@mjolka It's a pointless assert though: just don't assert anything and the test will pass
If it throws, then it fails
 
12:27 AM
@JeroenVannevel point taken
 
But it's an indication something is not being tested: after all a method that is executed should have a result somewhere
 
Explicitness is always nice though...
 
Either written to a file, database, console or whatever
So that result should be asserted against
 
@mjolka looks like plain Jane built in MSTests to me.
 
@RubberDuck thanks :)
 
12:32 AM
Np.
 
0
Q: Unit testing - Parsing data from the Weather Underground API

MendyKI'm just starting to write unit tests. I have a library on Github which I'm trying to write tests for. I downloaded the JSON and stored it into a local file that looks like this: { "response": { "version":"0.1", "termsofService":"http://www.wunderground.com/weather/api/d/t...

 
Hey @JeroenVannevel. Sure you've had enough for a day? ^^
 
Inferior language! Will not touch!
 
Lol
 
I'm voting to close this as off-topic given that it contains stub code. <#code#> is Xcode special syntax that makes a tab-able area where you're supposed to actually write your code. — nhgrif 28 secs ago
^ any help?
 
12:47 AM
I VTC, for all it's worth
 
I held off on a CV at first, but at this point I'm convinced it's minimally unclear.
 
0
Q: Simple login system in prolog

donquixto DacThe code produce a dialog that allows a user to enter information ,then verify the information and allow the user to have access. Is there any way to improve the code % user facts to enable the user to log in user(dac,dac11). user(dac101,daa). % login Gui. checks the database to log in loginGu...

0
Q: Algorithms: Fast way to count the numbers that are divisible by their own sum of digits inside a range

Marcus Vinícius MonteiroInspired by this question on StackOverflow, I wrote a function that returns the length of a list made of numbers that are divisible by their own sum of digits inside a range: -- Returns the digits of a positive integer as a list, in reverse order. -- This is slightly more efficient than in forwa...

 
@nhgrif Apologies. I'm new here. I edited my question — MendyK 1 min ago
 
Why didn't you include relevant details like this in your question? Personally I'm quite tired of this drama and if you're going to incite even more, I am not at all interested in caring about it. You acted in poor sportsmanship, your actions now have repercussions and instead of sitting it out for a day you're invoking even more. — Jeroen Vannevel 6 hours ago
excellent comment there, @JeroenVannevel ^^
 
@nhgrif What do you think, in light of your expertise with Obj-C?
 
12:58 AM
@SimonAndréForsberg gracias
 
I think still worth a downvote but probably not worth a close vote.
 
I turned off the sound notification from the chatroom a few hours ago. I've never felt so at peace using the chatroom
It used to be that at random times that incredibly loud ping flew through my speakers, scaring the shit out of me
 
I turned it off a few hours plus a couple years ago.
 
It's a whole new world
The chrome notification is enough anyway
 
I turned that off like 2nd day I was in here :o
That ping is way too loud
 
1:01 AM
-1
Q: Unit testing - Parsing data from the Weather Underground API

MendyKI'm writing unit tests for the first time. The tests are for my library on Github. I downloaded the JSON and stored it into a local file that looks like this: { "response": { "version":"0.1", "termsofService":"http://www.wunderground.com/weather/api/d/terms.html", "...

So, the question isn't necessarily off-topic anymore, but it's a pretty bad question still.
Almost nothing in that code makes sense to me because...
a) Using a 3rd party library I've never heard of
 
0
Q: Java Tic Tac Toe Game Confirming Winner

SmithBelow is my code for a Tic Tac Toe game. There are two problems I am running into. For one, I am not sure how to return which player has won (X or O), I can just return if there is a winner. As well, when I try to run my program I can an out of bounds error. Where did I go wrong? As well, if it w...

 
b) That 3rd party library has implementing some code that requires very bizarre looking Objective-C. We should be reviewing the 3rd party library...
 
Aren't they sweet
 
But the biggest reason it's a bad (yet on-topic) question is that basically all of the questions being asked at the bottom of the question should probably be answered by the documentation of the library being used.
 
            });

        });
    });

});
Reminds me of JavaScript...?
 
1:05 AM
The thing is, it's probably not avoidable.
The poster is just using the library.
The only way to answer this question is by being a master of this library.
 
Taken
 
And apparently, the whole point of this library is for unit testing... which is ridiculous... Xcode's built-in unit testing is good...
@bazola Has posted some questions about unit testing using Xcode's built-in unit testing. I think I reviewed those no problem.
I've got no interest in mastering an obscure unit testing library for the sake of answering a Code Review question... and that's the only way to answer this question. It'll probably go unanswered.
It actually requires knowing two 3rd party libraries pretty well.
That's from the official documentation on the library she's using.
 
So I guess they're pretty much stuck with that, better or worse. I've only seen that otherwise (frequently) in JS is why I was curious...
Much more infrequently in other languages, where a parameter for the class/method/whatever is actually another method/function/whatever...
 
I'm still one-away from Steward. One new user self-deleted the post before it had a chance to appear in the queue.
 
(bear my ignorance, as usual, if I said something wrong/stupid :)
 
1:13 AM
It looks like the BDD-driven unit test frameworks I've seen for C# as well so it's probably legit
 
You're more likely to see }]; a lot in Objective-C because usually it'll be methods.
 
I've never been interested in that approach so far though
 
Here it's a function instead of a method, so ) instead of ].
The issue is that we've got a function/method which takes a block argument (a block being a block of code... which ends in a closing brace)
And the way this hideous library is designed it just happens to work out that your outer most block tends to want to take code that also calls a block... which tends to want to take code that also calls a block...
 
It's a really bad way of writing your code.
 
1:14 AM
C# implementation of a BDD-style unit test framework
 
You shouldn't be nesting block calls that deeply. It's hard to make sense of what's actually happening.
It's bad enough when you nest loops or if structures that deep. Blocks are worse.
This isn't a critique of the code in the user's question. It's a critique of the design of the library or any library that is written in a way that requires consumers to use it in such a way.
We should be using delegation rather than such deeply nested blocks. The lack of delegation tends to be a sign that the library author doesn't understand delegation (in my limited experience).
 
0
Q: Create ranges from an array of integers

SteephenGiven an array of ints, return a string identifying the range of numbers Example Input arr - [0 1 2 7 21 22 1098 1099] Output - "0-2,7,21-22,1098-1099" . Is there any improvement possible in this implementation? #include<iostream> #include<vector> #include<algorithm> #include<sstream> std::...

 
I just expanded this answer:
4
A: Find the next 7 o'clock NSDate

nhgrifThere's a much easier approach to this problem. We can use NSCalendar's nextDateAfterDate:matchingComponents:options: method to find both our next 7am and 7pm. Then it's simply a matter of comparing these values and returning the lesser of the two. NSDate * nextSevenOClock() { NSCalendar *...

 
I suggest you post this over on codereview.stackexchange.com, you will get good advice on how to make it more clear, concise, and rubylike. — Mark Thomas 1 min ago
@MarkThomas Code Review expects posted code to be working as intended. Everything else (including this, it seems) is considered off-topic. — nhgrif 1 min ago
 
Also, this stuff is really silly:
[[error should]beNil];
versus:
XCTAssertNotNil(error);
 
1:28 AM
@nhgrif I like fluent assertions they feel comfortable
but their biggest strength is in more complicated assertions
 
When you say "fluent", are you talking about the [[error should] beNil];?
 
The problem with that though...
As someone fluent in Objective-C, it makes no sense to me.
 
I use FluentAssertions. That would turn that into error.Should().BeNull() vs Assert.IsNull(error)
 
What happens if I call [error should]?
error.Should()?
Should what?
[error shouldBeNil]; // this would be better.
I'd be okay with a set of methods like that.
[left shouldEqual:right];
 
1:31 AM
The point of fluent style is to make it read easily. The individual components don't matter because they should never be used that way anyway
 
[left shouldNotEqual:right];
you can make it read easily without making it make no sense.
If it shouldn't ever be used that way, don't make it possible.
 
things like errorList.Should().Be().EquivalentTo(something) or errorList.Should().HaveCount(5) demonstrate it better
 
What does Should() return?
And what does Be() return?
It still doesn't demonstrate it better.
errorList.shouldBeEquivalentTo(something) and errorList.shouldHaveCount(5)
 
I don't know what they return
They don't matter
 
Then why do they exist?
 
1:34 AM
Because I suppose it makes it easier to construct the methods? You don't have to create a separate method for each instruction but you can use building blocks from each one
To me, it reads easier as well
 
Not to me at all.
 
If you look at it from a natural language PoV, not a programming language
 
@JeroenVannevel... I put the same words in my examples..
How does errorList.Should().Be().EquivalentTo(something) read better than errorList.shouldBeEquivalentTo(something)?
It's the same words.
Except the programmer that's reading it doesn't have to stop and ask questions about the methods Should() or Be().
Because it's not someone fluent in English reading unit tests. It's someone who is fluent in a programming language (and probably English too).
 
Whoever is playing the egg, DON'T CLICK THE UPVOTES BUTTON!
I got it this high without ever clicking it.
Users comes free with site activity.
 
egg?
 
1:45 AM
Isn't it a game and people can vote how they want?
 
Yup, SE egg.
 
@nhgrif that's a pretty bold statement when quite a few known and well respected unit testing frameworks use a fluent interface.
 
It wasn't a statement about unit testing frameworks.
It was a statement about Objective-C libraries.
And definitely not limited to unit testing.
 
ah, yeah... i suppose i can see it being rather clunky in ObjC
it's pretty invaluable in certain languages/situations though (unit testing and DBAL are the first things that spring to mind).
 
I don't know what "fluent interface" means exactly. If it's this [[error should] beNil] nonsense, I don't like it, but it's not clunky.
 
1:48 AM
0
Q: Simple C Port Scanner

user3000477I have been writing a Simple Port scanner in C, once I got it to work I decided I wanted to make it faster because it takes a very long time for it to get done with scanning all of the ports.Is there anything I can improve on in my code to make it faster? Here is my Code : #include <string.h> #...

 
But that's 100% unrelated to a library constructed in such a way that it depends upon nested blocks.
And speaking of using blocks/closures, I'm about ready to auto-close-vote any question on Stack Overflow that's using the Parse library...
 
@nhgrif it's pretty much any interface where you can keep chaining calls together. sometimes it's defined as having methods return the object on which their being called, but that's a bit too strict for how it's usually used.
 
I don't understand the point of that though.
If you have to write the nil method... what's the point in having a should and be method, which just return the object they were called on? Why can't you just write shouldBeNil if you want it to be more readable (which I'm all for)
Xcode's unit testing function names are plenty verbose if you know what the word "assert" means (which has a meaning outside of unit testing...)
 
Hello, code reviewers, I have a question about topic-acceptability
I've recently returned to Project Euler, and my current solution to one of the problems seems to be going really slow
 
because it can be used to avoid very gross situations. for example, builders are (unfortunately) very common in java. you could either do this:

SomeClassBuilder builder = SomeClass.builder();
builder.setFoo("foo");
builder.setBar("bar");
builder.setBlarh("blarh");
SomeClass blah = builder.build();

or you can do:

SomeClass blah = SomeClass.builder().setFoo("foo").setBar("bar").setBlarh("blarh").build();
 
1:53 AM
Is this the right place to dump a few lines of code and ask how I can make it faster?
 
in the context of unit testing frameworks, it's used for composability
 
Eggwin?
 
@John If the code is working but simply slow, it's typically on-topic. Be sure to look at other Project-Euler questions (some that you've answered) to get a look at how they've been asked. Also check out the tag (I think)
 
well and extensibility
 
We won for the 4th time.
 
1:54 AM
@nhgrif Alrighty, thanks :)
 
I did over half of it myself.
 
it's pretty hard to add your own predicates when they're hard coded into the assertion library
 
Hi, @John!
Welcome to CR!
 
but if it's all handled by composing some UnitAssertionPredicate interface, you can make your own
 
@Corbin Are you suggesting that the long stupid chain is better?
 
1:54 AM
Yes, yes, I am
 
lol, okay. Agree to disagree.
 
@Hosch250 Hi, thanks! :D
@nhgrif I don't actually know if it's working though...it hasn't finished :3
 
have you ever used "the long stupid chain"?
 
Actually, what I dislike most about the particular unit test in question is that half of its usage involves passing strings.
@John Don't open a question unless you know the code is providing the correct answer.
 
That ^^^
Hi all
 
1:55 AM
in The Bridge, 49 mins ago, by Rainbolt
PRIVATE BETA: Alternate questions and answers. Simple.
PUBLIC BETA: Alternate questions and answers until one is maxed. Then add in Quality. Then add in Users.
GRADUATED: Alternate questions and answers until one is maxed. Then add in Quality. Then add in Users.
ALL STAGES: Ignore warnings exactly 4 times. Then address them.
 
@nhgrif okay
 
This is the best solutions for winning the egg.
 
oh god, it's an rspec clone in objc
that's.... interesting
 
Dishes time, just going to give a couple votes and leave.
 
1:56 AM
It's a completely pointless Code Review question:
-1
Q: Unit testing - Parsing data from the Weather Underground API

MendyKI'm writing unit tests for the first time. The tests are for my library on Github. I downloaded the JSON and stored it into a local file that looks like this: { "response": { "version":"0.1", "termsofService":"http://www.wunderground.com/weather/api/d/terms.html", "...

It's on-topic, technically, I think.
 
although in all honesty, perhaps i'm just used to staring at rspec all day, but that's really not that bad to me
 
But you can't review it unless you know the two 3rd party libraries being used.
And I see no point in learning a 3rd party unit testing library when Xcode Unit Testing works great.
My primary problem with that unit testing library though is the massively nested blocks.
Why can't they use delegation?
 
seriously, who upvoted this? ▼▼
2
A: StackEgg autoclicker

CSáµ // Find the **highest** stat and click the button next to it. var i = stats.indexOf(Math.max.apply(Math, stats)); To win people need majority. Best voting decision should be made just before the 20s timer ends to count most of the votes. Too much jQuery, go back to VanillaJS and for loops in...

that opening code snippet is not an improvement of the code, but a defacement.
 
@nhgrif my ObjC is rather rusty. I'm not sure I see how it could be replaced (and stay equivalent) with delegates?
(at least relatively cleanly)
 
Anything written as passed blocks can be also written as delegates and vice-versa.
There's good times to use blocks. Like for example with the new Alert controller, were we're creating a block that should be executed when a button is pressed, so the alert controller doesn't have to be tied so strictly to a view controller.
 
2:02 AM
so do you mean instead of blocks they should be making anonymous delegates? or subclass some interface? or how exactly would it be done?
I'm probably missing something obvious. My ObjC is incredibly rusty :/
 
Hang on. I'll whip up a basic example.
Maybe I should write a delegation-based unit test library...
@protocol UnitTestDelegate

@required - (void)beforeAll;
@required - (void)performStuff;
@required - (void)afterAll;

@end

@interface MyUnitTest : NSObject

@property (weak) id<UnitTestDelegate> delegate;

- (void)runTest;

@end
@implementation MyUnitTest

- (void)runTest {
    [self.delegate beforeAll];
    [self.delegate performStuff];
    [self.delegate afterAll];
}

@end
That's very rudimentary... and I'm not a unit-testing master, so I'm not really sure how you might want to flesh it out more... but that's the groundwork.
 
Perhaps this would be better suited to the code review stack exchange. — Daniel Wagner 25 secs ago
 
MyUnitTest *tester = [[MyUnitTest alloc] init];
tester.delegate = self;
[tester runTest];
Or:
@protocol UnitTestDelegate

@required - (void)beforeAll;
@required - (NSInteger)shouldPerformHowManyTests;
@required - (void)performTest:(NSInteger)testNumber;
@required - (void)afterAll;

@end

@interface MyUnitTest : NSObject

@property (weak) id<UnitTestDelegate> delegate;

- (void)runTest;

@end
@implementation MyUnitTest

- (void)runTest {
    [self.delegate beforeAll];
    NSInteger testCount = [self.delegate shouldPerformHowManyTests];
    for (int i = 0; i < testCount; ++i) {
        [self.delegate performTest:i];
    }
    [self.delegate afterAll];
}

@end
 
ah... i see what you're getting at now, i think. i think this really just comes down to the JUnit vs RSpec argument. personally, i would rather do the BDD approach. there's also a nice side effect of the BDD approach in that you can easily group <do some code> <make more than one test for it> without resorting to pulling the code out to a separate method
 
I'm not trying to make an argument about unit testing.
I'm trying to make an argument about the complete unnecessity for such deeply nested blocks.
 
2:14 AM
someone could turn that around and say they don't see the need to create a ton of classes
it's just a different style
 
You're not creating a ton of classes.
Though, actually, this is still the advantage of however Xcode's built in unit testing works.
It works some other way, but the point is... no matter what you're doing...
this isn't about unit testing.
 
so... if we're not arguing about a concrete example, i think the most that can be said is "different paradigms are different"
 
No matter what you're doing, I feel pretty comfortable with the blanket statement saying no Objective-C library should expect blocks being 3 deep
if structures and loops are already hard to follow when they're nested 3 or more deeply. Blocks/closures are significantly worse.
 
go to javascript or ruby and you'll see things so deeply nested your head will explode. deep nesting is typically a sign of a design flaw, but sometimes (BDD testing being a good example) it can be justified
 
I'm not a JS or Ruby person, but in Objective-C and Swift, we have the very widely used delegate pattern.
 
2:17 AM
and it accomplishes something different than blocks
 
If you don't understand the delegate pattern, you're not really an Objective-C programmer...
 
it's just the observer pattern lol
 
You can't even use a table view without delegation.
I'm not saying it's difficult to learn...
I'm saying it's common.
And it serves for drastically cleaner code.
 
... in some cases
 
Writing a library that takes triple nested blocks is a mistake.
You can accomplish the same thing with delegation and it's drastically cleaner.
 
2:18 AM
99% of the time, yes
 
Show me the 1%.
 
you've already seen it
you just don't like it :p
 
No, I haven't.
It'd be cleaner with delegation.
This code in this question is actually 4 deep.
 
it doesn't have the same semantics without the nesting. the nesting is used as logical grouping, not control flow. it's more declarative than imperative.
 
Even the person who has implemented the code is unsure whether or not they're doing it right.
 
2:21 AM
you've never been knew to something, especially a paradigm, and not known if you're doing it correctly?
 
Did you upvote the question, by the way?
My downvote isn't because I don't like the library they're using.
My downvote is because they're using two third-party libraries, and basically 99% of the code is use of those 3rd party libraries. That in itself doesn't make for a very good question, even if I like the libraries they're using.
You can't answer the question without knowing both libraries quite well.
 
so if there were a C++ question that used boost and Qt, would it be automatically worthy of a downvote?
 
There's only 6 lines of native Objective-C in the question.
I don't know. It's my understanding that those two libraries are extraordinarily common libraries.
 
so lack of reviewer knowledge means it should automatically be downvoted?
 
No. Not quite.
 
2:25 AM
lack of familiarity with the libraries code is using doesn't mean it's a bad question
i think your bias against BDD is coloring your down vote more than you think
 
It's not.
I don't even know what BDD is
Corbin, let's say you wrote a library.
One person found it on Github and downloaded it.
They made a project, and now they've put their project on Code Review.
They're the only people besides you that have used the library.
 
it has 2500 stars on github
it's not an obscure project
 
Okay.
 
and even then, if it were a unit testing library, you could still see if the unit testing methodology/logic is correct
and if the approach is ok
 
Yeah, I'll do that without knowing the library.
I don't know what should method does.
My review of this answer is "what's wrong with Xcode's built in unit testing?"
Not because of bias against something I don't know what it is
I barely use unit testing... I don't use it enough to have a bias...
But I ask the same question of someone who would post a library completely full of 3rd party ui controls that I have to understand in order to understand their code
"What's wrong with UIKit?"
In order to post a GOOD answer, you must understand BOTH libraries being used.
 
2:29 AM
if you want to argue third party vs built in, that's completely valid, but i think the proper place to do that is in a well thought out answer, not a downvote
right, but downvotes aren't based on "can i provide a good answer?"
 
If it were Parse, I'd be less inclined to downvote because it's an vastly more popular library.
Additionally, I can actually vote however I want.
 
well of cours
e
as can i ;p
 
I'd like not to encourage the idea that you can expect Code Review to tell you whether your use of some library is right or not.
Some non-built-in library.
Besides calling methods from the library, what are they doing that can be commented on?
 
unit testing
yes, that's through using methods from the library
 
Okay, and what are they unit testing?
Stuff that's from A DIFFERENT 3rd party library.
 
2:32 AM
but if you include built in libraries, what short application isn't a ton of library calls?
 
I have to know and understand AT LEAST one of two third party libraries to make any comment whatsoever.
I think that's a pretty unreasonable expectation.
 
maybe you do, but there's a certain mentality to unit testing, a certain methodology. that translates across libraries.
be it junit, rspec, jbehave, kiwi or whatever
 
I don't know the unit testing library, so I can't comment on whether or not there are other things that can be done from that end. And I don't know the weather library, so I don't know what should be tested on that end.
 
vote however you want, and i'll vote however i want. i don't see this going anywhere particularly productive, and this is becoming more confrontational than i'd like for a casual TSM conversation on a Tuesday to get. i'm off for now.
 
Oh, the other library is the asker's library.
So yeah... vote how you want. But it's a terrible question.
"Am I using this 3rd party library right?" Go ask the people who wrote the library. There aren't any Kiwi experts here.
 
3:34 AM
0
Q: my simple string hashing algorithm implementation

trueI thought of a simple way to hash a string. By Taking the ASCII integer value of each character multiplying it by 10 and adding all of the values computed together for each character in a string. Is there a name for this algorithm? I highly doubt I was the first one to think of this. Compiled wit...

 
4:04 AM
Faster than what? Show us your code (CR might be better suited). — maaartinus 1 min ago
 
4:47 AM
0
Q: How to make my persistent segment tree (or other parts of my code) faster?

johnchen902I'm trying to solve this problem. My solution uses binary search and persistent segment tree. The algorithm should be correct because I've implemented it in C++ and it's accepted. Anyway, this is my code (1827.hs): import Control.Monad import Data.Array data Node = Leaf Int --...

-1
Q: Implementation Of Linked List with Interfaces

Nik1.How to write an interface for a list, including the methods: add(Object) remove(Object) get(int): Object set(int,Object) size: int clearAll 2. Also I have to Implement a linked list using the interface from above question Please help me with it

 
5:47 AM
0
Q: Merge sort implementation: sorting feels clunky

Lightfire228I got bored and decided to make a merge sort from scratch. I like everything, except for my "merging" of the two arrays into a sorted array inside the for loop. I had several bugs that I had to iron out, which were along the lines of if subArray1 or subArray2 ran out of elements, checking them ...

 
5:58 AM
monking @all
 
6:40 AM
Thanks very much @Pierre-LucPineault and Phrancis. I will move this to Code Review. — David 1 min ago
 
0
Q: Airline seating algorithm: how to seat a passenger in mirror image to previous allocated seat

David ColmerI have a seat allocation alogrithm for an airplane 30 x 6 seats. The plane is 'split' front (1 - 15) and back (16 -30), right (A,B,C) and left (D,E,F) I am placing passengers in window seats front right centre (15A) first then back left centre (16F) followed by (15F) followed by (16A). This will ...

 
7:10 AM
I'd say this question, as it it, belongs to the code review stack exchange site; unless you have a specific problem with your current implementation. — Nahuel Ianni 48 secs ago
 
Monking
 
0
Q: Move and rename images into separate folders

FakeHealBasically, we came up with this task at work. I was wondering if there's a shorter and cleaner way of doing the following in some other language (or even improving what I did with Ruby). We have a folder. In this folder we have files (Images only, /w .jpg extension). The names of the images are ...

0
Q: Change Task Edit form of workflow in SharePoint 2010

Prasad GavandeGreeting for day ! I want to change task edit form of the workflow when approver want to approve/reject task. I have created some code to change task edit form. Please review and suggest me improvement. Or it will be better if you have any other possible solution. public void createTask1_Method...

 
7:53 AM
so, how do I disassociate my PCG account from my stack exchange accounts?
 
@Pimgd Request deletion on PCG via contact-us.
 
done
 
8:45 AM
Monking!
 
9:37 AM
Monking!
 
9:56 AM
This question is off-topic on Stack Overflow. You'll be better off posting it on Code Review. — TartanLlama 1 min ago
 
10:07 AM
0
Q: how to use classes to make code more efficient? C++

Jimmy Habanerook this is my first post. Im trying to make a simple app to help me store data about food, to use this database in future diet application. what can i do to improve the code? what part of code should i make a class etc.? #include <iostream> #include <vector> #include <string> #in...

0
Q: Perl subroutine to clean path name for empty directories

Håkon HæglandI am writing a Perl application where it would be nice to have a subroutine that could clean up a given pathname such that it does not contain any empty directories. I have written this subroutine clean_path, and a wrapper test script: #! /usr/bin/env perl use strict; use warnings; use Carp; ...

0
Q: A program to shred files

Anmol Singh JaggiThe following is a program to shred files securely - : #include <iostream> #include <sstream> #include <string> #include <fstream> #include <vector> #include <cstdio> #include <cstdlib> #define BOOST_FILESYSTEM_NO_DEPRECATED #include "boost/filesystem.hpp" using namespace std; using namespace...

 
10:20 AM
Yes, but like it's saying: It's not a code review directly. It's just to get other user know about your comments. — Tomasz 1 min ago
 
0
Q: emulated struct with VLAs for standard C

xiver77It is possible to put arrays with custom length anywhere in a struct in C, but in that case additional malloc calls are required. Some compilers allow having VLAs anywhere in a struct, but that is not standard compliant. So I decided to emulate VLAs within struct for standard C. I am in a situat...

 
So... to expand on my point from last night regarding 3rd party libraries...
on Stack Overflow has 15.2k questions and 2k followers. The snippet says it "is often considered a 'second standard library'"
on Stack Overflow has 39.3k questions and 4.8k followers.
 
on Stack Overflow (which to its credit, even exists) 95 questions and 18 followers.
It has 95 questions out of Stack Overflow's over 9 million.
Compare this to Code Review, with a decided smaller question base (and more importantly, a decidedly smaller reviewer base).
on Code Review has 35 questions and 14 followers.
on Code Review has 48 questions and 9 followers.
, if it existed, would have 1 question and maybe 1 follower.
 
Monking²
 
10:33 AM
But perhaps more importantly, I just clicked through several of the C++ questions, and the ones I looked at, none of them were using something from the Boost library in every single line of code (so even if it were an obscure library, the Code is still mostly normal C++).
This is less true for the C++ questions, but still more true for them than it is for this Objective-C kiwi question.
And of the quick glance of questions I looked through, none of them were referencing two third-party libraries.
In the end, it doesn't really matter how it's voted. There's not that many people even capable of answering Objective-C questions. bazola uses Xcode's built-in unit testing, so I can't imagine he's familiar with Kiwi (or even heard of it), so it's pretty much down to whether or not Matrin R comes around to answer it (he may or may not be familiar with Kiwi).
 

« first day (697 days earlier)      last day (3313 days later) »