[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 307
Thread images: 40

File: learning_curves.png (256KB, 1012x1896px) Image search: [Google]
learning_curves.png
256KB, 1012x1896px
What are you working on, /g/?

Old thread: >>60942063
>>
I wanna die
>>
File: 1487253582631.jpg (57KB, 415x440px) Image search: [Google]
1487253582631.jpg
57KB, 415x440px
>zero isn't in ℕ
Math grad here just stopping by the zoo to feel better about myself. Whew, stinky in here!
>>
>>60944145
me too thanks
>>
Commas are thousands separators
Periods are decimal markers

Non-English speakers: when in Rome, etc.

You can use your weird notation when using a non-English programming language
>>
>>60944148
So what do you think? Is it or is it not in N? Because mathematicians themselves are not clear on the issue, and sometimes say that N includes 0, whereas N* does not.
>>
File: wrong.gif (1MB, 480x287px) Image search: [Google]
wrong.gif
1MB, 480x287px
>>60944148
>he thinks zero is in ℕ
>>
>>60944151
>>60944145
programming is actually one of the best treatments for depression, so press Ctrl+W, surf github and start contributing and arguing, you negroes
>>
>>60944148
>Math grad here
With the quality of most colleges as low as it is these days that's not saying much
>>
ƒ
>>
>>60944173
>1.21 MB for a stupid gif with a few frames
It's no wonder you kids don't care about memory.
>>
File: lau.webm (567KB, 445x247px) Image search: [Google]
lau.webm
567KB, 445x247px
>he needs static typing
>>
>>60944184
.ancy
>>
>>60944176
I can't, all I have is a laptop, the whole screeen is crunched and i don't have a mouse, I can't be productive
>>
>>60944190
If you're worried about downloading a 1.21 MB image, then perhaps you should get a job and get a better internet service
>>
>>60944166
>Is it or is it not in N?
The usual construction includes it.
Also see the Peano axioms, even CS monkeys should know about this.
>N includes 0, whereas N* does not
That's what usually happens.

>>60944183
I didn't mention my country.
>>
>>60944200
>he likes doing work the compiler could do for him
>>
>>60944148
>>60944166
>>60944173
>>60944183
see: >>60944188
>>
>>60944200
I don't like reading code with dynamic typing, it forces me to deduce types myself
>>
>>60944211
>all I have is a laptop
Buy a real computer.
>>
>>60944200
Confirmed for never having worked in a team.
>>
>>60944222
>I didn't mention my country.
It doesn't matter, average college quality is worryingly low across all countries. (Although the US fares better than most.)
>>
>>60944213
I'm not worried about it, I just think it's a waste.
>>
>>60944242
Then don't download it. Just leave it as a thumbnail.

You must have the impulse control of a 3 year old.
>>
>>60944120
>haskell productive
consider me triggered
>>
>>60944226
see >>60944222
Also, don't directly reply to my posts. I don't want to be associated with you.
>>
Reminder: you may only post in /dpt/ if you have a CS degree that contained mandatory use of Scheme, ML, or Haskell.
>>
>>60944302
Does mandatory choice count
>>
>>60944285
>>60944265
>Undefined.
>Undefined.
>Undefined.
I don't have to define every term I use. That's not how communication works in any human language. These are words you should know on your own.
>Indeed. And someone who thinks the symbol (the name) "1" should be the identity for "+" deserved to be ridiculed.
No one thinks that. In fact, that's impossible. However, it's unnecessary for the smallest natural number to be the additive identity. Much like whether or not 0 is a natural number, it's undecided whether or not the natural numbers are defined as a sequence whose smallest element is the additive identity.
>I don't know your retarded definition of those words. You seem to keep using non-standard definitions.
You don't need to know any definitions of those words except your own.
>Are those the only "integers"? Are they "equal"?
You already know this.
>"x + 1 = x" or "x + 0 = x". The choice is entirely up to you.
See above.
>>
>>60944327
What were the available choices? Which did you choose?
>>
>>60944336
Any programming language
>>
>>60944330
He's obviously a moron if he thinks defining N = {1, 2, 3, ...} means that 1 must be the additive identity.
>>
>>60944354
>He's obviously a moron
This is true but irrelevant.
>>
>>60944351
Which programming language did you choose?
>>
File: pop-up-meme.jpg (34KB, 400x300px) Image search: [Google]
pop-up-meme.jpg
34KB, 400x300px
>>60944120
We are making a web browser >>60943247
>>
>>60944364
one o >>60944302
>>
>>60944365
Okay.
>>
@60944330
>However, it's unnecessary for the smallest natural number to be the additive identity.
It's necessary for N to be a semiring. Fortunately most mathematicians aren't as retarded as you and they include 0 in the natural numbers.
>it's undecided whether or not the natural numbers are defined as a
The natural numbers are usually defined as the least set which contains zero and is closed under the successor function.
>>
>>60944378
If you're not lying (and I'm suspicious of any degree program that would let you choose any programming language) then you may post in /dpt/.
>>
>>60944397
Thank you Gatekeeper
>>
>>60944392
>It's necessary for N to be a semiring.
It's not necessary for N to be anything.
>>
>>60944397
>I'm suspicious of any degree program that would let you choose any programming language
uc berkeley
>>
>>60944405
You are welcome.

Mine is a thankless task, but necessary in order to preserve the high quality and standards of /dpt/.
>>
>>60944433
>berkeley
Exactly, anon.
>>
>>60944418
Do you have trouble with the English language? An additive identity is a requirement for being a semiring.
The Peano axioms are pretty standard and they blatantly and explicitly include 0 in the first axiom.
>>
File: baby-on-computer.jpg (78KB, 960x640px) Image search: [Google]
baby-on-computer.jpg
78KB, 960x640px
>>60944392
>It's necessary for N to be a semiring.
No it's not. If N includes 0, it's a semiring. If not, it doesn't have an additive identity. But there's not actually anything wrong with that, because anyone who wants to use N to do something like, for example, define other sets, would obviously define it as including 0 anyway. But what if you don't have any need to do such things? Such as is the case when, for example, you are a programmer.
>The natural numbers are usually defined as the least set which contains zero and is closed under the successor function.
The particular "usually" in question is not close enough to "always" for that to be the actual, authoritative, unquestionable definition.
>>
>>60944120
Do a C learning curve
>>
>>60944456
I think you may be having trouble with the English language and/or basic logic.

