« first day (604 days earlier)      last day (3711 days later) » 
00:00 - 21:0021:00 - 00:00

00:00
[Tejpbit/CodeIT] 5 commits. 1 issues opened and 0 closed
0
Q: Large message population design

Ned StoyanovWe are designing a small framework to create and send messages to external parties as a result of internal events. I am reasonably happy with the design, but I am wandering if it can be further improved. The external messages are large and complex and involve getting data from different areas i...

@rolfl Great answer!
I knew about that myself, but I just wrote a quick-and-dirty method.
I mean, I knew I could do 1*2*3*...*n to get the largest number.
00:19
@rolfl What happens to close votes?
So will that one on my question eventually go away if no one agrees with it?
Posts with a close-vote automatically get entered in to the close review-queue.
others will then review them. Once the post gets 5 votes, it is closed.... unless a mod gets to it first.
I know that, but if no one else thinks my question should be closed, will that vote just sit there forever?
In your case, I waited for it to enter the close queue, then I reviewed it myself:
Thanks.
because I voted to 'leave open', it has now been cleared from the queue, so no-one will see it in there now.
00:21
Oh, it still has one vote, though.
On the other hand, there is still the outstanding vote, but, for people to see it, they have to go to your question specifically
after 5 days, close votes 'expire'.
I see.
Thanks.
Nice algorithm. I should get it - I did study this in HS.
I've almost remembered it now.
 
1 hour later…
01:30
@Jamal - curious. What brought this up in your edit to-do list: codereview.stackexchange.com/q/6101/31503 ?
01:43
The "edit" part. I'm going over some posts like these that may have noise and answer invalidations. I'm done for right now.
Sometimes I really despise bumps from edits. I'd like to perform these tags without disrupting the front page.
01:57
@rolfl I Like your blowup implementation for the string expanding question! :)
0
Q: A prime number sieve using recursion

Jeel ShahOut of curiosity, I built a recursive Sieve of Eratosthenes in Python and I was wondering how it could be improved for efficiency and how it can improved to be aligned with python best practices. Essentially, there is a recursive function (coded horrendously IMO), filter_multiples, which removes...

02:51
0
Q: How can I enhance the following exception logging and user experience?

BRSI hate having unnecessary catch blocks to make my code look beautiful. In most of the cases in my project, which is a web application(not a web site), I can't declare many exceptions as checked exceptions as there is little that my client(browser or alike) can do to recover from the exception. Ho...

 
1 hour later…
03:55
0
Q: design pattern for sync model between two database

lucemiaI wanna to create an one way sync mechanism from django models to cloud datastore. My first version reference django's manager design. An manager take care of sync from gcloudorm import model as ndb class DatastoreManager(object): def __init__(self, model): assert isinstnace(model...

 
1 hour later…
04:59
@Jamal - I have an answer on this post - conflict. Care to untangle the edit invalidations? Thanks: codereview.stackexchange.com/questions/74934/…
05:11
Sure. It should be my last one for the day.
(Sunday, I mean)
Done
Sometimes I think we should tell every new user about this in advance. Rolling back promptly isn't bad, but sometimes it can go unnoticed.
Thanks, and sweet dreams ;-)
05:35
Monking
0
Q: Project Euler #14 (Longest Collatz sequence) - Python code optimization

InphyniteI wrote this code with lists, but the program never seemed to come to an end. I rewrote it with arrays, and it's still the same. Starting from 10, increasing the number 10 times seems to increase the program run time by roughly 100 times, and at this rate it will take about 15 days for it to comp...

0
Q: Check for Palindrome

LloydBGI'm trying to solve Project Euler for the largest palindrome from a 2 3-digit number. Please take a look at my code and I'm wondering why I'm not getting any output. thanks! public class Palindrome { static int product; static StringBuilder SB = new StringBuilder(); public St...

0
Q: Find Minimum Number of coins using recursion

