« first day (1313 days earlier)      last day (2707 days later) » 

3:07 PM
> just curios if this is the mist efficient way
 
Hi.
 
Hi.
@morbidCode nice description:
> My favorite programming language is eclipse. I also work on languages such as notepad.
 
Kaz
15
Q: How does SE decide how many Mods a graduated site gets?

KazI understand the process: (beta --> public beta --> graduation) and the difference between Mods pro-tem and community-elected mods. I'm just curious as to the metrics used to decide how many mods a site gets once it becomes graduated and mods are elected? Also, how, why and by what process mig...

Mod team.
 
3:13 PM
@Dex'ter thanks!
 
I'm out for today guys
Good night, sleep tight, don't let the buffer overflows bite~
3
 
Fair enough... note that the industry doesn't agree with your teacher though ;-) I'd suggest you add Option Strict On at the top of your module, to avoid implicit type conversions all over the place. intIncome(i) = txtIncome.Text is putting a String into a Double and letting VB do the conversion implicitly. that said if you really want to learn things I'd warmly recommend you take whatever working code (it's important that it works as intended) you have over to Code Review; many people claim to have learned more in two weeks on that site than in two years in college =) — Mat's Mug 11 secs ago
 
monking!
 
monking
 
monkin
 
3:24 PM
Monking!
 
0
Q: Python Cons List

Tomasz MadryI got some materials in scheme, but I want to do it in python, so I created an immutable, functional style list. How many bugs there?:) I think it's easier to read in bitbucket, so I'm pasting link here

0
Q: Command Tokenizer

forsvarirI've written some code to tokenize a command string into its tokens. A token is either: A block of any non-whitespace characters A block of characters, which may include whitespace, wrapped in quotes So, for the input: This is some text "with information" quoted. I'd expect the tokens:...

0
Q: Not able to find mistake in my code for problem given in link below code. JAVA vs C++ www.spoj.com/problems/JAVAC/

Manish Kumar #include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i,n) for(int i=0; i<n; i++) #define si(n) scanf("%d", &n) #define sll(n) scanf("%lld", &n) #define pll(n) printf("%lld\n", n) #define pi(n) scanf("%d\n", n) char s[1010]; // for java to c++ string CPP(){...

 
@CaptainObvious hammertime
 
RE Mod team status: what @Vogel612/Pops said. I'll just be less active than I've been, but still wield dat hammer until further notice :)
@CaptainObvious good thing we have regulars sprinkling on-topic questions onto the front page.
 
@Mat'sMug I don't think anything disastrous will happen. Flag rate is not so big anyway
 
don't jinx it! ;-)
 
3:30 PM
All of you guys go for the 500 flags badge!
6
I already have it.
I actually did that shortly before the first election.
 
I usually watch only C++ tag, and there are not so many posts to actually have 500 flags
 
Use my bad comments query.
 
@Hosch250 lol
 
Just spam the chat a thousand times if you really need more people to look at the flags, then I'll consider it ;)
 
Hi guys. Can I have some advice? I am asked to do a extremely unusual thing tomorrow. I have to teach my partner developer object oriented programming within two days. Our manager wants to turn our php procedural code into an object oriented one. I personally think it's impossible to teach object oriented concepts in just two days (particularly because I'm not good at it). So can I have siome tips on what to do during this two days? Thanks.
 
3:36 PM
0
Q: loading array with user inputs and counting strings in array

Brad WethingtonI'm trying to create an array where the user inputs the values for the array. I then need to count how many times certain words are in the array. For example if out of 100 users surveyed they live in "Hamilton, OH". I need to search the array and count how many "Hamilton, OH" so I can see how ma...

0
Q: Brainfuck code optimization in python

AemylI wrote a program to automatically optimize my brainfuck source files. It works well, but the optimizations are only trivial ones and probably there are still some other points to improve. This is my code: def main(): print "Enter the path of a brainfuck source file you want to opti...

 
It works, please migrate it to code review. — Sandeep Roy 17 secs ago
 
@morbidCode umm ... that is basically a workplace question.
the point is that your manger didn't allocate enough time for this and that neither you nor your colleague are appropriately trained for the respective tasks
you need to tell your manager that this will need more time and that you'd prefer if he could upskill you if you're supposed to be teaching others .
 