The definition of a semiring is irrelevant to the definition of N if N is not required to be a semiring.
>>
>>60944456
>The Peano axioms are pretty standard
There's no such thing as "pretty standard." They're either standard or they aren't. In this case, they aren't. You might mean "pretty widely accepted." And I'll grant you that they're pretty widely accepted. But "pretty widely accepted" still falls short of "standard."
>>
>>60944302
>mandatory
>CS degree
lol thats the only way anyone has every used any of those languages.
>>
>>60944502
wrong
>>
>>60944392
>@
Go back to Twitter.
>>
>>60944506
Don't burst his protective bubble, he's a "pragmatic programmer", he doesn't need advanced programming language features when he can just use brute force, it's the "practical", "real-world" approach.
>>
>false sharing
How do I deal with this shit? Feels awful. Do I just allocate chunks of memory with this in mind and have my non-parallel algorithms account for the gaps I've made? It feels like an awful solution.
>>
>>60944531
Not him but everything you intended as sarcastic in that post is actually true. Brute force is the way to go tbqfhfamalamadinglyfuckingdonglydoogle.
>>
>>60944222
>Also see the Peano axioms, even CS monkeys should know about this.
Indeed, considering that it's in a second year basic math logic class and I'm doing CompE (Europe though).
>>
----60944471
>No it's not.
Do you have trouble with the English language? An additive identity is a requirement for being a semiring.
>But what if you don't have any need to do such things?
You trying to argue with commonly accepted definitions without actually having a use for it just shows your retardation.
>actual, authoritative, unquestionable definition.
You don't seem to understand that there can't possibly be any unless you can control every single person.

----60944495
>However, it's unnecessary for the smallest natural number to be the additive identity
I replied with
>It's necessary for N to be a semiring.
It's obvious to any non-retard what I meant.

>>60944501
>They're either standard or they aren't.
They are axioms. Most people accept them.
>You might mean "pretty widely accepted."
Yes, that's what I should have said.
>>
>>60944557
You've made me afraid to look for another job, anon. At my current company I would be mocked if I posted that and it were not clearly in jest.
>>
>>60944392
>It's necessary for N to be a semiring
It's not though. If N's smallest element is 0, then the fact that it's a semiring is helpful for defining other sets. If N's smallest element is 1, then, generally speaking, the set of all whole numbers has a smallest element of 0 instead, and so it instead is the set which is helpful for defining other sets. It's the same set either way, there's no practical difference between calling it "natural" or calling it "whole."
>>
>>60944579
>It's necessary for N to be a semiring.
It is not. I don't understand your queer, fanciful notion that it is. Is it the result of a poor education?
>>
@-0------
@-0------
Do you have trouble with the English language? An additive identity is a requirement for being a semiring.

>"whole numbers"
Nobody actually uses that, not even CS monkeys.
>>
Every once in a while we get these really stupid debates about mathematical concepts ITT, like is 0 a natural number or are integers real numbers.
>>
File: 1464171344668.jpg (31KB, 606x340px) Image search: [Google]
1464171344668.jpg
31KB, 606x340px
>>60944173
That's a pretty stupid thing to say.
>>
>>60944641
>are integers real numbers
What did he mean by this?
>>
>>60944631
>An additive identity is a requirement for being a semiring.
That has no bearing on the definition of N, because it is not necessary that N be a semiring.
>>
>confusing natural numbers with the whole numbers
Retards
>>
>>60944644
Another flustered continental European? Come one, come all, I suppose.
>>
>>60944579
>You don't seem to understand that there can't possibly be any unless you can control every single person.
No, that's what *you* don't seem to understand. This whole argument started because I didn't count 0 as a natural number and you didn't like it. However, I was justified in not counting 0 as a natural number, because there's no standard definition of the term "natural number." The fact that there's a widely accepted definition is irrelevant, because that widely accepted definition is not standard.
>They are axioms. Most people accept them.
Are you trying to suggest those two statements are related? Because they aren't. You can define any self-consistent system of axioms you want. Are they true? Yes, within their own system. But people don't have to accept their truth if they don't even accept your system as a whole at all. I could define a system of axioms that only has one axiom: "Let metal be defined as bad, where bad is unspecified." Metal fans would be pretty mad about that.
>>
;-0------
>because it is not necessary that N be a semiring
Keep reading the post this originally came up in until you understand what I said.
>>
>>60944673
Sorry, I'm not subhuman.
>>
>>60944661
A while ago some anons were confusing the concept of programming language types with the concept of numbers in mathematics, and one of them started arguing that ``integers are not real numbers'' and shit like that.
>>
>>60944631
>>60944676
Quit spamming.
>>
File: 1484428752890.gif (690KB, 139x200px) Image search: [Google]
1484428752890.gif
690KB, 139x200px
>>60944120
>haskell productivity
>>
<<_0---_-_
>Are you trying to suggest those two statements are related?
Do you have trouble with the English language?
>But people don't have to accept their truth if they don't even accept your system as a whole at all
Most people accept the Peano axioms. They are the closest thing possible to a "standard". You being retarded doesn't somehow make this untrue.
>>
>>60944710
>a nigger
You're probably the kind of person who thinks N doesn't include 0. Leave.
>>
>>60944725
>person
What were you going to mean by this?
>>
>>60944725
N isn't a number, it's a letter
>>
File: eggy.jpg (59KB, 500x526px) Image search: [Google]
eggy.jpg
59KB, 500x526px
>>60944716
>Most people accept the Peano axioms. They are the closest thing possible to a "standard".
Yeah but they're not standard though. My choice to omit 0 from N means I didn't accept them. (I do, however, accept them as relating to w instead of to N.) Since they're not standard, there's nothing wrong with that.

By the way, I sometimes also define N as including 0, in which case I do accept the Peano axioms. Depends on the day of the week really.

Also, stop spamming.
>>
>>60944676
You mean this?

>>60944392
>It's necessary for N to be a semiring.

