« first day (477 days earlier)      last day (3534 days later) » 

4:02 PM
0
Q: Join() equivalent function for F# sequences

TeaDrivenDevI am porting C# code to F# that makes use of LINQ's Join() extension method. Just as I use that in method call chains, I would of course like to have an F# function to pipe into. However, there is no equivalent in the Seq module, and while the same result could also be achieved with a nested lamb...

 
@Mat'sMug I've added a community wiki answer, feel free to edit it, posting answers is not my talent.
 
don't rush answers - that. That's what happened. I should have commented first, and answered without making assumptions.
 
haha yeah, I thought so
0
A: Check list for formatting questions and answers

Bhathiya-JaDogg-PereraFor a question (Sample) : I prefer to break the question into multiple chunks, I use Simon's Review Prepare if possible. Description Input and Expected Output Versions and Dependencies Code GitHub or other downloadable links Live preview links Related Code SimpleSentence.java: (34 li...

1
A: About answer-invalidating edits

Bhathiya-JaDogg-PereraCode must not be edited after an answer has been posted Code must not be edited after an answer has been posted even if the answer is still valid after edit. Help Center states However, any aspect of the code posted is fair game for feedback and criticism. And answerer can edit his/her ...

 
4:20 PM
I feel so incredibly spoiled by Rx in .NET that I'm missing it in Java
I mean, I know Java has it (RxJava) but I'm not 100% sure whether or not I'm using the correct semantics here
 
0
Q: Project Euler 81 in Python

mleyfmanProblem Statement: In the 5 by 5 matrix below, the minimal path sum from the top left to the bottom right, by only moving to the right and down, is indicated in bold red and is equal to 2427. 131 673 234 103 18 201 96 342 965 150 630 803 746 422 111 537 699 497 121 956 805 732 524 37 331 Fi...

 
Semantically, does this look correct? I'm trying to create an asynchronous invocation of whether or not a window is closed.
	@Override
	public Future<Boolean> isClosed() {
		return new FutureTask<Boolean>(() -> Display.isCloseRequested());
	}
 
4:38 PM
@DanPantry I deleted the comment(s) muwahaha, Ignore it
 
0
Q: Should links to files be added to questions?

mleyfmanIn some cases, code is designed to be run with a file as input. These files have a particular format and so will to be relevant to how they are processed, as that dictates the structure of the file-reading code. In particular, on my question: Project Euler 81 in Python, I have added a link to th...

 
@JaDogg: Haha :P
I should probably answer that question actually
unless someone wants to shoot it down :P
 
4:55 PM
Sigh... I solved it
0
A: PathVariable does not work at all

skiwiThis issue appears to not be related to @PathVariable only, it actually also fails on: @RequestMapping(value = "/test/test", method = RequestMethod.GET) @ResponseBody public void test() { System.out.println("test"); Store.INSTANCE.getChatBot().postMessage("test"); } This happens becaus...

only 16 comments that unfortunately did not help, but they tried
 
erk. Should ThreadFactory run the task on the created Thread or just return a new Thread?
 
@DanPantry should return new threads
as far as I'm aware
 
@skiwi: awesome :) Thanks
Just doing something so hacky I could potentially cut a tree with it
Well, not hacky, but yeah
 
private final static ScheduledExecutorService service = Executors.newScheduledThreadPool(1, DocumentEntry::daemonThread);

private static Thread daemonThread(final Runnable runnable) {
    Thread thread = new Thread(runnable);
    thread.setDaemon(true);
    return thread;
}
Example ^
 
ah, yup, this won't work, derp
/**
 * Create a BasicScheduler that will execute all of it's tasks on
 * the given thread.
 * @param thread
 */
public BasicScheduler(Thread thread) {
	// So hacky I could cut a tree with it.
	this(Executors.newSingleThreadScheduledExecutor(new ThreadFactory() {
		@Override
		public Thread newThread(Runnable r) {
			return thread;
		}
	}));
}
hopefully you can understand what i was trying to achieve there
 
4:59 PM
You would want to use lambdas ;)
but honestly, I don't
if you were extending something, then you'd need a super(...) call
 
Lambda didn't seem to want to play ball, there
Nah the idea is that I have this Scheduler interface which funnily enough schedules tasks
However I want to create a Scheduler that allows me to execute all tasks scheduled on the current thread
though in hindsight perhaps that complexity isn't needed
 
