|
gonadic io posted:i like haskell, i like f# I mean if you want to hate yourself and spend lots of time fighting the language and tools then scala might be good, but if you want to get a job and have the easiest time writing and maintaining code w/ ur coworkers then java or c# is what you want.
|
# ? Jul 21, 2015 14:13 |
|
|
# ? May 25, 2024 21:37 |
|
Ludwig van Halen posted:i'm gonna do what everyone suggested and use ASP.net MVC and incidentally the new Visual Studio came out today, so I'm gonna go ahead and download that. unnnnnhhhhggggg asp.net 5 is so pro
|
# ? Jul 21, 2015 14:15 |
|
my student dreamspark account is still open and vs15 is already on there
|
# ? Jul 21, 2015 14:16 |
|
if you can get a legit copy of pro that's cool, but vs community is very good if you cant.
|
# ? Jul 21, 2015 14:17 |
|
my company gave me an msdn subscription so i have vs pro. its def pro
|
# ? Jul 21, 2015 14:30 |
|
in a thing i was writing today at work, i created a temp directory and had a bunch of temp files in there, and then right before my program finished i wanted to delete the temp directory and everything inside it. so i wrote that last bit, and everything looked good, so i compiled and ran it as a test, but it said "fart.exe: permission denied: could not delete fart.exe" and then i went to look in the source code to see what could have gone wrong. turns out i recursively deleted the entire working directory instead of my temp directory, so i took out my entire project and all the source files
|
# ? Jul 21, 2015 14:32 |
|
lol
|
# ? Jul 21, 2015 14:34 |
|
Shaggar posted:unnnnnhhhhggggg asp.net 5 is so pro i tried asp.net 5 but its kind of not feature complete yet, so like you have to do some weird command line stuff to generate models except it didn't work. just started over in asp.net 4 and its ez pz
|
# ? Jul 21, 2015 14:36 |
|
fart simpson posted:in a thing i was writing today at work, i created a temp directory and had a bunch of temp files in there, and then right before my program finished i wanted to delete the temp directory and everything inside it. so i wrote that last bit, and everything looked good, so i compiled and ran it as a test, but it said "fart.exe: permission denied: could not delete fart.exe" and then i went to look in the source code to see what could have gone wrong. turns out i recursively deleted the entire working directory instead of my temp directory, so i took out my entire project and all the source files pwnt. next time use Path.GetTempFilename() also you can do something like C# code:
|
# ? Jul 21, 2015 14:41 |
|
lol finalizers at least suppress finalization when the dispose method gets called, otherwise you're paying the cost even when you do clean it up right
|
# ? Jul 21, 2015 15:04 |
|
yeah you should probably add a check to see if its already disposed. or just get rid of the finalizer and do it right
|
# ? Jul 21, 2015 15:06 |
|
implementing disposable and wrapping code in a using block is ftw
|
# ? Jul 21, 2015 15:09 |
|
Shaggar posted:pwnt. next time use Path.GetTempFilename()
|
# ? Jul 21, 2015 16:08 |
|
msdn even tells you how to do it rightcode:
|
# ? Jul 21, 2015 16:53 |
|
ask me about getting paid to have stockholm syndrome with perl
|
# ? Jul 21, 2015 17:33 |
|
Share Bear posted:ask me about getting paid to have stockholm syndrome with perl Do you also work at Amazon?
|
# ? Jul 21, 2015 18:20 |
|
Symbolic Butt posted:in other words it's still the best thing there is for c++ tbh if you can avoid using c++, you probably should. rip if you're working in a domain where c++ is genuinely the only sensible choice
|
# ? Jul 21, 2015 19:20 |
|
Janitor Prime posted:Do you also work at Amazon? no but due to a legacy of jobs where stuff was written in perl, i have the most experience with it and can usually get something plausibly working in it very fast compared to any other real programming language which pays
|
# ? Jul 21, 2015 19:52 |
|
Soricidus posted:tbh if you can avoid using c++, you probably should. rip if you're working in a domain where c++ is genuinely the only sensible choice in what domain is C++ a better choice than C?
|
# ? Jul 21, 2015 20:04 |
|
learning lua atm since python's neural net libraries are all kinda bad for the work i wanna do. opinions so far
|
# ? Jul 21, 2015 20:09 |
|
coffeetable posted:
hm
|
# ? Jul 21, 2015 20:11 |
|
http://lua-users.org/lists/lua-l/2005-08/msg00139.html is the best argument i've seen in defence of global-by-default. not convinced it's worth it, but can see the merit quote:Proper lexical scoping really requires that you have a choice e: i've now discovered you can demand explicit global/local declarations via a specific module. yay coffeetable fucked around with this message at 18:50 on Jul 22, 2015 |
# ? Jul 21, 2015 20:17 |
|
Ludwig van Halen posted:in what domain is C++ a better choice than C? taking advantage of a limited subset of c++ features can be ok in cases where you want to write c but your code can benefit from, say, exceptions, raii, and an ok implementation of resizable arrays that you don't have to roll yourself with realloc(3)
|
# ? Jul 21, 2015 21:25 |
|
coffeetable posted:learning lua atm since python's neural net libraries are all kinda bad for the work i wanna do. opinions so far the ease through which you can call lua code from C or C code from lua is the main draw of the language for me
|
# ? Jul 21, 2015 21:29 |
|
coffeetable posted:http://lua-users.org/lists/lua-l/2005-08/msg00139.html it's still terrible sorry the solution is never to implicitly create a variable just because someone tried to assign to a name that didn't exist already. just make them type "var" or "my" or "let" or something when introducing a new variable. as a bonus it will also help their code fail faster when they mistype something. but if you're absolutely determined to have mistyped variable names clobber a namespace, it should be a local one not the global one to minimise the distance possible between the error and the place where the code breaks. Soricidus fucked around with this message at 21:32 on Jul 21, 2015 |
# ? Jul 21, 2015 21:29 |
|
"hmm, we gave mutation and creation the same syntax and now we can get mixed up between the two. What could possibly be the solution to this problem??"
|
# ? Jul 21, 2015 21:39 |
|
Ludwig van Halen posted:in what domain is C++ a better choice than C? all of them there's a reason that every single project that uses c ends up reimplementing bits and pieces of c++ poorly
|
# ? Jul 21, 2015 21:52 |
|
fart simpson posted:in a thing i was writing today at work, i created a temp directory and had a bunch of temp files in there, and then right before my program finished i wanted to delete the temp directory and everything inside it. so i wrote that last bit, and everything looked good, so i compiled and ran it as a test, but it said "fart.exe: permission denied: could not delete fart.exe" and then i went to look in the source code to see what could have gone wrong. turns out i recursively deleted the entire working directory instead of my temp directory, so i took out my entire project and all the source files We've all done this.
|
# ? Jul 21, 2015 21:52 |
|
coffeetable posted:learning lua atm since python's neural net libraries are all kinda bad for the work i wanna do. im curious what python didn't want to do for you, especially if youve tried any of the new fancy nnet libraries that people are writing these days. i like torch a lot but lua makes me very angry sometimes.
|
# ? Jul 21, 2015 21:53 |
|
Ludwig van Halen posted:in what domain is C++ a better choice than C? everything except embedded
|
# ? Jul 21, 2015 22:02 |
|
b0lt posted:there's a reason that every single project that uses c ends up reimplementing bits and pieces of c++ poorly well yeah but c++ also implements them poorly so the main advantage of using it is that you can blame someone else for its failings
|
# ? Jul 21, 2015 22:15 |
|
Nippashish posted:im curious what python didn't want to do for you, especially if youve tried any of the new fancy nnet libraries that people are writing these days. also keras (which i've been using up until now) has rnn implementations that expect fixed length input. so to carry on working w/ it i'd have to write my own layers + optimizers anyway, so may as well learn lua at the same time
|
# ? Jul 21, 2015 22:17 |
ok
|
|
# ? Jul 21, 2015 22:40 |
|
fritz posted:everything except embedded so basically every other domain where c# is the better choice
|
# ? Jul 21, 2015 22:42 |
|
Shaggar posted:pwnt. next time use Path.GetTempFilename() or you can do this and let windows do all the work code:
|
# ? Jul 21, 2015 22:45 |
|
coffeetable posted:i'm experimenting with some ideas for training character-level rnns/lstms/grns/etc and the theano compilation step takes long enough that i've found myself avoiding re-compiling whenever i can oh cool. keras is one of the "fancy new nnet libraries" I was thinking of. have you figured out a nice way to make rnns in torch? ive tried like 4 or 5 different ways and all of them end up making some part of the process really annoying. are you writing your own or are you using andrej's code like everyone else?
|
# ? Jul 21, 2015 23:11 |
IMO C++ is nice because it is very versatile and gives you a lot of freedom and doesn't restrict you to one style (like how C# and Java restrict you to OOP). Sure you can use this freedom to create monstrosities, but sometimes the freedom is pretty nice. Also RAII rocks
|
|
# ? Jul 22, 2015 00:21 |
|
VikingofRock posted:IMO C++ is nice because it is very versatile and gives you a lot of freedom and doesn't restrict you to one style (like how C# and Java restrict you to OOP). Sure you can use this freedom to create monstrosities, but sometimes the freedom is pretty nice. freedom is great as long as you don't have to deal with what other people are doing with it
|
# ? Jul 22, 2015 00:35 |
|
ConanTheLibrarian posted:what is the really bad stuff about python: broken threading broken garbage collection hideous C api pypi
|
# ? Jul 22, 2015 00:50 |
|
|
# ? May 25, 2024 21:37 |
|
ducks
|
# ? Jul 22, 2015 00:52 |