You have provided no supporting evidence of that claim.
>>
>>60944148
The truth is that most """programmers""" are better classified as computer niggers.
>>
"Programming is one of the most difficult branches of applied mathematics; the poorer mathematicians had better remain pure mathematicians."
>>
@60944753
>eggy.jpg
I can't say I'm surprised a retard such as yourself would think 0 isn't in N.
>>
File: doobmcfroob.jpg (3KB, 373x550px) Image search: [Google]
doobmcfroob.jpg
3KB, 373x550px
>>60944773
>kek
>>
File: ggegygye.jpg (108KB, 500x1051px) Image search: [Google]
ggegygye.jpg
108KB, 500x1051px
>>60944777
It isn't, though, at least not when I don't feel like deciding it is. It is when I do. How is this so difficult for you to understand?
>>
@60944779
@60944786
>kek
>doobmcfroob.jpg
>ggegygye.jpg
I still don't think you can count to four.
>>
>>60944786
It's simple, he is incapable of it.
>>
>>60944779
dumb frogposter
>>
File: ygge.jpg (60KB, 500x526px) Image search: [Google]
ygge.jpg
60KB, 500x526px
>>60944779
dumb frogposter
>>60944793
what the fuck are you lumping me in with the dumb frogposter for
>>
>>60944749
It would be weird if that was a number... Numbers don't contain other numbers... or do they now?
>>
>implying Python isn't the best language

#!/usr/bin/python
import numpy as np
import sys
N = int(sys.argv[1])

primesum = 0
for i in range(2, N + 1):
prime = True
for o in range(2, int(np.sqrt(i)) + 1):
if i % o == 0:
prime = False
if prime:
primesum += i
print primesum

primesum = 0
nums = np.array(range(2, N + 1))
for i in range(2, int(np.sqrt(N)) + 1):
nums[np.where(np.logical_and(nums % i == 0, nums != i))] = 0
primesum = np.sum(nums)
print primesum
>>
@60944809
>ygge.jpg
You aren't any better.
>>
>>60944810
>Numbers don't contain other numbers...
>calls himself a programmer
>rejects the basic principle of a RAM device
leave
>>
>>60944831
So how much RAM does RAM contain?
>>
File: 1477413083638.jpg (41KB, 374x347px) Image search: [Google]
1477413083638.jpg
41KB, 374x347px
I want to make a method in Python that has the user pass in words and numbers, converts all the inputs to strings while using ";" to denote breaks between inputs, append those to a list and then randomly output one item.

>.choose word; 14; word2; word3; 55
>append each one as a string to the list
>return list[randomnumber]

Right now it's only appending every individual character and including the semicolons and then returning a random one.
>>
>>60944831
How is RAM defined mathematically? Sorry, must have missed a few lessons.
>>
>>60944831
>calls himself a programmer
"programmer" these days means the same thing as "code monkey". Why would you call yourself that?
>>
>>60944055
ok then explain why in Java you have to use synchronization mechanisms despite having a garbage collector
>>
File: lol.png (103KB, 955x320px) Image search: [Google]
lol.png
103KB, 955x320px
>>60944817
>@
Quit spamming.
Pic related: you
>>
>>60944843
Dumb animeposter
>>
@60944753
@60944779
@60944786
@60944809
@60944851
I want to see the reasoning why you're not from tumblr, which you obviously are.
>>
File: kiddo4.gif (3MB, 448x287px) Image search: [Google]
kiddo4.gif
3MB, 448x287px
>>60944864
>@
>@
>@
>@
>@
Quit spamming.

Also:
>accuses people of being from tumblr
>uses cancerous @
gg no re
>>
@60944851
>Pic related
Is this image from "facebook"? It's pretty funny! Where can I subscribe to it?
>>
>>60944880
>gg no re
>>>/v/
>>
>>60944885
>@
Quit spamming.
>>
@60944880
>gg no re
What does this mean? Is it from "facebook"? Where can I subscribe to your "facebook"? I want to learn "gg no re" and other funny words.
>>
File: duke4.gif (188KB, 499x375px) Image search: [Google]
duke4.gif
188KB, 499x375px
>>60944190
holy sh*t, your complaining about the size of a 1.2mb gif?

I know is must be tough viewing something so big on your magnetic core memory but pleas keep in mind many of us have upgraded our memory and/or computers since the 80's
>>
@60944880
>>60944896
>gg no re
Haha! Cool! Where can I subscribe to your "facebooks"?
>>60944921
Is that a "game"? Cool! I love gaming!
>>
>>60944905
Does "gg no re" contain 0?
>>
@60944929
>"gg no re"
This is cool! Where can I subscribe to get more of this?
>>
Reminder that most of /dpt/ cannot program without GC
>>
File: >trash.jpg (63KB, 500x526px) Image search: [Google]
>trash.jpg
63KB, 500x526px
>>60944896
> >
> >>>/
>>>/trash/
>>60944905
>facebook
>>>/trash/
>>60944927
>facebooks
>>>/trash/
also 0 is only in N on non-Saturdays and today is Saturday so get fucked son
>>
>>60944949
>GC
Is that a cool game?
>>
>>60944302
My class called "Programming Languages" only contained an intro into Smalltalk, Prolog, Haskell and occam (not OCaml !!!).
Do I still qualify?

Plus, I'm not a CS faggot. I'm CE or maybe you would call it EECS.

MLton is fucking rad though.

>>60944641
>>60944661
>>60944697
Now I understand the "CS monkey" thing.

>>60944779
>>60944773
As far as I know that's an actual quote from Dijkstra. Don't know the context though.
>>
>>60944958
>Now I understand the "CS monkey" thing.
You should really try to distance yourself from their kind. It'll only get worse with time.
>>
>>60944958
>from Dijkstra.
Don't even fucking pretend like he was talking about the same kind of programming you and I talk about when we talk about programming. This is the fucking little league. This is the brainlet camp. This is where people go when they think that whether or not 0 is in N is a decided problem.
>>
>>60944958
You don't have a CS degree, so you don't qualify. >>>/wdg/ might be more suitable for you.
>>
>>60944148
It's subjective honestly, but I think nowadays if you see "N" people will understand you want to start with 0. As opposed to "N+" in which case you will start with 1.
>>
File: shiggy.jpg (5KB, 200x200px) Image search: [Google]
shiggy.jpg
5KB, 200x200px
>>60944985
>@
Quit spamming.
>>
>>60944984
I always use N^+ or N_0, that way it's unambiguous.
>>
>>60944984
N is {1, 2, 3, ...}

N0 is {0, 1, 2, 3, ...}
>>
>>60944120
Have they solved the open problem of 0 being in N or not yet?
>>
At least we're only debating whether or not one particular number is in N.