This is probably a better question for codereview.stackexchange.commnoronha 10 secs ago
@mnoronha nope. This is pretty much pseudocode. Accordingly its not on-topic for Code Review. They require the full code (under review) to be present in the question. So this might become a good Code Review question,but only with significant edits. — Vogel612 35 secs ago
 
@morbidCode the manager needs to understand that an outright paradigm shift doesn't happen overnight.
 
@Vogel612 Thanks for the advice! I don't know this. But I'm not sure if he knows OO either. He's asking me to teach this partner because he knew I've made a big project in java and php before graduating.
 
3:42 PM
might be an opportunity to order & expense "Clean Code" by Robert C. Martin though
 
Maybe you can get him to hire a consultant.
I'll do the OOP part if you guys will do the PHP part.
 
I thought it's easy to be a manager, but it seems like it isn't
 
@Aelop wrong. Code Review is not the site to post to if the user is looking for verification of code. That's not on-topic there. For more information you might want to read A Guide to Code Review for Stack Overflow usersVogel612 47 secs ago
 
Tell him that my fee is $50/hr, plus traveling expenses. ;)
 
I thought that average is around 100$/hr
 
3:44 PM
@Incomputable The deduction is because I don't know PHP.
 
@Mat'sMug I told him that. He responded with something like "if we don't do this now, your project will only get bigger and the future, so best manage it now". This all started when I complained that a php page that consists of payroll computations take 2500 lines.
 
@morbidCode He's right.
Tell him you will do it now, but you need a little bit more than 2 days.
 
s/write/right
 
So, do you guys basically have approval to rewrite the entire project OOP-style?
 
@morbidCode sounds like template metaprogramming I did to create a typelist
 
3:45 PM
Because that is what it will take to shift it over.
 
^
@morbidCode that's a recipe for disaster....
 
@Mat'sMug yeah, it doesn't feel good reading those after doing some functional programming stuff.
 
if you're going to rewrite a whole entire PHP app, might be a good idea to ditch PHP along with the procedural paradigm... learning OOP with a language where classes and objects are first-class citizen (cough C# cough) is going to be a much smoother ride.
4
 
33968081 yep. I suggested to try to do this next year, or leave the project as it is. Got refused.
 
3:50 PM
@Mat'sMug @morbidCode Tell him that I'll do it for you in C#/WPF if you wait until after May 1.
 
I'd run. that's just me though. but I'd pack my stuff and run.
 
I'm looking to start a Metova-style company for Windows development.
 
Is it even possible to do an incremental rewrite from procedural to OOP?
 
No.
 
yes
 
3:50 PM
Terrible OOP can still be incrementally rewritten into good OOP IIRC
 
it's called refactoring
but with PHP it's called refuctoring
2
 
@Hosch250 yep. I suggested to try to do this next year, or leave the project as it is. Got refused.
 
@Mat'sMug (╯°□°)╯︵ ┻━┻
(╯°□°)╯︵ ┻━PHP━┻
2
 
lol
 
Procedural to OO is like OO to Functional. It doesn't really happen, and if it does, it isn't pure.
 
3:52 PM
so what. .. we're not puritans, are we?
 
@Mat'sMug but it'll still take more than two days right? Probably a month from now...
 
@Vogel612 We wouldn't be on CR if we weren't.
 
@Hosch250 take Rubberduck's RubberduckMenu class between v1.3 and v2.0. that's what I'm talking about.
 
@Mat'sMug Hey, that was a complete rewrite.
And that was OOP to start with.
 
not quite.
it was a mess to start with
 
3:54 PM
OOP doesn't tie in that nicely to PP. The result would be worse than pure PP.
 
a bloody mess
 
Yeah, OOP doesn't magically prevent messes.
 
With PP you at least won't have intertwined components, because they are none to start with
 
eh, you're right. it was OOP. was just bad OOP. OOP without SOLID is shaky.
 
@Mat'sMug and there they're saying php is a flexible language!!! Can't do anything about that it's the only language they know.
 
