Skip to main content
46 events
when toggle format what by license comment
Jun 16, 2020 at 10:01 history edited CommunityBot
Commonmark migration
Sep 30, 2019 at 14:00 comment added Tomáš Zato @dotancohen Just came here because I was googling: "function that can be called multiple times but only executes once", got exactly what I wanted. Don't be so hasty judging merit of questions, other people need different things than you do.
Mar 10, 2019 at 3:01 history tweeted twitter.com/StackSoftEng/status/1104577887519342597
Mar 8, 2019 at 8:18 vote accept Rufus
S Mar 6, 2019 at 12:48 history edited doubleYou CC BY-SA 4.0
fixed spelling of duly and overridden.
S Mar 6, 2019 at 12:48 history suggested Michael Karas CC BY-SA 4.0
fixed spelling of duly and overridden.
Mar 6, 2019 at 11:27 review Suggested edits
S Mar 6, 2019 at 12:48
Mar 5, 2019 at 23:17 comment added Wayne Werner This function is a code smell as it introduces temporal coupling, but that's not what you meant :)
Mar 5, 2019 at 22:10 comment added Jörg W Mittag @BlueRaja-DannyPflughoeft: Actually, for "name-that-thing"-questions it does, because those questions are off-topic for being opinion-based if there is no answer (everybody has their own opinion what the name should be), off-topic for being a list question (too broad) if there are multiple answers, and on-topic IFF there is a single, canonical, correct, objective, agreed-upon term. That makes these questions very hard on the asker because in order to know whether the question is on-topic, you already need to know (the existence of) the answer. This was discussed on Software Engineering Meta a couple of times.
S Mar 5, 2019 at 16:49 history suggested Tezra CC BY-SA 4.0
removed striked out part. The Question should appear as if it has always been the best version of itself
Mar 5, 2019 at 13:54 review Suggested edits
S Mar 5, 2019 at 16:49
Mar 5, 2019 at 10:25 comment added OrangeDog @dotancohen yes, that's the entire point of StackExchange. Who happens to get meaningless points and badges along the way is irrelevant.
Mar 5, 2019 at 6:07 history protected gnat
Mar 5, 2019 at 1:47 comment added Greg Schmit @dotancohen You aren't the authority on whether a Q/A has merit, the community is. the community has (so far) decided that the Q/A has merit. If you feel differently, cast your downvote and/or complain on Meta. Based on the upvotes this Q/A has, the community will disagree with you on Meta.
Mar 5, 2019 at 1:39 comment added Rufus @dotancohen This has been a term that I repeatedly forget and found somewhat difficult to google (googling the title of this question doesn't turn up the desired result). Hence I made use of the "Answer your own question" function to provide some sort of "note to future self" in case I find the need to use this term again. Just thought I'd share it
Mar 5, 2019 at 1:33 history edited Rufus CC BY-SA 4.0
Added motivation and a more real life example
Mar 5, 2019 at 1:27 history edited Rufus CC BY-SA 4.0
Added motivation and a more real life example
Mar 4, 2019 at 23:11 comment added corsiKa Calling multiple times is the same effect as calling once? Comcast Technical Support - as a bonus, it's the same effect as not calling at all.
Mar 4, 2019 at 22:20 answer added Davislor timeline score: 4
Mar 4, 2019 at 21:12 answer added Stephen Quan timeline score: 3
Mar 4, 2019 at 20:41 answer added Tezra timeline score: 6
Mar 4, 2019 at 20:14 comment added BlueRaja - Danny Pflughoeft @JörgWMittag: Whether a question is off-topic or not doesn't depend on the answer
S Mar 4, 2019 at 20:05 history suggested psmears CC BY-SA 4.0
Improve wording and grammar: "criteria" is plural; "criterion" is the singular.
Mar 4, 2019 at 17:28 comment added Robert Harvey @dotancohen: To be honest, the top-voted answer doesn't have much merit. It would be better if the answer included examples illustrating why idempotence is important. This isn't Jeopardy.
Mar 4, 2019 at 17:25 comment added Robert Harvey @Bergi: You have to consider side-effects as well.
Mar 4, 2019 at 17:09 comment added Walter Mitty What does f(f(x)) mean if f takes no arguments.
Mar 4, 2019 at 16:47 comment added ChrisW @dotancohen That's a question to post, a topic to discuss, on Meta.
Mar 4, 2019 at 16:37 comment added dotancohen @glglgl: I agree, for questions with merit. What merit has this question? I'm seriously concerned that we'll start getting every CS 101 question asked and immediately answered by the OP, every single CS term asked and immediately defined by the OP, and every basic algorithm's pros and cons questioned then immediately answered by the OP (not necessarily this OP). Is that the site that we want softwareengineering.SE to be?
Mar 4, 2019 at 16:31 comment added glglgl @dotancohen Q/A style self-answering is one of the key concepts on StackExchange.
Mar 4, 2019 at 16:29 comment added dotancohen Why was this question asked, if the OP knew the answer at the time of asking? Is there any reason other than rep/points/karma building?
Mar 4, 2019 at 16:11 comment added Bergi @RobertHarvey By that argument, func2 would be idempotent as well - it takes no input and produces the same void output no matter how often it is called. No, that's not helpful. In imperative programs, we need to consider the environment state (that the function is closing over and which it might mutate) as in- and output (in addition to arguments and return values)
Mar 4, 2019 at 16:11 comment added Taemyr @WalterMitty Init() functions can easily have no arguments, and if well designed are idempotent.
Mar 4, 2019 at 15:34 comment added Robert Harvey @WalterMitty: The same way a function with arguments is idempotent; it produces the same result, given the same input (which, in this case, is no input). I do hear what you are saying, though; it's clearly less useful with parameterless functions, but the examples do clearly illustrate the concept.
Mar 4, 2019 at 15:33 comment added Walter Mitty How can a function with no arguments be idempotent?
Mar 4, 2019 at 15:17 answer added user1717828 timeline score: 3
Mar 4, 2019 at 14:58 comment added nha also see stackoverflow.com/questions/4801282/…
Mar 4, 2019 at 14:55 review Suggested edits
S Mar 4, 2019 at 20:05
S Mar 4, 2019 at 11:56 history suggested Erel Segal-Halevi CC BY-SA 4.0
replace "class" with "term"
Mar 4, 2019 at 9:50 comment added RemcoGerlich Calling it multiple times does have an effect, as there could be other code that changed 'var' in between.
Mar 4, 2019 at 9:29 review Suggested edits
S Mar 4, 2019 at 11:56
Mar 4, 2019 at 8:38 comment added Jörg W Mittag To the close voter(s): while it is true that 99.999% (rough estimate) of all "name-that-thing" questions are off-topic because they don't have a single, correct, unambiguous, objective answer and the naming is purely subjective and opinion-based, this one does have a single, correct, unambiguous, objective answer, which was given by the OP himself.
Mar 4, 2019 at 7:54 history became hot network question
Mar 4, 2019 at 7:48 answer added Neil timeline score: 50
Mar 4, 2019 at 6:05 review Close votes
Mar 10, 2019 at 3:05
S Mar 4, 2019 at 3:43 answer added Rufus timeline score: 255
S Mar 4, 2019 at 3:43 history asked Rufus CC BY-SA 4.0