Python users are still debating whether 1, 2, 3, etc. are in N.
>>
Trying to create a program which proves that "0 is in N or 0 is not in N" is unsolvable by any Turing machine.
>>
>>60945035
Well, at least me being balls-deep in your mother isn't up for debate.
>>
Anyone in this thread who has an opinion on whether or not 0 is in N needs to chill the fuck out and watch this video. https://youtu.be/PL9iMPx9CpQ
>>
>>60944812
your prime number generator could be improved. Your using the trial division method which is one of the slowest methods to generate primes.

You should use a sieve, such as a sieve of Eratosthenes or a wheel sieve.

here is a sieve of Eratosthenes, it should generate all primes up to 100000000 easily under a second.
def sieve(size):
array = [True] * size
for each in xrange(3,int(sqrt(size))+1,2):
if array[each]:
array[each*each::2*each]=[False]*((size-each*each-1)/(2*each)+1)
return [2] + [each for each in xrange(3,size,2) if array[each]]


If you want to sum the primes simply:
>>> sum(sieve(10000000))
3203324994356


trial division speed is O(n*sqrt(n)/ln(n)^2), whereas a sieve of eratosthenes is O(n*ln(ln(x)))
>>
1. Why are F# errors so utterly shit?
2. What does "invalid module/expression/type" mean? I'm trying to use JsonProvider from fsharp.data.
>>
>>60945047
What if N is in 0?
>>
>>60944120
Is it an open problem whether or not 0.3 is an integer?
>>
>>60945068
That's currently an unsolved problem. People are working on it though.
>>
>>60945067
>What does "invalid module/expression/type" mean?
That's an open problem.
>>
>>60945097
What if people = 0?
>>
>>60945108
If you ask Stephen Hawking, that's actually true.
>>
>>60944436
>necessary in order to preserve the high quality and standards of /dpt/.
You've failed long ago then
>>
>>60945061
>it should generate all primes up to 100000000
Primeness isn't known to be decidable though? It's an open problem.
>>
File: hard work.gif (2MB, 320x240px) Image search: [Google]
hard work.gif
2MB, 320x240px
>>60945097
as we speak a team of highly educated mathematicians are working around the clock on the age-old problem "is 0 a natural number"
>>
>>60945120
Why does asking Stephen Hawking make it true?
>>
>>60945061
Yeah, if efficiency was my aim I wouldn't use Python in the first place. The point was you can whip up functional code in a very short time.
The second part of the code I posted is pretty much the sieve, except it marks the multiples of all numbers instead of just the primes; it wouldn't be too hard to improve it in that way without ending up with the unreadable clusterfuck you came up with.
>>
>>60945068
Wasn't that one of the millennium prize problems?
>>
>>60945139
>butthurt about his crappy inefficient code
>>
>>60945139
>except it marks the multiples of all numbers instead of just the primes
Isn't that an unsolved problem though?
>>
hey anons, i'm trying to actually get into programming. i used to do actionscript and html shit when i was younger, but never got far as my interests wandered elsewhere. i've dropped my csci major(so i have done courses using light C++ and Java) cause i kind of hated it... but i'm still interested in programming.

my goal is to be able to make apps and scripts where i feel like i can't find what i want. also i'd like to get a nice personal website. i'm on Mac and intend to move to Linux in the future when i can afford a new computer.
i also want to be familiar with languages that are used in cryptocurrency/blockchain.

>what should i learn and in what order?

i'm just doing codecademy stuff to pass some time and learn a bit.

i'm interested in Python, Haskell, and Rust, but i don't know if these are what I 'should' be doing.
>>
>>60945166
>i'm trying to actually get into programming
Good. We need more people to help us solve the open problem of integers being real numbers.
>>
File: level100Pajeet.webm (2MB, 240x426px) Image search: [Google]
level100Pajeet.webm
2MB, 240x426px
>>60945139
>he uses trial division to find primes
Hows india, pajeet?
>>
>>60945185
Try harder.
>>
>>60945137
Apparently if you take the amount of energy there is and subtract the amount of space there is to hold it, you get 0.
Apparently this is the invariant under which time-energy uncertainty operates: energy can spontaneously come into being, but space must spontaneously come into being to hold it. It's like 0 is the flat, empty dirt plain we started out with, space is the hole we dug with a shovel, and energy is the dirt we dug out of it.
Keep in mind I know literally nothing about physics though.
>>
>>60945197
What does energy have to do with people = 0?
>>
>>60945166
Learn Java
>>
>>60944812
>>60945139
You have no sieve in your code.

A sieve requires a bounded array which you eliminate the non-possibilities from.

