|
i've never set a global variable except for one time during an interview when they asked about something and i just diarhea'd out 'global variable' and then was like "WAHAT"
|
# ? May 16, 2015 20:34 |
|
|
# ? May 10, 2024 04:40 |
|
MrMoo posted:Standard fare with commodity man-month managed projects, despite the trillions of dollars burnt this way there does not appear to be any effort to reduce the damage. I guess Agile was supposed to be the answer? p much yeah.
|
# ? May 16, 2015 20:35 |
|
Luigi Thirty posted:is a mess of duplicated code, and manipulates global variables when it can be refactored not to saaaaaaame
|
# ? May 16, 2015 20:57 |
|
class/instance/module-level mutable variables that could've been scoped to only be immutable function parameters are basically the same as global variables and i see this everywhere
|
# ? May 16, 2015 22:33 |
|
dear terrible programmer thread, please try to talk me out of designing my own data structure or at least point me to where somebody has already made it the general idea is to combine list-compressing (i.e. "aaaaccb" to "4a2c1b") with the Yale encoding of sparse matrices this way when you have an array that has a LOT of repeated entries (the original inspiration was a minecraft world which has a few layers of rock, then dirt, then air but they're not uniform and need to be easily mutable) you compress them together and record the index where the repeated element begins: for example ____ ____ _... .... would be encoded as [(0,'_'), (9, '.')] Yale however caches a bunch of information to avoid having to constantly traverse the list though, for example rows 0, 1, and 2 all start in the 0th element of the list of pairs (i.e. start with a '_') and row 3 starts with a '.' so the row-start array would be [0,0,0,1]. Yale also caches the height of each element but I'm not sure if that'd be useful.
|
# ? May 16, 2015 22:53 |
|
what do you actually want to do with this data structure? because if it's just storage, you may as well use an image compression library. if im remembering my web poo poo right, png's the one for images with large flat areas
|
# ? May 16, 2015 23:35 |
|
if it's for storage but you also want to index into sub-arrays, HDF5's approach is to chunk the array and then store the gzip'd chunks in a b-tree.
|
# ? May 16, 2015 23:37 |
|
I was playing minecraft and I was wondering how I'd implement that and it seemed like a decent project to learn f# in because it's inherently mutable plus it needs to generalise to 3d. I figured I'd try to implement morton ordering and maybe a visualiser after this
|
# ? May 17, 2015 00:05 |
|
gonadic io posted:dear terrible programmer thread, please try to talk me out of designing my own data structure or at least point me to where somebody has already made it helllo i only read the first line of your post. but from now on i'd like to say that anyone using tr own data strcutre must refer to it as 'my bespoke data structure'..
|
# ? May 17, 2015 01:26 |
|
gonadic io posted:plus it needs to generalise to 3d. I figured I'd try to implement morton ordering and maybe a visualiser after this http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.19.7508&rep=rep1&type=pdf looks like it uses morton ordering and run-length encoding im penalising it for using a 3d barchart though coffeetable fucked around with this message at 13:15 on May 17, 2015 |
# ? May 17, 2015 13:11 |
|
FamDav posted:I'm vibing on elm. i was all excited by elm and i started trying it out. elm-html seemed like a great way to write html, so i did some demo stuff and it turned out that you're still putting together freaking html basically it made me miss XAML. also, the Elm Architecture paradigm seems a little.. undercooked? it's impressive, but you run into stuff like.. why isn't there a built in way to have 'child' components, the state of which you update whenever you update your own? & the conceptual issue of, is a foldp over your entire set of inputs really, really a sane thing to do? really? all the buttons on a page and everything someone could press or click or drag or.. that should *really* be a single type/handler? r e a l l y ?
|
# ? May 17, 2015 15:06 |
|
https://kore.io/ has anyone posted this yet?
|
# ? May 17, 2015 19:03 |
|
Awia posted:https://kore.io/ as a c programmer this is sort of neat, but along the same lines as https://github.com/cioc/functionalC like, why the gently caress would you ever use this in production. if you need bare metal performance use rust or at least c++
|
# ? May 17, 2015 19:13 |
|
because unlike c++ and rust, c is a glorious beautiful language
|
# ? May 17, 2015 19:28 |
|
oh, does anyone know a good c++ programming book from a c# dev perspective?
|
# ? May 17, 2015 19:37 |
|
|
# ? May 17, 2015 20:01 |
|
I want an O'Reilly Rust book that's just got a pencil drawing of a dumpster fire on the front
|
# ? May 17, 2015 20:15 |
|
Luigi Thirty posted:I want an O'Reilly Rust book that's just got a pencil drawing of a dumpster fire on the front dumpster fires aren't animals
|
# ? May 18, 2015 03:47 |
|
uncurable mlady posted:dumpster fires aren't animals there could be an animal inside the dumpster
|
# ? May 18, 2015 05:27 |
|
Luigi Thirty posted:there could be an animal inside the dumpster it's you!
|
# ? May 18, 2015 06:01 |
|
Luigi Thirty posted:I want an O'Reilly Rust book that's just got a pencil drawing of a dumpster fire on the front is rust that bad? it can't be worse than go, can it?
|
# ? May 18, 2015 07:04 |
|
groverhaus
|
# ? May 18, 2015 08:21 |
|
eschaton posted:is rust that bad? it can't be worse than go, can it? i think rust is a lot better than go
|
# ? May 18, 2015 08:30 |
|
Snapchat A Titty posted:groverhaus the Go book would have groverhouse on the front
|
# ? May 18, 2015 12:33 |
|
the gopherhouse
|
# ? May 18, 2015 14:28 |
|
hi im looking for Anita Goforadump
|
# ? May 18, 2015 14:39 |
|
i really wanna do a cool programming project for myself while im not working and out of uni, but im unimaginative
|
# ? May 18, 2015 21:56 |
|
Awia posted:i really wanna do a cool programming project for myself while im not working and out of uni, but im unimaginative ill start....the repo
|
# ? May 18, 2015 22:00 |
|
Valeyard posted:ill start....the repo can i start the wiki?
|
# ? May 18, 2015 22:04 |
|
Awia posted:can i start the wiki? great, we just need the ideas guy pleasurekevin and the project is all set
|
# ? May 18, 2015 22:05 |
|
right, im gonna shoot for the moon and do an os and literally get bored after making it show hello world
|
# ? May 18, 2015 22:18 |
|
BUT I'LL DO IT IN HASKELL
|
# ? May 18, 2015 22:18 |
|
Awia posted:BUT I'LL DO IT IN HASKELL A haskell os?? That does not sound very functional!
|
# ? May 18, 2015 23:08 |
|
It will definitely have no side-effects. Because it won't run.
|
# ? May 18, 2015 23:31 |
|
I wanted to invent a purely, purely functional programming language with lazy evaluation where introducing IO of any kind was specifically forbidden in the licence every program, regardless of content, would run instantly and return nothing
|
# ? May 19, 2015 00:15 |
|
i wrote a self-booting 16-bit command prompt in assembly a while ago it had two commands: reboot and ascii_goatse it ran in my PC emulator but when I tried to run it on a real pentium 90 it didn't work assembly is neat but i don't know why you'd chris sawyer yourself and write a bideo jame in it in 2015 Luigi Thirty fucked around with this message at 00:29 on May 19, 2015 |
# ? May 19, 2015 00:26 |
|
qntm posted:I wanted to invent a purely, purely functional programming language with lazy evaluation where introducing IO of any kind was specifically forbidden in the licence 0
|
# ? May 19, 2015 00:40 |
|
gonadic io posted:dear terrible programmer thread, please try to talk me out of designing my own data structure or at least point me to where somebody has already made it have you looked at sparse voxel octrees? i think that's the standard cool way to do this because it supports efficient raytracing
|
# ? May 19, 2015 05:29 |
|
Awia posted:i really wanna do a cool programming project for myself while im not working and out of uni, but im unimaginative 1) read a book on machine learning 2) look through open government databases until you get an idea very few of those datasets have had ML techniques applied to them. very very few pairs of those datasets have had ML techniques applied to them.
|
# ? May 19, 2015 08:40 |
|
|
# ? May 10, 2024 04:40 |
|
coffeetable posted:1) read a book on machine learning any recommendations?
|
# ? May 19, 2015 09:20 |