« first day (1047 days earlier)      last day (2963 days later) » 

3:00 PM
it's not an interesting question to answer, it isn't asking for a review, everyone loses
 
The question got hammered; it is drunk
3
 
Problem with SO is it attracts so much crap, it's usually not a good idea to migrate anyway.
1
Q: How to use whenever gem to run a task at 2 am AND 2 pm?

Luis MasuelliCurrently I run this code: every 1.day, at: '2am' do rake 'data:load_direct_monitoring_statistics' end if @environment == 'production' every 1.day, at: '2pm' do rake 'data:load_direct_monitoring_statistics' end if @environment == 'production' This code works as intended, but: is there a wa...

 
User had 2 gold badges and almost 5k rep on SO
 
@Pimgd Not exactly hammered, just moved.
 
@Mast getting hammered is a synonym for getting drunk
 
3:01 PM
@Mast whoosh
2
 
@Vogel612 Odd, that means he should've known.
 
aaand it's got 4 upvotes... most from in here I'd say.
 
@DanPantry I know.
 
oh god... i changed something in my program and broke it all
 
@Mast meh. rep says nothing about knowledge of scope
 
3:01 PM
Oh wow, that CR->SO migration was too fast for me to even finish my comment
 
what have i done
 
Pimgd has much to learn from the great Dan, his puns aren't as excellent yet.
 
> the great Dan
you're going to make me big egg-ed
 
But Dan is only first-dan
 
who's actually a 20 kyu?
 
3:02 PM
@Vogel612 True, still I expect someone with a high rep to know a thing or two about what's on topic.
 
on SO you cannot apply this or you'll go mad in the queues
 
Eggheads is a BBC quiz show that airs on weekdays. It was first broadcast in 2003 chaired by Dermot Murnaghan. In 2008 Jeremy Vine became joint chair, and subsequently sole chair. In each episode, a team of five quiz and game show champions (the Eggheads) is challenged by a team of five contestants for prize money. The most prize money that has been won is £75,000, in 2007. Some teams have been reduced to one contestant for the final round, but have still beaten five Eggheads. Occasionally, one remaining Egghead will beat five challengers. Only once have the Eggheads lost four games in succession...
 
Your question did not fit very well within the framework of Code Review in its current form, as you are asking a specific programming question, rather than a general review of your code. See this for reference. We elected to migrate it to Stack Overflow for this reason. — Phrancis 21 secs ago
2
 
Good guy @PinCrash
 
and a significant number of the SO janitors doesn't have a lot of rep
 
3:03 PM
@DanPantry I try :)
 
and SO even has
 
hi @all, guess who's back ;)
 
upvote comments, give progress towards pundit
 
OHMIGAWD @Nobody it's been ages
 
It's nobody
 
3:04 PM
> a Ruby gem that makes it possible to define cron tasks in Ruby
I thought I saw someone enter this room, false alarm, was @Nobody
 
yeah, I know @Vogel612
 
Welcome back :-)
 
people on the internet might not have bodies, maybe they're just brains in a vat
 
thx @Mast
 
or dogs
 
3:06 PM
dogs have bodies
 
@Pimgd Botnets.
 
on the internet, no one knows you're a dog.
 
"On the Internet, nobody knows you're a dog" is an adage which began as a cartoon caption by Peter Steiner and published by The New Yorker on July 5, 1993. The cartoon features two dogs: one sitting on a chair in front of a computer, speaking the caption to a second dog sitting on the floor. As of 2011, the panel was the most reproduced cartoon from The New Yorker, and Steiner has earned over US$50,000 from its reprinting. == History == Peter Steiner, a cartoonist and contributor to The New Yorker since 1979, said the cartoon initially did not get a lot of attention, but later took on a life of...
 
that's true for now
but soon, recommendation algorithms will be able to spot you via your browsing behavior
that's what you get for googling ball and stick over and over, though
2
 
*fires military salute* and so here will be the last resting place of the topic
 
@DanPantry +1
 
0
Q: CRUD with $resource (angularjs)