just because you dont understand what a sieve is, dont claim you programmed one
>>
>>60945206
People consist of matter.
Matter consists of energy.
The sum of all energy and all negative energy (i.e. space) is 0.
Therefore, people don't actually exist; they just appear to exist because their particular means of not existing is organized in that way.
>>
>>60944812
>if i % o == 0:
not a sieve
>>
>>60945216
>A sieve requires a bounded array which you eliminate the non-possibilities from.
That's literally what nums[...] is in the second part.
>>
>>60945177
i'd like to be better at math too. problems like this interest me but they're above my head atm. my shit mental health is only part of the reason why i failed calc 1 twice.
>>
>>60945224
What does that have to do with people = 0?
>>
>>60945252
That's undecidable. Don't listen to him.
>>
File: mindblown1.gif (2MB, 320x256px) Image search: [Google]
mindblown1.gif
2MB, 320x256px
>>60945224
>>
>>60944812
>% i == 0
That's not in general decidable.
>>
>>60945239
stop acting proficient in a subject you're not proficient in and READ about the algorithm and the reason it's efficient before programming it. you didn't make a sieve, you made a very naive solution. literally go read a book
>>
>>60944977
Don't get mad, bro. Of course he wasn't talking about the same kind of programming going on in these threads. Most guys here do software engineering/architecture and call REST APIs all day.
Dijkstra is an algorithm designer or better put: he simply solves problems using a computer.
So he was most likely (I still don't know the context, never read it) talking about actual problem solving using/based on math, because a computer can do all kinds of neat shit if you know how to use it properly. After all a computer is a mathematical construct.

Not that SE/SA is bad or unnecessary, it's quite the opposite.

>>60944972
They always "burn me out". Especially when some of my friends talk about how they're making a new calendar or some shit at their jobs. When the meme becomes reality I feel shit.

I did choose a computer related path because I got interested in AI early on in life, more precisely one day as a kid I realized while programming an old C64 that a deductive system could be made and the gears in my mind started to rotate.

I'll probably either end up somewhere proper in software or do hardware (related) stuff. In some cases the money is good though for code monkey stuff.
>>
>>60945270
Did you mean "educate yourself" my fellow Tumblrite?
>>
>>60945239
Thats not actually a sieve tho.
>>
>>60945208
as you wish senpai.
>>
>>60945292
you don't understand an algorithm while "correcting" others and i tell you to fuck off, so i'm from tumblr? do i have that right? if you don't know how to add would that make me tumblr too for saying you're an idiot?
>>
File: 1445705986467.jpg (31KB, 853x480px) Image search: [Google]
1445705986467.jpg
31KB, 853x480px
If I make a pie large enough that a thousand cherries are necessary to make it a cherry pie, have I made a "sen pie?"
[Translators note: sen means a thousand]
Programming challenge: help me make "sen pie" notice me! Write a program to compute the ideal dimensions of a cherry pie given the number of cherries available to put in it
>>
>>60945325
Kek I'm not even the sieve guy. You have anger issues though
>>
>>60944120
I don't understand these metrics. What does the chart implies by "self-assesment" and "productivity"?
>>
>>60945362
if you see an idiot being called an idiot, and your first instinct is to defend him, i can only assume birds of a feather flock together
>>
>>60945365
self assessment: how do you feel about your understanding of the language
productivity: what is actually getting done
>>
File: racist anime girl.png (245KB, 900x827px) Image search: [Google]
racist anime girl.png
245KB, 900x827px
>>60945379
>>
>>60945390
>>
File: laughing animu girl.jpg (10KB, 221x228px) Image search: [Google]
laughing animu girl.jpg
10KB, 221x228px
>>60945398
>>
File: AEecM5W.png (4KB, 768x768px) Image search: [Google]
AEecM5W.png
4KB, 768x768px
>>60945425
I have a sacred mission to fulfill.
I must purify the whole thread.
>>
My husband doesn't understand this constant warring between programming languages, and how one language can be better than another. How can I best explain it to him?
>>
>>60945436
tell him this
"they're waifu a shit"
surely he will then understand
>>
>>60945436
You cant unless if he progs. Best solution is to talk condescendingly to him and treat him like a child.

Or, if your > 7.5/10 you can just marry me
>>
File: animu hitler.jpg (47KB, 447x618px) Image search: [Google]
animu hitler.jpg
47KB, 447x618px
>>60945433
ill help anon.

I happen to have a final solution to your problem.
>>
>>60945461
>you're
ya blew it bud
>>
Who would win in a fight between Simon Peyton Jones and Guido van Rossum?
>>
File: there_is_no_more.webm (866KB, 720x404px) Image search: [Google]
there_is_no_more.webm
866KB, 720x404px
>>60945436
tell him there this thing called PLT that C ignored for the last 50 years.
>>
File: 0.png (36KB, 643x460px) Image search: [Google]
0.png
36KB, 643x460px
I made this small program which reads words from user and displays the word's Scrabble score.

https://pastebin.com/YupsWDwr

Is there any way to improve or get rid of the hideously long string of switch-case statements in the GetFacevalue() function?
>>
>>60945555
Use a lookup table.
>>
File: DEEP.jpg (13KB, 264x320px) Image search: [Google]
DEEP.jpg
13KB, 264x320px
Hey guys, I'm making a Java library to work with holidays.

Right now I'm focusing on copying the functionality of https://github.com/holidays/holidays . Currently only the "on" method is implemented, as well as a "isHoliday" method which is pretty much the same, but returns a boolean.

How would you handle the "between" method if the period is over a year? I can't check in the Ruby project code because I can't understand shit.

What other functionality would you like to see in such a library?
>>
I'll make an interpreter for a language in a query programming language - mySQL
first i'll learn mySQL

yes
>>
>>60945488
>animu hitler
i don't see any animation
>>
Is their a free bootstrap drag-and-drop builder?
I fucking hate HTML and CSS, it's retarded, but I need to put things together quickly that my designer can re-organise later.
>>
>>60945488
to be fair le batteur would totally fucking team up with Hitler
>>
>>60945555
static int facevalues[26];
int getFacevalue(char c) {
return facevalues[c - 'a'];
}
>>
Better?

def sieve(N):
primesum = 0
nums = np.array(range(2, N + 1))
primes = np.ones_like(nums)
i = 2
while i <= np.sqrt(N):
primes[(2*i - 2)::i] = 0
i += 1
while i+1 <= N and not primes[i-2]:
i += 1
primesum = nums[np.where(primes)].sum()
return primesum
>>
>>60945680
>>60945565
Thanks, I will need take a look at this approach.

By the way, may I ask why did you define your array to be
static int
instead of just int?
>>
>>60945728
step by two. you only need to check odd numbers.
>>
>>60945746
No.
Also it would be more pythonic if I eliminated the loop that increments i and used list comparisons instead but I can't be bothered to figure that out right now.
>>
>>60945769
ok
>>
>>60945728
>primes[(2*i - 2)::i] = 0
You only need to start at i*i.
>>
>>60945742
https://stackoverflow.com/questions/572547/what-does-static-mean
>>
>>60945769
>>60945728
>>60944812
I highly recommend this book. It is one of the singularly most important math books i have studied in relation to programming
>>
File: num theory.jpg (71KB, 487x648px) Image search: [Google]
num theory.jpg
71KB, 487x648px
>>60946169
forgot to post image.

>>60945769
>>60945728
>>60944812
I highly recommend this book. It is one of the singularly most important math books i have studied in relation to programming
>>
>>60945742
Just a habit. In C and C++, top-level static is like private, but for files. It means the symbol won't be in the binary, only the object itself will. It helps avoid name conflicts at link time, but also means you can't access the object from outside the file (unless you export a pointer to it via a function or similar).
>>
>>60944120
What the fuck is the Y axis?
>>
>>60946221
ya i agree its a shitty graph.

the y axis (at least im guessing) is implied to be magnitude and is dimensionless.
>>
#!/usr/bin/python
import numpy as np
import sys

def loops(N):
primesum = 0
for i in range(2, N + 1):
prime = True
for o in range(2, int(np.sqrt(i)) + 1):
if i % o == 0:
prime = False
if prime:
primesum += i
return primesum

def nparray(N):
primesum = 0
nums = np.array(range(2, N + 1))
for i in range(2, int(np.sqrt(N)) + 1):
nums[np.where(np.logical_and(nums % i == 0, nums != i))] = 0
primesum = np.sum(nums)
return primesum

def sieve(N):
primesum = 0
nums = np.array(range(2, N + 1))
primes = np.ones_like(nums)
i = 2
while i <= np.sqrt(N):
primes[(i**2 - 2)::i] = 0
i += 1
while i+1 <= np.sqrt(N) and not primes[i-2]:
i += 1
primesum = nums[np.where(primes)].sum()
return primesum


$ ipython
Python 2.7.6 (default, Oct 26 2016, 20:30:19)
Type "copyright", "credits" or "license" for more information.

IPython 1.2.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: import sumofprimes

In [2]: %timeit sumofprimes.loops(100000)
1 loops, best of 3: 1.47 s per loop

In [3]: %timeit sumofprimes.nparray(100000)
1 loops, best of 3: 1 s per loop

In [4]: %timeit sumofprimes.sieve(100000)
100 loops, best of 3: 12.7 ms per loop


Wew, even with the shitty optimization on the sieve.
>>
>>60946447
mine: >>60945061
def sieve(size):
array = [True] * size
for each in xrange(3,int(sqrt(size))+1,2):
if array[each]:
array[each*each::2*each]=[False]*((size-each*each-1)/(2*each)+1)
return [2] + [each for each in xrange(3,size,2) if array[each]]


def test3x():
for each in range(3):
timer=time()
trash=sieve(10000000)
print "execution time: " + str((time()-timer))

>>> text3x()
execution time: 0.646175146103
execution time: 0.640619039536
execution time: 0.636613845825
>>
File: 15735567855_ed6ddd93ae_z.jpg (72KB, 640x640px) Image search: [Google]
15735567855_ed6ddd93ae_z.jpg
72KB, 640x640px
what is the most pythonic way to write c
i want to write pythonic code because python is a good language
but i don't want to actually use python because all implementations of python are cancerous piles of ass
(just like many dynamic languages out there that are also good languages with no good implementations)
>>
>>60946915
What makes things pythonic other than the significant whitespace?
>>
File: angrydonald.jpg (13KB, 639x480px) Image search: [Google]
angrydonald.jpg
13KB, 639x480px
>using python
>letting python style seep into actually good languages

STOP!!!
>>
>>60946928
List comparisons.
>>
>>60947017
What's a list comparison?
>>
>>60946928
single-line multivariate nested loops
>snakefags will defend this
>mfw
>>
>>60947036
l1 = range(20)
l2 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]

