« first day (535 days earlier)      last day (3779 days later) » 

12:00
thanks you to you, I have been feeling the concurrency pains :) I did mostly manage to get it working though
You've earned the "Reviewer" badge (Completed at least 250 review tasks. This badge is awarded once per review type) for reviewing "Close Votes".
5
@SimonAndréForsberg well played..
inb4 broken code
12:17
0
Q: are there any test cases whose answer comes out to be wrong for following code?

Aditya VermaI have tested the following code and it works perfectly, yet the Hackerearth tells that it is wrong for 3 inputs, You are given two integer numbers: the base a (number of digits d, such that 1<=d<=1000) and the index b (0 <= b <= 922*10^15). You have to find the last digit of a^b. ` Sample Inpu...

wat? Dat physics question:
0
Q: Pattern on mesh office chair emulates thin film interference for curved surface. Possible to form an equation?

GödelI saw a chair that looked like this at the dentists office yesterday, and the pattern caught my interest, as the light patterns emulated thin film interference fringes formed by an object that has a radius of curvature (the spacing between the successive fringes approaches zero (not really here.....

great approach!!! but I've been asked to do search character by character :( — Vineeth 1 min ago
^^^ meh... then why didn't you say so.
2
12:38
0
Q: Javascript condition optimization

AJ.Can the following condition be optimized/simplified ? if (!this.properties.width || this.properties.width <= 0 || !this.properties.height || this.properties.height <= 0) return; So basically if properties does not have a width or height property or the width or height property...

-1
Q: why is my new member code not working after I switched host company, it worked fine before

weave<?php /*This section is the code used to test input data and // add a new member some code is commented out so that I can // look into it at a later date. */ // include db connection to members db include_once($_SERVER['DOCUMENT_ROOT'] . '/includefolder/database.inc.php'); // data sent fro...

-1
Q: How to remove element from Array and child from stage

PitaSo I am currently attempting to remove an element from the array 'zombie_horde' as well as remove the child from the stage. My aimed result, a movie clip that is part of an array israndomly played and when finished playing, the frame changes to a gameover frame. This is my code: part of the big ...

I give up
if you can't tell the difference between types and instance names (Classes and instances)
then there's no hope for you in the world of OOP
Also hurray my bird question got reopened
5
I understand that, but, even though it worked before, what you are looking for is someone to debug your code, not make the code fail more elegantly. Code reviews happen when the code works. Debugging happens before it works. — rolfl ♦ 27 secs ago
Perhaps one day we will learn the mysteries of where birds go when it rains
2
@Pimgd Oh, the humanity!
@Pimgd I think that some birds have VTC'd it, as they did not want humans figuring out where they go when it rains
12:51
@Pimgd - This, by the way: Then there's people saying that birds have a waterproof coating... but that's a bit contradictory with me not seeing birds when it rains.
You don't see where birds go when it rains, because, when it rains, you are either inside, or looking down.
You never go outside when it's raining, and look up.
Sorry but it's raining right now
and I see birds
And, what are they doing?
0
Q: Is it possible to write reusable method that only some of its parameters are different?

user1899082I have the method below but I am going to have more methods similar to this one that all they differ in is the last parameters being passed to the method, the first three parameters will always be there and then in the while loop with && conditions, I am going to use the same params that I am pas...

0
Q: Write all X character combinations of iterables to file

JuicyI want to generate a 'dictionary' containing all 8 character combinations of upper-case letters such that the output file looks like: AAAAAAAA AAAAAAAB AAAAAAAC ... ZZZZZZZZ I came up with this solution that uses the product method of itertools: from itertools import product per = product('A...

they were flying
but it was only one bird
but it's raining softly now
I didn't see anything when it was raining HARD
13:39
Wait what happened to my Rep?
A reader shouldn't really need to be skipped I don't think, you could use a loop to go through the nodes in the document. if this gets reopened I will post an answer — Malachi 9 secs ago
someone please ping me if that question gets reopened
Greetings, Programs.
@Donald.McLean You are being watched, User.
@Malachi What rep?
13:47
@Phrancis This message @Chantola someone misclicked I think.....
@SimonAndréForsberg Looking forward to it, tonight.
that doesn't sound right
@Donald.McLean Lucky you, I have to wait until tomorrow
16 hours ago, by Simon André Forsberg
@Phrancis Turns out that wasn't @Malachi's rep. It was Engie's.
oh yeah the picture I posted, that was Engie's Rep
16 hours ago, by Malachi
user image
That is Engie's not mine
@Malachi Ouch, you lost 1K there?
13:52
Ah @Malachi did not realize that :)
3 mins ago, by Malachi
That is Engie's not mine
@Malachi So he lost 1K, but to why?
I don't play with socks
@skiwi He was bad
@Pimgd watched another of his talks, it was funny too. Definitely worth watching
14:04
^^^ oh... his stuff is not for free...
@skiwi it's an interesting read
poor rolfl, though..
the other talk of his I watched was this: the birth and death of javascript: destroyallsoftware.com/talks/the-birth-and-death-of-javascript
being bombarded with questions to no end and not really being allowed to answer..
2
This account is temporarily suspended for voting irregularities. The suspension period ends in 6 days.
@Vogel612 What's an interesting read?
14:09
how
as to why.. just get to the transcript of the quote
Oh, that discussion started right after I went offline then
consider yourselves lucky if you rank high here: data.stackexchange.com/codereview/query/160064/…
I don't think I lost any rep
me neither
14:17
I am still working on a Rendition of this code
14
Q: Retro Rocket ASCII Art

rolflInspired by Nested for-loop ASCII art, I looked at building a more complicated ASCII art than just the normal 'diamond' and 'triangle' variations that crop up occasionally here. The challenge: Produce the following rocket /**\ //**\\ ///**\\\ ////**\\\\ /////**\\\\\ +=*=*=*=*=*=*...

you can follow it on GitHub, I think I have a repo set up there
they are setting up a technical review of my skills at the place that is trying to recruit me, should I inform my current employer that I am being recruited?
^^^ no
0
Q: Complex LINQ query, revise for best performance

WebbI have a LINQ query which works fine, I am however very interested to understand if this can be written in a more optimum way... Here is my query: var query = (from r in Results.All.AsEnumerable() where r.RequestType.Id == Id && r.DateFrom >= ...

14:34
@janos should I wait until they make me an offer?
please ping me so I know you are talking to me.... :)
maybe until you accept an offer
I don't see what good can come out of it by telling
I don't think you can re-negotiate salaries by current employers
@Malachi No. there is nothing to be gained.
even if they give you a raise to keep you, they won't trust you again
it's a lost cause. this is a one way road
AAnd, if you're not getting paid enough in your current role, then change jobs or ask for a promotion.
be prepared to justify the request though.
the only promotion here is really a raise....
14:37
never justify it with: "but so and so will pay more".
or wait for someone to quit.
can't use incoming job offers for negotiating your current position
^^^ that
plus the other job will be more programming and less everything else
sounds like the benefits are about the same.
@janos I know. I am extremely lucky.
14:40
@SimonAndréForsberg compare the figures of #1 and #2
That moment when your answer gets marked as answer over 7 months later
6
also
monking
@janos hey that is one I created..... lol
@janos lol. holy *** I feel stupid for not having suspected anything...
what are template functions..?
Monking @BenVlodgi! Nice to see you around!
14:42
also, that moment when you realize you've been on CR for over 7 months
3
sort by average answer score
@BenVlodgi make that 11 months for me :)
@Malachi your options: 1. stay and ask for a raise, and say nothing about looking elsewhere; 2. leave; that's it
hey @SimonAndréForsberg!
niiiice, long campaign of zombie killing
@janos ask for a raise and be prepared to work hard for it....
@BenVlodgi did you hear we are graduating?
14:43
ah sorry, I was distracted
@Malachi when will be officially graduated?
@Chantola 6-8 weeks months
@Chantola ▲▲▲
@Chantola we acutally are officially graduated retroactively since September...
it's just that the changes are still cached
14:44
September 22nd, to be exact. My birthday.
@Vogel612 I know, I'm wondering when we get the offiical changes.
@Malachi whaaaat? nope!
stupid auto-correct
dang it, I'm going to lose all my powerz
@BenVlodgi oh Yeah! we did it!
Check meta
14:45
Comments are not for extended discussion; this conversation has been <a href="chat.stackexchange.com/rooms/18047/… to chat</a>. — rolfl ♦ 39 secs ago
@Vogel612 Tools -> Options -> History -> Clean Cache
65
Q: Code Review SE is graduating!

PopsMany of you have already seen announcements both on main and on meta announcing this site's graduation. At the request of a few of you who were skeptical (or perhaps merely in shocked disbelief), I'm here to confirm that yes, the Community Team has indeed decided that Code Review should graduate....

@Vogel612 sounds like a bad sneeze
ummm. @rolfl you wanna fix dat auto-comment with monkey-typo?
BTW.Work
14:47
@Malachi you don't use Careers?
thought I did... I haven't looked at it for a while
no link to it on your profile
btw, if somebody doesn't yet have account on Careers and want an invite, I got some
I do have an account there, but I don't have much information in it yet.
I will have to do it at home later
more appropriate for us than linked in. I also use it to generate my cv
I really should put up more things on Careers.
14:50
^^^ not so good to do that at work :)
2
I'm not at work now though. My work in Gothenburg (a.k.a. New York for Bing!) is finished for now
@janos how old do you have to be to get a Careers account?
Is there a minimum age?
on the other hand, funny story: at a job interview on Friday I was asked if I'm familiar with the term "Code Review" ($#!@#). Although their HR contacted me through careers, I suppose my CV either hasn't reached the technical interviewer, or he overlooked my dozen or so references to CR. Not the first time this happens either. I get contacted from time to time, through Careers, and interviewers seem utterly unaware of my CR/SO/GitHub/blog/GooglePlay activities
3
I'm not aware of an age limit
@janos Next time someone will probably ask Bjarne Stroustrup if he knows C++
Or ask Jon Skeet if he is any good with C#
3
15:01
Or if he is an active member of Stack Overflow
2
> "Why are you only having 500 points on Stackoverflow? You are talking about leading contributions in 'C#' in your CV."
2
@Vogel612 Sir, those are gold badges, not points.
6
or CR rep..
Of which he actually has 300
looks like 551 to me...
15:10
if he starts answering here semi-regularly, who knows, a host of users might follow
So, where did you get that theme from?
@xDaevax chrome-extension: hacker vision
Fancy. Thx for the link
0
Q: Transformation of abstract models

Thomas EizingerIn one of my recent projects I faced the problem of transforming an abstract class into another abstract class. The classes were structured like this: abstract class AbstractEntity { /* shared implementation for all entities */ } class EntityA extends AbstractEntity { /* specific members for th...

Too bad it's not opt-in, instead of opt-out for the changes.
15:15
@janos I think a host of users will come either way
@xDaevax you can disable, but I know what you mean..
0
Q: Is this code secure, usable and worth implementing using OOP?

devtoformThe following code is developed around a mysql database where the posts table has 3 columns: post_ID, date and title. config.php holds the values for $dsn, $username, $password, $options. the content for each post is held in a directory format: year/month/day/(database column)title/content.txt ...

0
Q: WebAPI controller, is this a good approach?

RoberReturn an object with WebAPI by proving some data using MWM.Database.Model; using MWM.Entity.API; using MWM.Repository; using MWM.Services; using System.Net; using System.Net.Http; using System.Web.Http; namespace MWM.Web.Controllers { public class JobController : ApiController { ...

15:31
Not a whole lot of context on that second one.
@CaptainObvious not again!!
0
Q: Convert a number to text

CarcigenicateThis converts a "numerical number" to a text representation. Eg: convert 1234 --> "One Thousand, Two Hundred Thirty Four" I'd like general feedback on how it could be make more readable or idiomatic. There are a few specific points I'd like improved as well. The word lookup functions are a litt...

So, I'm kind of ignorant on this subject but why does Haskell seem to be so popular?
15:39
@xDaevax Because I don't understand it
You probably can get a whole load of complicated things done with it easily, if you manage to understand 1) Haskell, 2) what you are doing and 3) what others are doing
@xDaevax haskell is the go-to language for functional programmers
Is it a syntactic thing, or does it solve a problem not well solved by another functional language?
If you take any particula 'paradigm' for programming, there's the main languages for that paradigm....
It's a very compact language for sure ;)
for relational databases, it's SQL
for procedurel, it's probably C
for OOP on servers, it's C++/Java
for web apps, it's JavaScript or PHP
for Functional programming, it's Haskell.
@xDaevax It happens to be the language commonly used to teach functional programming too.
15:43
What about LISP for functional programming, old, outdated?
I see. Well, there are some sessions on Haskell at a conference I'm going to in January: Worth checking out?
Honestly, unless you have your head 'in the right place', functional programming is impossible to grok. Do you know how it works? If you have any doubt, then going to a conference will just be a bunch of people speaking klingon.
On the other hand, if you understand the basic concepts, and then can apply them in creative ways, and understand how others apply them, then a conference would be great.
Having said that, everyone should try to learn a functional language... they are good mental exercise.
7
I'm familiar with "basic" functional-style programming concepts, but some of it is Greek to me, like tuples and such. I've been known to pass functions as arguments in .NET, but I feel like there is probably more to it than that. It's hard to wrap my mind around why you would use a method that takes a function as one of it's method parameters vs. an interface. They seem similar in principle: abstracting away implementation detail.
@xDaevax The "problem" with that is that it's functional programming in OOP-languages... Sure it is the start of functional programming, but functional languages are really different
I see someone pissed off Valve, no good idea: reddit.com/r/Games/comments/2ju23l/…
Sounds like an interesting challenge. I'll probably do some investigation then before the conference so I can retain more of the information. Thanks for the helpful nudge.
15:52
there's an ongoing Scala course on Coursera: coursera.org/course/progfun
I'm actually reviewing the lessons as we speak (I took it last year)
the prof is the creator of the language, and he explains beautifully
Scala runs on the JVM, correct?
yes
I know it's not Haskell, but learning any functional language will help with the others too
In your opinion, would they both equally contribute to my understanding of functional concepts, or is one better for one reason or another to start with?
both will equally contribute
I think there's understanding functional concepts, and understanding code written in a language that only supports functional programming and nothing else
15:57
I see Scala in practice more than in Haskell, but that doesn't mean anything
Me too, but my "practice" consists of playing Minecraft with mods and seeing Scala being used.
I was trying to imply that trying functional with Scala might turn out to be quite practical in the longer term
@janos You've got a real nice Careers 2.0 page up
in any case, if you learn a functional language right, that's going to affect the way you program in all other languages too
2
@skiwi thanks, I try ;-) About time to review the answers I feature there. I might have better ones by now
16:14
@skiwi is it just me, or is the reddit stylesheets down??
I get 502/503 status in the console for css...
16:31
@rolfl just like Brainfuck
7
@rolfl Where does Logo fall into the mix there?
procedural
Hmmm... lost 100 rep so far today.
@xDaevax My suggestion: Try Haskell. Do something simple in it. Like I did.
11
Q: Calculating Luhn-algorithm checksum digit

Simon André ForsbergToday I decided to learn some basic Haskell, and for starters I made a program for calculating the checksum of a Swedish personal identification number. It uses the Luhn-algorithm, aka. IBM MOD-10. Explanation of this code can be found on Swedish Wikipedia and English Wikipedia Here's a descrip...

2
Q: Transformation of abstract models

Thomas EizingerIn one of my recent projects I faced the problem of transforming an abstract class into another abstract class. The classes were structured like this and are part of an api for questionnaires: abstract class AnswerConstraint { /* shared implementation for all entities */ } class LengthConstrain...

^^^ reopened, for those interested.
@rolfl didn't even know it was closed
16:38
I had an argument with someone on a different StackExchange site, and he harrased me and got banned from chatting. He then went on to downvote every single question/answer I had and he got on his alt and did the same. He is also the 11th user with the most rep on that site, and 4 days have passed and the serial downvoting has not been reversed. What do I do? I really stopped participating in that StackExchange site, such a bad feel.
What do I do?
I miss the days when I had no projects at work, and could CR all day
@Chantola post on that SE site's meta.
2
or flag one of his post for a moderator and explain the situation
4
@BenVlodgi We miss you too!
isn't he sweet?
@Chantola which site?
@SimonAndréForsberg I'll be done with my current run of projects in a couple weeks :)
16:41
@Vogel612 I don't know, I wasn't around at the time you said that
well it seems they fixed it anyways...
@BenVlodgi I'll never be done with my personal projects, but I got done with my work in Gothenburg yesterday
@BenVlodgi And still got paid?
@SimonAndréForsberg are you changing jobs?
@skiwi salaried :D
@janos looks like history
16:44
ok I have the start of my Rocket up on my GitHub
@BenVlodgi not really. this thing in Gothenburg was just temporary
btw, Gothenburg a.k.a. New York according to Bing!
@janos History.
lol bing
@Vogel612 that was the discussion, how did you find it?
16:46
@Chantola good searching skills and counting 2 and 2 together..
constexpr std::string *weekDays = new std::string[8] {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};
Why does this expression complain at me in C++?
It was relatively easy after finding history, and understanding it was in chat..
then I just had to get to your comments and search for the one "let's continue this discussion in chat"
@syb0rg What's that exactly? I've seen most of them, but not a constexpr and std::string mixed
@Vogel612 :P nice.
@syb0rg because some weeks start at a Monday.
4
@syb0rg std::string[8] { 7 elements }
16:48
@Vogel612 Anyways, me and Semaphore (since it's no longer secret) had an argument and he serially downvoted every single one of my answers and questions, and also he abused his ability to automatically edit posts so he could un-upvote everything I said.
@skiwi It's an array of strings that don't have to ever be modified. So my reasoning is that they could be evaluated as constants at compile time using constexpr, but the compiler whines at me for some reason
@SimonAndréForsberg Doesn't fix it :/
@Chantola this screams for queries on the prod database with dev privileges.. I suggest you take this to a mod in the tavern
But be aware that you should strive to be as polite as possible
Name-calling is explicitly discouraged..
@syb0rg Shouldn't it just be const then?
@Vogel612 I'm not sure what you mean by your first statement.
You should just state: "I have the strong feeling, given evidence ..."
16:51
@skiwi But then the const is evaluated at runtime, which isn't too bad but also isn't as optimal
@Chantola the voting data is confidential (secret) and can only be accessed by developers
@Vogel612 I do have evidence in the chat that he admitted to downvoting my posts, can I include that.
sure you can.
I suggest you keep it off the site-meta and in a possibly private chat, though.
@syb0rg My mistake there then, what happened to the enums?
that being said, Ima head home ;)
Toodles!
16:53
bai @Vogel612
@Vogel612 Thank you, kind sir.
Particularly the comment by drew, speaking of good searching skills
3
@xDaevax LAWL'
@Vogel612 I need help
7
Q: Print Student Names from CSV

JaDoggDescription Print all student names from a CSV file. CSV Format: CSV file does not contain string delimited by double quotes. None of the cells has "," character or "\"" character. There are exactly two columns. No empty cells. Code csvread.pl #!/usr/bin/perl use strict; use warnings; ...

take a look at the comments
Meh, pro-tip, @JaDogg, you don't need to respond to each comment.
4
Sometimes saying nothing is just fine.
17:05
ah
In fact, in comments, it's often better not to create discussion.
^^^ yup. just walk away
3
hmm hmm
whoosh, comments gone. potential drama successfully averted, that's awesome :)
oh, thanks :D
17:09
@200_success's Perl skillz kick ass. calls for my very few remaining upvote cards
@JaDogg I don't have such powers but I know someone who does ;)
Why would anyone need skillz in Perl
@janos I know, :) @rolfl
@Chantola That's one of those things..... there's no way to answer that in a way you would believe me.
@Chantola fun
@rolfl I'll believe you
@JaDogg coding in Perl is fun?
since when?
17:11
@Chantola yes
more messed-up syntax ~= more fun
You have to print stuff, I would never get used to that. I would just do cout everything.
@Chantola - right tools for the right jobs.
perl is not the program you use to do cout.
nor is it C, or more.
It is a very capable scripting language, that works well in places where close coupling to hetrogenous systems is useful
4
(see, if I throw in big words there.....).
5
@Chantola - you know your way around bash?
Meh, perl is a glue language. it binds things together, it provides easy ways to translate and manipulate, and allows you to track, and control.
In the unix philosophy of each command doing one thing, and doing it well, you often need something to bind them together that is more than just a pipe.
3
Anytime you are there, you use perl. Python is not as good in that space as perl is.
4
I feel like we should put @rolfl's comments in the tag wiki for Perl. Or maybe he is quoting from it...
5
17:20
Well, what I have defined is the classic hack-language ... ;-) when you hack together something to do a one-off in.
@rolfl never worked with it.
@Chantola see janos's profile
Wow I'm so overwhelmed i have been tagged like 10 times in the past 20 posts (_)
@JaDogg I'm gone, that's jargon to me
Good bye people. I have tennis class.
^^^ gone to play with fuzzy balls backhanded compliments ......
17:30
Thing is, I learned perl.... 20 years ago? Can it be that long? Language has change a bit since then.
> It is nicknamed "the Swiss Army chainsaw of scripting languages" because of its flexibility and power, and possibly also because of its "ugliness".
@JaDogg yeay!
Question: Should I ask a question on CR (that is a complete working example) that in order for the question to be answerable, it's necessary for me to post all ~500 lines of code (which I'm okay with)? Is that too much?
@xDaevax I don't think 500 lines is all that much. I just wouldn't expect a terribly thorough review.
You should definitely highlight the portion you're concerned about.
500 lines should be OK, if you present it well. I'd rather have a more complete question than a fuzzy one.
> I've kept all the code in the question, but what I'm really worried about is X.
I would also give it a once over for naming, formatting, etc. prior to posting it. Don't give us easy stuff to pick at.
2
@JaDogg You could declare that the first comma of each line is a delimiter, and all subsequent commas are literal characters in the name. Use split '', $line, 2.
Good resource @rolfl, Thanks
@200_success nice
@200_success I'll try to post more perl questions, my supervisor told me to brush up on perl. (started as an intern this Monday)
18:05
0
Q: Expression for losing something that you never really had

200_successMy friend keeps whining about "losing n reputation points" on Stack Exchange. My instinctive interpretation is that some of the votes he had earned were reversed due to vote fraud. What he really means, though, is that he hit the daily reputation limit, but can't take advantage of upvotes that ...

@JaDogg Perl is fun, if wielded responsibly.
Anyone else in favour of a tag?
It's a subset of , but a frequent occurrence.
Okay, consider the question asked. We'll see how it goes over I suppose.
0
Q: Custom JavaScript validation using the factory / module patterns

xDaevaxI am in the process of diving a bit deeper into JavaScript development and am looking at some common language patterns (module, and factory in particular). In this code, my aim is to create a re-usable framework for creating custom field validators in JS that can be easily extended. In addition...

@200_success Yes. I was in favor of it last time it showed up.
It was quickly swept away though. Can't remember why.
Speaking of tags. I proposed a synonym today. I'm tired of replacing with and vice versa.
0
A: Tag synonyms ([error-handling], [exception-handling], [exception])

RubberDuckI agree that error-handling is the most generic and others should be synonyms of it. I actually tried to propose that synonym this morning, but exception-handling has more questions and the system wouldn't let me. (That's what brought me to meta actually.) For simplicity's sake, I see no issue wi...

1
Q: Custom JavaScript validation using the factory / module patterns

xDaevaxI am in the process of diving a bit deeper into JavaScript development and am looking at some common language patterns (module, and factory in particular). In this code, my aim is to create a re-usable framework for creating custom field validators in JS that can be easily extended. In addition...

@200_success Really... you had to ask!?
And..... am I your friend? Shucks!
I'm going to make you use whatever answer I accept!
6
18:18
Better get an answer in there that I like then ...
@xDaevax Have you looked at my questions?
0
A: Custom JavaScript validation using the factory / module patterns

JaDoggYou have lot of unnecessary comments. You do not need to over-comment your code. } // end if } // end if } // end for loop If peppering your code with lots of comments is good, then having zillions of comments in your code must be great, right? Not quite. Excess ...

@RubberDuck Thanks for the reminder. Done.
@200_success NP
Hmm. I'm one question away from a Curious badge. Maybe I'll go write some more code.
10
18:26
@rolfl I was about to comment this on @200's question: "Since when is a co-moderator your friend?"
Ohhhh and it earned me a badge! Nice! And Shiny!
@Donald.McLean btw, where did you meet Bjarne Stroustrup ?
@JaDogg OOPSLA, 2009
nice
1
Q: Speeding up nested for-loop analysis code

NealI have two matrices, the first one is mat 2000*500, the second one is 6000*500 tep I did this code for some analysis to get another matrix that has a specific elements. Problem is : This code is very very slow, I need it more faster any suggestion please thanks.. mat=matrix(sample(c(0,1,2),200,...

0
Q: Using a Wrapper Promise

acbabisI wrote some code for an application that uses the following pattern: function _getData() { return new Promise(function(resolve, reject) { if(_hasDataTypeA()) { SomeBackendAccessObject.getTypeAData().then(resolve, reject); } else { SomeBackendAccessObj...

18:41
^^ how about "wrapping up promises"?
Monking!
18:58
@skiwi Enums?
19:16
@syb0rg Yeah, for the weekdays
Aren't enums the right tool for compile-time static elements in a certain class of things?
I need to access the string part of the array though
How would I do that with an enum?
For example, I have this:
enum Months {None, January, February, March, April, May, June, July, August, September, October, November, December};
Way too early in the day to be out of votes...
@syb0rg Ah you need the literal string?
Yeah
In Java we have that nice little tool where enums can have methods and state
Don't know enough about C++ though
19:18
I'm not sure if C++ has that :P
I could be wrong though
I am still a newb to the language
I know that you can't do it in C though for sure
Monkernoon @Mat'sMug !
0
Q: Efficiency of looping though a text map to draw objects

Mathias FosterI am making a game that uses a text map to draw obstacles and courses for the player to navigate. However, I am concerned that my method of looping through the text map to draw objects on the screen isn't as efficient as it could be. Here is my code dealing with the text map: var platforms = [];...

Awesome.
I believe this is my first bounty that I have offered: codereview.stackexchange.com/q/67055/27623
19:37
@syb0rg IIRC that was during WinterBash, ...all for a hat!
@Mat'sMug My profile says I haven't offered one before though
I was too cheap/poor back then ;)
Now that I'm at 10K, I'll probably be offering more
Including on some questions that have interested me for some time that weren't asked by me
There's a badge for awarding a bounty on someone else's question
@Phrancis And on your own question as well
Ah, I need to try that. My questions are usually easy enough they are answered the same day, so I don't get to put a bounty on them ;p
@JaDogg Where did your answer go?
19:41
Oh, so you must have earned one and got the bobafett hat, right?
> One more omission at my end; I corrected it now. I guess I need to slow down and be more careful.
Thanks, IT - Data Services
Email from my DB guy. Srsly.
@Mat'sMug That was for earning a bounty
UPDATE CONTRACT_DETAIL SET Product_id ='1010' WHERE CONTRACT_NUMBER='120836675' AND SEQUENCE_NUMBER='002' ;
0
Q: Character permutations in C

JuicySeveral hours ago I posted this question about Generating character permutations in Python. User roflf said that my main problem was not using the right tool for the job, as Python is interpreted it will be much slower than a compiled solution. So I tried to write this in C. I thought it would ...

This is literally how difficult my request was... and he messed it up
19:49
@Phrancis I know how he feels. There are some days weeks when I don't have time to breathe, let alone think. Then there's days like today....
It would be one thing if that only rarely happened. But he makes errors like that all the time...

« first day (535 days earlier)      last day (3779 days later) »