sparcmenFile reads and not save the changes wanted, writes - 404 Not Found! Thank you in advance for your response! function MainCtrl($scope, $rootScope, $log, $resource) { var vm = this; $rootScope.curPath = 'main'; var User = $resource('data/main/users.json'); var dataUsers = User....

0
Q: Is Nesting Events a Good Practice in Javascript/JQuery?

webDevI posted this question in stackoverflow and they told me it would be better served here so here it is: Is there a more effecient way of changing the mouseout state when a button is clicked? When a button is clicked I want the image in the click event to take precedence over the image in the mous...

 
Hm, looking at the top post
 
i'm an idiot
 
I get the feeling that answers are getting rare around here ^^
 
3:09 PM
One should fetch using git, not google.
 
i wrote code to check permissions but that ended up with an infinite loop.. turns out checking those permissions forwards a user to a state that, yep, checks permissions
 
@Mast how is a dog supposed to know?
 
@Nobody Heck should I know why that got starred.
But the amount of zombies has risen, yes.
 
then again, some english folk do seem to be saying "git!" rather than "get"
 
As long as just the amount rises and not the zombies themselves, we should be fine though.
 
3:10 PM
this probably belongs on stack exchange;s "code review" site rather than stackoverflow. — your mom 15 secs ago
 
@Duga thanks mom
 
CR has gotten more popular after graduating, and more people know about it = more questions. The number of reviewers has not increased as much
These facts are coming out of my ass though, I have no numbers to back them up, just conjecture
 
@DanPantry yeah, I thought so
 
@Nobody not sure if "I thought so" is to the first or second comment.. :P
 
@Nobody I think the link got pinned so all the regulars would familiarize themselves with that help center page. That's what we normally should be linking in comments when rolling back edits that potentially/actually invalidate an answer.
 
3:11 PM
I kept an eye on the site although I was too busy to participate in answering
 
@CaptainObvious looks like broken
 
@DanPantry: both?
 
@Nobody I like you.
@Pimgd Yep, broken.
 
why is it my auto comment poster broken
this one
I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
 
3:13 PM
@Pimgd Real men do it by hand.
 
it doesn't show up
 
@CaptainObvious
 
see?
 
> I've tried just about everything... I need this ASAP

HHHHHHEEEELLLLLPPP !!!
 
Broken is broken
 
3:15 PM
@Mast lol
 
@DanPantry enter code here
pls fix
 
lol, didn't notice that
 
thanks
I still need 210 more rep on SO before I can fix typos
gotta get those some day
slowly getting there with tagging edits though
hang on
{ "name": "[C] Broken Code",
it's got [C] instead of [Q]
@SimonForsberg =/
 
yeah they gotta be [Q] for commenting on questions; [C] is custom close reasons, but "broken code" is standard
monking!
 
3:22 PM
Monking @Mat'sMug
 
Monking
 
hey @Nobody long time no see!
 
yeah, I was very busy finishing and defending my master thesis
and now I finally got some free time again to hang around here and try to shoot down some zombies
 
Any C# Windows Form Designer guru around && has time for a question?
I'm looking at a form presenter class that has a btnDelete component, I'm trying to follow the trail of what happens when it is clicked (eventually probably comes down to a SQL procedure call)
I found this line:
this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
 
0
Q: How do I distinguish CodeReview from StackOverflow in cases like this?

Luis MasuelliI have this question which was migrated from CR to SO. My first intention was to put it in CR because: I had no technical problem. The code worked. I did not intend to change the execution result. I.E. My goal was not "I could to X but I still need to do Y". The executed result would be the ...

 
3:31 PM
have you looked at btnDelete_Click?
(stupid question I know)
 
Not yet, do you think that's where I should start?
 
yes, that's the event handler
 
^^
 
Hm, looks like btnDelete_Click is used many times in the code base... is there an easy way to find the actual reference from that call?
 
0
A: How do I distinguish CodeReview from StackOverflow in cases like this?

PimgdI personally voted to migrate your question because you weren't looking for a review; you were looking for one solution and that solution was not likely to be a language construct. If we had left your question on Code Review, it's likely it wouldn't have been answered. On Stack Overflow, such as ...

I added a chat link
 
3:38 PM
@DanPantry I have considered that. In fact, the only reason I haven't is because I know I would never boot into Ubuntu because all my programming is Windows-based.
 
expect visitors =D
 
@Hosch250 That is a fair reason
 
woo, yearling badge on meta se
 
@Pimgd Maybe I should get myself a Jenkins job that can update that one automatically, because I don't update that myself very often.
 
it doesn't need automation, I'm just bothered by [C]
wish it was [Q] (or both?)
 
3:43 PM
Everything needs automation. (Says the one who has been playing Factorio for way too many hours recently)
 
I take the blame for that. I remember editing it into the Frequently Posted Comments post, and then rolling it back when I realized it only appears as a custom close reason, which was dumb
 
Factorioooo
I launched my first rocket in 24 hours and 40 minutes
literally tutorial -> freeplay -> launch rocket
I think it's pretty good
although I have a tendancy to manually move stuff around
which is not so good
 
rocket science huh
 
@Mat'sMug You take blame for me playing Factorio?
 
no
 
3:45 PM
Yes
 
this sounds like a game that I'm going to have to buy
 
uh
 
@Pimgd I've played it for about 70 hours in total, on about 4 different maps, and still no rocket launch
 
@SimonForsberg wut
 
walks away slowly
 
3:46 PM
@DanPantry Don't. Code instead.
 
@SimonForsberg lol
 
how can you not have a rocket launch
tbh I got unpleasantly surprised after figuring out I needed far more resources than expected
 
@Pimgd Haven't prioritized it I guess. There's always something to automatize instead.
 
it was like, "fk, I need another 7000 steel bars"
also survival mode means you get fenced in
 
@Pimgd Did it take 24 hours and 40 minutes to go to click three buttons: Tutorial -> Freeplay -> Launch rocket?
 
3:47 PM
Apparently, this EventHandler call might be tricky to track down because it's MVP... :|
 
it took 24 hours and 40 minutes from start of freeplay to launching the rocket
 
@Pimgd I am currently playing on more difficult settings, so I am definitely fenced in. Need to kill a bunch of stuff to get more copper at the moment.
 
yes copper
I went through 3 fields of the stuff =/
 
Anyway, BTW.Work
 
but it's evil cuz they're 3D fields
at the edges it's like 500 resources and in the middle it's close to 2k if you're lucky
so if you got a bad spawn they're all small fields which are 10x10 grids of 500-800
instead of 20x20 grid which has 1500 in the center 10x10
 
> VSDiagnostics/VSDiagnostics/VSDiagnostics/VSDiagnostics/
STOP
What is it even
Repository/Solution/Project/Source Folder
it's like that, I think
 
you need some URL Diagnostics
 
The diagnostics say that your URL contains redundant elements
 
possible answer invalidation by Richard U on question by Richard U: codereview.stackexchange.com/posts/123002/revisions
 
@Duga I don't know what to make of this one.. @Kaz @Mat'sMug ?
 
4:07 PM
@Duga adds 3 pages of code without explanation
 
@Pimgd ye that's what I am seeing as well but idk there might be a reason for it which is why I am not rolling back
 
That would be the way I'd describe it in the question then. It answers a lot about the structure of the cells and what other approaches are feasible. Unless you want to stick with the string of rows. — Raystafarian 1 min ago
seems like the answerer requested the edit
I think
 
0
Q: Custom PHP Templating System

amflareI recently decided to see if I could make a functioning templating system. It works, but I feel like it is not all that great. What I'm looking for here is just general critique or ideas to improve. I'm new to this stackexxhange, so if this is not the right place to do this, please let me know. ...

0
Q: Managing the state of multiple, similar, selects in React Form

thedanottoI have a really simple form with 3 select boxes for days, hours, and minutes (in the full code I have a submit button attached to an ajax request). And I've got each of those select boxes attached to their own onChange function. But in light of simplicity and dryness, could I do better? THANK YOU...

 
@RichardU If It's only 4 times as long, you could just post the whole thing. — Kaz 36 mins ago
I think we can leave that edit alone IMHO
 
yeah, looks like it
this keeps bothering me, whether I read about @Kaz - entropedia.info/Info.aspx?chart=Material&id=1481
It's the name of a mineral in game
 
4:13 PM
WTF syntax is that with the double FROM clause?
		DELETE FROM TIME_SLIPS_PAYROLL
		FROM TIME_SLIPS_PAYROLL
		INNER JOIN SERVICES_PAYROLL ON sp_id = tsp_spid
		WHERE sp_pbid = @pb_id
 
hmmh looks like a cross join without conditions
 
you're deleting from TIME_SLIPS_PAYROLL using a query that's FROM TIME_SLIPS_PAYROLL. not sure how the Id's are being inferred here
 
680
A: How to Delete using INNER JOIN with SQL Server?

bluefeetYou need to specify what table you are deleting from, here is a version with an alias: DELETE w FROM WorkRecord2 w INNER JOIN Employee e ON EmployeeRun=EmployeeNo Where Company = '1' AND Date = '2013-05-06'

 
^^ looks less awkward
 
I think the first FROM TIME_SLIPS_PAYROLL is more often use with a table alias
		DELETE FROM tsp
		FROM TIME_SLIPS_PAYROLL AS tsp
		INNER JOIN SERVICES_PAYROLL ON sp_id = tsp_spid
		WHERE sp_pbid = @pb_id
 
4:16 PM
anyone familiar with COM?
yeah, right
 
hides
 
0
Q: How to identify a "default property" in a COM library?

Mat's MugI'm using the ITypeInfo API to "translate" COM type libraries into "declaration" objects that my application uses. One of the features of a "declaration" is "attributes" - I'm able to tell when a property "declaration" should have a {name}.VB_UserMemId = -4 attribute (i.e. when it's a _NewEnum n...

 
0
Q: Implementing Flask create_app function with SqlAlchemy

ig-melnykI have a simple Flask app that realises rest-api with SQLAlchemy. I have wrote create_app function: views.py def create_app(config): app.config.from_object(config) url = config.DATABASE_URI engine = create_engine(url) Base.metadata.create_all(engine) Base.metadata.bind = engine...

 
oh crap. it's not necessarily a property
FML
I hate COM
 
@Mat'sMug X/Y problem eh?
 
4:21 PM
quickly, hide the question and flee
3
 
I think I'm about to self-auto-question-ban myself out of SO
 
You could just selfie-answer instead (if another answerer doesn't beat you to it)
 
nope, filtering for properties doesn't change anything
none of the members have that frakkin flag on
 
oil mining?
 
edited and undeleted
I hate that I'm hitting a wall on that one.. because it's the only thing preventing Rubberduck from being able to tell that Sheet2.Range("A1") is an implicit call to Range.Value
no wait, Range doesn't have a default member?? ....how the hell does VBA even work?!
 
4:28 PM
@Mat'sMug that is the source of so. many. bugs
 
Property _Default([RowIndex], [ColumnIndex])
    Default member of Excel.Range
@enderland IKR
 
VBA is the source of so many bugs
got it
 
VBA is the bug
10
oh wow
I need to look for the _Default function, who would have thought
nope. it's something else. I DON'T KNOW WHAT I'M DOING.
3
 
join the club
 
4:44 PM
this has to be the first time I've seen the Mug have a breakdown
 
The default property is the one with dispid 0. — Hans Passant 5 mins ago
I need to find this man, wherever he is, and give him a hug.
 
Did that fix the problem/provide the solution?
 
4
A: Detect and Fix Switching over an Enum Without Handling all Members

agockeSome quick notes: I think you can just cast context.Node to SwitchStatementSyntax. The analyzer driver should ensure you should only get called for things you signed up for. If you do want to defensively check, though, I think you should check the node's SyntaxKind. It's more specific and much ...

That guy's answer affects every diagnostic in VSD. Give him lots of upvotes for me.
 
"I DON'T KNOW WHAT I'M DOING." Me, everyday, every hour, every minute
 
@PinCrash it's a hint. a very good one.
 
4:52 PM
Is the hint "Boy, I should stop using VBA"?
2
 
I'm not using VBA here... I'm inspecting COM types. this isn't about VBA, it's about the wonders of COM and the joys of pre-.net Windows programming.
 
"Boy, I should stop using tech older than some members of the 2nd monitor"
5
(I joke)
 
Afternoon
Anyone here uses Atom (editor)?
 
yes
but I am walking home, so any questions will have to wait an hour :)
 
@DanPantry Fun. I wish I could go walk for an hour.
Still too sick to do that, especially in the rain.
 
5:02 PM
@DanPantry I can wait. You must have used Atom and Angular in combination I guess. I'm having some issues with the markdown preview function. (Its my first time using Atom) The preview function fails to handle JS, is there any good alternative way to get a preview of your site in the editor with JS fully enabled?
 
Kaz
that VBA question was fun. Only got time to do the first half but it should cover everything the O.P. needs to redesign the rest of it.
 
5:17 PM
0
Q: Resize image from StorageFile

dub styleeI have created a function that will take as a parameter a StorageFile and return a WriteableBitmap. I use this data type so that I can later encode the image into a base64 string. My concern is with the intermediary BitmapImage that I create to get the original dimensions. Any other improvements...

 
I decided to submit a talk for CodeStock â–şâ–şâ–ş randomlyle.blogspot.com/2016/03/code-stock.html
 
daylight saving time is the most epic troll ever
7
 
I love DST
It's pretty great
 
wow, a lot of people really pay attention to chat, I better watch what I say...lol
 
5:32 PM
^^
 
5:52 PM
@DJanssens uh, nope, no idea. Sorry.
I don't use Angular with Atom, I only use React with Atom, and the plugin for React fails miserably.
 
@DanLyons I <3 DST
 
our clocks don't go back until next weekend
that was an unfortunate typo
 
saw that
lol
 
ours switched forward last weekend, and I discovered some interesting (i.e., horrifying) bugs in some legacy code as a result
3
 
linking this again for the 2nd time this week (someone else linked it the first time):
 
it's a good video, and very relevant atm
 
0
Q: Design of tree data structure

K AI am practicing for technical interviews and I am encountering a lot of problems relating to the tree data structure. I have gone through other posts that discuss about the tree data structure and come up with the class definition and method signatures for the some of the operations as below: cl...

 
6:44 PM
 
this would probably be better on codereview.stackexchange.com — Baronz 7 secs ago
 
0
Q: LZSS algorithm implemetation

Tarun BhargavaThis is for someone out there who is familiar with LZSS compression algorithm and its variations.I am doing a simple C implementation and am facing a problem. #include<stdio.h> #include<string> #include<cstring> using namespace std; #define windowLen 8 //Bits,How far behind in your text do you g...

 
Hmm. It is right.
Or rather, it is right and wrong.
Whoops, wrong room.
 
7:00 PM
0
Q: For loop optimization

user569925Want to optimize code below. I'm trying to make sure if for any MyReport object column1 (if not empty or null) is equal to emp.Column1. If column1 is not empty and it matches then look for MyReport.column2 and match with corresponding emp.Column2 and then look for column3. If in any case all 3 co...

 
for (MyReport c : reportSettings)
{
    if (c.column1 != null && c.column1 != '')
    {
        if (c.column1 == emp.column1)
        {
            if (c.Column2 != null && c.Column2 != '')
            {
                if (c.Column2 == emp.Column2)
                {
                    if (c.Column3 != null && c.Column3 != '')
                    {
                        if (c.Column3 == emp.Column3)
2
Looks example-ish to anyone else?
 
@PinCrash Loops noobish at the very least.
But, I've seen worse naming.
 
                    if (c.Column3 == emp.Column3)
                    {
                        break; //additional code goes here before break
                    }
                    else
                    {
                        continue;
                    }
//additional code goes here before break
 
That is definitely stub.
 
possible candidate for Code Review assuming the code works as OP says it does. — Scott Holtzman 40 secs ago
 
7:10 PM
> This "code" is no more than a do-nothing loop with breaks and continues. There's nothing to review. – 200_success♦ 1 min ago
 
0
Q: Received this code can anyone tell me what it does?

Matt HuppmanI just received this code in an email at my company. Some have opened it being dumb. Can anyone tell me what this script does? $(document).ready(function(){ // Menu Animation $('#sitemenu a').css({backgroundPosition: "0px -75px"}) .mouseover(function() { $(this).stop().animate({ ...

 
nope
 
FHITW
The code works .I am just looking for the solution to the problem I am facing and not for a wholesome code review. — Tarun Bhargava 3 mins ago
 
Please see our help center. To be on-topic the answer to all 6 questions in the list must be "yes" - #6 being "Do I want feedback about any or all facets of the code?". If you have a specific coding issue you should phrase your question as a MCVE and ask on Stack Overflow. — Mat's Mug ♦ 23 secs ago
@PinCrash beat you by 9 seconds :)
 
lol
 
7:27 PM
Hello, anyone here who can look at SQL procedure for possible performance improvements?
 
Quick Java question (may apply to langs as well)... I've read that a String is immutable, is it the case if I write something like String s = "foo"; s = "bar" that a copy of s is made with the new value, and the old copy is de-referenced in favor of the new copy?
 
@BernardMeurer fite meeee
 
@Pimgd Still at work, aosmeone ddos if our shit brbr
 
... I see
 
@AmanS.Aneja Sure, perhaps best to discuss in SQL Helpline room though
 
7:28 PM
@PinCrash Ok Thanks :-)
 
@AmanS.Aneja You could also post a question on the Code Review site, as long as your SQL query works correctly, we can certainly review it in detail that way
 
@PinCrash Yes, no
there is no "copy"
it's like Object o = new Object(); o = new Object();
 
@PinCrash it's like any other object reference. except it's written to behave like a value type as far as equality is concerned
hence "reference type with value semantics"
 
@PinCrash Ah, yes. The great pyramids of Code Review.
That's one of the 7 wonders of Stack Exchange!
 
lol
 
7:38 PM
Phew, alrighty
Sorry for the caveman talk up there @Pimgd, all the servers were on fire and people were dying
 
aosmeone!
 
Just let me finish this Java bullcrap and I'll be en-route home
I'm bemeurer on chess.com
 
you can make a game and invite me when you're ready
 
Are you pimgd there too?
 
I think so
 
7:43 PM
woo capped!
 
yay I managed to login
 
Monking
 
@BernardMeurer yes
 
0
Q: Recursively build a list of strings

Toby HobsonI need to transform List("home", "mens", "clothing", "jackets") into List( "/home", "/home/mens", "/home/mens/clothing", "/home/mens/clothing/jackets" ) This is what I have so far: val nodes = ("home", "mens", "clothing", "jackets") val (rootNode, otherNodes) = nodes.splitAt(1) va...

0
Q: Is there a way to optimize the following code?

FSBAfter failing to answer an interview question, I went back home and coded the answer for my own improvement. The questions was: Given two arrays containing a number, but with each element of the array containing a digit of that number, calculate the sum and give it in the same format. My main con...

 
8:00 PM
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Using Rails concerns for validation in models
 
@AlienHerbNite Monk*
 
@PinCrash as others already mentioned, there is no copy
what happens is that the String is allocated on the heap, and the reference behind s is pointed to that Object
the old String Object's reference count thereby is reduced by 1, and usually that means it's up for GC runs
I think I may need to rekindle my home bonfire... brb
 
Unless you've got it used somewhere else as a constant
then it might be in permgen space?
 
yea, similarly when the String is interned
though PermGen is also on the Heap. in a way
 
Ah ok, makes sense
Thx fur teh explainz :D
 
8:27 PM
0
Q: Combine result of 2 select queries for main query in LINQ

Trupti Pandit SamantI tried searching for the answer of my question but I did not find one. Please help me find correct keywords if this question has asked multiple times. I am trying to see how can I combine result of 2 select queries for my main query in LINQ SELECT 'NewStateCode' AS ChangeStatus, Code,Ci...

 
@Pimgd This might take a while, I deleted a brace somewhere and now nothing works
 
8:52 PM
0
Q: Handling errors with minimal repetition when using Find function

teepeeI have a function that essentially searches out a value in a table by looking through the column headers and row headers to locate a data point. The function takes the sheet name, the column header name, and row header name as arguments, and I have an error handler set up if any one of the method...

0
Q: Basic structure for interactive single window application

MarvThis is the basic structure I usually end up with whenever I'm writing a simple application. More recently I've learned about singletons and have started to incorporate them into my design, but other that that I haven't changed much about it in recent times. I've been wondering if there is anyt...

 
9:22 PM
@Pimgd On my way home now
 
9:41 PM
I'm voting to close this question as off-topic because is is asking for code review. This question is better suited to the Code Review Stack Exchange (but read their rules first) — Colonel Thirty Two 54 secs ago
 
in The Heap™ - Consultancy ©®, 3 mins ago, by swasheck
@PinCrash " i've reviewed your code. it sucks "
 
9:58 PM
0
Q: Simple text adventure game

RustywaspI've decided to make a text adventure game but I feel that the code I have now is annoying, and as I get farther, it will make it hard to read. Is this a correct assumption? Please tell me what I'm doing wrong so I can improve on my techniques with coding. #VARIABLES=============================...

 
@CaptainObvious Python regulars are going to have a field day with this one
Is there something special about that warrants its own tag separate from ?
> 42 questions tagged adventure-game
Stats
created 1 year ago
viewed 3 times
editors 0
Not sure how to check if it has followers
 
@PinCrash simple
 
possible answer invalidation by Marv on question by Marv: codereview.stackexchange.com/posts/123036/revisions
 
Oh. Duh.
 
@Duga comment changed. no harm I'd say
 
10:19 PM
monking
 
I'm off to bed
it's 23:21
 
possible answer invalidation by Treck on question by Treck: codereview.stackexchange.com/posts/122984/revisions
 
10:35 PM
0
Q: Improving Python runtime using Pandas

AngryPandaI am using Bloomberg's API for an internal academic application. Here is my code: Since I don't know how many rows I can get, I cannot allocate the data in advance. It seems that cost time when I do data = data.append(subdata), it seems make a copy of data and replace it every time I append ...

0
Q: Normal Distribution Generator Confusion - c++

ZasmussenI have been assigned a project to make a simulation of knights fighting dragons and now that I am finished I have to present my project. The problem I have is with my understanding of engines and generator in c++. Specifically I have been using; random_device rd; mt19937 gen(rd()); normal_distri...

 
11:03 PM
0
Q: A better way to phrase multiple PHP if / elseif / else conditions?

Danny EnglanderI wrote this code and I am wondering if there is a better way to phrase this. I was considering switch case but I was not sure how to translate this code into that. // Preface columns. if (!empty($vars['page']['preface_first']) && !empty($vars['page']['preface_second']) && !empty($vars['page...

 
11:30 PM
0
Q: Simple C program: Print every character in a line if it's greater than 80 chars

Lúcio CardosoHow can I improve this program? It may be very simple, but please, notice that I'm a very newbie coder. #include <stdio.h> #define MIN 80 int main(void) { char line[MIN]; int i, c; for (i = 0; (c = getchar()) != EOF && c != '\n'; ++i) { if (i < MIN - 1) line...

 
11:49 PM
0
Q: Flatmap implementation

Michael AndersonI have an implementation of flatmap for std::vector. However, I find the repetition of the inferred return type to be ugly. And, in general, I suspect that the implementation could be cleaner or more general. template<typename T, typename FN> static auto flatmap(const std::vector<T> &vec, FN fn) ->

 

« first day (1047 days earlier)      last day (2963 days later) »