print l2 == l1


In C you'd have to iterate over the list.
>>
File: 1495447892239.png (92KB, 238x237px) Image search: [Google]
1495447892239.png
92KB, 238x237px
>>60946915
Actually kill yourself, holy shit.
>>
>>60947079
Python is still iterating over the list, it's just hiding it from you.
Why is this so important?
Other languages aren't so opaque in what they're doing.
>>
>>60947079
What the fuck do you think python is doing behind the scenes?
>>
>>60947079
>in C you'd have to iterate over the list
so?
>>
>>60947079
comprehension
>>
>>60947096
idk it just works
>>
New thread. this one is about to reach bump limit.
>>60947113
>>
>>60947093
Readbility. Maintainability. It's like complaining about C hiding the actual register addresses and low-level CPU instructions from you. That's the whole point of high level programming languages.
>>
>>60947129
This post sums up "pythonic".
>>
>>60944120
Anybody have any experience with serverside chat programs? I originally went with XMPP, but it really is an outdated piece of shit. Most of the use cases aren't valid for modern chat applications.

I'm sick of reading/wrestling with the stupid XMPP protcol so I'm going to go ahead and write my own.

I'm torn between using Node.js and Python on the serverside. Is that a bad idea? I really don't care about scalability and overall performance as the chat app is going to have a very small user base.
>>
>>60947143
Just write a range() function in C then you autist?
>>
>>60947143
How the fuck is this maintainable if you don't even know what your code is doing?

No, there's NOTHING like this in C, if you want to hide complex operations on variables, you have to compartmentalize it in a function and hide it from yourself.
>>
>>60947158
>just spend two hours writing 50 lines of code instead of using built-in functionality LMAO

>>60947168
You know immediately what the code is doing: it's checking whether two lists match up element for element. You can see that's what's going on at a glance. In C you have 5 lines at least, requiring more reading.
>>
>>60947155
I created a baby client-server web browser chat pretty quickly with go. Trash or not, it was designed to be easy.
>>
>>60947202
If it takes you 2 hours to write a range function you should quit programming regardless of what language you are using.
>>
>>60947202
You sound like a cargo cult programmer.
Please stay away from C, we don't need you here.
>>
File: 1497728226507.jpg (165KB, 550x550px) Image search: [Google]
1497728226507.jpg
165KB, 550x550px
new thread who dis
>>60947113
>>60947113
>>60947113
>>
>>60947143
>Readability
>This for loop is so hard to read!
>Maintainability
>This for loop is so hard to leave alone!
You're retarded.
>>
>>60947168
>if you want to hide complex operations on variables,
>you have to compartmentalize it in a function and hide it from yourself.
I hope someday, for you own sake, you come to realize how dumb you sound
>>
>>60947222
Never really used Go before. I'm worried about prototype time.

I'm leaning towards Python/Node just because its so quick to write some boilerplate to get the thing to work.
>>
>>60944211
>implying you can't be productive with a laptop
>implying you need a mouse for productivity
>>60944228
>implying you can't be productive with a laptop
>>
>>60946915
I agree completely. Instead of writing C, write Ocaml or Rust depending on how much you care about code quality vs performance. Alternatively, write Python code and then use a C transpiler.
>>
>>60947258
>for loop for list comparison
Lol, stupid C baby.
[[3, 4], [1, 8], [4, 9]]
Now you need two for loops because you didn't just write a recursive function.
>>
>>60944641

If you google the definition of natural numbers, you'll get this:
>the positive integers (whole numbers) 1, 2, 3, etc., and sometimes zero as well.

In other words, mathematicians can't decide whether or not they want to include 0 or not. I personally consider 0 to always be a part of the natural numbers unless someone is explicit about not including it, but it's nothing to sweat, really.

>are integers real numbers
Of course they are! The set of real numbers consists fo the set of rational and irrational numbers. Rationals include every number that can be represented as the division of two integers, and this includes integers themselves (which when divided by 1, another integer, produces the same number).

>>60947236

