|
one thing i do know is that students hate learning obvious toys. this is the one angle that i actually like javascript from; sit them down in front of the ie11 they have installed anyway, have them go to the university homepage, hit f12, go to the console, and make some elements dance around with some tiny snippets. calculate the area of the logo. proceed to write a function or two. that kind of stuff javascript is sort of poo poo though so i am not about to walk into the swamp of department politics to trial it ;q
|
# ? Mar 10, 2014 23:41 |
|
|
# ? Jun 12, 2024 14:58 |
|
when I was a kid I messed around with logo and some flowchart-based logic thing with actual programming I started with excel macro recorder which was my gateway into learning VBA. Then at uni I did maths + compsci and on the cs side of things they taught Java and Haskell in first year.
|
# ? Mar 11, 2014 00:40 |
|
when i was 10 i wanted to learn C so i could write cool games like exile: escape from the pit. i got a book about C and read it but couldn't figure out how to get a C compiler. i bought a cd on ebay that i thought included a c compiler, but it turned out to be a collection of delphi & pascal code snippets
|
# ? Mar 11, 2014 00:48 |
|
MeramJert posted:when i was 10 i wanted to learn C so i could write cool games like exile: escape from the pit. i got a book about C and read it but couldn't figure out how to get a C compiler. i bought a cd on ebay that i thought included a c compiler, but it turned out to be a collection of delphi & pascal code snippets this is how you learn to program imo
|
# ? Mar 11, 2014 00:51 |
|
when i was idk 12 some friends of mine wanted to make games, so they got a big C++ book by bjarne stroustup from the library, and i think it scared them off programming for good good for them
|
# ? Mar 11, 2014 00:56 |
|
lol if you learned to program
|
# ? Mar 11, 2014 01:17 |
|
i learned to pogrom in the ukraine,
|
# ? Mar 11, 2014 01:35 |
|
kraftwerk singles posted:oh you hate that kids in school and a lot more people in general will be able to play with embedded devices? why not have an IDE that compiles your bespoke javascript/LOGO/Whatever directly into microcontroller code. maybe include an advanced mode that transpiles that code into C, so beginners can see how blink(Pin1, 250); looks like in "computer language". like the Arduino IDE... but with javascript. suppose that, internet.connect(ip); would initialise the device and open a connection at the ip address. what is the difference if that were really just a C macro vs. intepreted javascript source code from the point of view of: a) a student and b) the device? a) no difference, b) you can do more stuff because it executes quicker it's horrible because you won't be able to do much more then blink 8 LED's before the javascript interpreter melts the solder. kraftwerk singles posted:javascript might not be the best but you really think basic is better? as a kid who was first taught BASIC in junior highschool, then Visual Basic in senior highschool; Yes.
|
# ? Mar 11, 2014 02:56 |
|
i learned trash eighty basic but at home my parents only had a pc so my first language that i could really use was C. i dont recommend it
|
# ? Mar 11, 2014 03:10 |
|
Mr Dog posted:gotta love c# enums. "Hey let's have a strongly-typed enum facility in our language that actually isn't strongly typed at all fart fart fart fart" AlsoD posted:in Haskell enums are implemented in terms of ints and functions to convert back and forth between the enum and the int all enum types are "bad" and inelegant. they make no sense as a core feature of a type system. but they help with a problem set that every programmer encounters on a regular basis working, non-hacky* enums are a sign of a language that cares more about practical use than hypothetical elegance * (p-langs that give us hashtables from string to int need not apply)
|
# ? Mar 11, 2014 03:14 |
|
i do my enums with #define
|
# ? Mar 11, 2014 03:16 |
|
Notorious b.s.d. posted:all enum types are "bad" and inelegant. they make no sense as a core feature of a type system. but they help with a problem set that every programmer encounters on a regular basis Why? How else would you store a month, for instance?
|
# ? Mar 11, 2014 03:16 |
|
Mr Dog posted:Why? How else would you store a month, for instance? if you implement months as a dumb enum you should be shot i18n 101 itt
|
# ? Mar 11, 2014 03:18 |
|
seriously though there are a ton of great use cases for enums but they don't really make sense as a fundamental type including enums is a Good Sign in a language, someone somewhere actually tried to use it
|
# ? Mar 11, 2014 03:19 |
|
But but my garden of pure ideology...
|
# ? Mar 11, 2014 03:25 |
|
elegance isn't desirable as a goal for a programming language design. it doesn't improve usability. consistency, safety, simplicity, and expressiveness are much more important. a language that strikes a good balance between those factors is elegant. what people call elegance is often novelty, or simplicity taken to an extreme. concept languages
|
# ? Mar 11, 2014 03:33 |
|
Notorious b.s.d. posted:if you implement months as a dumb enum you should be shot unless your product is explicitly limited in its geographic scope, e.g. a govt website. i had to convince my boss that we didn't need a database table of US states.
|
# ? Mar 11, 2014 03:35 |
|
Mr Dog posted:Why? How else would you store a month, for instance? however JodaTime wants. date/time code is just as easy to screw up as crypto. don't write a datetime
|
# ? Mar 11, 2014 03:41 |
|
Tokamak posted:why not have an IDE that compiles your bespoke javascript/LOGO/Whatever directly into microcontroller code. maybe include an advanced mode that transpiles that code into C, so beginners can see how blink(Pin1, 250); looks like in "computer language". like the Arduino IDE... but with javascript. maybe i want to help ugandan kids with AIDS program embeddable devices in fay or clojurescript and get mad hn swagger
|
# ? Mar 11, 2014 04:06 |
|
kraftwerk singles posted:maybe i want to help ugandan kids with AIDS program embeddable devices in fay or clojurescript and get mad hn swagger don't encourage me to drink myself to death.
|
# ? Mar 11, 2014 05:17 |
|
kraftwerk singles posted:maybe i want to help ugandan kids with AIDS program embeddable devices in fay or clojurescript and get mad hn swagger are you sam hyde
|
# ? Mar 11, 2014 05:19 |
|
i wrote two sonic adventure trivia-based rpgs in mirc script and ran the bots for them on an irc server you could get to from the original dc game when i was 14 i learned a lot about terrible languages and software back then, but you know, mirc was surprisingly stable, i think i had to reboot windows more frequently than the two or three bots i ran crashed i was crashing programs on a c64 when i was like two tho, i don't remember when i learned basic because 10 PRINT "HELLO" 20 GOTO 10 and "lO "$",8" seem like my native language my first memory of actually doing something programming-related was patching a broken piece of software when i was about 9 i think? i was using bbses when i was six tho, and i recall being at bbs meet-ups earlier than that
|
# ? Mar 11, 2014 05:37 |
|
Dessert Rose posted:i wrote two sonic adventure trivia-based rpgs in mirc script and ran the bots for them on an irc server you could get to from the original dc game when i was 14 https://www.youtube.com/watch?v=43GChXc6RVY
|
# ? Mar 11, 2014 05:40 |
|
Kevin Mitnick P.E. posted:elegance isn't desirable as a goal for a programming language design. it doesn't improve usability. consistency, safety, simplicity, and expressiveness are much more important. a language that strikes a good balance between those factors is elegant. what people call elegance is often novelty, or simplicity taken to an extreme. concept languages brainfuck is elegant in a way
|
# ? Mar 11, 2014 05:40 |
|
dont post my childhood
|
# ? Mar 11, 2014 05:40 |
|
code:
|
# ? Mar 11, 2014 05:49 |
|
my "Programming Language Concepts" professor is teaching us agda, a functional language even more useless than the haskell it's built on. on a recent student eval form he actually asked "should this class switch to haskell in the future?" duck.exe fucked around with this message at 07:39 on Mar 11, 2014 |
# ? Mar 11, 2014 07:14 |
|
i assume you mean "useless" instead of "unless", in which case i will say that haskell is cool & useful
|
# ? Mar 11, 2014 07:35 |
|
DukeDuke posted:my "Programming Language Concepts" professor is teaching us agda, a functional language even more useless than the haskell it's built on. on a recent student eval form he actually asked "should this class switch to haskell in the future?" sounds like a pretty cool professor
|
# ? Mar 11, 2014 07:52 |
|
DukeDuke posted:my "Programming Language Concepts" professor is teaching us agda, a functional language even more useless than the haskell it's built on. on a recent student eval form he actually asked "should this class switch to haskell in the future?" it's a "Programming Language Concepts" class. how much use the language gets in ~the real world~ is irrelevant, what matters is its ability to demonstrate language features. and if you want to demonstrate the power of dependent types, Agda is one of only a handful of possible options. having said that im surprised the class works in only one language, because itd be as educational to look at bad language design as good language design. coffeetable fucked around with this message at 10:43 on Mar 11, 2014 |
# ? Mar 11, 2014 10:09 |
|
tcoffeetable posted:it's a "Programming Language Concepts" class. ho. most colleges already teach c tho
|
# ? Mar 11, 2014 14:41 |
|
Dessert Rose posted:brainfuck is elegant in a way so's your face
|
# ? Mar 11, 2014 15:14 |
|
coffeetable posted:having said that im surprised the class works in only one language, because itd be as educational to look at bad language design as good language design. i really dont think they should teach php in colleges
|
# ? Mar 11, 2014 15:16 |
|
code:
code:
__ZThn760_N6wxGrid31GetSizeAvailableForScrollTargetERK6wxSize gently caress __ZThn792_N6wxGrid31GetSizeAvailableForScrollTargetERK6wxSize youuu
|
# ? Mar 11, 2014 15:39 |
|
hackbunny posted:
dont use wxwidgets
|
# ? Mar 11, 2014 15:47 |
|
Notorious b.s.d. posted:seriously though there are a ton of great use cases for enums but they don't really make sense as a fundamental type enums are just a sum type with only nullary constructors, all the languages with enums are just _so close_ to getting it
|
# ? Mar 11, 2014 16:53 |
|
my favorite thing to do in java is shove a shitload of code into enums, its like having a list of functions
|
# ? Mar 11, 2014 16:55 |
|
C# enums accept arbitrary ints for versioning reasons. Sum types force you to handle all cases at compile time, enums (in C# anyway) explicitly don't. As long as you have a default: in your case statement then you're fine.
|
# ? Mar 11, 2014 17:57 |
|
Malcolm XML posted:dont use wxwidgets not my fault, was just doing an OSX build of Password Safe issue went away, it was probably due to compiling wxWidgets with gcc and the application with llvm, which possibly resulted in mismatched object layouts between app and library, which conceivably could result in different this-adjusting thunks (whose names inexplicably all demangle to the same string regardless of adjustment offset. cmon even Microsoft got it right)
|
# ? Mar 11, 2014 18:35 |
|
|
# ? Jun 12, 2024 14:58 |
|
hackbunny posted:Microsoft got it right never surprising
|
# ? Mar 11, 2014 18:36 |