Could use a few upvotes on this: stackoverflow.com/a/25465021/1937270
I need to pass up the other (poor) answer.
 
@DanPantry make the Thread argument final and it would work, although I can't recommend it... wtf are you trying to do?
 
@SimonAndréForsberg i'll make a gist to try and show what i'm trying to do 1 second
@SimonAndréForsberg
also, ignore the displayWindow.update() call, I've changed that because boy taht was stupid
 
@DanPantry What is the Scheduler class?
 
5:08 PM
@SimonAndréForsberg gist.github.com/DanPantry/cf7205f40df27e7bc964 updated it for you
Disposable is also included because you'll probably ask about that :p
 
@DanPantry Sounds like you want a ExecutorService executor = Executors.newXXXX
 
@SimonAndréForsberg funny you mention that, because that's the implementation BasicScheduler uses under the hood
@SimonAndréForsberg (whcih is the concrete implementation of Scheduler). I've added that to the gist too
 
@DanPantry So... you want a scheduler that runs the tasks on the current thread??
> the Scheduler would run on the Main thread and prevent the program from immediately returning.
 
@DanPantry I basically realized here that it's not neceessary
Oh balls that's not what I meant to do. but yeah. I don't think it's necessary any more because i can just, you know, invoke the methods normally.
 
Upcoming question is off-topic
 
5:17 PM
@DanPantry Exactly what I was about to say
 
0
Q: Josephus Problem in Java

user2733436 I have managed to solve the following problem but I am afraid my code might contain bad practices or there might be ways to improve it. I would appreciate if someone can point out how I can make my code better as it will help me learn to write more beautiful code. Node Class public class Node...

 
@200_success: Isn't a meta tag?
 
Yes, it's a meta tag.
Feel free to undo it.
 
This seems ready to re-open.
-2
Q: beautiful soup, ugly code, looking for a more efficient way edit this html

ElioRubensThis code simply returns a small section of html code and then gets rid of all tags except for break tags. It seems inefficient because you cannot search and replace with a beautiful soup object as you can with a python string. So I was forced to switch it back and forth from bs object to string ...

Maybe.
 
hmm
@Dmitri There aren't any clear closing guidelines for public beta. Private Beta closures come as a result of insufficient performance during a small time period of less than a month. We don't have such an easy metric for public, as it more happens that we spend months looking into a site and trying everything we can to make sure it doesn't close. Think of three routes - a growing beta eventually graduates, a stagnant beta sits in beta, and a dying beta may close. What qualifies as dying rather depends on the site though, but largely starts from "not enough community backing." — Grace Note ♦ Dec 17 '13 at 14:00
Think of three routes - a growing beta eventually graduates, a stagnant beta sits in beta, and a dying beta may close.
 
5:32 PM
@Jamal besides, we already have
 
and are not the same. The former should probably refer to formatting output or something like that. Otherwise, it's a meta-tag.
 
@Mat'sMug I'd say we're a growing one
 
then enough already.
let's have moderator elections, at once!
 
@nhgrif 10 bucks reputation that many of the questions have used it as a meta tag
 
codereview.stackexchange.com/questions/60867/… I haven't cast a reopen vote quite yet. Is there anything I'm missing about this that should keep it closed?
 
5:34 PM
I nominate a Mug, a Fish, and a Monkey!
 
(to re-elect our pro-tem mods)
 
^^ We're going to have some very interesting moderator elections...
 
Like I said before: all the regulars in here are going to run, and chaos will ensue
 
Not all of the regulars.
 
^^
@SimonAndréForsberg and a Jamalizer
 
5:38 PM
@nhgrif Yeah, I know I probably won't run
 
@syb0rg Whether or not I will run will depend on if I feel I have the time or not
 
I just find it quite annoying that everywhere on SE/MSE when a beta site doesn't graduate it's either because it's stagnating or on its way to closure. That doesn't encourage new users to start investing their time on this site to gather rep that might just evaporate.
"but we're special"
 
I know I probably won't have the time. Plus there are way more qualified people than me.
 
I don't think I have the time either... I don't think I'd run
 
@Mat'sMug We've been told that there's not an axe over our head, and I trust that
 
5:40 PM
What happen to the questions after graduating ?
 
@JaDogg Nothing
 
If I have my questions, I will stay.
 