Cargo cult programmers use Rust, Anon.

>>60947241

TOO FUCKING EARLY.
>>
>>60947079
Post of the year. This is why nobody takes Python seriously.
>>
>>60947096
range is a generator (lazy), not a list.
>>
>>60947129
>>60947146
underrated
>>
>>60947670
take that back
many people take Python seriously
>>
>>60948112
Serious programmers don't take Python seriously.
>>
>>60944120
Resurrecting Pascal.
>>
>>60939599
As in, in a proper environment, type errors will result in a broken build for your team, rather than silently getting deployed and your team finding out from complaints or logs.

>>60948124
At Google almost all the machine learning efforts are focused on TensorFlow which has Python as its number one bindings. Blaze/Bazel BUILD file syntax is essentially Python because apparently it's written in Python.
>>
>>60948124
You wouldn't know since you don't know any serious programmer.
>>
>>60948234
You'll understand if I give no weight or credence to any of Google's engineering decisions. They invented Go, after all.
>>
>>60948290
why is /g/ full of dumb posters?
>>
>>60948189
>That use of screen space
>that font
disgust.png
>>
>>60948320
They're especially obnoxious on /dpt/, you'll notice there are maybe 10 posts showing any real code here, others are just trashing languages and/or people.
>>
>>60948320
>>60948241
>/g/ thinks his favorite language is bad
>throws a tantrum
>>
>>60948343
>/g/ is one person
Most of /g/ doesn't think anything about programming languages
>>
What is the proper branchless way to hide/show string based on bool in C?
Example with branches:
char string = "This is a string";
bool display = TRUE;
result = display & string
/* or display ? string : {} */

This is the only way I see to do it:
char string = "This is a string";
bool display = TRUE;
result = display*string
/* implicit cast to int or compiler might optimize it */

Is this correct?
>>
>>60948356
Compile time or runtime? If compile time use the preprocessor.
>>
>>60948356
>char string = "This is a string";
m8
>>
>>60948356
First.

>or compiler might optimize it
don't
>>
>>60948373
Runtime.
>>60948378
That has a branch though, will be slower. Or does the compiler recognize the pattern? Casting bool to int and then multiplying is still faster than branching.
>>60948375
char[]
>>
>>60948356
What the fuck do you mean by hide? Not outputting it with printf ? Not even allocating it? GUI?
>>
>>60948290
I think Go sucks too - fortunately it's not used that much even though Google loves dogfooding. I think at Google's scale you're bound to see stupid things come out of the company, but once you look at the big picture, you realize for it to exist in the state it's in there has to be a lot of brilliant people there. https://www.wired.com/2012/11/google-outage-six-minutes/

>>60948356
What? lol
result = display ? string : ""

>>60948405
What are you trying to do here? Define "hide". Are you trying to do something that needs macros? Are you trying to entirely get rid of, say, printing to stdout at compile time? Cause that's one problem macros solve, though if you put a branch on a const bool it'll probably do the same thing and remove the dead code.
>>
>>60948478
>asks for no branching
>gives the obvious branching answer
>>
>>60948494
>though if you put a branch on a const bool it'll probably do the same thing and remove the dead code.
pls read
>>
>>60948514
You're the one not reading, it's supposed to be decided at runtime.
>>
>>60948494

Compiler could optimize it to a cmov instruction if it would be more efficient than branching.
>>
Do we kode on weekends? I don't think it's healthy desu
>>
>>60948530
>decided at runtime.
>no branching
Are you trolling?

>>60948544
Usually it's slower, unless your branch prediction hitrate is like 50/50 though, which shouldn't be the case for a boolean like "display".
>>
>>60948575
I kode when I feel like it, otherwise I go harass my cat or lay on my bed.
>>
>>60948494
>>60948514
can't we all collectively agree together with eachother that we are just a bunch of dumbasses?
>>
>>60948405

>casting bool to int and then multiplying is still faster than branching

1. Don't cast any pointers to int, ever. If you must cast to an integer type, use intptr_t or something similar.
2. If you multiply your string pointer by a bool, you either end up with the same string as before, or a null pointer.

Why do you want a null pointer, exactly?
>>
What's the best free GUI toolkit for python?
>>
>>60948605
I was wondering the same thing.
>>
>>60948605
Depending on the printf implementation %s-ing null pointer will just ignore the string.
>>
>>60948622
on linux btw
>>
>>60948580
>I kode when I feel like it
enjoy staying bad
>>
>>60948665
I'm way better than you'll ever be kid.
>>
>>60948631

Yeah that's something you should NEVER rely on. NULL pointer is not an empty string and never will be. NULL pointer is a not a string.
>>
>>60948697
It's undefined behaviour. Nothing prevents you from linking against your printf implementation with this behaviour.
>>
>>60948631
It's officially undefined behavior, though. And since you're dynamically linking to glibc you don't have guaranteed behavior even AFTER you build, which is kind of a nightmare.

>>60948665
>>60948679
OHHHH SHIIIIIT
>>
How should i learn gtk2 in c
>>
>>60948729

If you want to use it with your own personally implemented printf, go right ahead. Just don't rely on the system supplied implementation to allow it. Personally, I don't think shaving a few cycles by not branching is worth the amount of effort to make using null pointers as empty strings a valid strategy. You ever heard the phrase "premature optimization is the root of all evil"? This is the kind of premature optimization you should not perform.
>>
>>60948760
>And since you're dynamically linking to glibc you don't have guaranteed behavior even AFTER you build, which is kind of a nightmare
Yeah that's why I suggested linking against a handcrafted printf implementation (it's not that bad to do). Thinking about it I think it's the only sane solution to the guy's problem.
>>
>>60948779

RTFM
>>
>>60948789

The only sane solution is to use branching.
>>
>>60948814
>guys how can I do that
>by doing something that doesn't do that XD
It's like we're stack overflow or something.
>>
>>60948803
Fuck you you're the worst trip on this board
Filtered
>>
File: YES.png (138KB, 655x640px) Image search: [Google]
YES.png
138KB, 655x640px
>have two git branches, master and one with some changes, but merge conflict when trying to merge in
>instructions on github merge page
Step 1: From your project repository, bring in the changes and test.

git fetch origin
git checkout -b feature_dev origin/feature_dev
git merge master

Step 2: Merge the changes and update on GitHub.

git checkout master
git merge --no-ff feature_dev
git push origin master

>okai.png

