AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Netlogo if else9/19/2023 ![]() ![]() No, I don't know why they did that either. * "Computer Organization" (basically, low level stuff for people not on the hardware track) uses x86 assembly, by way of DEBUG.EXE on 16-bit DOS on 32-bit Windows on 64-bit Windows. OTOH, this was probably the most useful course of my entire four years at that place, because it taught me how to Actually Get Shit Done, which is a rather important skill in this business. As you might imagine, this is where a lot of students drop out. The class structure consists of two lectures introducing a new data structure that you have probably never seen before (I specifically remember "leftist heaps," which are just extremely unbalanced heaps that you can merge quickly), an assignment where you're supposed to implement that data structure (as in, you submit code, they compile it, and it has to produce exact byte-for-byte correct output over a range of test inputs), and a lab (where you do a more basic version of the assignment and can ask TAs for help). * Data Structures (effectively CS 2) uses C++. I think it previously used C++ at some point? I have no experience with this as I placed out of it. ![]() * CS 1 (the introductory course for freshmen) uses Python. Since we're apparently posting "here's what my college does," well, here's what I experienced several years ago: So if you were still teaching ML then you've actually got a clear route to the future. And these types seem awfully recalcitrant for a language which inherits from C, but once you realise this is an over-grown Hindley–Milner type system it becomes much clearer why 5 isn't true and "x" isn't an array and so on. So people who learned when I did are like "Wait a minute." because oh yeah, these aren't statements which end in a semi-colon, these are expressions with a semi-colon at the end to turn them into statements. One really obviously missed opportunity is that while Rust looks superficially like a semi-colon language, like C or Java, in many ways it's an ML wearing a trench coat. Modern CS students can explicitly choose to learn Haskell, and I think there are still opportunities that might lead to Lisp and Prolog in the optional courses somewhere, but it's not unusual to get a fresh graduate whose only practical programming language is Java, which is a bit disappointing. ![]() They are shown C during their mandatory first year classes, because Java doesn't have allocation and that's important, but it's not as though first year courses are fail-one drop out, so who cares if you do OK everywhere else? Outside of CS, the first language is usually Python, although in some disciplines it's R instead (and in Electronics specifically it's C).īecause Java is, if nothing else, broadly useful, today's CS students needn't learn any other language well, which is especially ironic when the university hires them, especially as interns or on short fixed terms, and obviously we aren't a Java shop, so they need to learn a new language. Medicine is already absolutely up to their necks in requirements, as well as teaching a longer schedule and presumably there just isn't room to teach them programming. Programming is obviously far more necessary across numerate disciplines than it once was, and so almost all the sort of courses where decent maths is a pre-requisite for year one now teach programming, at least optionally, except for one. This functionality was added in NetLogo 6.1.The university I work for (and where I studied many years ago because it seems I settled down in this city) used to teach an ML (Standard ML of New Jersey) as a first language, and then teach a Lisp, and some C I think - this is for Computer Scientists which was the degree I took.īy the time I left for industry the first time it was teaching Java as a first language and I believe that continues today. When using more than one boolean you must surround the whole ifelse primitive and its blocks in parentheses. The reporters may report a different value for different agents, so some agents may run different command blocks. the left half of the world turns red and If a boolean reports a value other than true or false a runtime error will occur. When using only one boolean you do not need to surround the entire ifelse primitive and its blocks in parentheses. If no boolean reports true, runs elsecommands or does nothing if elsecommands is not given. ![]() ) 6.1įor the first boolean that reports true, runs the commands that follow. Ifelse 1.0 ifelse boolean1 (ifelse boolean1 boolean2. ![]()
0 Comments
Read More
Leave a Reply. |