|
hi, i'm gonadic io and im a terrible programmer.
|
# ¿ Oct 9, 2017 07:36 |
|
|
# ¿ Apr 29, 2024 01:11 |
|
currently i work in scala which annoys me every day, and my hobby stuff is micro-controllery rust. i have programmed a LOT of haskell in my time and a little java. haven't done either in years.
|
# ¿ Oct 9, 2017 10:15 |
|
eschaton posted:use lots of these {}{}{}{}
|
# ¿ Oct 9, 2017 11:01 |
|
I think the worst thing I've ever programmed is a model to forecast wind power generation in excel. It started off running into the nested formula limit, and so I gradually moved more and MORE of the logic into VBA.
|
# ¿ Oct 9, 2017 14:53 |
|
gonadic io posted:I think the worst thing I've ever programmed is a model to forecast wind power generation in excel. It started off running into the nested formula limit, and so I gradually moved more and MORE of the logic into VBA. Or maybe a quiz thing that displayed questions with answer options to the user and scored their answers. All answer_id's were hard-coded as the db primary key and the code would look compare the users answers to those hard-coded id's. Like If (user.q1AnswerId == 53) then user.score += 5 else if ( user.q1AnswerId == 55) then user.score += 10
|
# ¿ Oct 9, 2017 15:10 |
|
Corla Plankun posted:idk how to manually attribute that to cincy sorry quote="terrible programmer" in the opening tag
|
# ¿ Oct 9, 2017 15:34 |
|
Bloody posted:if theres one thing i want in a font its to make it even harder to distinguish (if x == 0) from (if x = 0) lmao if your lang lets you mix the two up. one is a statement one is an expression jeeeez
|
# ¿ Oct 9, 2017 21:04 |
|
JewKiller 3000 posted:*does all laundry with a washboard* duhhhhhh i like the control then i think about doing it with a lawnmower and suddenly feel good about the washboard. too bad there's no better option.
|
# ¿ Oct 9, 2017 22:57 |
|
cinci zoo sniper posted:what's a greenfield project? starting from scratch, no prior code. starting to building on an empty (green) field
|
# ¿ Oct 10, 2017 07:46 |
|
cinci zoo sniper posted:ah. yeah i imagine that rough in c or c++ class Main { ____public static void main(String[] args) { ________ ____} } e: im dumb and couldn't figure out how to both preserve spaces and display the cursor smiley
|
# ¿ Oct 10, 2017 08:02 |
|
BONGHITZ posted:why do you program? i really really like it. honestly it makes me feel smart when things come together and a problem is solved. like a cross between a soduku puzzle and writing a novel. that's not something i'd admit irl but surely this safe space can accept my need to feel smart. i prefer hobby programming because you can just do whatever interests you but work programming is fine
|
# ¿ Oct 10, 2017 08:38 |
|
i starting using github desktop, but it has essentially no features and is a useless pile of Electron (pretty ui though)
|
# ¿ Oct 10, 2017 14:54 |
|
Arcsech posted:seriouspost a coworker of mine had to do some string mashing recently so he pulled out that famed scripting language, c++ it's easiest to use whatever you're most experienced in or comfortable with
|
# ¿ Oct 11, 2017 00:34 |
|
log line posted:Exception occured when processing request: [GET] /butts/123 please groovy. please
|
# ¿ Oct 11, 2017 10:46 |
|
CRIP EATIN BREAD posted:i had our front-end guys change all our error messages on the front-end to "your internet connection is not available" and it cut down like 90% of the bullshit we were dealing with. pro tactic
|
# ¿ Oct 11, 2017 15:26 |
|
is that in release mode?
|
# ¿ Oct 12, 2017 21:53 |
|
`strip` and abort on panic will reduce it a bunch more since apparently even in release mode there's a bunch of debug symbols: https://lifthrasiir.github.io/rustlog/why-is-a-rust-executable-large.html
|
# ¿ Oct 12, 2017 22:13 |
|
That's how you serialise a graph
|
# ¿ Oct 19, 2017 16:31 |
|
quote:Enter needle, a domain specific language for ASCII-fied arrow notation. A needle form of the above function looks like this:
|
# ¿ Oct 19, 2017 17:04 |
|
PierreTheMime posted:hey yospos, incredibly terrible programmer checking in visual studio failing that visual studio code no other options
|
# ¿ Oct 19, 2017 17:39 |
|
CRIP EATIN BREAD posted:and you don't need windows. i'm the c# IDE written in java
|
# ¿ Oct 19, 2017 18:01 |
|
Ator posted:the worst thing about visual studio is that the free vim plugin is utter garbage probably intentional
|
# ¿ Oct 19, 2017 19:15 |
|
oh no blimp issue posted:i always use sublime text personally, but clion has come on leaps and bounds recently if you really loving love cmake I used to use ST a lot, but I think VSCode is overtaking it now for everything except startup time
|
# ¿ Oct 19, 2017 22:39 |
|
cinci zoo sniper posted:startup time and overall performativeness in large file (hundreds of MB or more) territory. loving electron
|
# ¿ Oct 20, 2017 07:27 |
|
i'm the e-note
|
# ¿ Oct 20, 2017 20:12 |
|
speech marks are for strings and apostrophes are for chars. this isn't difficult, otherwise how do you tell the difference between a char and a string of length 1? in b4 "there is no difference'
|
# ¿ Oct 20, 2017 22:11 |
|
cinci zoo sniper posted:the hell if i know, im in this thread by birthright in python there genuinely isn't and you can happily do 'c'.charAt(0).charAt(0).charAt(0) because charAt returns a string of length 1. in any non-plang a string is a sequence of chars. even if that sequence has length 1, one is a sequence (and has all the sequence methods defined) and one is not.
|
# ¿ Oct 20, 2017 22:27 |
|
cinci zoo sniper posted:pycharm just pulled an out of memory crash, trashing a 30 minutes of voyage through settings yesterday i had to change our build to do "sbt compile && sbt test && sbt integration:test" instead of "sbt compile test integration:test" due to oom errors lol. sbt is good software u people!!
|
# ¿ Oct 21, 2017 16:19 |
|
cjs:
|
# ¿ Oct 24, 2017 11:34 |
|
HoboMan posted:i am gonna be taking over our android development because we are dropping our contractor I am currently writing angular 1 e: with sails.js and bootstrap
|
# ¿ Oct 25, 2017 16:10 |
|
prisoner of waffles posted:More like the "very good programmers thread," amirite? there are no good programmers though. literally the entire point of programmig is to take shortcuts and be as lazy as possible to get comptuers to do work for us. also computers are so complex there's absolutely no way to actually understand what's going on unless you're writing in the rawest of assembly/most trivial peripheral bit twiddling so we just throw code out there and hope it looks like it works. i honestly love it.
|
# ¿ Oct 29, 2017 08:19 |
|
terrible programmer q: is there any advantage to making my local variables small int sizes/uints if i know they won't have any representation problems? i'm asking about rust specifically but i guess the question applies to any lang that has i8/u8/i16/u16. i mean do they get aligned with wordsize anyway, so i might as well just use i/u size and call it a day? i'm getting pretty annoyed by the casting i need to do since all the library methods take usize/isize
|
# ¿ Oct 29, 2017 12:07 |
|
super super terrible programmer q: i have an array of 6 elements, (the neighbours of a tile) which contain a bool, and i'm writing a function that returns if any 3 consecutive neighbours are true. it also has to wrap around so the first element is next to the last one so [t, f, t, f, t, t] is true and [f,t,f,t,t,f] is false and [f,t,f,t,t,t] is true the only way i can think of is to loop from 0 to 5 (and then to 0 again) and increment a counter if true and reset the counter if false. then return (counter >= 3). e: poo poo but that doesn't work in the case of [t,t,t,f,f,f,f]. maybe early return if it's 3 or longer at any step? gonadic io fucked around with this message at 16:24 on Oct 29, 2017 |
# ¿ Oct 29, 2017 16:20 |
|
god this is awful:code:
|
# ¿ Oct 29, 2017 16:39 |
|
Fiedler posted:Is there some reason that this shouldn't be generalized to sequences of an arbitrary length? Why is three special? it's a lovely little game i'm writing so there's no need to generalise unless it'd improve the code.
|
# ¿ Oct 29, 2017 17:47 |
|
haskell has the built in group which groups by equality and i've never seen any use for until nowcode:
|
# ¿ Oct 29, 2017 17:57 |
|
akadajet posted:
I didn't realise that we worked together
|
# ¿ Oct 29, 2017 20:34 |
|
code:
|
# ¿ Oct 29, 2017 21:14 |
|
Sweevo posted:instead of using an array of bools use an integer variable and bit masking to set/clear individual bits. then you can just test for a match to the six values
|
# ¿ Oct 29, 2017 21:55 |
|
|
# ¿ Apr 29, 2024 01:11 |
|
code:
code:
gonadic io fucked around with this message at 22:14 on Oct 29, 2017 |
# ¿ Oct 29, 2017 22:09 |