If CR would be closed down, most of my total StackExchange reputation would disappear. I think I would become quite depressed if that happened.
6
 
me too
hey @MartinR
 
Hello Appleness
 
5:42 PM
Hey @MartinR
Welcome back!
 
If CR closed, I may be quite tempted to discontinue actively participating on SE. I am not going back to SO.
5
 
^^ that
 
I think I would actually get a life...
7
 
lol
 
I think @Malachi would have to find something else to star
@Jamal would have to find something else to edit. Perhaps Wikipedia?
 
5:44 PM
Nope. I'll just continue to work towards Copy Editor on SO.
 
2 mins ago, by Jamal
If CR closed, I may be quite tempted to discontinue actively participating on SE. I am not going back to SO.
 
"editing" != "actively participating" perhaps
 
Posting things, I meant. I may still edit and flag stuff to kill some time.
Well, I hardly post things on SO now, but still.
 
I hate the division among chat rooms in SO
 
I'd start a new Area 51 proposal - "Code Review 2.0"
3
 
5:51 PM
I've visited SO for 300+ days , I've only visited 26 days here, It seems like I learned a lot here, Technical stuff are easy to learn, but not conventions and better design
 
if anyone wants to see my awful Java programming please remember I haven't done Java in nearly 2 years :p
 
I mean, look at the year we just had. If that isn't enough to convince SE we're ready... like, come on - we want moderator elections, we want community ads, we want the beta-blue gone, a nice theme for our lovely chatroom... we're doing great, not just good or ok. CR is awesome, unofficial testimonials keep piling up.. what the heck are we missing?!!
 
a mascot? I kid, I kid
 
0
Q: Does my class have too many responsabilities?

Dan PantryFirst time using Java in a looong time. Have some slack. So I've been working on a game so as to fill out something that I can put on a CV and I was writing the main Game class. This shouldn't be a god class, but it should simply be a class that ties together the "wiring" of the game, i.e, it sh...

0
Q: What fraction of the population will get married?

МикроПингвинSo I am interested in Computational Investing and came across this problem on a wiki page: Write a program to discover the answer to this puzzle:"Let's say men and women are paid equally (from the same uniform distribution). If women date randomly and marry the first man with a higher sal...

 
5:55 PM
> This is my crap code which probably isn't correct since I haven't come up with the logic.
what's that supposed to mean?
@CaptainObvious and Jamalized ;)
 
I always spell that damn word wrong
 
French native?
 
no, Welsh
I don't speak a word of Welsh but I'm going to use it as my excuse anyway
 
Even I am not safe from the jamalizer :p
 
6:00 PM
no one is safe from the jamalizer. not even zombies.
 
congratulations, you've got one of the 49.9% of CR questions that wasn't jamalized!
 
I tend to not find anything to edit from the higher-rep users. Also, despite JDQ's large number of questions, he still isn't quite getting the format right.
4
 
49.9% doesn't sound all that impressive :c
 
and wow, that's an old zombie!
 
6:02 PM
I have actually resolved that issue now but I would rather not self answer it
 
bumped it
 
i like how you tagged it thread safety despite GIL
:p
 
GIL?
 
global interpreter lock
Ruby doesn't have multiple threads
 
oh. but your question explicitly states thread safety as a concern??
 
6:03 PM
>
I have actually resolved that issue now but I would rather not self answer it
That was the issue, basically. I was stupid and didn't know about GIL
 
What does jamalize mean? (I feel a bit silly.)
3
 
ignorance makes us do stupid things. but being ignorant != being stupid ;)
 
Actually, it appears that I've edited about 17% of the site's posts. I guess that's pretty high.
 
@MartinR It's a CR meme
 
21
A: What's a Zombie? And what are the many other memes of Code Review?

Mat's MugMeme: Jamalized Originator: Jamal ♦ (actually, apparently me) Cultural Height: All over CR (see this chat transcript search) Background: Jamal being a frantic editor. And he's fast. So fast, we're all waiting for the day he will edit a bad question title before it's even posted. You never know...

 
6:05 PM
@Jamal Where did you find that stat?
 
> we're all waiting for the day he will edit a bad question title before it's even posted
lol
2
 
@syb0rg I just divided my edits (~8000) by the total number of posts on the site (~46,000).
 
Oh
 
...unless that number also includes edits to my own posts.
 
