« first day (423 days earlier)      last day (2780 days later) » 

07:30
@LuisMendo, have you considered a "Compare" function? Doesn't exist in MATLAB, but it could be useful. -Zs for comparing two numbers is long (are there shorter solutions?). What about C (or something else) for comparing two numbers, giving -1, 0, 1 out?
 
3 hours later…
10:16
@StewieGriffin Well, I don't think it's used so often to deserve a specific function, let alone a single-char one (currently there are only two one-char names free)
I couldn't find of a shorter way to that answer. That would have been my approach too
Equivalently: ,iYm]-ZS, where ,] is a "do-twice" loop
10:57
Kudos for those who made the MATL compiler. I was surprised to see that 4Y29YS is correctly interpreted as 4Y2 9YS - I initially already added the space because 'surely' 29 would be interpreted as a numeric literal, but I was happy to be proven wrong.
@LuisMendo Z> and Z< are free though :) But perhaps a bit of a waste to reserve a slot for effectively only 1 byte saved. I'm do wonder what will take the place of C and ; though; especially the later could introduce a whole new syntax - the future of MATL is exciting!
11:23
@Sanchises :-D Yes, ; seems to deserve something special. I don't plan on big changes though; I'll probably just keep adding normal functions that turn out to be useful and mising
No anonymous functions in MATL then? :-D
@Sanchises You should see some of the intimidatingly long regex's that the parser has :-D
@Sanchises Nah. In Matlab I tend to avoid functions beyond reason, and I translated that to MATL
Hahaha
@LuisMendo ...why?! I used to make all my MATLAB scripts function-only, until they finally introduced named functions in normal scripts.
You should've written your MATL parser in Retina, given the huge regex density :)
11:31
Because I like to have all variables in the workspace, ready to be looked into. Functions hide them, and that makes debugging harder
By "debugging" I mean when the program erros I like to be able to see everything
True. I hate having all my variables in the workspace, because I am too lazy to write descriptive variable names.
Yes, that's the problem with my (probably not recommendable at all) approach: variable names
And the debug environment shows the local workspace just fine, imho.
The thing is, I started with Matlab version 4, which didn't have a debugger at all IIRC. And I got used to having all variables at sight
Man, it didn't even have ND-arrays or cells. Was it really Matlab? :-)
Yeah I started out with 2011b (the year I started my bachelors mechanical engineering), so I'm used to all the new stuff.
(meaning you learnt MATLAB around the time I learnt to walk, I suppose...)
11:44
:-) I started with Matlab in 1996
12:44
Hmmm I suppose I could walk and talk by then, but I didn't start programming until I was... Twelve? We had a copy of Visual Basic, I got to play with the source code of a cellular automaton my dad made, using the MSDN manual sparingly due to our 300MB monthly data limit. Good old times.
 
2 hours later…
14:43
I started with Spectrum BASIC, when a friend's older brother lent me his Spectrum 48k for a weekend. Good times indeed!

« first day (423 days earlier)      last day (2780 days later) »