[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vr / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / asp / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / qst / sci / soc / sp / tg / toy / trv / tv / vp / wsg / wsr / x] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.



File: 1567977880161.png (1000 KB, 1115x1115)
1000 KB
1000 KB PNG
Old thread: >>72702597

What are you working on, /g/?
>>
File: 1515765226840.png (828 KB, 1669x2664)
828 KB
828 KB PNG
Dynamic linking means unpredictable, inconsistent behavior(https://github.com/gtk-rs/gtk/issues/891), space is dirt cheap and you have little to no reasons not to use static linking.
Prove me wrong.
>>
>>72706961
It takes ages
>>
Ferris touched my penis
>>
Teaching myself comp sci.

Can someone recommend good books on data structures and algorithms?
>>
>>72706961
enjoy having shitty outdated libs baked into every single program
>>
>>72706983
Enjoy API breakage lmao
>>
>>72706961
Stop complaining because your trannylang can't handle dynamic linking properly.
Dynamic linking saves memory, speeds up compliment and development, and is the only viable way that a GNU/Linux distribution with many packages could even exist.

>>72706987
Dynamic libraries can be versioned, you retard.
>>
>>72706979
he did?
how rude
>>
>>72706997
>he
>>
parsing dynamic json with go is a bitch. how did google fuck this up so badly
>>
>>72706996
You can statically link versioned dependency too.

>Dynamic linking saves memory, speeds up compliment and development, and is the only viable way that a GNU/Linux distribution with many packages could even exist.
Bullshit! GNU/Linux could do just fine with static linking. In fact, many of the so-called breakages are due to dynamic linking. It did more harm than good to GNU/Linux. I'm not saying you should completely avoid dynamic linking, but you should in many more cases.

>muh tranny
Have sex incel
>>
>>72707002
>they
will never, ever, ever be a personal pronoun.
>>
>>72707010
rob pike obviously thinks that dynamic json is haram
>>
>static linking
lgpl
>>
>>72706996
>compliment
compilation*

>>72707025
You need to imagine a distro with 10000 packages, which many currently have more than.
Now, imagine some "important" library with a lot of users gets updated with an important security update. Imagine its Glib, because that's what you're complaining about.
With static linking, you need to recompile EVERYTHING and well as everything that depends on things that depends on Glib. Transitive dependencies go really fucking far, and distros will seriously need to recompile like 80% of their packages.
Not everybody has multiple data centres worth of computing power to throw at shit like that. It even worse with trannylang and sepples, because they're so fucking slow to compile.

There was a video by the guy who made Meson about this topic, but I can't be fucked digging it up.
>>
>>72707025
rolling out essential fixes for dependencies that are used everywhere is a bit tricky with static linking (requires devs of all programs that use the dependency to update their program, which is difficult to do if there's eg a security issue that's not supposed to go public yet).
other than that i agree.
>>
File: 1535442419481.gif (550 KB, 728x720)
550 KB
550 KB GIF
I have no idea what you guys are talking about
>>
>>72707097
stuff
>>
>>72707068
>>72707025
Actually, I did manage to find that video I was talking about:
https://www.youtube.com/watch?v=wZ8HkkOCeF4 at 16:00
>>
>>72707108
ok thanks I'll look into it once I come back home
>>
>>72707097
http://hackage.haskell.org/package/kan-extensions-5.2/docs/Control-Monad-Co.html#t:CoT
WHAT DOES IT DO
>>
>>72707132
It creates mustard gas.
>>
>>72707132
monad stuff
>>
>>72707132
transforms a comonad into a monad I guess
>>
>>72704047
>>72706474
Please stop calling me gay
I touched a willy in high school once
And it was just a little mistake
So please stop calling me gay
I swear I love vagina
And I love to touch that pussy
I kissed two girls before and it felt really good
Because they were women and not men
'cause I'm not gay
Penises are for faggots
Penises are for gays
Penises are disgusting
So please stop calling me gay
I love to have sex
With women with big breasts
I don't have sex with men
'cause if I did that would make me gay
>>
>>72706961
A program I write a decade ago linking against kernel32.dll, user32.dll, gdi32.dll still works today no problem.
It\s just linshit that sucks aids when it comes to stable ABIs.
>>
>>72706979
cutting off your penis doesn't make you female
>>
>>72707191
linux isn't the platform where sepples compiler updates break the abi literally every time
>>
>>72707191
>gtk
>linux
?
>>
>>72707200
while Microsoft should stop being faglords and just suck it up and start switching to itanium, that doesn’t happen that often
>>
>>72707200
>sepples
>>
>>72707200
OOF BTFO
>>
How do I best prevent spamming of a tkinter button in python? I want to essentially change the command to something useless for 60 seconds and then change it back. I tried time.sleep, but that doesn't seem to work.
>>
>>72707227
just disable the button once it's clicked and re-enable it after a 60 seconds delay
>>
>open concrete math
>670 pages
>PREFACE
>This book contains more than 500 exercises, divided into six categories
just end me
>>
File: 1563651434217.jpg (76 KB, 1280x720)
76 KB
76 KB JPG
>>72707367
>close concrete math
>all problems solved
>>
File: 1568236739441.jpg (263 KB, 1200x900)
263 KB
263 KB JPG
Reminder that this is real.
>>
>>72707390
How can people think this shit is normal
>>
>>72706941
Stuck in blender land.
Literally distracted to 20 places at once
>>
>>72707395
It's not normal but on rust it is. Rust not even once.
>>
>>72707390
cute !
>>
>>72707410
snip snip goes the crab
snip snip goes your penis
>>
>>72707367
better than a book that's all theory and no application
does it have solutions?
>>
>>72707414
>>
File: 69e.png (17 KB, 200x200)
17 KB
17 KB PNG
>>72707414
>i'm a tranny
>>72707435
fuck you i was gonna post that
also disgusting watermark nigger
>>
>>72707433
yes, brief ones
>>
>Not too useful, as said you need to install debug packages for various libraries. Which is unfortunately rather complicated on Arch. It's not a great development platform.

https://github.com/gtk-rs/gtk/issues/891#issuecomment-530702233

rip
>>
>>72707450
nice, wish more books did that
>>
>2019
>still using languages without rank n types and higher kinded types
smh2bhw/usempaitachis
>>
File: itsalive.png (60 KB, 1516x772)
60 KB
60 KB PNG
I just installed UBB 6.5.
I've been wanting to do a full re-implementation for some time now because I'm a nostalgic faggot but only recently I've been able to source a copy.
It needed some tweaking because it relies on a few things that got deprecated in perl.
Not sure what I'm going to re-implement it with though, maybe I'll give Laravel a go.
>>
>>72707493
rank N types (and impredicative types in general) subsume nearly every other interesting type system extension you could have
>>
>>72707471
Switching to PopOS
I always wanted to try that out.
>>
>>72707493
c++ templates are higher kinded types
>>
File: 1567627978602.gif (289 KB, 400x471)
289 KB
289 KB GIF
>>72707516
>no rank n types
>>
>>72706979
*cut off* your penis
FTFY
>>
Am I really bad at programming or is programming actually hard when you have to think for yourself and not steal code and answers from books and internet?
>>
>>72707493
but i am using a language that has those by default
>>
>>72707507
system fω is kino
>>
>>72706982
skiena
tardos
papadimitriou
jeff erickson
>>
>>72707529
code monkey programming gets easy very quickly because there's not that much to learn
so yeah, just write more code, it'll come eventually
>>
>>72707237
I can still essentially spam it and it adds 60 seconds every time.
>>
Finding the length of a list in python uses the function len(my_list) while in js it's my_list.length or something. In python again, some operations are implemented as simple functions like len, but some others like my_list.pop(element) are implemented as object methods, and similar behaviour is seen on js.

Am I wrong to think that this is inconsistent and creates confusion? Why is it like that?
>>
friendly reminder that DTT without theorem prover capabilities (impredicative prop / classical maths, tactics, ...) is a meme and without those capabilities you won't be able to use DTT to its full potential
>>
>>72707592
Because Python is an abomination and OOP was an afterthought.
>>
>>72707584
If you disable the button you can't spam it anymore. Wtf are you doing?
>>
>>72707592
ideally, pure operations should be modelled as functions, while operations that mutate an object should be modelled as methods over the object it mutates.
oop in loos sadly often don't follow this rule of thumb, but it's a pretty good one.
>>
>>72707186
faggot.
>>
>>72707611
I mentioned python because I'm more familiar with it but this seems to be the case with most modern popular languages.
>>
>>72707613
When I click it. It goes into a "clicked" state and stays there for 60 seconds as opposed to greyed out when I am not using the time.sleep method.
>>
>>72707629
I think Python has it worse than most languages. But IMO this just demonstrates why OO is a retarded paradigm.
>>
>>72707633
You're supposed to call a function asynchronously that will disable the button then sleep for 60 secs then re-enable it. You can't do it all in the main thread.
>>
>>72707605
DTT is a meme and you aren't using less expressive type systems to their full potential
>>
>>72707592
In Python, you have dunder methods that satisfy interfaces. len() has the corresponding __len__() dunder method for custom classes. It wasn't like that from the beginning, because len() only worked for a few types, but now it's fixed with the dunder method.
>>
>>72707669
you can literally look at recent papers in languages without DTT on theorem proving or program verification and watch people moan about those type systems not being expressive enough, having to jump through hoops and type hackery just to express something that would otherwise be simple in a proper DTT theorem prover
example: http://home.in.tum.de//~immler/documents/immler2018manifolds.pdf
>>
I just cannot get a single reply, a lot of webcam services are trying to make it, I prepared this for you:
https://join.skype.com/ptVnDc6PdjDq
>>
>>72707696
maybe they should write their own if they're so picky
>>
File: dunning-kruger-effect.jpg (65 KB, 1180x787)
65 KB
65 KB JPG
How crazy am i for wanting to learn scheme?
I want to have a language under my belt thats not pajeet tier, tho ill have to learn some javascript injections
>>
File: excerpt.png (89 KB, 332x377)
89 KB
89 KB PNG
>>72707696
(excerpt)
>>
>>72707659
def delay():
Button.config(state="disabled")
time.sleep(5)
Button.config(state="normal")


The button never gets greyed out. It just enters a "clicked" state for x seconds and I can continue to click it even if the button doesn't "click".
>>
>>72707605
I need a friendly reminder what DTT is.
>>
>>72707715
scheme is pretty easy to learn so you may as well
>>
>>72707572
>not steal coe and answers from books and internet
>code monkey
what?
>>
>>72707733
Dependent Type Theory
>>
>>72707743
Thank you.
>>
>>72707010
Holy fuck man, you're giving me an flashbacks to when I had to deal with that shit
>>
>>72707738
programming is easy, anon.
don't delude yourself into thinking that it's any different from any other trade just because you're getting paid big bucks in the US.
when i was referring to "code monkey programming", i was excluding anything that requires advanced theory and a proper formal math education.
>>
>>72707736
Then ill get to it, any recommendation?
>>
>>72707777
read sicp
it's designed for novice programmers so it might be useful for washing yourself of pajeet practices too
>>
>>72707730
How to you call the delay function?
>>
>>72707777
lucky quads for actually reading SICP
>>
I have prepared this for you
https://join.skype.com/ptVnDc6PdjDq
>>
>>72707784
>>72707815
Im already downloading it and no, i dont have pajeet practices as this will be my first proper programming language, at most having used html and css
>>
>>72707768
so programming without algorithms?
>>
>>72707842
so pretty much most programming you do in the industry where the most you do is write glue code and use code by others that already does the difficult stuff
>>
how should i design my database tables for a simple comment section and replies to comments?
i thought that 2 tables would be enough , one for comments and the other for replies to a given comment, but then again those replies are the comments themselves...
>>
>>72707797
tkinter button command.
Button = Button(window, text="Button", command=delay)
>>
>>72707881
yes, you're trying to model a list of arbitrary size with tables as the elements of the list (i.e. a finite structure of non-arbitrary size), that ain't gonna work.
just have one self referencing table instead.
>>
>>72707866
right ok I see what you mean bro
like front-end animations
>>
>>72707920
the back end stuff for projects that exist mostly to provide some good user interface to data is usually only glue code as well - and those projects are arguably the most common.
>>
>>72707918
you mean the one where i have one column that will reference a comment which is being replied to? is it good to have such a column that will have a lots of blank fields
>>
>>72707889
Ok so the tkinter doc is fucking garbage but my guess is the command is invoked by the main thread so you'll need to use an async call to do the delay thing because otherwise the main thread is frozen and the guy can't update.
That's why the button appears to not be disabled (because the gui is frozen and can't update) and you can still 'click' it (you can't but the application still cache the mouse clicks and then spam them once the main thread unfreeze)
>>
File: 1566957843294.jpg (88 KB, 1068x720)
88 KB
88 KB JPG
>have an enum Foo 1, Bar 2, Baz 3
>want to add Qux 4
>edit the single source file
>notice that db has a 'comment' column that says "Foo 1, Bar 2, Baz 3"
>greb repository for this string
>30+ results in sql scripts for initializing the dbs of various servers
>change 30+ files
>even then the 'comment' column in existing dbs won't get updated because there's no logic to do so in the deployment process

Why are sql niggers so dumb?
>>
>>72707968
Thanks for your patience. Seems like I have to look up this async call thingy.
>>
File: 1567711486789.png (159 KB, 431x456)
159 KB
159 KB PNG
>>72707973
>Foo
>Bar
>Baz
>Qux
This is the dumbest enum I've ever heard of
>>
>>72707954
Better a blank field than cyclical references opening a gate in your basement.
>>
File: 1568166916118.png (343 KB, 557x625)
343 KB
343 KB PNG
>>72707984
>>
>>72707973
Bonus points: removing the spaces after the commas yielded another 10 results
>>
>>72707954
i don't think the space you save in the extreme situation where all posts have no replies is worth the more complex model of two cyclic tables, especially considering that having two cyclic tables might come at a cost elsewhere.
>>
>>72706941
Lisp is the most powerful programming language.
>>
>>72708080
html is equally powerful
>>
>>72707832
>>72707784
Not sure if SICP is the best for the job, IIRC "How To Design Programs" was created to overcome some problems SICP had. It's in Lisp as well. I'm in the same road as you, only that I have more programming experience (with shitty languages tho), and what I plan to do is read http://www.cs.cornell.edu/courses/cs3110/2019sp/textbook/ this, which is similar to the above it seems, but in OCaml(functional, but static typing unlike lisp).

Might wanna have a look at this: https://functionalcs.github.io/curriculum/
>>
>>72707010
What the fuck is dynamic JSON compared to regular JSON?
>>
>>72708392
I assume they mean parsing JSON that doesn't have a completely rigid structure?
>>
>Lisp is the most powerful programming language
Do you, gentlesir, perchance browse the subreddits /r/programming and the news aggregator Hacker News? I too have learned that Lisp is superior to all other languages via these intelligent communities. I have yet to actually try doing anything useful in Lisp but at least I can too pretend to be an intelligent and experienced programmer by reciting such phrases. Lel!
>>
>>72708392
he's referring to json that can have a wildly different format (e.g. you have a spec that says "if foo then the json will look like this, otherwise it will look like that).
think sum types.
the go standard library is practical for json that is always the same and can be easily serialized into a struct (i.e. it assumes that the json is a product type), but not so much for json with varying format.
>>
>>72706961
>the only faults are variable-naming related
Feels good
>const object
That makes no fucking sense
>>
Reminder that Nim is epic
>>
>>72708463
call me back when they adopt a syntax that doesn't cause me to violently empty the contents of my stomach at the slightest sight of it
>>
>>72706961
i completely agree
>>
>>72707068
>you need to recompile EVERYTHING
which is already the case because any piece of software that is not constantly churning with commits and minor releases is considered "dead"

total non-issue
>>
>>72706961
I don't agree that space should be treated as dirt cheap and that it's okay to use up lots of space, but I definitely agree that static linking is better than dynamic linking for various reasons not related to storage space.
>>
>>72708469
Sounds like PTSD, you should see a psychologist. Where did C touch you?
>>
>>72708481
Good job not understanding the point in the slightest.
Watch the video I posted here: >>72707108
>>
>>72708488
It's not C that touched me, it was Python that touched me.
Every time I see a language that looks like Python I violently eject everything that can be ejected out of my body at high speed.
>>
File: 1539288591330.png (921 KB, 750x725)
921 KB
921 KB PNG
>use dark colorscheme in text editor
>eyes burn every time i open a web page
>all "dark mode" browser extensions suck
>mfw i avoid internet altogether instead of using a light colorscheme in vim

literally all i use these days is 4chan and stackoverflow anyway
>>
File: Archie_Shepp_Juju.jpg (51 KB, 960x720)
51 KB
51 KB JPG
>>72708107
How different is ocaml from scheme?
Pls explain it as if youd be explaining a retard
>>
>have a problem i find a bit tricky
>solve it in 100 lines
>rewrite it a better way
>rewrite it a better way
>now just completely code-golfing it
it's just a fairly inconsequential function...
>>
>>72708497
Fuck off redditfrog. Nobody cares.
>>
>>72708500
>better way
You know buddy sometimes shorter doesn't mean better? Sometimes terseness can hinder readability.

>>72708510
It seems you are new to the internet buddy. That frog is 4chan, not reddit. And I just told you I don't use the web other than 4chan and SO. :)
>>
>>72708499
they share the same core of functional programming style. ocaml is pretty vanilla, unlike haskell which has the same basic semantics but goes neck deep into type autism.
>>
>>72708494
i'm afraid i'm not really interested in the video

i just know a loathe dependencies because it's always the part that breaks whatever system i'm using; additionally, dynamic linking always makes my life harder as a programmer

have a good day
>>
>>72708516
Not sure if you're aware of this but that frog has not only reached reddit but also facebook.
>>
>>72708516
this is more to the point though
>>
>>72708496
Im sorry, i never learned Python so i cant relate. Sounds awful though
>>
Anyone here use R?
I'm learning it right now most because to help my career and because I've yet to learn a stats lang.
So far I don't see how it's an improvement over using numpy other than maybe it might be more friendly to non-programmers.
>>
File: 1537379077871.jpg (28 KB, 480x480)
28 KB
28 KB JPG
>Scoping broken
>"ThE oNlY fAuLtS aRe VaRiAbLe NaMiNg ReLaTeD"
>>
Get-WMIObject -class WEKF_PredefinedKey 

Why is this giving me an invalid class error?
I tried it on three machines that all had Win10 Enterprise and it failed on all three. It's from code that used to work on older Win versions, so it's not my mistyping
>>
>>72708570
This is the programming thread. Fuck off.
>>
File: ServerClient.png (122 KB, 1918x1158)
122 KB
122 KB PNG
Working on my TCP Server desu.
Colored Console display looks comfy.
>>
>>72708584
you do realise r is a programming language?
>>
>>72708592
No it isn't.
>>
File: 1561666279352.jpg (197 KB, 1080x1517)
197 KB
197 KB JPG
>>72708536
Welcome to 4chan, redditfriend! 4channers usually aren't aware of what other sites memes are popular on, because we don't look at them. For example, I thought that #YOLO was an obscure /jp/ meme for about half a year until someone taught me otherwise. Anyways, enjoy your stay at 4chan.org!
>>
>>72708578
>greentext AND "" AND reddit case AND wojak
capital YIKES
>>
>>72708602
oh boy i can't wait to hear this one
what is r then little man?
>>
>>72708615
A garbage collected non-zero-overhead language
I.e. the exact opposite of a programming language
>>
>>72708615
A disappointment
>>
>>72708634
>programming language
Please define that.
>>
>expecting other people to take some random internet bum's definition of a programming language seriously
>>
File: 1559032613005.jpg (86 KB, 815x611)
86 KB
86 KB JPG
>>72708605
That's not how it works. If you're still posting the same stale ancient """memes""", especially ones that were completely shit to begin with, you are indeed a stupid redditor and should fuck off.
>>
File: 1567130870280.jpg (44 KB, 347x375)
44 KB
44 KB JPG
>>72708605
t. dumb frogposter
>>
>>72708648
Get a job and learn a real *programming* language, idiot.
>>
>>72708643
A programming language is a language that is compiled, statically typed, has a minimal runtime, is not garbage collected, has zero cost abstractions, and respects the programmers freedom.
Any language that violates even one of these is not a programming language, as you obviously cannot program with it.
>>
This thread is fucking dumb. Arguing about memes, gatekeeping languages, and complaining about other websites.

Good job morons.
>>
>>72708700
So then fuck off if you don't like it?
>>
>>72708694
Lmao, what is wrong with you?
>>
File: 1566560548286.png (463 KB, 656x660)
463 KB
463 KB PNG
>>72708661
>>72708675
*ting ting ting* ahem...
>>
Programming languages are standardized.
>>
>>72708706
I was more hoping that you would leave, since it's obvious that it's just one dumb shitposter ruining the thread at the moment. It's very obvious that it's you by the way you write (shit). You should fuck off.
>>
>>72708700
Yes, this thread is pure garbage.
It's arch tier elitism and constant language wars.
>>
>>72708711
Fucking what?
>>
>>72708700
>>72708715
You're always welcome to fuck off.
>>
>>72708694
"A programming language is a formal language, which comprises a set of instructions that produce various kinds of output. Programming languages are used in computer programming to implement algorithms." -https://en.wikipedia.org/wiki/Programming_language

Oops, you are wrong.
>>
>>72708725
This is a retarded argument, do you enjoy language wars or language elitism?
>>
>>72708711
You are the shitposter here bringing in your stupid R shit. I already told you before and apparently I have to fucking tell you again. This is the programming thread, fuck off.
>>
>mfw i use the programming language jupyter notebook to write reddit extensions because python is easy and makes neckbeards mad that it works better than C and Lisp lmao
>>
File: 1566991535576.gif (347 KB, 500x566)
347 KB
347 KB GIF
>>72708731
Yes, don't you?
>>
>>72708738
python isn't a programming language you right wing retard.
>>
File: 1374577061478.png (119 KB, 303x323)
119 KB
119 KB PNG
>>72708731
It's not an argument. I'm just telling you to fuck off.
>>
>>72708738
>jupyter
>python
Read the fucking thread title and stop posting off topic shit.
>>
>>72708731
Why are you in /dpt/ if you hate it so much?
>>
File: 1505279949443.png (240 KB, 473x357)
240 KB
240 KB PNG
>>72708746
>don't you?
No, because I am right and explaining to idiots why I am right is very bothersome.
>>
>>72708762
Then just stop being wrong?
>>
>>72708731
Wait, isn't this exactly why /dpt/ exists? Have I been lied to all this time?
>>
File: 1504753081428.png (831 KB, 1059x1050)
831 KB
831 KB PNG
>>72708760
Because I hate myself.
>>
Help me understand ports better please. I don’t get it. For example, WoW uses TCP port 3724, but what if the port is blocked for some reason? Does the game stop being able to connect?
Let’s say you build an application that connects to a server over that port? Would that be a problem if both applications are running at the same time? If so, how do you know if you’re writing a program that uses a port that no other application will use it?
>>
File: 1504453552528.png (213 KB, 228x748)
213 KB
213 KB PNG
>>72708771
>Wait, isn't this exactly why /dpt/ exists?
Yes, to gather the garbage into a single thread.
>>
File: 1562852757560.png (1.75 MB, 1289x1211)
1.75 MB
1.75 MB PNG
>>72708774
I hate you too anon
>>
>>72708778
Fuck off with your offtopic garbage, if you are not discussing why the one programming language you like is the best ever and everyone whould use it for every task you need to fuicking fuck off, you right wing bigot gayemer.
>>
File: 1549175075086.png (1.87 MB, 1240x1750)
1.87 MB
1.87 MB PNG
>>72708752
>right wing
>python
Huh?
>>
>>72708778
>WoW uses TCP port 3724, but what if the port is blocked for some reason? Does the game stop being able to connect?
The whole point is that it won't work, which is why people block ports.
>Would that be a problem if both applications are running at the same time?
Yes.
>If so, how do you know if you’re writing a program that uses a port that no other application will use it?
Ideally let the user configure it or just let it fail. But collisions are pretty rare.
Not many computers are going to have 2^16 services running.
>>
>>72708786
>to gather the garbage into a single thread.
So that's why so many anon are waifu posting, everything makes sense now.
>>
>>72708801
Right, thank you. That makes perfect sense
>>
File: 1568178945006.jpg (563 KB, 2187x3159)
563 KB
563 KB JPG
>>72708770
I'm far right and watch anime
>>
File: 1534882583345.jpg (148 KB, 1280x720)
148 KB
148 KB JPG
>>72708829
So is the rest of 4chan, lets be friends.
>>
i tried watching a few animes but just can't get into them
death note was kinda good but everything else i've seen has not gotten my attention
>>
File: 1565644695731.jpg (596 KB, 1200x1500)
596 KB
596 KB JPG
>>72708845
Ok but I'm gonna have to gas your crossdressing friend there, that's okay with you right?
>>
>>72708850
>animes
>>
File: 1564432586246.jpg (353 KB, 2362x2362)
353 KB
353 KB JPG
>>72708829
you've gotta go back
>>
File: 1568245626975.png (97 KB, 774x1002)
97 KB
97 KB PNG
I'm making a bullet hell game and I need some quick advice. Does this look right to you? especially the type of timer I use?


By the way is the general on /vg/ still active? I need to ask them about creating bullet patterns and how to store, organize and call them when I need to.
>>
>>72708829
>>72708845
>>72708850
>>72708862
>>72708863
>>72708884
What does any of this have to do with programming?
>>
>>72708935
Those are the most programming related posts in the whole thread
>>
>>72708934
>>>/vg/agdg
>>
File: 1560075990961.png (451 KB, 830x1075)
451 KB
451 KB PNG
>>72708955
You're going in the gas chamber too, dumb frogposter
>>
File: 1565842453186.jpg (176 KB, 1331x1380)
176 KB
176 KB JPG
I can't fucking decide what path to pursue. Web dev, mobile app dev, or data science? Which is the least volume, quickest to learn to be proficient and get employed fast? Assume I learn quickly. I'm interested in all 3 and can't decide, it's driving me loco.
>>
>>72708992
>path
You learn all three and you take what jobs you can get if you're lucky enough
>>
>>72708996
My head will literally explode if i try to learn all 3 in 3 months.
>>
>>72709001
>not learning all 3 in the 3 days before your interview
>>
>>72709006
I'm not (You), sorry.
>>
>>72709001
You're a fucking retard, and only because you choose to be.
>>
>>72709016
Why do you have to be so mean, compadre?
>>
>>72709102
>compadre
fuck off
>>
File: 1566307977491.gif (1.96 MB, 360x360)
1.96 MB
1.96 MB GIF
I didn't do much this week.
>>
>>72708992
Mobile App dev, you'll be useful by then for the fucking normalfags on their iPhones
>>
>>72709174
based chino poster
>>
>>72709174
more like chinpo haha
>>
>>72709174
The week isn't over, there's still time.
>>
>>72709199
How DARE you say that about my third cousin's fifth daughter chino
>>
>>72709174
It's alright Anon. Just find something to do and code something around that.
>>
>>72709209
i-it was just a nickname over her favorite thing!
>>
File: image.jpg (63 KB, 1280x720)
63 KB
63 KB JPG
>>72709203
>there's still time
>>
>>72708580
I had to enable it first in windows features

See, I'm smart, I don't help from others, I can solve my own problems! Ahahahaha!
>>
if(cond()) b = true;
else b = false;

Literally unreadable
>>
>>72709699
b = cond()
>>
>>72706961
That pic is misleading

The reason the compiler does not allow the use of the same name in the containing block is purely to prevent bugs, not technical.

Having 2 loops with the same name is ok because they are at the same vode block level.

You have to be retarded not to realise that.
>>
>>72707108
I appreciate that he says it is imperative instead of declarative
people seem to build systems should be like prolog (the least used or understood paradigm) and then they have to shoe horn in hacks to... unzip files from dir a then move to dir b

I am very wary of the one system to build everything approach though. I think most general languages should just have build scripts written in the syntax of that language, with maybe a special lib with methods to make building easier. Since that is the language the author of the code knows, there is no need to invent something new.

>20 min in I realize it is supposed to be a tranny
>creepy tranny keeps smacking his laptop messing up the hdmi output
>cringey joke attempt with sunglasses, crowd politely claps

>>72708934
no, use System.nano time for the best precision
>System.currentTimeMillis() will give you elapsed time in milliseconds since the epoch, but System.nanoTime() gives you a nanosecond-precise time, relative to some arbitrary point

but really don't use any of this, use libgdx instead of swing, or at least use javafx
the shit you have to do to get real double buffered and hardware accelerated graphics in swing is bananas and in the end will still run slow
>>
Need project ideas for esp32.
>>
File: konata.png (165 KB, 281x400)
165 KB
165 KB PNG
Wrote a program to do the reddit alternate capitalization meme

#include "io.h"

#define lower(x) x >= 'a' && x <= 'z'

s32 main()
{
u8 buffer[PAGE];
fgets(buffer, PAGE, stdin);

for (u32 i = 1; i < PAGE; i += 2) {
if (lower(buffer[i]))
buffer[i] -= 32;
}
printf("%s", buffer);

return 0;
}


$ ./meme
our system thinks your post is spam
oUr sYsTeM ThInKs yOuR PoSt iS SpAm
>>
File: 1567898884449.png (280 KB, 635x360)
280 KB
280 KB PNG
>>72710185
based
we can automate redditors' entire lives
>>
File: 1376505409276.jpg (38 KB, 524x480)
38 KB
38 KB JPG
>>72710185
>Special snowflake integer typedefs
>Not using tolower
This bothers me greatly.
>>
>>72710185
Make lower a function unless you are using a compile from the 80s.
>>
>>72710241
>Not using tolower
Look a little closer, it's just to abbreviate the check.
>>
>>72710185
Shit nigger, what are you doing?

#include <ctype.h>
#include <stdbool.h>
#include <stdio.h>

int main(void)
{
int c;
bool lower = true;

while ((c = getchar()) != EOF) {
const char out = lower ? tolower(c) : toupper(c);
lower = !lower;

putchar(out);
}
}
>>
>>72710258
You don't need a check. Do it unconditionally.
But looking again, I should've said toupper.

I was going to post my own version, but >>72710286 posted one that was almost exactly the same.
>>
reposting to see if anyone during the day knows.

Can anyone explain how VGA works in real mode?
I set the mode to 80x25/16 color and then the teletype bios call stops working
I can't find any good resources that aren't just 1000's of listings of bios calls
trying to make a boot loader btw
>>
>>72710286
could you do
putchar(((lower = !lower) ? tolower : toupper)(c))
>>
>>72710314
>You don't need a check. Do it unconditionally.
That check needs to be done in anon's program so whitespace doesn't get transformed.
>>
>>72710351
You _could_, but mixing assignment expressions in random-ass places is considered to be very poor style.
In my opinion, the only acceptable place for assignment expressions like that are in loop conditions, like
while ((c = getchar()) != EOF) {

because that actually gets rid of some code duplication.
>>
What's an intelligent way to organize small bugfixes and improvements while working with git? Keep a "bugfix" branch and squash-merge it every once in a while?
>>
>>72710367
it's a shame C doesn't have an x = !x equivalent for ++ and --
>>
>>72710351
>>72710367
>You _could_
Ternary operator is the most arcane magic in C.

>>72710286
Reading/Writing one byte at a time means a whole lot of system calls which ruins performance. If you want to scale up to cluster-level shitposting, use fgets and fputs instead!
>>
File: Bulgoga.png (74 KB, 3000x3000)
74 KB
74 KB PNG
>>
>>72710185
>buffer[i] -= 32;
This should be buffer[i] -= 'a'-'A'; to be more portable.
>>
>>72710444
tolower and toupper are part of C89
>>
File: sips almond milk.jpg (25 KB, 310x320)
25 KB
25 KB JPG
>>72710474
>using the standard library
>>
>>72710395
now I have a virus you asshole
>>
File: 1534584717335.jpg (27 KB, 550x412)
27 KB
27 KB JPG
#include <stdio.h>

int main(void) {
int a = -1;
unsigned int b = 1;

if (a > b)
puts("Cniles will defend this");

return 0;
}
>>
>>72710185
std::string toReddit(std::string s) { 
std::string result;
bool lower = rand() % 2;

for (char const &c : s) {
if (lower) {
result += tolower(c);
} else {
result += toupper(c);
}
lower = !lower;
}
return result;
}
>>
>>72710628
x.c: In function ‘main’:
x.c:7:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
7 | if (a > b)
| ^

>>
>>72710628
doesn't compile with
gcc -Wextra -Werror

try again, brainlet
>>
File: 1566315229974.jpg (99 KB, 1280x720)
99 KB
99 KB JPG
>>72710649
New meme.

#include "io.h"

#define alternate(x) for (u32 i = 0; x; i += 2)

s32 main()
{
s8 buffer[PAGE];
fgets(buffer, PAGE, stdin);

alternate (buffer[i]) {
buffer[i] = toupper(buffer[i]);
}
printf("%s", buffer);

return 0;
}
>>
>>72710628
>compile with safeties off
>"WHY DOES IT DO WHAT IM TELLING IT TO, AGAINST THE STANDARD?????"
>>
>>72710649
what does the & next to the c mean?
>>
>>72710848
reference. in this case it's stupid
>>
File: or.png (1.15 MB, 1000x1414)
1.15 MB
1.15 MB PNG
>>72710628
>>72710659
>>72710669
>>72710825
There's literally nothing wrong with implicit type conversion.
>>
>>72710974
there's a lot wrong with implicit type conversion, especially for non-symmetrical relations
>>
Why didn't they just define comparison between different integer types? Obviously, if a is negative, then a > b is false. If not, then a can safely be treated as unsigned, and a > b is as usual.
>>
>>72711009
>no anime girl picture
You've already lost.
>>
>>72711043
in my limited experience with C, questions like these usually can be answered with "because it's slow"
>safely
safety is rarely ever a concern with C
>>
>>72711043
>Why didn't they just define comparison between different integer types?
It would have been too much overhead to port that to the messed up architectures that existed back then, like mixed endianess machines or different twos/ones component machines.
>>
>>72711043
this could be a C proposal
>>
I just bought my first book, starting with C
>>
File: 1566667003980.gif (127 KB, 550x400)
127 KB
127 KB GIF
>>72711062
>safety is rarely ever a concern with C
the virgin try catch
the chad segfault
>>
>>72711100
wouldn't she melt?
>>
>>72710185
*tips haskell*
import Control.Recursion
import Data.Char
import Data.Bool

toReddit = zygo h alg
where
h Nil = False
h (Cons _ r) = not r
alg Nil = []
alg (Cons c (b, r) = bool toLower toUpper b c : r
>>
>>72710771
How do you guys write code on here? I'm kinda new to /g
>>
>>72711112
zygo :: Functor f => Algebra f b -> GAlgebra f (Zygo b) a -> FixF f -> a

oh no
>>
>>72711112
What the fuck am i reading
>import recursion
>import char
>import bool
>zygo
>alg
>>
>>72711127
http://hackage.haskell.org/package/recursion-2.2.2.0/docs/Control-Recursion.html#v:zygo
zygo :: Recursive t => (Base t b -> b) -> (Base t (b, a) -> a) -> t -> a

Vanessa's lib has nicer sigs
>>
>>72711112
you could probably use scanl
>>
File: absolute-mad-man.jpg (798 KB, 960x1440)
798 KB
798 KB JPG
>>72711129
>What the fuck am i reading
>>
>>72711144
*foldr
but what's the point?
>>
>>72711155
staring into the face of madness
>>
>>72711129
Data.Char contains toLower/toUpper
Data.Bool contains "bool", there's really no reason to use this other than because you don't feel like using if then else. it's basically ?: as a function
Control.Recursion is from a third party library and contains zygo, which is an autistic way of recursing over recursively defined data structures (in this case lists) by operating over a non recursive version. In this case, by telling it what to do with an empty list, and what to do with the head of a cons list and the result of applying the algorithm recursively
>>72711157
No, pretty confident scanl or scanr is more appropriate.
>>
Hello /g/, I'm from another board.

I need a hand with Excel/Open Office (and I will pay for the service)

Is this the thread to post?
Or should I make a new thread?
>>
File: 1456096193321.png (436 KB, 596x720)
436 KB
436 KB PNG
>>72711197
Read this book
>>
>>72711180
show me the scan version then mate, I don't think it's going to work well for you
>>
>>72711203
I guess you need an initial state (which would be pointless here). I'm probably thinking of mapAccum. Anyway foldr is too primitive
>>
File: satania.webm (2.97 MB, 720x404)
2.97 MB
2.97 MB WEBM
>>72711197
>I need a hand with Excel/Open Office
>>
>>72711203
>>72711214
tail . map snd . scanl (\(b, _) c -> (not b, (if b then toUpper else toLower) c)) (False, 'x')
the tail and the , 'x' are warts
>>
>>72711197
Hello kind miss I am expert of all things excel and java I will kindly help you for a picture of your byutifel feet
>>
File: 99pbqaq95fb31.jpg (79 KB, 811x573)
79 KB
79 KB JPG
>>72711219
based satanichia poster
>>
File: 1567319304922.png (236 KB, 728x899)
236 KB
236 KB PNG
>mfw I just found one of my coworkers likes anime
>>
File: 1564276408165.jpg (447 KB, 2048x2048)
447 KB
447 KB JPG
>>72711251
>the entire programming department is watching moeshit
>>
>>72711223
huh, I was thinking of
snd . foldr (\c (b, s) -> (not b, bool toLower toUpper b c : s)) (False, [])

it's way more elegant desu
>>
>>72711180
I didnt expect an actual response but damn this makes me want to learn FP. Sounds like lots of fun.
>>
File: 1567087770188.webm (202 KB, 667x667)
202 KB
202 KB WEBM
>mfw I found out one of my tranny coworkers hates anime
>>
>>72711219
>>72711201
This stuff is not my job nor my hobby, and I don't really have the free time to learn it.

If you don't know something you pay for someone to do it, that's how it works.

I will look somewhere else then.
>>
>>72711285
It's like going to your math professor and asking them to help you empty the trash. Most people here aren't even using Windows.
>>
>>72711267
mapAccum is better but returns the final state. It's basically traversing with a custom state applicative. (see Data.Traversable)
In this case the "too primitive" I'm talking about is the fact that you're doing consing and passing an empty list, while what you want is to map with a state (i.e. mapAccum). Scanl is similar but not exactly what I intended
>>
>>72711285
>If you don't know something you pay for someone to do it, that's how it works.
retard
>>
>>72711269
it's basically all autism with higher order functions, algebraic data types and some obscure stuff like functors and applicatives
>>
>>72711327
snd . mapAccumR (\b c -> (not b, bool toLower toUpper b c)) False

yeah I always forget about mapAccum, it's a very nice tool
although I'd still recommend learning recursion schemes to everyone
>>
>>72711100
>the chad segfault
You can try catch with setjmp/longjmp for segfaults.
>>
File: 1568165502545.gif (891 KB, 390x364)
891 KB
891 KB GIF
>>72711385
I WILL NOT. I WILL _NEVER_ USER YOUR PARENS LANG. MUAHAHAHA
>>
>>72711384
the good thing about fp is that you can tune it to your level of autism
>>
>>72711418
fmap <$> (,) . not <*> bool toLower toUpper
>>
>>72711372
I'm sorry mr badass.

I'm sure you can do everything ever. You can fix your own car, you can fabricate your own toothpaste and you will never go to the doctor because you can operate yourself at home.

Must be great for you, but you know, other people rely on capitalism to share products, services and information, the same way people come looking for me and pay me for my skills, which don't include programming sadly, otherwise I wouldn't have to deal with absolute morons like you.

Fucking idiot.
>>
File: 1567021129486.jpg (62 KB, 667x624)
62 KB
62 KB JPG
>>72711418
>I WILL _NEVER_ USER YOUR PARENS LANG
$ grep -zo '{\|}' main.cpp
{}{{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}}{{{}{}}}{}{{{{}}{}{{}{}{{}{{}}{{}}{}}}


oh no
oh no no no no
>>
File: young ted k.png (72 KB, 220x156)
72 KB
72 KB PNG
>>72711509
Yikes
>>
>>72711514
Those arent parentheses, idiot
>>
>>72711534
They are called curly parens.
>>
File: 1568105582649.jpg (105 KB, 903x1600)
105 KB
105 KB JPG
>>72711540
>They are called curly parens.
t. pic related
>>
>>72711534
for (x; y; z) { ... }
>()
>>
>>72711549
() -> parens
{} -> curly parens (not braces)
[] -> brackets
>>
does referential transparency hold in haskell even if you run out of memory?
>>
() - pedophile
[] - ephebophile
{} - normal
: - pederast
>>
>>72711559
They are called points nips not curly parens
>>
>>72711418
hot
>>
>>72711566
nothing is guaranteed to hold if you run out of memory
>>
File: gaylord.jpg (119 KB, 609x800)
119 KB
119 KB JPG
>>72711566
>if you run out of memory
>>
>>72711566
that's operational semantics. What referential transparency is concerned with is declarative semantics. If the operational semantics vary, the outcome will be the same if the program completes, but it might not complete in time or with resource consumption low enough to be useful.
>>
>>72711566
why would that make a difference?
>>
>>72711566
Fast and loose reasoning is morally correct.
>>
>>72711514
grep -zo [[:punct:]] src/xed/main.c
[_];_(){();(..,.,.,.);(..,..,..);}(){_();.=;.=;.=;_();_();_();__();//'//'(.,_);(.,_);_(.,.,.);=_("/.");=_("/.");//=_("/.");=_(,,);[]=_(,"/.","/.");[]=_(,"/.","/.");..=-.;..=-.;=;=.;__={._=,._=,._=,._=};__={._=,._=,._=.,._=.};//_[];//_*_=(_*)_;//_=_(_);//=_("/.",_);[];(!.){//();.=(.);(){:..+=;;:..-=;;:..-=;;:..+=;;:..-=;;:..+=;;}//(>){//@:=;//=(_,_,);//(>){//_();//}}++;//(___|___);//(,"'\%\%\%\%",//..,..,..,);(,"\%\%\%\%",..,..,..,);(.==){_();(=;<_;++){_([]);}_(,__,__);_(,,.-);}(.==){_("\\\",./,./);}(.);__();}();_();;
>>
>>72711664
punctuation oriented programming
>>
>>72711673
>punctuation object oriented programming (poop)
>>
guess the languages:
:-.:-.:-_,_,.%_(,)%:-_(()::,_(,)::__).%_(,)%:-_(()::,_(,)::__).%_(,)%%%:-_(()::,()::).:-.:-_._(,):-_(,_(_),).:-_(()::,_(,)::__,_(,)::__)._([],!)._([|],!):-_(^,!),_(,!).:-_(()::,_(,)::__,_(,)::__)._([],!)._([|],!):-(=(!.,)!:=_(!.,,+)!:=_(!.,,)),_(,!)._(,):-_(,_(_),).:-_(()::,_(,)::__,_(,)::__)._([],!)._([|],!):-=^,(=(!.,)!:=_(!.,,+)!:=_(!.,,)),_(,!)._(,):-_(,),(((::,::,::,::):-(>=[|]=)),,[],).:-.:-.:-_,,.%(,,,!)%%.%,.:-(::,()::,.()::,::,::).%(,,!)%%,,.:-(::,.::,::,::).%(,,

vs.
;()-,;.;,;,:;.;,.;.;,;/.;.;.;'''';,,,;;.;,,,,,;(,,;;,,;);,,,;();,.(-:)(.--()(((()));[_]->(--)((()('())(())(())(()))(.--()));[]->((-)([[[](--[|]())]]))((()('())(())(())(()))((((.-())))('('(()((.--()(()()))()))))));[]->((-)([[[(--)]](--[|]())]))((()('())(())(())(())(()))((((.-())))('(((.--())))(.--()(()())))));_[]->([(--)])((()('())(())(())(())(()))('()()(.

vs.
.(:)-..:<;\'..--:--+;:([],[]--)([]..[])--+@>()(,,,)(<=<=<=)@@+@@-<=@>@!>!-+<>(,,,)(<=<<=)(,,,)-+>(,,,)<()<();:(,--)([]..[-]"".)?="."-+([],[-]);..\..**//'."."/-'./-/<>[].(.)[]-'.//.:..(--)'./?+;'<--+%*-+%*-:-%+-%*;(--)\:-%+;:--.@>=;(--)\:--;:.(--).@--.!;:>(---)-.@<(-).!-(-)\",'\\"?-?;:#(--)-+-;:(---)-.@-?-;:.(--).""#.."";:-(--)-?.!-+-?-?.@-?>.--?.@??..-;:-

vs.
*[]=:[]:#:#,:#[,)(:):=.-.(:,:)=##(<=.->=.,":.")<.:=.-.[+...+.+-]=.[..+-]:=+(.-.)=-..[....+-]=.[....+-].=+..=(:,:)=(<=.<=,":.").(.-.)..().=..=.=*[](:,:,:)=##..##..(<=<=.,":.").==.:.(.*).!=:.().[.]=(.)(.)*[](:[],:)=.(,.)*[]():[]=.=[]().=.=*[](:[]):[]==[]():.()*(:,,:)=##[,)(<=<=<=.,":.")=.>::.+(-.)=.>::.+(-.)<=..<=:.=.=<=.:.().=:=-..[....+-]=.[....+-].=.+-..
>>
>>72711699
python
lisp
perl
ruby
>>
>>72711699
Second one looks like a lisp dialect.
>>
>>72711699
one of them is haskell and it isn't 2
>>
>>72711717
>lisp
>semicolon
come on anon
>>
Does "(int)" style type casting break definition safety? I found a struct definition with missing arguments that really shouldn't compile that instantly crashes on launch but I'm shocked compiles

Is that why the longer static_cast<bleh> is referenced in compiler messages and everywhere?
>>
File: 1566652557573.png (449 KB, 900x1294)
449 KB
449 KB PNG
>>72711748
Some abomination of a lisp dialect might use it.
>>
>>72711712
Python? Where would you see :: in Python? This is Python:
("___")_(,_,):____(_):[''].()==:=._([''],):(,):=.()(._(.__("__"),)._(.__("__"),))()#--:-.##.(.):""".'//.>.'"""____():(,).____("-",._,._)(,,_):()==:=".":=:__=.__("__+")__=.__("(__)--*").:.("',_?")=.()[]_=._(,__,__).()_=.(_,)(,''):.(_).(""++"\")()####-##(),-##:#<.@.>##.#,_=__():.__()==._:._().-.__()==._:=._().[]>(-_-):--:.__(.___())['']:.(","".")_(_,):==-:=

Lisp is right.
Perl? this is perl:
######::::;::();(@@@@@@@%%$);@=(::);$=".";@=();@=();@={($_,,)}@;@={($_,,)}@;@=();@=(());@[,,]=();@[,]=();@{@}=(..(@));@{@}=(..(@));@{@}=(..(@));@{@}=(..(@));#_{$[$_[]->[]]}_{$[$_[]->[]]}_{$[$_[]->[]]}_{$[$_[]->[]]}_{$[$_[]->[]]}_{$_[]->[]>=?$[]:$[]};######::::;::();(@@@@@@@%%$);@=(::);$=".";@=();@=();@=();@=();::::();@=@{::::::};@=@{::::::};@{@}=(..(@));@

Ruby? If you see a : in Ruby, it's usually a ::. This is Ruby:
#__:'/''/'::::<::'',''_'--',''|,|[:]=_'--',''|,|[:]=_'-','--',''|,|[:]=_'-','','<>.'|,|[:_]=#::"_"#::<<-.::.:$_-..:'.../_-.'$_-..-->_-./_-..$_-.[]$_-..:$_-..--=.#::"#{_}_"=___.?+='.'.?+'.'.?=::.()[:_].(.())=::..()_()_()_":#{}"__()::.(,[:],[:],[:])_".."_#__:'/''/'''=>(._?(:)&&.=='')||.=~/--$/::::<::'','',:=>[],:=>[],:=>[],:=>[],:=>[].::::|_|=::::.._::::,"#

>>72711748
semicolons start comments in all Lisps
>>
>>72711769
it's not lisp then anymore
>>
>>72711772
>semicolons start comments in all Lisps
what kind of fag comments code?
>>
>interview a candidate
>candidate can't even pick out the language he's interviewing from
>from this list of punctuation samples
why did you even apply for this job
>>
>>72711795
I don't know meme languages like r*by
>>
>>72711772
>Lisp is right.
>including comments
>including [] and - and >
Is this some clojure bullshit dialect?
>>
>>72711841
it's Common Lisp, but it's implementing Shen, so it's filled with Shen comments that correspond to the CL:
 ; [hd X] -> (blah)
>>
babies first text adventure trying to wrap my head around while loops in python. can someone help me phrase something better for google searching. I'm trying to set a health global while loop that I can reduce from certain activities. could I define something like

def health():
print('You feel great you are well rested in tip top condition.')
while health >=1:
start()
if health == 0:
dead('You lose consciousness from exerting yourself.')
else:
print('You feel you can continue.')

what sort of keywords do I need to use to find stuff about a loop like this? I have no background in programming and therefore lack the jargon to communicate what my question is to a search engine.

I'm hoping I can set health to i and then use functions like i = i-1 for events to lower health or increase it.

any ideas I'm sort of fumbling my way through here.
>>
>>72711509
imagine being so delusional that you compare working with excel to performing a medical operation on yourself
do you pay people to cook or clean your room because you can't do it yourself as well, you fucking faggot?
>>
>>72711886

excel is basically rocket surgery, because rockets use math and excel uses math
>>
>>72711885
It sounds like you already have it. There's a global health variable that you decrement depending on events then you check it at the top of the gameplay loop.
>>
>>72711886
>do you pay people to cook or clean your room because you can't do it yourself as well, you fucking faggot?
Do you not have a gf/wife anon?
>>
>>72711863
Please fuck off with this shen shit. Yikes you disgust me.
>>
>>72711197
>>72711285
>>72711509
Quit being a gay baby say what your offering to pay and then say what the job entails or are you not familiar with supply and demand. Otherwise this is not the place and you may want to make a fiver account to find someone. This is not a good place to try and find a reverse auction tier 1 desktop support.

If you are asking some bullshit UI or actual programming shit of excel/open office then you probably can't afford it. Then again no one but you knows what you want right now.
>>
>>72711885

Your likely running into "scope" issues.

Read what a good beginner book has to say about scoping rules
>>
File: 1562994448101.jpg (82 KB, 500x631)
82 KB
82 KB JPG
>>72711955
#include <softdom-gf>
>>
>>72711988

>softdom

>literally has a leash on
>>
>>72711988
Fuck I didn't know this was a thing and now I'm feeling extremely lonely fuck fuck where do I find softdom gf I need it
>>
>>72711955
>paying your wife to clean and cook
i think you're confusing prostitution with relationships, anon
>>
File: 1567989514568.jpg (99 KB, 700x1150)
99 KB
99 KB JPG
>>72711988
#include <neet-gf>
>>
>>72711977
>needing a book to understand basic block scoping
Lmao just google python scope
>>
>>72712032
I pay my gf with semen.
>>
>>72711928
I maybe you're right and I do. I'm still making some basic bitch shit here.
>>72711977
I'm limiting my scope to if elif else functions and not nesting those functions. It's almost like a weeklong gamejam to see what I have learned and what I still need to fiddle with and look up.

How do I do the uhh white box for posting code here? I want to make sure I include my tabbed in blocks so if people see some dumb shit I'm still blind to they can point it out.

Right now its running without errors
>>
>>72712132
Cringe. Imagine wanting to be tethered to a retarded good for nothing insecure loser for the rest of your life.
>>
new thread >>72712155
>>
>>72711988
>>72712132
How to do white box for code?
>>
>>72712162
>Imagine wanting to be tethered to a retarded good for nothing insecure loser for the rest of your life.
Not all women are that bad, anon.
>>
>>72712169
Read the sticky, faggot
>>
>>72712183
Correct. My softdom gf will be a useful and capable member of society who will arrive home from work around the same time I do and then she will dress me up in panties and a skirt before playing with my privates and then having hot sex with me
>>
>>72712169
[ c o d e ] . . . [ / c o d e]

However if it's a long or dumb program just use pastebin.
>>
>>72712191
the sticky or the wiki?
>if faggot in OP

mein gott
>>
>>72712238
If you're on desktop I believe it always says under the post form (the one at the top of the page, not the floating reply box) that you can write code tags. You're probably a dirty phone poster though.
>>
>>72712229
My neet gf would have barely woke up by the time I got back from work and would make us a delicious dinner, and her hair would be messy and she's have big sexy eyebags. Then we would have a comfy evening and stay up til 2am.
>>
File: inane.jpg (95 KB, 400x413)
95 KB
95 KB JPG
Please help out the poor village idiot
I'm trying to create a regex to pull out a card name from the text of random Magic: The Gathering cards. I know that the text will fit one of two patterns:
Partner with card_name\n
Partner with different_card_name (Bunch of text in parentheses)\n

So what I have after struggling for a while is:
(?:Partner with (.+)(?= \())|(?:Partner with (.+)\n)

It successfully captures the card name ((.+) is the capture group I'm concerned with), but depending on the pattern it will either be in $1 or $2. Is there a way to construct it so that there's only one capture group? It would simplify my code.
>>
>>72712261
even worse I have persistent float on
>>
>>72706982
The purple one
>>
>>72712140

beginner programmer -> proper foundation suggestions
>>
>>72710185
In Haskell, this is just
reddit [] = []
reddit (x:[]) = x:[]
reddit (x:y:zs) = toLower x: toUpper y : reddit zs
>>
>>72712883
*
reddit (x:y:zs) = toLower x: toUpper y : reddit zs
reddit x = x
>>
>>72711748
semicolons are for comments, retard
>>
>>72712883
>>72711112
>>
list of questions to ask my next employer
>do you/would you use Google Chat? if not, what do you use for internal communications?
using Google Chat is an instant disqualifier. I don't care how good your workplace lunches are when I'm eating shit from the chat platform for hours a day.
>what are your server names like? do you have memorable 'funny' names, or numbered servers, or long names that include multiple database columns of data?
probably not a disqualifier, but don't want to be surprised by option #3



Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.