3:55 PM
5 mins ago, by Mat's Mug
I'd run. that's just me though. but I'd pack my stuff and run.
 
@morbidCode I've heard it is one of the most flexible languages around.
 
@morbidCode I'm afraid in general PHP developers are not that highly-skilled, so whenever you're recruiting new guys there is quite a chance that they're low-skilled too
 
It starts flexible, but it likes to harden after use.
 
you gotta be flexible to twist & turn that way
 
@morbidCode you could hire java/C#/python people for that
 
3:56 PM
Kind of like how clay is flexible, but hardens after a while.
 
@skiwi that's probably not true
 
And it sticks to things and gets wrapped around other things, and hooked onto others.
 
@Vogel612 eh, let's face it: is the new
3
 
@Vogel612 A really high percentage of home-schooled developers probably starts with PHP... That cannot end well
 
FWIW you should get your boss's assignment in writing, and your complaints in writing.
 
3:57 PM
PHP is to 2016 such as VB6 was to 1999
 
and then you should consider escalating this mess to higher management
 
@skiwi Stop insulting me.
 
@skiwi I started with C++. It didn't end yet, but it's good for now
 
because that boss is unfit to lead a team
 
@Hosch250 Read in general and high percentage ;)
 
3:57 PM
@Hosch250 what other things?
 
Matter of fact, most developers who are successful are the ones who homeschool themselves.
 
@Vogel612 that
 
I in fact also started with PHP, but I guess an university study does make it okay again
 
It is the ones trained by the schools that make a bloody mess of things.
 
Mat's Mug I was taught to use Hungarian Notation in my classes. I'm still learning and still in college. We have to use Hungarian Notation. — Brad Wethington 49 mins ago
^ proof
 
3:58 PM
@Hosch250 </religious-war>
 
@skiwi my groupmates learnt C in university, and they write worse code
 
@Incomputable Well, maybe I take it back then, seeing as a lot of my university peers also wrote horrible code
 
@skiwi I think they know. They're quite happy being called porn happy programmers (at least some of them)...
 
Slightly unrelated: I left this mess behind yesterday when I couldn't get it to work without bugs :|
 
<~ self-taught with pride
5
 
4:00 PM
@Hosch250 good thing I'm not school-trained in programming.
3
 
I've self-taught my programming, but the uni courses on design patterns and algorithms were very helpful to me as an all-round programmer
 
@skiwi I'm sure you would have learned quite as much if you worked through a good textbook on your own.
I swear that I could have learned double the amount at half the cost if I just studied on my own.
 
@Hosch250 Yeah okay, but I've seen lots of (mostly PHP) developers online that just followed tutorials and tutorials and basically never read a text-book nor what they're really doing
 
@skiwi Well, yeah, you have to post it on CR for review.
3
 
Nice effort, you should post that to codereview.stackexchange.com though to learn a couple things about your code... — ibiza 18 secs ago
 
4:03 PM
@skiwi I have bad experiences with desgin patterns at school ... they teach all these factory pattern things, and asks us to write a project using that. As a result all of our projects have these design patterns for absolutely no good reason...
 
@Hosch250 Everyone that (properly) uses CR I already rate way higher than others
@morbidCode I'd hope you get an assignment where they actually make sense
 
"Pizza Decorator Factory"
 
@skiwi Like doing FizzBuzz with an abstract factory.
2
 
0
Q: SafeBox StateMachine implemented with Enums