>on master
>git status, push, and pull all say up to date
>time to go

>git fetch origin
>git checkout -b feature_dev origin/feature_dev
fatal: A branch named 'feature_dev' already exists.
>I suppose I should change to it then
>git checkout feature_dev
>git merge master
...
CONFLICT (content): Merge conflict in some_problematic_file_causing_trouble
...
>open file and make changes so that it looks ok again
>git add some_problematic_file_causing_trouble

>git checkout master
Your branch is up-to-date with 'origin/master'.
>git merge --no-ff feature_dev
Automatic merge failed; fix conflicts and then commit the result.
>open file and make similar changes again
>git add
>git commit -m "ok"
>git merge --no-ff feature_dev
Already up-to-date.
>git push origin master

am I doing something wrong here
why are the instructions on github giving me errors
I want to cry this is so painful
>>
test
>>
>>60948823

>Guys, how do I do a really dumb thing
Don't. Optimizing to a null pointer to avoid branching just means that your program performs a branch later to check if the pointer is null. Therefore, you have saved zero cycles and introduced a lot of extra complexity into your project by now requiring yourself to maintain a custom printf implementation, and a custom implementation of whatever other string libraries you're using.

I am rejecting your premise entirely and advising you NOT to do the thing that you want to do because it is a bad idea. If your idea is bad, you are not entitled to not being told to stop doing it.

>>60948845

RTFM is a reasonable answer to any question that fits the format "How do I learn <name of library>?"
>>
>>60948789
But in that case you're just pushing the branch to later, which is kind of funny since printf surely has its own branches which dwarf the benefit of like multiplying a boolean or something.

>>60948823
It's not our fault it's an absurd question. On SO it would get downvoted before ever even seeing an answer, so he should be grateful multiple people here are spending time trying to help him.

>>60948880
After you add the conflicted files, that's when you commit, so that the merge goes in to the branch you currently have checked out.
>>
>>60948921
>After you add the conflicted files, that's when you commit, so that the merge goes in to the branch you currently have checked out.
so now my new branch will be up to date with master, and then I merge it a second time back into master?
>>

void setup()
{
pinMode(13, OUTPUT);
}

void loop()
{
digitalWrite(13, HIGH);
delay(500);
digitalWrite(13, LOW);
delay(500);
}

>>
>>60948920
I read the docs already though
>>
>>60948478
Let's say you're concatenating strings and you only want to put in a certain string if a certain bool is true.
>>60948605
And there's no other way to do it?
>>
>>60948579
My solution was branchless but Bad™
>>
>>60948356
-(display^1) & string

is faster
>>
>>60949037

All strings in C are just pointers to buffers of null-terminated bytes. If you use null pointers, you have a string that if dereferenced, will lead to a segmentation fualt, likely crashing the program. Therefore, any code that uses a possibly nullable string will have to introduce additional branching to deal with this. This completely defeats any performance gain from not branching by multiplying your pointer by a boolean. It is therefore impossible for you to ever gain even a one cycle benefit by using this optimization. Moreover, branching is so cheap that with the exception of some very tight loops, you should never pay any mind to its cost. Spending precious minutes of your life for a few nanoseconds shaved off of a program's runtime is a terrible tradeoff.
>>
Can someone give me a non-trivial, non-contrived way that I would benefit from data memoization through closures returning functions?

Every example they give is something that doesn't require closures at all.
>>
>>60948960
In git, there's the concept of being "ahead" and "behind", which is basically asking which branches have commits on top of them relative to each other.

As an example, if you fork master, work on it for 5 commits, and master updates 10 commits while you're working, your local branch will be 5 ahead and 10 behind master.

When you do a merge, after your merge commit you'll be 1 ahead and 0 behind of both the old state of your local branch and the master branch you merged in.

Then you can push to origin/master, and since origin/master is 1 behind and 0 ahead of your merge, it can do something called "fast forwarding", meaning it just updates the pointer of the branch to point to the new commit. This is because if you're x ahead and 0 behind a branch, there's no possibility of any merge conflicts or anything like that, you just need to update the code.

Anyway, that might sound a little confusing, but it's how git thinks of it internally.

>>60949037
The short answer is in almost every context what you just said could be in, branches are the fastest way to execute this code. When branches get predicted properly they're essentially free, and display code is extremely predictable. http://yarchive.net/comp/linux/cmov.html
>>
>>60949227
>Then you can push to origin/master
this is what
>git push origin master
does, push my local master to the branch that is locally configured for origin (usually origin/master) ?
where I should probably use
>git push origin feature_dev
in my case, as that is the branch I initially did all the changes in, I just forgot to commit them?
>>
>>60949300
>git push origin master
Pushes the branch you currently have checked out to the master branch at origin.

>git push origin feature_dev
If feature_dev existed as a branch at origin, it would push to that instead. Probably not what you want unless you're showing code to others.
>>
>>60949364
I see. Thanks.
>>
Can anyone explain why the array.front is not an lvalue?
import std.stdio;

void main()
{
if (!__ctfe)
{
import std.algorithm, std.range;

auto N = 2_000_000;

auto array =
iota(N)
.map!(n => true);

array[0].writeln; //true
//array[0] = false;
//array[0] is not an lvalue
}
}
>>
>>60949723
D is trash
>>
>>60949843
Why so?
>>
>>60949723
nvm fixed it, I just had to collect the array (.array())
>>
File: STOP SCROLLING.png (28KB, 1400x1050px) Image search: [Google]
STOP SCROLLING.png
28KB, 1400x1050px
>>60944120
DO SOMETHING USEFUL FOR ONCE AND WRITE A FREAKING FUNCTION THAT WILL LOCATE MALAYSIA AIRLINES FLIGHT 370. OH WAIT, YOU CANT BECAUSE YOUR ALL SHIT AT PROGRAMMING.
>>
>>60949860
Any language in which not all things are statements is automatic garbo
>>
>>60949843
d is unironically great
>>
>>60949894
You mean expression, right?
>>
>>60949909
Nope, expressions are stupid. Why automatically return something I may not need? Waste of cycles.
>>
>>60949920
>>60949894
how would you add 2+2 without an expression?
>>
>>60950160
He's basically referring to assembly. But he's also trolling
>>
dead thread?
>>
>>60951569
Some fag created new thread way too early and it gained momentum. They didn't even use an anime image.

>>60947113
>>60947113
>>60947113
Thread posts: 307
Thread images: 40


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.