2,496 reputation
11035
bio website github.com/marco-fiset
location Victoriaville, Canada
age 23
visits member for 2 years, 9 months
seen Jul 8 at 23:19

I am a passionate web/software developper with a great attention to details. I try to keep everything as simple as possible in my projects. You might see me reinventing the wheel from time to time, as I think it is the best way to learn.

Currently working on these side-projects:

  • Migraine (A set of projects related to Brainfuck, featuring a programming language of my own)
  • ExpenseTracker (A small web-based income/expense tracker to get my head around web development, progressive enhancement, and mainly javascript charting and MVC)
  • Flute (Fluent and extensible validation framework for PHP)

Jan
1
comment Ruby Shoes for non-trivial apps
@DarekNędza Actually no, I wrote a very simple app with Shoes, then moved on with web development.
Oct
24
comment Is it bad practice to call a controller action from a view that was rendered by another controller?
Yes that's what I am implying.
Sep
26
comment Ruby Shoes for non-trivial apps
I don't understand why this was put on hold, and the reason is not even correct : "Questions asking us to recommend a tool, library or favorite off-site resource". This is not what this question is asking. I was only looking for tips about using a particular library. If you read the question carefully, you would see that I'm not asking for alternatives at all. Anyway, I don't care, it was 1 year and a half ago.
Sep
3
comment How many days is it normal for a new hire programmer to take to get up to speed?
+1 for brain compilation
Apr
9
comment Software Design and architecture from Scratch
@Jean-PhilippeLeclerc It's a concept I perfectly understand now, but in the beginning I did not understand how it could be beneficial. It's like everything in programming, once you understand it, it becomes very simple.
Apr
8
comment Software Design and architecture from Scratch
@Jean-PhilippeLeclerc It might be too soon for the OP to read about dependency injection. It would confuse him rather than help him at this time.
Apr
2
comment How do I learn Python from zero to web development?
You should definitely not copy-paste the exercices because it will not help you learn at all. From the first chapter of the book : You must type each of these exercises in, manually. If you copy and paste, you might as well just not even do them. The point of these exercises is to train your hands, your brain, and your mind in how to read, write, and see code. If you copy-paste, you are cheating yourself out of the effectiveness of the lessons.
Mar
15
comment Error handling - Should a program fail on errors or silently ignore them
@Dokkat: Again, you don't make your program crash on purpose. A crash will happen if you forget to handle one of the exceptions thrown. That's it. It's your job to handle every possible exception and handle it if possible. Sometimes it's impossible to handle an error, like when you run out of memory of the stack overflows.
Mar
15
comment Error handling - Should a program fail on errors or silently ignore them
@Dokkat I think you misunderstood a part of my answer : If it is an unexpected error, then your program will crash. That means that you have to provide handlers for errors you know may happen. However, there may be exceptions that you did not think of that will occur anyway, thus make your program crash. You surely should try to handle every exceptions possible, but sometimes one can slip through. I did not mean making your program crash on purpose.
Mar
14
comment Error handling - Should a program fail on errors or silently ignore them
@whatsisname: true, but you should clearly document why you are ignoring it. Updated answer to consider your comment.
Mar
14
comment Error handling - Should a program fail on errors or silently ignore them
+1 Excellent answer
Mar
6
comment Implementing the Visitor Pattern for an Abstract Syntax Tree
I ended up implementing something similar and I am very satisfied with the result so far. Thanks!
Mar
6
comment Implementing the Visitor Pattern for an Abstract Syntax Tree
@jk.: Would you mind elaborating a bit?
Mar
6
comment Implementing the Visitor Pattern for an Abstract Syntax Tree
@PeteKirkham What do you mean it can fail? Do you mean some kind of StackOverflowException or that the concept won't scale well? For the moment I don't care about performance, I only do this for fun and learning.
Mar
6
comment Implementing the Visitor Pattern for an Abstract Syntax Tree
+1 for allow different Visitor implementations to be able to decide the order of visitation. Very good idea.
Mar
6
comment Implementing the Visitor Pattern for an Abstract Syntax Tree
Seems pretty obvious. I really feel like an idiot now :) Don't know why I did not think about recursion before asking. I guess I just brain farted really hard. In the case of Evaluation, I guess I just need to have the Visit method return a double reprensenting the value of the Node it just visited. +1
Feb
20
comment Changing behaviour of abstract class without modifying subclasses
@redhead Then if you can't edit any code, you can't change the behaviour. If the internals of a class are not doing what you want, you must crack it open and implement what you need. There is really no other way.
Feb
20
comment Changing behaviour of abstract class without modifying subclasses
Then what you can do is create another class yourself, which inherits the abstract class and provides the new behaviour by overriding the doMagic method, and then you can make your subclasses inherit from your new class, exactly like Matthew Flynn suggested. It seems like there is no other way.
Feb
20
comment Changing behaviour of abstract class without modifying subclasses
@redhead well if you can change the abstract class, why not change the subclasses also ?
Feb
19
comment Changing behaviour of abstract class without modifying subclasses
Would you mind sharing a code sample that illustrate your specific situation?