|
What language is that?
|
# ? Jan 5, 2015 22:14 |
|
|
# ? May 21, 2024 07:29 |
|
Looks like C#
|
# ? Jan 5, 2015 22:18 |
|
Yes, C#.
|
# ? Jan 5, 2015 22:23 |
If you don't give your variables meaningful names, then I'm not going to give you a meaningful name. So, welcome to the team, Mr. Blah
|
|
# ? Jan 5, 2015 23:14 |
|
I like how he had tabcontrols tc and tcc.
|
# ? Jan 6, 2015 01:32 |
|
NovemberMike posted:I like how he had tabcontrols tc and tcc. Reminds me of some of the naming conventions in LaTeX. If you want the different sizes of larger parentheses the sequence is (in increasing size): "\big(" "\Big(" "\bigg(" "\Bigg(". "\quad" is a large space, but "\qquad" is a bigger space. I think there's more but those are the two I can remember off the top of my head.
|
# ? Jan 6, 2015 02:05 |
|
HappyHippo posted:Reminds me of some of the naming conventions in LaTeX. If you want the different sizes of larger parentheses the sequence is (in increasing size): "\big(" "\Big(" "\bigg(" "\Bigg(". "\quad" is a large space, but "\qquad" is a bigger space. I think there's more but those are the two I can remember off the top of my head. It's too bad LaTeX isn't really a programming language since it would definitely qualify as a horror in many regards.
|
# ? Jan 6, 2015 02:19 |
|
ErIog posted:It's too bad LaTeX isn't really a programming language since it would definitely qualify as a horror in many regards. Its Turing Complete which is a bigger horror.
|
# ? Jan 6, 2015 02:35 |
|
apseudonym posted:It's Turing Complete which is a bigger horror. What isn't, nowadays? Van Kraken fucked around with this message at 02:41 on Jan 6, 2015 |
# ? Jan 6, 2015 02:37 |
|
This is how you fix a rogue break tag appearing in some data.code:
|
# ? Jan 6, 2015 04:12 |
|
flare posted:This is how you fix a rogue break tag appearing in some data. ... and it still doesn't cover "<br />" or "<BR />". What's that for a template engine or wysiwyg editor?
|
# ? Jan 6, 2015 04:42 |
|
apseudonym posted:Its Turing Complete which is a bigger horror. You can make a Turing complete machine with a single opcode. Subtract and branch if less than zero is a popular one, I think someone even made a (simplified) C compiler for it.
|
# ? Jan 6, 2015 04:46 |
|
This term I'm TAing an entry level, online course in Data Structures. Which for some god forsaken reason is done in C. This is going to be a great source of ridiculous, colorful, beautiful memory and pointer bugs, isn't it?
|
# ? Jan 6, 2015 04:57 |
|
Knyteguy posted:... and it still doesn't cover "<br />" or "<BR />". Neither. It's an angular controller printing some text and that's data coming from the API.
|
# ? Jan 6, 2015 05:17 |
|
flare posted:This is how you fix a rogue break tag appearing in some data. Shouldn't it just be something like: code:
|
# ? Jan 6, 2015 05:35 |
|
Looks like JavaScript.
|
# ? Jan 6, 2015 05:37 |
|
Evil_Greven posted:Shouldn't it just be something like: JavaScript code:
|
# ? Jan 6, 2015 05:58 |
|
I'm sure I have seen this function in my favourite horror, CONTENTdm.
|
# ? Jan 6, 2015 06:13 |
|
Sedro posted:
HTML code:
|
# ? Jan 6, 2015 07:17 |
|
s/<[^>]*>//g
|
# ? Jan 6, 2015 07:21 |
|
How do I parse HTML with regular expressions?
|
# ? Jan 6, 2015 07:34 |
|
Scaramouche posted:I had a group project in an after hours VB6 class (yes I'm old) I was taking. We had to make a hotel booking system. I said I'd do the forms (interface, button layout, etc.), another guy said he'd hook up the forms to the database, and the one we'd already identified as the dead weight said would do the 'graphics'. So fast forward 6 weeks, database guy had hosed off completely (literally; no one ever saw him again), 'graphics' girl had given me one image which was a crude drawing of a hotel used for the startup image. However my lorem ipsum stuff on the forms was so convincing people thought the thing actually worked (obviously until you tried to make a new booking). We got the highest mark in the class. Weirdest part was the chinese guys who had somehow made a completely working version, but as a console command-line app. At college i started by doing an electronic engineering course but during the first year myself and a guy were good with computers so our in course work was too easy (introduction to computers) we were tasked with making a timetable management system for the college admin office, Running on a bbc B with the mouse rom added we did a nice system with desktop etc. got A++ for that module and they quickly advised me to drop enginerering (not a girls subject) and go for the computing course. Which back then i just did so backing up the stereotype.
|
# ? Jan 6, 2015 07:47 |
|
Jsor posted:This term I'm TAing an entry level, online course in Data Structures. Which for some god forsaken reason is done in C. I taught a similar course when I was in undergrad, the language doesn't matter because students will always find a way to gently caress this up hilariously regardless, but you're in for some fun.
|
# ? Jan 6, 2015 08:16 |
|
Jsor posted:This term I'm TAing an entry level, online course in Data Structures. Which for some god forsaken reason is done in C. Please keep us posted e: actually, will they be coming in with any prerequisite C/<programming language> unit at all? If not then that's going to be a painful introduction to data structures.
|
# ? Jan 6, 2015 09:24 |
|
I've done some teaching in physics, and we rarely ever have group projects, but when we do I've always tried to encourage people to narc on slacker team members. Staying quiet and dragging a useless teammate isn't doing any favors for anyone, least of all the person who isn't contributing; you're just avoiding a situation that you perceive as being slightly uncomfortable. It's cowardice. Stop being a little cowardly baby and tell your professor when someone is clearly falling behind and not pulling their weight.
|
# ? Jan 6, 2015 09:45 |
|
Jsor posted:This term I'm TAing an entry level, online course in Data Structures. Which for some god forsaken reason is done in C. Sounds like a good way to breed Real(TM) programmers and weed out the wannabes.
|
# ? Jan 6, 2015 10:21 |
|
Manslaughter posted:Surely you had some extracurricular you took part in? Might work better than you imagine. On the other hand, the interviewer could also reply with "I only play Call Of Duty" and then what?
|
# ? Jan 6, 2015 10:24 |
|
Wheany posted:How do I parse HTML with regular expressions? VERY CAREFULLY
|
# ? Jan 6, 2015 12:23 |
|
I'm glad people are still putting in a space between the <br and the />, because they don't want to give up Netscape 4 compatibility.
|
# ? Jan 6, 2015 12:53 |
|
sarehu posted:I'm glad people are still putting in a space between the <br and the />, because they don't want to give up Netscape 4 compatibility. Well, they're still doing xhtml.
|
# ? Jan 6, 2015 13:58 |
|
Jsor posted:This term I'm TAing an entry level, online course in Data Structures. Which for some god forsaken reason is done in C. Since it's an online course, probably. Frankly I don't get why they'd go with C over C++ (enjoy casting back and forth with void* and friends to make generic data structures - and I say this as a C guy), but a data structures course is about the last place you'd want to use a language that lacks value semantics or explicit memory allocation.
|
# ? Jan 6, 2015 14:54 |
|
It's really a question of whether it's a class to introduce people to the common CS data structures and how to use them, or whether it's a class on how to actually implement them. If it's the latter, then C totally makes sense. I'm not sure if that would be an entry-level class, although CS curricula are so terrible that it probably is. Also, the former class seems to be sadly uncommon.
|
# ? Jan 6, 2015 17:36 |
|
evensevenone posted:a class to introduce people to the common CS data structures and how to use them...former class seems to be sadly uncommon. I don't even...what do you want that isn't covered by an explanation of big-O behavior of various operations, which is taught in algorithms classes?
|
# ? Jan 6, 2015 17:59 |
|
ErIog posted:It's too bad LaTeX isn't really a programming language since it would definitely qualify as a horror in many regards. Seriously. I mean it's great in many ways, and it's very powerful, but man there are some dumb choices. Another good one: even though LaTeX has a standard convention for commands with arguments (the arguments are in { } braces following the command, eg "\frac{a}{b}") if you want to get an integral (or summation) sign with limits you need to use subscript and superscript. "\int" is the integral sign, "\int_a^b" is an integral from a to b. Why would you do that? It's not like it's taking the integral symbol and putting those superscripts/subscripts, the engine treats this as a special case. I always define my own sensible command so I can type "\intlimits{equation}{lower limit}{upper limit}" like it should have been in the first place.
|
# ? Jan 6, 2015 18:37 |
|
Skuto posted:I don't even...what do you want that isn't covered by an explanation of big-O behavior of various operations, which is taught in algorithms classes? Big-O was discussed more in a class called Discrete Structures (prerequisite to the above course), which was a CS adaptation of Discrete Mathematics.
|
# ? Jan 6, 2015 18:48 |
|
So you're saying you learnt data structures and algorithms, but no-one ever brought up the big-O behavior of those because that was something "mathematical" that was already discussed in a past course? Mind = Blown
|
# ? Jan 6, 2015 18:55 |
|
HappyHippo posted:Seriously. I mean it's great in many ways, and it's very powerful, but man there are some dumb choices. Another good one: even though LaTeX has a standard convention for commands with arguments (the arguments are in { } braces following the command, eg "\frac{a}{b}") if you want to get an integral (or summation) sign with limits you need to use subscript and superscript. "\int" is the integral sign, "\int_a^b" is an integral from a to b. Why would you do that? It's not like it's taking the integral symbol and putting those superscripts/subscripts, the engine treats this as a special case. I always define my own sensible command so I can type "\intlimits{equation}{lower limit}{upper limit}" like it should have been in the first place. Using superscripts/subscripts to denote upper/lower bounds on an integral feels intuitive to non-CS majors, a majority of LaTeX users, and there's literally no other reason to use a superscript/subscript on an integral sign. This might be a horror to someone who designs computer languages, but it's also a helpful feature for users. I don't know where to draw the line between "let's make this programming language as beautiful as possible" and "let's make something that's easy to use and produces nice output", but it seems like a lot of language decisions put these two ideas in conflict QuarkJets fucked around with this message at 19:34 on Jan 6, 2015 |
# ? Jan 6, 2015 19:31 |
|
Skuto posted:So you're saying you learnt data structures and algorithms, but no-one ever brought up the big-O behavior of those because that was something "mathematical" that was already discussed in a past course? There was only brief mention of time complexity for some data structures and algorithms. Perhaps justifiably so, as calculating time complexity was covered in Discrete Structures extensively, with a week or two devoted to that alone. By that point, students should have been able to figure it out on their own rather than just memorize it.
|
# ? Jan 6, 2015 19:38 |
|
qntm posted:VERY CAREFULLY I assume everyone here has seen http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags by this point...
|
# ? Jan 6, 2015 19:46 |
|
|
# ? May 21, 2024 07:29 |
|
HappyHippo posted:Seriously. I mean it's great in many ways, and it's very powerful, but man there are some dumb choices. Another good one: even though LaTeX has a standard convention for commands with arguments (the arguments are in { } braces following the command, eg "\frac{a}{b}") if you want to get an integral (or summation) sign with limits you need to use subscript and superscript. "\int" is the integral sign, "\int_a^b" is an integral from a to b. Why would you do that? It's not like it's taking the integral symbol and putting those superscripts/subscripts, the engine treats this as a special case. I always define my own sensible command so I can type "\intlimits{equation}{lower limit}{upper limit}" like it should have been in the first place. The "\int_a^b" notation is inherited from base TeX, while "\frac" is LaTeX specific. Also, "\int_a^b" is not actually a special case; in an inline formula, the limits will be typeset as sub/superscripts, it's only displayed formulas that are treated specially.
|
# ? Jan 6, 2015 20:26 |