GKhetanCan anyone please check the solution below to find the minimum no. of coins to make up the given sum from the list of the denomination of coins. I used the greedy approach with recursion. Actually I tried this with Dynamic Programming approach but time complexity was very huge when sum is changed...

 
2 hours later…
07:34
0
Q: Bioinformatics machine learning framework for proteins

GrimSqueakerI'm currently finishing an "application" (I.e. code) for a machine learning, feature extraction framework, written in python (with scikit learn,pandas and biopython). The framework extracts various simple biophysical and informational properties from proteins (think of them as sequences of letter...

07:46
Monking
monking @skiwi
08:24
0
Q: PHP associative array with two properties

rink.attendant.6I'm moving a system over to PDO and since the queries are parameterized, I need to specify both the type and value of each parameter when preparing them. Right now I have a prepare method to create the PDOStatement object: /** * Prepares a statement * @param string $sql The query * @param ar...

 
1 hour later…
09:42
0
Q: Iterators - insertion sort

morbidCodeI want to understand iterators more, so I used an extremely simple insertion sort to experiment with it. Please review this code. template<typename C> void insertion_sort(C& c) { for (auto i = c.begin(); i != c.end(); ++i) { for (auto j = i; j > c.begin() && *j < *(j-1); --j) { ...

10:12
Morning
morning @DJanssens
 
1 hour later…
11:24
public static ValidationStatus getDefaultStatus() {
    return UNKNOWN;
}
Code out of context, yay!
12:09
:)
My coworkers are lucky.
I am first one in by an hour after Christmas break.
The heater has been off since Wednesday lunch.
I'm think about starting a campfire.
4
12:28
haha, Sending you some moral support ;)
It has warmed up to 47F now, but my desk is right by a vent so feels warmer.
That's about 8C. Inside.
seems to be 8C° That's indeed pretty cold
aha
Productivity probably dropped bellow zero too then? :p
Warming up the building before coworkers get here isn't productive?
This is the only day I'm even working this week.
ah no, didn't meant it like that ;) I just thought programming in those temperature would be pretty awful
My fingers would simply start to hurt :p
Yea. There's no programming happening yet.
12:53
Fun fun, if this happens in an external library
java.lang.IllegalArgumentException: Raster sun.awt.image.SunWritableRaster@5feb7411 is incompatible with ColorModel ColorModel: #pixelBits = 32 numComponents = 1 color space = java.awt.color.ICC_ColorSpace@45c61c42 transparency = 1 has alpha = false isAlphaPre = false
	at java.awt.image.BufferedImage.<init>(Unknown Source) ~[?:1.8.0_20]
	at de.vorb.leptonica.util.PixConversions.pix2img(PixConversions.java:190) ~[jleptonica-0.0.3.jar:0.0.3]
0
Q: CR: Merge sort with raw C++ array

nashmaniacMerge Function void merge(int outputArray[], int firstArray[], int sizeFirst, int secondArray[], int sizeSecond){ int p = 0; int p1 = 0; int p2 = 0; while(p1 < sizeFirst && p2 < sizeSecond){ if(first[p1] < second[p2]) outputArray[p++] = firstArray[p1++]; ...

Well, that's why I don't like using third party libraries. Even if I'm only an average skilled programmer, that still means half of all programmers are worse at their jobs than I am. And I already spend enough time debugging my own code.
2
Why would I pay money to get a library full of someone else's bugs?
13:08
@nhgrif It's free... but I get your point
Hey guys, this question was wrongly deleted on SO. It's a good signpost and of a higher quality than the original, anyone care to cast an undelete vote?
@RubberDuck I'd want to, but I cannot see it
:(
0
Q: masm 8086 (dosbox) problem with cmp

Linda de CorteWe are trying to make the game othello (reversi from the old nokia) We now have a swap function, whitch will swap in all the directions (by being called with a number in "richting" (1 to 8) We have the problem in the part which is called vergelijkvak when we compare: cmp bx, 1 je @F jmp ve...

That's okay @skiwi. Just giving it a shot. I've been having trouble with a user, which is fine, but now he's hurting site quality and that upsets me.
That's not good :/
I'm sitting on >9500 for quite long on SO, but just cannot be bothered to get to 10K there
On 9800 now though
13:18
Yeah..... guys like that are the reason I don't bother so much with SO.
@RubberDuck: "searchable posts" are not allowed
It's correctly deleted
15
A: Should I delete my question if it is marked as a duplicate?

Martijn PietersPlease don't delete you duplicate question. Duplicates act as sign posts, lighting the way to the canonical question. Your question used different keywords, different language to ask about the same concept, and now those keywords can be used to find the original. If you deleted your post you'd ...

If you feel like the other one isn't easy to find, improve it instead
13:20
In all seriousness @JeroenVannevel, I never would have found the original and that meta says differently.
I looked for an answer before posting that question way back when.
Nobody is saying you didn't
But look at the two titles
> Is there a way to make Mod handle a double?
> How to make Mod handle a double?
I made that edit after the deletion.
How does your question provide something easier to search?
In an attempt to get some keywords in there.
Strangely I'm not seeing any edit history so I can't say
Either way: still no benefit to undelete it
ahh, you made the edit to the original post
13:25
That's fair. If it doesn't get undeleted, I'll put some work into the original. I was just trying to avoid having to do that.
@JeroenVannevel Yeah.
Yeah, it sucks when this happens but it's best to just clean up the original post
even though you'll have put in wasted effort at that point
And that's the problem, is the wasted effort. Only so much time and effort to go around.
Look at it this way: if you didn't have SO in the first place, you'd be wasting even more time
now you got it instantly
13:54
Greetings, Programs.
@Donald.McLean Greetings User.
hey @Donald
Monking @all
14:13
hi :)
what are you guys all up to?
Working.
Astronomy related, if I may ask?
@DJanssens Yes. I work on the Multimission Archive for Space Telescopes - including all of the HST and Kepler data.
Interesting!
as programmer, analyst, physicist?
@rolfl I cleared things up with the help of users in their chat room
14:25
good morning
If anyone has input on code and structure for a tutorial guide I am putting together for a Express based CRM I would greatly appreciate it. The code is complete but the lesson documentation is in progress at: github.com/webbrandon/simple-secure-auth
14:38
0
Q: Simple encryption with PHP 5.5

texelateI want to do simple encryption using PHP 5.5. By “simple” I mean I want to use native PHP functions. I have created this code that works, can it be improved? It's to encrypt/decrypt strings and binary files that are to be stored in a database and accessed via a website. Assume that it is done ove...

0
Q: WinSCP IDisposable Wrapper

chazjnI have written a simple wrapper for WinSCP in C#. I have written it to simplify SFTP connections I will needing to perform. public class WinSCPConn : IDisposable { //private fields private SessionOptions sessionOptions; private TransferOptions transferOptions; pr...

14:52
0
Q: Combining two code (Google drive + Parse)

user3827788I have created a system where user select files from their Google drive, and where I would want that file selected to be uploaded into Parse. I have done so separately though, where I have one code that allows user to select an item from Google drive, and one that allows user to upload a file fro...

15:40
1
Q: A cleaner way to import different type of files into Lists

MX DI am using a recursive directory scan to find all objects inside a unity3d project. After that I wish to move all these files to a sorted List. Is there a cleaner and/or more optimal way off doing so? Because I have the feeling the AssignFileToList could be less complex than it currently is publ...

16:30
Big answer I put together there - for anyone interested in concurrency, locking, lock-free implementations in Java: codereview.stackexchange.com/a/75137/31503
3 hours ago, by Jeroen Vannevel
> How to make Mod handle a double?
@RubberDuck Yes, Mod can do double.
Donald Knuth has an equation for it.
@Hosch250 Not in VBA.
And I found the answer long ago.
@RubberDuck Nor most other languages.
You need to program it yourself.
Yes. I know.
16:43
Anyone able to give input on code for a tutorial guide I am putting together for an Express based CRM using MongoDB, I would greatly appreciate it. The code: github.com/webbrandon/simple-secure-auth
node.js web ap tutorial basicaly
0
Q: Parsing user name and password from binary in Erlang + Cowboy

HazeriderI am working on a web app that uses a WebSocket to log in users. I would like to minimize bandwidth usage by using binary messages. I came up with the following, and would like to know whether there is something better I could be doing: -define(LOGIN, 1). websocket_handle({binary, <<?LOGIN:8,Le...

@rolfl Cool, I've put it on my to read list with my other 460 tabs!
2
@BrandonClark No, I can't.
Why don't you split it into groups and post it as questions here?
17:01
0
Q: In-Place QuickSort Algorithm in Python 2 - What can be improved?

Darshil ChauhanI am new to python. I have tried to implement In-Place QuickSort Algorithm in Python 2. Please suggest how I can make the code more efficient increase readability improve writing style make it more pythonic Below is the code: def swap(x,y): return y,x def sort(ar, start, end, l): ...

0
Q: Queue with std::vector

morbidCodePlease review my queue: template<class T> class Queue { public: Queue(const std::initializer_list<T>& i) :elem{i} {} int size() const { return elem.size(); } bool empty() const { return elem.empty(); } void enqueue(T&&); void dequeue(); T peek(); ...

@Hosch250 Considering it.
17:26
1
Q: Reading binary file of doubles

JohnJohnI'm trying to read doubles from a relatively small binary file. This currently reads a 100 KB file in about 6 milliseconds in my system. I would like to reduce that if possible. void readNParseData(const char* filePath, vector<double> *&data){ ifstream ifs(filePath, ios::in | ios::binary); ...

17:44
-2
Q: Error with sound related code

Shreyash ChaudhariInputStream in; try{ in = new FileInputStream(new File ("C:\\Users\\Sony\\Desktop\\all_shook_up.wav")); AudioStream audios = new AudioStream(in); AudioPlayer.player.start(audios); } catch(Exception e){ System.out.println("Wrong."); } Whenever I run this program, the output s...

sigh
> Whenever I run this program, the output seems to be "Wrong."
Catches all exceptions and literally prints "Wrong"
Why do these people touch code
Interesting.
I've never seen a program print "wrong" unless it was supposed to.
Shouldn't it be printing something like e.ErrorText()?
@Hosch250 As far as I know, the code always does what it's supposed to do, however, it may not be what the programmer thought it would do.
2
@Gemtastic Well, yeah.
I mean, he is crazy to just print "Wrong" in his catch statement.
17:48
throw new RuntimeException();
There are some cases with Java (since Java has its own agenda in the JVM) where you may not see the error in the code, but rahter it happens when Java has its own fun. You can however tell the JVM that certain things have to happen in a certain order else all hell breaks loose.
hell no, that's ugly
I don't do Java, but I actually try to not use any try...catch blocks.
@Hosch250 Well, I normally type something like "Oops! Something went wrong here!" + e when I make a catch. >_>
@Gemtastic Me too.
17:49
@BRS: are you aware a try-catch statement can have multiple catch statements?
I just let my code crash, trace the bug, and kill it mercilessly.
@Hosch250 It's nice if you can avoid it, but it's a good tool for lazy programmers. :P
BRS
BRS
Yeah! Silly me. I forgot that.
Mu-mu-mu-multicatch!
Well, my code is either right, or it crashes, or I'm being lazy (occasionally).
Or I don't know how to fix it.
17:51
@Hosch250 I don't really agree with that (as a general thing), since at least in java, you can write really stinky code and it works, until you try to add or subtract to it.
Just because it runs it doesn't mean it's good code.
I didn't say it was necessarily good, I said it was right.
I have a different opinion of what the word "right" means then :P
So later, I might have to refactor it to be more right.
And then you might re-structure it to make it the rightest ;P
Exactly.
I meant by "right" that it did what it was supposed to without errors.
17:53
That was annoying. The cache format must have changed and I had to invalidate the cache and reload.
BRS
BRS
And any views on showing the proper error message in the Jsp?
@Gemtastic Do you know XAML?
@Hosch250 No, not yet at least. I've begun to date XML though. We're taking it slow to see where it's leading.
OK.
Just trying to find a XAML/WPF person to review the structure of my app.
3
Q: XAML Markup Improvements

Hosch250I have a Windows Store and Windows Phone app, and in this app I have many pages like this: <Grid Background="Transparent"> <ScrollViewer Style="{StaticResource DataPage}"> <StackPanel> <TextBlock> Some text here: <LineBreak/> <...

If only it hadn't gotten any votes - I'd probably get Tumbleweed.
18:00
The main problem is I have all this files to manage.
It isn't like I have to change things in every file each time I do something, and my files are clearly named.
But I am wondering if there is a better way to do it.
The fun part about learning programming logic is that I actually understand what I'm reading, even if it's another language I don't know.
Fun~
Yeah, it is pretty easy to get ifs and loops and stuff in normal languages.
Just wait till you try to read BF.
It has like 2 characters or something.
Or maybe golfed GolfScript.
Well, binary is also only 2 characters ;P
Yeah.
I just took a course on logic, mostly the gates and stuff.
I really liked it - hardly anything new.
Hi, @MartinR!
I think it's fun though. Makes it easier to code when you know why the code does what it does
18:06
Yeah.
I try to know what the code does before I use it.
Me too. That's why Java is nice. Documentation FTW
Smoking the documentation eh?
I hate Java - it takes too many characters.
XML is like violence: if it doesn't solve your problem, you aren't using enough of it.
Shouldn't do that. It's bad for your health.
18:08
@Hosch250 Well, I think it's a nice beginner language.
I had to take a course from the U in it.
I prefer C++ and C#.
@DanLyons sounds like a love-hate relationship
I like the way XAML is like HTML, only more powerful.
I do most my stuff in XAML with as little C# background as possible.
I like what little C++ I did and still remembetr from highschool, but Java fits the bill. It'll land me a job and I can keep learning other languages on my own in the spare time :3
Talking about jobs, apparently a Java programmer once had a backwards greater than/less than sign.
It took a whole day for the entire team to find it.
It sounded like it was a complex program, though.
18:11
Well...
I'm not gonna say what I've heard :P
Nothing against Java, it could happen in any language.
I just thought it was interesting it took so long with so many people.
My problem with WPF in general is that it seems half-baked. Microsoft did a lot of cool things with it, but seemed to omit the drudgery like providing useful exceptions and more than a bare-bones list of user controls. I don't do enough UI work to see if it ever gets better, though.
@Hosch250 How about replacing a random semicolon with the greek question mark? Now THERE'S an evil prank!
Hmm, I'll remember that.
Someday I might find the problem faster than anyone else.
If I ever get: error CS1056: Unexpected character ';'
I'll check that.
Hiyaaa~
18:17
In code that should otherwise compile.
@AlexM. Hi.
@Mat'sMug Finally.
Hello
Could you check my XAML question out?
I know you know WPF.
0
Q: Python - Parse a tree & return the various paths

rtindruInput: { 1: [2,3], 2:[4], 3: [5,6], 4:[6] } Expected output: [[1, 2, 4, 6], [1, 3, 5], [1, 3, 6]] My Code: def parse(node, tree): result = [] if node not in tree: return [[node]] else: res = [] for next_node in tree[node]: res.extend(parse(ne...

@Hosch250 That's not a good idea on production
I don't do production yet.
Well, not professionally.
18:20
I'm not it either... yet
Doesn't mean that it doesn't need to be production ready though ;)
I have a testing server that gets used for other programs as well that I can crash, if I want to
I don't have anything like that.
Only thing that can crash is my app.
Or the program I'm writing.
I found this gem today after peer reviewing:
////price < 1000000
BigDecimal oneMillion = new BigDecimal(new BigInteger("1000000"));

validationFunctions.get(PRICE_EXCL_VAT).add(scoredInvoiceDataSet -> {
    BigDecimal priceExclVat = scoredInvoiceDataSet.getPropertyValue(PRICE_EXCL_VAT, BigDecimal.class);
    if (priceExclVat.compareTo(oneMillion) >= 0) {
        return INCORRECT;
    }
    return INCORRECT;
});
It might explain my low detection rate
Seriously, why not just return INCORRECT;?
I assume one was supposed to be return CORRECT;
@Hosch250 Almost... it's actually UNKNOWN, as it couldn't be completely validated
Oh. OK.
18:24
Best part is that I've seen this code before
And missed it?
It only made me wonder about it for a second, before I forgot about it again
@skiwi - I look at that code, and it took me so long to figure out that the first line was not the problem you were referring to, that I did not see the logic fault until I read @Hosch250's comment
@rolfl It's technically all one line... but uh okay ;)
Why am I even constructing a BigDecimal by first passing it through a BigInteger?!
^^^ that.
18:27
Some days... just NOPE.
BigDecimal oneMillion = BigDecimal.valueOf(1000000.0);
Sometimes, I do Code Review because it's fun.
2
Sometimes, I do Code Review because I score rep
2
Sometimes, I do Code Review because I am a mod, and I committed to it....
2
but,......
3
Sometimes, I do Code Review because looking at other people's code makes me think I code 'good'.
3
Sometimes I don't potato
@rolfl Same for me - except #3.
Sometimes, my brain just quits
One of my brothers made himself think he had a switch on his head.
18:31
@skiwi - did you see my Lambda-fu in that answer yet?
And he would turn his brain off when it was math time.
@Hosch250 Hi! (A bit late ...)
@rolfl Not yet
Monking! I'm still not at home yet @Hosch250, I'll have a look tonight or tomorrow
18:37
@Mat'sMug OK, thanks.
@rolfl you DO code "good" ;)
I was not fishing for compliments, but, thanks ;-)
Well, I'd say you code well, but I'm the very last person to comment on grammar :P
19:01
syntax is for the compiler to catch ;o
0
Q: Python greed roll

dabadabaI am doing the Python Koans to practise python a bit more and I got to the greed dice project. It is a very simple dice game that scores a set of up to five rolls. These are the rules: # A greed roll is scored as follows: # # * A set of three ones is 1000 points # # * A set of three numbers (ot...

thanks @200_success took me a little bit to see what was going on there.
Lunch time.
0
Q: Display submenus

Hosch250I am displaying menus and submenus in my WinRT app, and I think I am doing it wrong. I have though I was doing it wrong for a long time, so here it is for review. This is the section in my ViewModel. Probably needless to say, both Remove() and NewSelectionWS() have had large quantities of near...

19:18
1
Q: Display submenus

Hosch250I am displaying menus and submenus in my WinRT app, and I think I am doing it wrong. I have though I was doing it wrong for a long time, so here it is for review. This is the section in my ViewModel. Probably needless to say, both Remove() and NewSelectionWS() have had large quantities of near...

@Hosch250 - is and significantly different enough to warrant its own tag?
@rolfl is the Windows Store version of .
It doesn't have the full feature set.
It is a subset, right?
Yes.
So everything XAML doesn't apply.
While SO tags provide some guidance, they also need to have finer-grain tags.... they have >2K questions on the subset, and 20K q's on the main.
we have 20, and now 1.
19:30
OK, I see.
If you feel it isn't different enough, I can remove it.
I'm asking, not complaining
OK, actually, I need to remove anyway.
why?
is it not XAML?
Because it is , not .
If you think I should add that too.
I am not suggesting you do anything, yet.
19:32
is similar to , but is also a subset.
OK.
0
Q: Reacting to Boolean state in reactive ViewModels

DetroitproWhen this ViewModel loads we kick off the IsAuthenticatedCommand: If the result of IsAuthenticatedCommand is false we set the value of NeedsToLogin to true. If the result of IsAuthenticatedCommand is true we set the value of IsAuthenticated to true. There are subscriptions (btw: is that the co...

I am trying to understand what these tags mean, and how they would benefit us here.
These tags are specific to Windows Store apps - they do not apply to Win32 apps.
My app is a WS app, and cannot access a lot of the features Win32 WPF apps can.
In general, Code review, being 1-five-hundredth the size of SO, needs significantly fewer tags.
Yes.
19:34
Remember the major use of tags is to link experts with questions, not to classify questions.....
OK, I see.
I believe that, as the sizes are small, an expert in XAML and winrt-xaml will be the same people, on Code Review.
Probably.
But there are differences.
by tagging it as winrt-xaml, you will not get the visibility of the experts...
I see.
19:36
so, you tagged it with both....
which makes me think they are really appealing to the same reviewers.
That was an accident - I meant to tag it windows-runtime.
But I think you are right.
Having said all that, there are reasons to start new tags... I am not convinced that we are at that point.
OK.
Do you know how to tag code as CS or XAML?
I can't remember the script.
Something like <!-- lang: cs -->
Got it.
<!-- language-all: lang-cs -->
It depends on the availability, the lit is here:
141
A: What is syntax highlighting and how does it work?

ben is uǝq backwardsWhat is syntax highlighting? Syntax highlighting allows code in posts to be highlighted based on the language it's written in, to make it easier to read. How does it work? Stack Exchange does not have its own syntax highlighting engine. It uses Google Code Prettify. Therefore, any bugs and fea...

@rolfl thank you again for the advice. Things worked out.
19:49
I think I made a square wheel
3
@Mat'sMug Explain ;)
XAML is just the language
WinRT is a framework
XAML is the same whether you use WinRT or WPF
What controls are available depends on the framework
That would be like making and
I have no idea what I'm doing, that "parser" is a shame.... badly, badly, badly written, understands a fraction of the language, ...and no review has pointed it out yet... or is the wheel octogonal and "round enough" to just feel a little clunky but functional? I wonder...
It's round enough to roll....
20:04
Did you look at how the parsing is done in Roslyn?
(I haven't)
@RubberDuck I believe so. Should be OK till next XMas or so ;-)
Yeah... something like that.
@JeroenVannevel I'm starting to seriously consider it... but no, haven't. I totally played by ear.. worked for guitar, should work for parsing VBA, no?
2
Might want to reconsider that theory maybe?
lol
Naaah it's entirely the same thing
3
20:09
lol
-2
Q: My project euler 14 won't work

user4140import java.util.*; public class prob14 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub long n,c,j,M=0,W=1; for(n=500000l/3l;3*n<1000005;n++){ for(c=0,j=3*n;j!=1;c++){ if(j%2==0){ j=j/2; ...

@CaptainObvious die!
0
Q: split-string for R7RS

cevingA split-string function seems to be missing in R7RS. I came up with the following implementation today: (define (split-string delim str) (let ((add (lambda (current output) (cons (list->string (reverse current)) output)))) (let loop ((input (string->list str)) ...

20:24
@Jamal Where? Burn it with fire!
@RubberDuck It was for a PHP answer
I'm looking up to see if PHP is weakly typed. It might be justified if it is.
Even then
Pick some better variable names
4
It's weakly typed. I won't flame that answer I suppose. stackoverflow.com/a/2025361/3198973
20:37
@Mat'sMug I know how to parse, but I don't know VBA.
If you give some rules and what I need to handle, I can try to re-write those methods.
And what I need to turn it into, and the type it will come it (hopefully a string?), and general things like that.
20:51
@Hosch250 the input is a string[] where each index is a physical line of code. I think I corectly turned those into logical lines of code, but I'm losing the physical line numbers along the way (although I can "fix" that pretty easily). The output ought to be some SyntaxTreeNode, but I think that class may need to be molten and reforged.
00:00 - 21:0021:00 - 00:00

« first day (604 days earlier)      last day (3711 days later) »