@DanPantry We have monkeys already
 
nvm
 
haha
> I like to trash people when their classes do too many things. I was disappointed when I saw your class because it is not so bad.
2
2
A: Does my Game class have too many responsibilities?

toto2I like to trash people when their classes do too many things. I was disappointed when I saw your class because it is not so bad. However, I don't think this class should check if the display did open. You should only create the Game once you know that the display is ready. I'm not sure Game i...

@SimonAndréForsberg where's your brainf***er?
37
Q: BrainFuckedBotsForBattling - A Brainfuck Tournament

CipherAll bots at the battle arena suddenly got brainfucked and no one can explain why. But who cares as long as they are still able to fight - although Brainfuck is the only language they understand anymore. Scoreboard | Owner | Bot Score | |--------------------|----...

 
@Mat'sMug I've seen that one, but I won't participate. I'd actually rather write a Sudoku solver in Brainfuck than participate in that
 
lol
2
 
0
Q: Clean Code attempt of HOLES problem on codechef.com

M KThe problem asks you to take read an integer (number of words to read) and then process words entered counting the number of "HOLES" exist. Letters with HOLES are A B D O P Q and R. Of those B has 2 holes A D O P Q R have 1 and any other letter not listed counts as 0 even lowercase equivalents....

 
6:22 PM
hey @rolfl
(or not)
afc
 
@CaptainObvious Another (quick) answer posted at last.
 
6:40 PM
Hey @Mat'sMug - been here again, gone agains.
 
Is Visual Studio a common C++ compiler?
 
I'd use it as such
is that bad?
 
Idk, I'm just wondering
 
I remember coding/compiling with (what I remember being called as) Borland ages ago
 
Probably not the C compiler I would use though...
 
6:47 PM
what IDE are you using @syb0rg?
 
Xcode
Very versatile
 
they should be more consistent about naming. should be iCode.
 
0
Q: Simple Word Game Loop

ProtoI'm teaching myself Ruby and decided to try to make an extremely small, simple word guessing game to help me apply what I've learned. Here's the code: # Guessing Game # 1.0 # by Proto words = ["cat", "snake", "wolf", "giraffe", "elephant"] picked = words.sample puts "Welcome to the guessing ...

 
@syb0rg Yes, it's quite common, and I use the 2012 version. I'm quite used to it, though I'm a bit disappointed that it doesn't fully support C++11.
 
Silly Microsoft
 
6:53 PM
 
IKR
 
@Mat'sMug Borland FTW. Although they're called Embarcadero these days
I remember the good old days when I used Borland Delphi 3 :)
That's what started my programming life
 
@syb0rg Oh, pimping answers time ;-) THis is my best ever answer! codereview.stackexchange.com/a/60898/31503
 
I.... haven't answered a swift question
 
My question was down voted because it is against Project Euler's site guidelines...even though we have a meta discussion on this already :|
 
Monkernoon
 
7:36 PM
@mleyfman Where?
 
I was trying to build an open source C++ project with MinGW64 today. I kind of learnt what Hell was.
I had to recompile libogg, modplug, ftgl, libvorbis and physfs.
There were another couple of libraries to link (sdl, sdl_image, sdl_ttf and lua).
I managed to get all that to compile and link.
And when I try to launch the executable, I get an error :'(
 
MinGW is one of those projects that's great on paper, but then you actually try to use it, and you realize it's only about 90% complete.... :/
 
This guy has down voted once before for the same thing, but that was a long time ago
He has answered similar questions though...
 
Though STL's MinGW build is always miles better than the official one (which is weird...)
 
7:40 PM
@mleyfman Oh, already upvoted
 
@Corbin Standard compliance is the exact reason why I use MinGW and not MSVC.
 
@syb0rg oh ok thanks :) Still annoying that people don't check the meta before doing something like that
 
"What's two-phace lookup?"
 
Considering we have at least 100 questions that are from Project Euler
 
@Morwenn oh yeah, I'd much rather use MinGW than VC++, but... Sometimes there's problems with MinGW that are rather unfeasible to actually fix. But that's always when I go back to linux :p.
clang is by far the compiler I prefer, but ya know... rather difficult to use on Windows :/
 
7:44 PM
Recently, I wanted to use std::random_engine, but it does not quite work with MinGW.
It produces the same sequence of numbers at each execution.
 