Arigatonicany opinions about this SafeBox StateMachine? import java.util.Scanner; public class SafeBoxStateMachine { public enum SafeBox { ACCEPT{ private Scanner scan; private boolean askPassword(SafeBoxStateMachine safebox){ System.out.println("Please type a pas...

0
Q: Looking to refactor some javascript to be more readable

TurkI have this plugin that I have finally finished the big pieces of, there's one or two minor details that are not yet implemented do to lack of a decision yet but everything else is there. I wrote it and can follow fine but I feel it reads very haphazardly. Could someone with fresh eyes help me ma...

 
We had an assignment that included a GUI and a binary puzzle solver and design patterns were really relevant there
 
4:05 PM
@skiwi not if the programming culture is copy and pasting.
 
12
Q: Even more extensible and testable BuzzFizz

skiwiInspired by Extensible and testable FizzBuzz I have decided to write my own implementation, partially based on my own answer and on the other answers. First a warning to all of you: Never make such complicated code for such simple jobs! Now the basic requirements of the code: Should be capabl...

 
@skiwi lol
 
Wait, why the hell is it called BuzzFizz and not FizzBuzz?!
I'm really not sure if that was intentional... it's too long ago anyway
 
that's what happens when you need 140 unique titles
4
 
@skiwi that's the reason for downvote
 
4:06 PM
@skiwi was it multithreaded?
3
 
@Mat'sMug No ;)
 
aw, my MT-FizzBuzz title is spoiled then
2
 
</derail-successful>
3
Aha.... My optimization strategies can end up in three states, Accepted, NotAccepted or Finished... My intention was that they first go into Accepted and then onto Finished, but apparently they are going into Finished without first going into Accepted... Yeah, that is wreaking havoc
2
 
Kaz
4:28 PM
Somehow, I still have stars left. Must be a Christmas miracle.
4
 
@Kaz Jingle stars... Jingle stars...
Hmm, I finally have a clearer picture of what my code is actually doing before it crashes
And it's doing exactly nothing
 
possible answer invalidation by user2635088 on question by user2635088: codereview.stackexchange.com/posts/149180/revisions
 
Well, nothing useful at least
All I wish for Christmas is working code
FACEPALM
My interface takes a boolean isLastNode parameter, but my code passes a hasNextNode boolean parameter
I forgot to negate it :|
 
Kaz
GUYS! The star-limit is broken.
ALL THE STARS!
 
lol
 
Kaz
4:41 PM
Now I need a punny title for the bug report ^^
First thought was "The star's the limit" but, upon second reading, it doesn't really work.
 
The good news: My compiler is not bugged anymore. The bad news: The compiled program is now bugged.
Instead of printing out the Mandelbrot art it just returns
And Hello World prints a smiley now
 
Kaz
My God, it's full of stars
Thats my title ^^
 
guys, is my code formatting good? I am using a screen reader and I can't see it. codereview.stackexchange.com/questions/149218/… thanks!
 
0
Q: Computing nth root of a number - SICP exercise 1.45

morbidCodeFrom SICP Exercise 1.45: We saw in 1.3.3 that attempting to compute square roots by naively finding a fixed point of x/y does not converge, and that this can be fixed by average damping. The same method works for finding cube roots as fixed points of the average-damped x/y^2. Unfortun...

 
Kaz
@morbidCode I added some spacing to that paragraph to make it readable. Otherwise looks great.
 
4:49 PM
@Kaz thanks! Until now I can't imagine how lisp code should look...
 
Cool, my code is just throwing away some nodes of my AST
 
If your script already works, you might want to check code review instead. — José Sánchez 7 secs ago
 
Is prefetched not a word?
 
Without knowing what you actually plan to do with it, we couldn't possibly say. And SO is a place to ask for specific questions about how to solve specific problems. If you have no problem, and your code works, then that's not on topic here. If you just want a general code review, rather than to ask a specific question, that's not on topic on SO. — Servy just now
 
0
Q: Crystal Reports Selection Formula using a list of items

DavidI have a system that has a database table for orders (Sales Lines) and a table that stores customer addresses (Customer_Addresses). Each customer may have up to 10 addresses assigned to them. I need to create reports using Crystal Reports to get all orders that are between a specified date range...

 
5:02 PM
Thank you for the input, I'll move this over to CodeReview. — NuNn DaDdY 45 secs ago
 
Why was that up there even starred?
 
@Kaz NOOO!
Don't report it.
 
Kaz
@Hosch250 Bit late now. Plus, it's no fun when you can't run out.
Now that I can star everything, it all seems so pointless.
 
Just star the most irrelevant posts so the starwall looks interesting.
 
Wait... It's unlimited?
 
5:09 PM
Let's do the biggest starwall ever quick.
2
 
shhhh! don't tell!
 
Kaz
29 mins ago, by Kaz
GUYS! The star-limit is broken.
I've GTG
But have fun ^^
Bte, I got to about 70 stars before I went to write the bug report.
 
Is it weird if it is easy to break your own compiler if you start messing with its code?
 
Kaz
Speaking as RO, once you've got that out of your system, please do clean up.
The starwall serves a useful purpose, it shouldn't be abused.
 
:(
@Kaz I won't star that one.
 
Kaz
5:11 PM
See you guys tomorrow
 
@Kaz Huh?
What's the purpose behind pinned messages? ^^
2
 
I undid my stars before I couldn't clean up due to time constraints, and you guys cancelled them all.
 
Eh...
Ignore my last message
What's purpose behind starred messages except for the pinned ones? ^^
 
@skiwi You mean this one?
 
That's what I wanted to write
 
5:15 PM
@skiwi I read it that way the first time.
 
Did someone edit it? :P
So looks like my rewrite of this failed and the mess became even bigger, so now I'm going with a new rewrite that takes the combined approach of the original approach and the originally rewritten approach
 
Don't you have source control?
Just go back to when it did work.
 
I have source control
The problem is that I never got it into a state that's ready for check-in
 
Oh.
So, you aren't doing a complete re-write.
 
My original tangled-mess-but-working approach is still the latest commit
Well I'm pretty much completely rewriting my intermediate code optimizer
I've got my source code in Dropbox as well, so I don't have to fear that this WIP gets lost if something happens to my PC
Except if it starts deleting all files, then it's still recoverable but more difficult
 
5:23 PM
@skiwi I've got deleting (and recovering) important files down to an art.
 
@EBrown Realistically it may be more useful to just start over again from the latest commit
 
0
Q: Subclass Method Return Type

NuNn DaDdYI'm trying to allow the enduser to filter their data and then provide output based on the selected Report instance and date range. My Report hierarchy is setup using Entity Framework (TPH). Currently, I've setup an abstract method on the base class that will return type ReportResult: public ab...

0
Q: Is this battleship console game completely ridiculously coded? c++

megachuck64 #include <string> #include <iostream> #include <process.h> #include <cstdlib> #include <time.h> using namespace std; int const ROW = 3; int const COL = 3; int subX, subY; int guesses = 5; int board[ROW][COL]; bool hasWon = false; void winScreen() { cout << "You won with " <<...

 
I'm voting to close this question as off-topic because it is a request for a code review, consider posting on codereview.stackexchange.comMark Rotteveel 58 secs ago
Perhaps you want to consult the Code Review site? — Toby Speight 39 secs ago
You're right I'll move it to the code review site. — Mathieu Van Nevel 23 secs ago
 
5:40 PM
0
Q: Generic programming is beautiful

Mathieu Van NevelC++ and templates are awesome tools, and allow you to let other people customize your class like crazy. template <typename Object, bool Shared> class CFoo { template <int Filter, template <int,typename,typename> typename Other > Other<Filter, Object, Foo1<Derived, Shared>> bar()...

 
EVERYONE: The 45GB update of Halo 5 finally finished on my Xbox, it only took 10 days literally.
 
@EBrown LOL.
 
5:57 PM
@EBrown ahahah. rip
 
@Dex'ter RIP to my Xbox One disk space, 91.6GB of it is Halo 5...lol
 
@EBrown I've never touched an Xbox. Should I feel special ?
 
@Dex'ter Probably. If you think Windows 10 is bad imagine a console version.
My @xboxone updated itself 3am this morning; completely broken - no home. Trying full reset to the backdrop of autistic meltdown from child.
@marcgravell @XboxOne Didn't realize they were sending the "Brick Console" update so soon. I'm still on "Can't Handle Dropped Packets".
 
@EBrown Hey, I don't think Windows 10 is bad after the anniversary update.
But, I've never used XBox or PlayStation.
 
Except it's still terrible.
 
6:03 PM
Just one of those expensive modern necessities you can go without.
@EBrown Probably partially your computer/network setup. And how long has it been since you installed from scratch?
 
@Hosch250 Installing from scratch would be a several week process on this internet.
Between all the VS and game downloads, I'd spend forever on it.
 
LOL.
 
It is, currently, unfeasible.
 
Perhaps you could ask your work's IT to download it on their network?
 
No, we can't even get on the team-member portal on their network.
My work (a very large chain of hardware stores in the U.S. with green everything) is very good at pinching pennies.
If I damage a computer or tablet, I am fined up to $200 for it from the company.
 
6:08 PM
No wonder you are looking for a new job.
 
Unfortunately I have a very strict NDA on file, so I can't go into any details of anything really.
 
LOL.
 
Also: very important life-update happened today, not going into details here but I'm much excited.
 
@EBrown you just need to commission one of the AWS Snowmobile vehicles for personal use
 
6:12 PM
@DanLyons Yeah I'm sure that's not cheap.
 
@EBrown I'd guess Walgreens, but they have a red logo.
 
@Hosch250 Hardware store, not pharmacy.
 
Oh.
 
Let me find out if we're in Minnesota.
 
Well, only hardware stores I know are Ace, Menards, and FleetFarm.
Lowes, I guess.
 
6:13 PM
Nope.
 
I'm not sure if they are furniture or hardware, though. Maybe there are two Lowes.
 
Lowes is hardware.
We actually have stores in Minnesota.
 
I wonder what it is like to be able to get mail without someone else opening it for you.
 
Well it's a violation of Federal law to open other people's mail so I'd say "legal."
 
@EBrown Time to play it for 10 days straight
 
6:19 PM
It was my mom opening something from the U. Nothing private, but still...
 
@skiwi I don't have time this week lol
 
You had your 10 days to sleep, nwo play
 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Parse regular expression
 
My papers are coming along nicely. One in review, the other almost done.
TFL.
 
@skiwi I seriously don't have time this week.
 
6:20 PM
That much to do?
 
I have a thing tomorrow to go get a permit I applied for today, then I have a meeting with a local business tomorrow or Friday.
 
I'm pretty sure my life will change a lot once I get my job
 
Then I have to send out a bazillion job applications.
 
Do you actually send out lots of job applications at the same time?
 
Usually 2-3 before work and 1-2 after.
 
6:22 PM
With my success rate of about 50% until now I tend to limit them to 2 at a time to not get flooded with appointments
The last thing I want is five appointments in a single week
 
My current success rate is 0%.
 
Then I can understand it
 
I'm not sure this type of question is on topic here. I've never asked on this SE before, but perhaps codereview SE is a better spot to ask this type of question? I would double check the on topic guidelines there before posting, but it feels like this might be a better fit there. — Lexi 49 secs ago
 
Why is Mat stepping down? I haven't found anything in the chat history.
 
@SirPython Personal stuff.
 
6:35 PM
@SirPython You may be able to find something around here (Warning, comment should give you the feels)
 
@skiwi There's one application submitted.
 
The most disturbing part of Westworld I have seen so far is that React survives into the future and is somehow part… https://twitter.com/i/web/status/805706545346461696
 
if (node.getChildren().isEmpty()) {
    // TODO change this check to a logical has no children, as a node with IntegerExpression should not count as a child
    return;
}
You're unworthy!
 
Code review: The BMP-header format description stuff doesn't have to be separate. Instead of db 0x42,0x4D,0x72,..., you can write db "BM" dd 54 + 201 * (201 + 1) * 3, etc. on separate lines. All those bytes will be contiguous, because that's how asm works. You can even put separate labels on different parts of the header. After the first couple examples, you could stop doing the manual encoding into hex bytes yourself, and let the assembler do that for you from the most human-readable expression. e.g. dd 201 instead of db 0xC9,0,0,0, because x86 is little-endian. — Peter Cordes 48 secs ago
possible answer invalidation by Kyle Hale on question by Kyle Hale: codereview.stackexchange.com/posts/149011/revisions
 
6:52 PM
-1
Q: Trying to boost my skills

PomulI am very new to coding and really started a few weeks ago for a new job I have. out of necessity, I am slowly learning VBA (wich I can't say is very easy...) I started by recording macros in Excel and copy/paste bits of VBA codes from the internet. A good chuunk of them came from SO, which promp...

 
Great... After the rewrite Hello World still prints out a smile... but this time it's a different one!
2
/s/smile/smiley/
Whatever, they both work
 
@Vogel612 In all fairness, we have @200_success, @janos, @Jamal and @SimonForsberg, we should be fine for a bit I expect.
 
@BarrettNashville I did try to expose events once (here actually), figured it didn't work, dropped the idea. This post makes a good example of how interfaces/polymorphism might be used in VBA. Not sure how documented it actually is, but if you look at a type library such as Excel's in Visual Studio's Object Browser, you'll see a Workbook type, and then a WorkbookEvents separate type: VBA just sort-of combines them into one, but our own VBA code can't do that AFAIK. — Mat's Mug 49 secs ago
 
Yeah... right: pastebin.com/EzNHTwf5
 
Good work @skiwi! ;)
 
7:02 PM
@EBrown Yeah, this whole thing is BS
For some reason it is hard to logic
 
These are very, very helpful comments. I can see now that I have way more to learn that I thought. Yes, you're right. This is quite the rabbit hole. Thanks very much for the link to your post on Code Review about the MVP pattern. I hadn't seen that and it's just the kind of thing I'm thinking about doing. — BarrettNashville 8 secs ago
 
@skiwi Subtracting 1 instead of adding 8?
 
Greetings, Programs.
 
@Hosch250 Actually currently it's only doing things with MemoryValueChange... supposedly
 
@Donald.McLean I suspect you are the program since you always use the same greeting.
 
7:16 PM
@Hosch250 Byte me.
 
I don't want to get shocked.
 
@Donald.McLean (byte)@Donald.McLean
 
lol
 
0
Q: Cons List in Python

Tomasz MadryIt make sense to not allow links to external code hosting, so I restated my question. This is classical cons list in python using Abstract Base Class interface. Constructor is in fact out of the Cons class, but I didn't see the way to put recursive code inside init. # immutable, cons list and f...

 
Well... This is also interesting, this time around it just removed all MemoryValueChange nodes
 
7:23 PM
At least it doesn't print the wrong stuff.
Now it doesn't print at all.
#NoResultIsBetterThanABadResult
 
Additional bonus points for not being able to enter infinite loops
Aha, maybe I should've put some code in the case where some optimization does not accept further nodes
OptimizeStrategyResult somethingNodeNeedsABetterName(final ASTNode node, final boolean isLastNode);
Ah, the best method name
And I'm back to the same result I had before the second rewrite
 
Maybe it is time to start from scratch.
 
This time in one tree it removed everything except the MemoryValueChange nodes
@Hosch250 That's what I'm trying to do all the time
 
Oh.
 
The last stable version I have works though, but it's not modular
 
7:34 PM
Maybe you need a plan.
 
@Hosch250 I need more stars
 
They fixed it?
>:(
 
My optimization is currently working, the problem is that it overwrites some nodes or something :/
 
I'd forgotten how easy it is to rack up the rep.
40 points for a 5-10 minute answer.
 
Who needs rep when you can break a BF compiler (:
 
7:38 PM
I want the delete questions privilege.
I'm at 14.6/20.
And I might as well get to 25k while I'm at it.
I've rep capped 8 times. I should do it twice more soon so I'm 1/5 of the way to Epic.
 
Ah cool
 
28 questions away from Socratic.
 
Hmmm, so the optimization works, whenever it optimizes it replaces the old nodes with the optimized one, and then for some reason it just deletes the next node
 
I think this question ought to be moved to the Code Review Stack Exchange site. — Bobulous 36 secs ago
 
Can someone upvote this answer? codereview.stackexchange.com/a/113675/34073
 
7:47 PM
Surprise surprise... When I delete all nodes that I want to optimize and then set the next node to be optimized node, then I'm actually resetting the node after the nodes to be optimized
 
I want the next guy to get Populist.
I should write a query for potential Populist badges.
 
It prints Hello World again!
And Mandelbrot also works!
 
Nice!
Nobody will oblige?
Actually, two people will get Populist on that one if this gets upvoted too: codereview.stackexchange.com/a/113576/34073
Thanks.
 
dat title
 
@Mat'sMug I like it.
 
7:58 PM
me too :)
 
BTW, here is a very Foobary question: codereview.stackexchange.com/questions/149222/…
 

« first day (1313 days earlier)      last day (2707 days later) »