Hrmm, I wonder if that's a GCC problem or a Windows problem
Or both
I would guess a Windows problem :/
 
I read that it came from Windows.
Which is kind of sad considering that the Boost equivalent works.
 
That's one of the biggest drawbacks of MinGW to me -- you're actually using the Windows C runtime under the covers, which means any problems Windows has, MinGW has, and Windows has a lot of problems.
(Not that an emulation layer is actually a good solution either. I despise cygwin)
 
I don't like cygwin either.
The problem is that it uses the C runtime, except when it does not, except when it does.
 
Hah. Yeah... Cygwin does a lot of rather weird stuff with regards to what it actually links against.
 
7:50 PM
Wanna printf a size_t? No problem says MinGW 4.7, use %zu. We reimplementend printf because the Microsoft one wasn't complete. Did we mention that we dropped that reimplementation for MinGW 4.8 and that you can't use %zu anymore until Microsoft implements it?
 
@Corbin @Morwenn Anything to say about the HOLES challenge on the main page?
 
@Jamal I'll have a look.
 
@Morwenn don't forget that to_string is (was?) also broken, and has been for about 2 years x.x
 
@syb0rg still around?
 
@skiwi Yep
 
7:53 PM
@Corbin Fortunately, I only discovered std::to_string recently and was using std::stringstream until there.
Also, I really became interested in C++ only two years ago.
 
Do you know how to submit messages that span multiple lines into the chat via the url? @syb0rg
 
@skiwi I think you have to mimic the "Shift-Enter" in the string
Wouldn't a newline character suffice?
 
Spring MVC doesn't like a \n for some reason
 
Ah, well, consider yourself lucky. MinGW, Cygwin, VC++, etc used to all be complete and utter shit on Windows. It's only relatively recently that decent(ish) C++ compilers have been a thing on Windows :/
 
@skiwi You could use the carriage return \r
maybe
 
7:56 PM
I became interested in C++ approximately when GCC 4.7 has been available for Windows. Ok, I am probably lucky.
@Jamal auto return type for regular functions is C++14, not C++11.
 
0
Q: Is the Button, an a element with svg code and hidden link content inside, ARIA conform and well layed out?

rpkI have an a element for a button. The SVG snippet inside links to the containing SVG file at the top of the body. <a href="#menu" class="head__toggle" title="Toggle Menu"> <svg viewBox="0 0 70.115 53.162" class="head__btn"> <use xlink:href="#skmenu"></use> </svg> </a> If i checked...

0
Q: Overloading methods that do logically different things, does this break any major principles?

siva.kThis is something that's been bugging me for a bit now. In some cases you see code that is a series of overloads, but when you look at the actual implementation you realize they do logically different things. However writing them as overloads allows the caller to ignore this and get the same end ...

 
@syb0rg Neither works, might be Spring MVC that is blocking it
 
1
Q: Stringbuilder append newline in spring mvc

TheFityPI am still learning Spring Roo so please bear with me. Here is what I have (generated by roo) public String convert(Cluster cluster) { return new StringBuilder().append(cluster.getName()).toString(); } so what that produces is this. <div id="_s_com_clusters_id" class="box">Cluste...

 
Probably I need some specific setting somewhere and not treat it as raw data
 
@Morwenn Aw, dammit.
 
8:01 PM
@skiwi Are you trying out the first answer?
 
0
Q: How I pass a value from my Gruntfile to an external Grunt task

Šime VidasIn my Gruntfile, I use the grunt-contrib-watch task to watch a directory for file changes: watch: { releases: { files: ['source/md/releases/*.md'], tasks: ['process:auto'] } } Also, in the Gruntfile, I have a "watch" event handler. Inside this handler, I temporarily sto...

0
Q: Simple php inheritance

php_nub_qqI have created simple class inheritance of an abstract class Pet which is basically the skeleton of all other children classes. abstract class Pet { private static $relations = array( 'Cat', 'Dog' ); public static function getClassById($id){ return self::$re...

 
@syb0rg No time for a more detailed approach right now :(
 
8:25 PM
I think I'm about to post one of my shortest answers ever....
I have no idea how well it's going to be received. Not every day that we get a "omg this is way overcomplicated. stop using OO" answer :p.
 
> Stop using PHP
4
 
lol
 
@Jamal I began reviewing the code then went with "it's overengineered anyway".
 
that's exactly what i'm about to answer :p
for loop + std::accumlate and you're done
none of this hyper-Java-OOP crap
awww, you beat me to it
 
I assume that quite anyway, but almost never know of an alternate solution.
 
8:29 PM
yours is already posted
 
I didn't use std::accumulate though :/
The funny thing is that I didn't read your conversation before jumping to the same conclusion.
 
Time to go to my last day of work! (in the food industry anyways)
 
Many classes, overly long names and methods beginning with get --> Java.
 
There is no such text on the page I see when I click that link. — rolfl ♦ 5 mins ago
^^^ is that just me?
 
the unfortunate part is that it's not even good OO :/. It's got incredibly high coupling, and no separation of concerns at all x.x.
 
8:32 PM
@syb0rg Oh, I never realized. Going on to something better?
 
@rolfl College.
 
@rolfl You have to be connected.
 
Ahh, and Hi Morwenn.
 
Hello hello :)
 
At least I handled most of the best-practices; that is what I do best. I hope Intro to OO, starting tomorrow, will help a bit with everything else.
 
8:35 PM
Speaking of engineering and stuff, why isn't there any specialization of std::pair to handle references? That would be handy.
 
So I take it that you see a paragraph about not publishing solutions to Euler when you click that link?
 
0
Q: functional python - nested dict

ProfHase85As far as I got it, in functional style one does avoid states. Having this code: # expensive_function e.g. ldap_search: returns [] if no result # returns [{'name': 'address'}, {'name': 'address'}] as result result = expensive_function() if result: return result[0]['name'] A more functional...

 
@Morwenn my guess is that it would get super weird with type deduction. No idea though. You can always use std::ref, though that's a little gross.
 
Now I am being called a liar ... @amon ;-) :
@rolfl The text is there, please search the page for “learn” to find the section (it's near the bottom). — amon 1 min ago
 
@Corbin Yeah. I tried to create an equivalent and had to do weird things to get the behaviour i wanted.
 
8:40 PM
It is not there, I presume because I do not have an account.
 
Like provide partial specializations for T& and const T&.
 
:(
 
But in the end I got what I wanted.
 
@rolfl That's it, the about page is different when signed in. Sorry for this confusion.
 
@amon I figured it was something like that.
 
8:42 PM
@Corbin I was working on a Rectangle class that was an adapter for a SLD_rect, but SDL only has x, y, w and h and no notion of point or size.
So I created a Point and a Size class. Now, Rectangle can return a Point<int&> to provide references to the members of the SDL_rect.
Oh, Tokio Hotel is back.
 
Something about that feels icky, but I can't think of a better solution :(. My normal reaction to that would be to abstract out SDL_rect and just create one on the fly from a Rectangle every time one was needed. I suppose the problem with that though is that in a performance-constrained situation, you can't guarantee how efficient that SDL_rect creation is going to be :/.
I think what worries me about it is that Point<int&> is a dangling pointer just waiting to happen. It's a bit unnatural to have a value with non-value semantics.
But it's always easy to judge things from the outside and offer no actual solution haha
Just a rather interesting situation that's piqued my interest now.
 
It was trying to create properties actually. The Rectangle wrapper would provide origin and size methods that allow to write rect.origin() = { 5, 6 }; for example.
But, well... it seems to work, but I still feel uneasy with the reference specializations.
 
Ah, hrmmm... That is rather interesting. Not sure how I feel about that either. Returning by non-const-reference on anything other than an accessor (so basically operator[]) always make me have a little "whaaaaa?" moment. Something about a method call being assigned to just freaks my brain out. Probably just me though.
 
That's why I would like to have real properties in C++, just to be able to drop the () after the function.
 
Yeah. It certainly would be nice.
I didn't realize until getting into Ruby recently how nice it is to be able to replace a member variable with a proper setter and not have any code break.
foo.bar = ... is just so much more pleasant than foo.setBar() for some reason haha
 
8:55 PM
0
Q: How can I write this allocation algorithm more efficiently?

Steve KI would like to find a more efficient way to solve this problem, my current implementation has 3 separate loops through the data. I'm creating an algorithm to check a collection of prices against an associated collection of minimum prices. Any price that is below the minimum must be adjusted up ...

 
I totally agree. I discovered the same pleasure with Python last year.
 
@Mat'sMug Wow. Where do I buy that?
 
9:07 PM
The zombie monkey plush? Apparently the same place you can buy a Zelda-themed Monopoly game (link is below the plush)
 
in TCG Creation, 39 secs ago, by TCG ChatBot
[skiwi2/GithubHookSEChatService] skiwi2 pushed commit ad24cdee2c to master
Added Github Ping and Push event support.
 
@CaptainObvious good first CR question from this SO user!
 
@Morwenn And people wonder why I use Java...
Welcome to Code Review! As we all want to make our code more efficient or improve it in one way or another, try to write a title that summarizes what your code does, not what you want to get out of a review. — Simon André Forsberg 12 secs ago
^^ That should really be commented more often
I miss my auto-comment script :(
Hey! My auto-review script is back!
Just had to update the greasemonkey script -.-
 
9:23 PM
Yeah, compatibility and linkage suck with C++. That's why I like Python.
And template-only libraries too.
 
I've been looking for an excuse to rant against (misuse of) static methods for a long time, and I finally got it: codereview.stackexchange.com/a/60958/7308
 
@Corbin yeah Ruby is really nice c:
 
Welp, class versus instance methods is one of the first big hurdles of OOP.
 
@DanPantry I kind of hated it for 2 weeks or so, but now it's started to grow on me. It's just a little quirky coming from a C-family background.
 
@Corbin I come from C# and Java and it just feels so much more natural to me
my only gripe is that it just isn't fast enough
for anything other than toys, a few tools, and maybe web
 
9:33 PM
Yeah, a lot of stuff I see being done around me in Ruby, I sometimes have to wonder if it should be in Ruby.
It's pretty freaking slow. So much slower than the typical ruby person realizes too.
 
I did a very crappy analysis of how fast it would be to create 1 million objects in ruby vs c
c#
 
@nhgrif yeah, I guess we all go through that.
 
and it took something like 2 seconds in ruby and not even 50ms in c#
obviously that's a very contrived example but yeah
 
Is Ruby the one that runs in JVM also?
 
I also have mixed feelings on Rails, but that's a completely different subject... haha
There's an implementation of ruby that runs on the JVM
i dont know if it's still maintained or not though
 
9:35 PM
@nhgrif there is JRuby which runs on JVM
 
Almost anything runs on a JVM.
 
@Morwenn if we're going to get picky, any language can run on the JVM :p
 
unfortunately it only supports 1.9.3
current release is 2.something
 
@Corbin I once ran on a JVM. But it wasn't very stable, so I fell.
4
 
9:37 PM
Hah
 
do i need to find that gif o the really impressed seal again
of
 
I edited it to be clearer. Happy now? :D
 
I already was ^^
 
0
A: Project Euler Solutions

nhgrifIn regards to what https://projecteuler.net/ says about posting answers: As a note, all of this content is only available in the About page and only to registered users. First, there's this: There seems to be discussion threads for each problem, so why can't I access some of them? Yo...

 
@nhgrif interesting. I agree with this.
> isn't it better that we publicly allow the Project Euler questions yet edit the fact that it is a Project Euler solution, rather than disallow them and risk other users sneaking the solutions in without mentioning Project Euler in the solution?
 
9:50 PM
Mostly, my answer is in response to the other new answer: meta.codereview.stackexchange.com/a/2374/36366
 
this would mean tag goes poof though.
I think they could be fine just being called "programming challenges"
wherever they come from
 
Well, is fine. That said, proposing a solution implies that we have to provide the problem itself.
A simple web search of the problem will give the solutions, so we're not solving anything actually.
 
The tag has already been synonymized to .
 
indeed. but I like that I could be reviewing code for a challenge without knowing that it's PE#123
 
I am recommending the Project Euler problem number be included in the title.
So that those who wish to avoid the question can.
 
9:58 PM
(re-reads answer)
ah
> Ultimately, from what I've seen of the Project Euler forums, it's a really, really bad venue for discussing code. It just doesn't compare to Stack Exchange style question-answer format.

So why can't CodeReview be that venue? And I'm fine with keeping the questions marked as best as possible.
 
I edited the italic part at the bottom too
I originally left out 3 words which made it unclear.
 
yeah, I took "yet edit the fact that it is a Project Euler solution" as "edit it out"
 

« first day (477 days earlier)      last day (3534 days later) »