/script>
[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: 373
Thread images: 37

File: hime on the front page!.jpg (94KB, 500x701px) Image search: [Google]
hime on the front page!.jpg
94KB, 500x701px
old thread: >>54987866

What are you working on, /g/?
>>
>>54996328
First for C#.
>>
First for Assembly
>>
i want practice my C
im thinking of writing a simple scheme interpreter

will this be good practice
>>
>>54996357
Get fucked, low-level nerd.

*drives off in high-level language that women are attracted to*
>>
File: 2016-06-09_18-51-05.webm (1MB, 884x682px) Image search: [Google]
2016-06-09_18-51-05.webm
1MB, 884x682px
All you people are too busy fighting over which languages are "memes" to use actual meme languages, well; not me.

I made fizzbuzz in befunge. Still learning it, but it seems fun!

55*4*01v
v35:+1<_@
* ^`\*4<
% >:55*^
!> #^" zzuBzziF"v
>| ^ ,,,,,,,,, <
v< > " zziF"v
>:5%!| ^ ,,,,, <
v!%3:< >" zzuB"v
> |
v8.: <
>4*,^ ,,,,, <
>>
>>54996374
pretty code
practically art
>>
File: 1456075074460.jpg (60KB, 627x627px) Image search: [Google]
1456075074460.jpg
60KB, 627x627px
http://gotnews.com/mexican-judge-gonzalo-curiel/
>>
>>54996575
>>54996529
please leave
>>
>>54996760
kys fag
>>
How do I return an array? I have this matrix multiplier:

template <typename T, size_t U1, size_t V1, size_t U2, size_t V2>
void mult (T (&A)[U1][V1], T (&B)[U2][V2])
{
if (V1 != U2) return void();

T output[U1][V2];

for (auto &i : output)
for (auto &j : i)
j = 0;

for (unsigned C1 = 0; C1 < U1; C1++)
for (unsigned C2 = 0; C2 < V2; C2++)
{
for (unsigned C3 = 0; C3 < V1; C3++)
output[C1][C2] += A[C1][C3]*B[C3][C2];
}

disp(output);
}


And it works fine, but all I can do is write out the array on screen. The answer is destroyed once the function ends, so I can't just pass a pointer back. What do?

(I would ask /sqt/, but nobody there can code)
>>
>>
>>54996373
This post better be bait.
>>
>>54996297
Why is this bad practice?
>>
File: snekfag.jpg (54KB, 354x445px) Image search: [Google]
snekfag.jpg
54KB, 354x445px
>>54996373
a high-level programmer is still a nerd just less intelligent, lower skilled, less attractive, just all around worse
>>
>>54996374
>what kinda language you want senpai?
>you know those ice cave puzzles in Pokemon Gold?
>say no more
>>
File: C switch hackery.png (5KB, 376x214px) Image search: [Google]
C switch hackery.png
5KB, 376x214px
>>54996819
The way I understand it, it undermines the switch cases.

Give a single good reason why you would write anything like this?
>>
>>54996856
>those ice cave puzzles in Pokemon Gold
those were fucking good

are they only in gold or in silver too?
>>
>>54996944
Are you 5?
>>
>>54996861
The way I read it is: Sometimes you want the result of something to depend upon the execution of gloop. Other times you don't want the result to be determined by the execution of gloop, so you jump to either arfle or barfle. It just looks clever to me.
>>
>>54996961
Are you an idiot?
>>
File: racket.png (15KB, 502x126px) Image search: [Google]
racket.png
15KB, 502x126px
>trusting FP in production
>>
>>54996328
I've taught myself a fair amount of C++, what should I do as a (relatively simple) project? I have finished the programming "challenges" from the book I downloaded, and while they do help me grasp specific concepts they don't really help me solidify my knowledge of the language.
Any recommendations?
>>
>>54996790
Allecate the memory on the heap and return a pointer.
>>
>>54997053
your mom?
>>
File: haskelel2.jpg (745KB, 1920x1080px) Image search: [Google]
haskelel2.jpg
745KB, 1920x1080px
>>54997089
LMFAO DELUSIONAL FP FAGS ON SUICIDE WATCH
>>
>>54997053
>ew eewww eeeeeewwwww
>the fag that wrote that should be hanged
There's an age limit for a reason
>>
>>54997243
>waaahhh he's not acting like a grown up like i am (trying to because i'm a 12 yo big boy playa)
>>
>>54997243
>big boys are happy in the presence of spaghetti code
wew lad
>>
>>54996861
I've once used this in a serialization procedure which takes an object and turns it into json.
It was structured like this:

string serialize(obj) {
for p in obj.properties:
serialized.append(typeHandler(p))
}
}


the typeHandler prodecure would check the type of a property and execute a serialization procedure based on it - if it's an object call serialize(), if it's a numeric value, serialize it etc.

typeHandler(prop) {
if prop.isObject() {
return serialize(prop.asObject());
} else if prop.isNumeric() {
return '"' + prop.toString() + '"';
} else if prop.isArray() {
for p in prop.asArray() {
serialized.append(typeHandler(p))
}
return serialized;
}
}


However if typeHandler encourntered an array, I could assume the type of every element within that array has the same type, therefore I only needed to determine the type once, and can then jump to the type I already determined:

typeHandler(prop, &type) {
switch(type) {
case -1: //type unknown, check types
if prop.isObject() {
type = 0
case 0:
return serialize(prop.asObject());
} else if prop.isNumeric() {
type = 1
case 1:
return '"' + prop.toString() + '"';
} else if prop.isArray() {
type = 2
case 2:
arrType = -1
for p in prop.asArray() {
serialized.append(typeHandler(p, &arrType))
}
return serialized;
}
}
}


That way I only have to check the type once, and can then use a jump table for successive calls.
>>
>>54997324
the compiled code for that is gonna look horrible
>>
>>54996861
>>54997324
That's one case where labels and goto is easier to read.
>>
Guys. Any good sites about practicing conversion between decimal, binary, and hexadecimal?
>>
>>54997627
gay
>>
File: delete your account.jpg (66KB, 986x555px) Image search: [Google]
delete your account.jpg
66KB, 986x555px
>>54996328
>anime
>>54996575
>trump-posting
delete your account
>>
>>54997324
>I could assume the type of every element within that array has the same type
But this is not necessarily true by any means, certainly not according to the JSON standard.
Do you really think it's worth the negligible performance increase to omit a type check or two and also make your code incorrect?
>>
File: 1465504939316.png (49KB, 883x274px) Image search: [Google]
1465504939316.png
49KB, 883x274px
>>54997682
>>
>>54997697
based
>>
>learn programming basics because it looked liked fun
>have a great time
>create a few useful utilities for myself
>since i'm 25+ and too late for this, it will never be a career; can't focus on it because of other "career"
>out of ideas what to do with my limited knowledge
>haven't touched programming in months, about to forget the few things i knew

Anyone else in a similar situation? Did you manage to escape it?
>>
>>54997697
BTFO
>>
>>54997706
what his image isn't showing is that hillary's tweet has over 200k likes and trump's reply has less less than 2k. it's over. hillary wins
>>
>>54997682
>History; made.
Is Hillary's biggest running point seriously that she's a woman?
I don't care for Trump but Hillary is pathetic
>>
File: azLM7op_700b.jpg (47KB, 600x450px) Image search: [Google]
azLM7op_700b.jpg
47KB, 600x450px
Taught myself html5 and css the past month, I wanna take it further so that I can get paid to do this.
Question is do I learn Javascript or C# next?
>>
>>54997750
obviously a reply is gonna have less likes than the main tweet idiot
>>
File: 1463860597347.jpg (47KB, 621x502px) Image search: [Google]
1463860597347.jpg
47KB, 621x502px
>>54997732
>limited knowledge
>you will never know this feel
>>
>>54997771
delete your account
>>
>>54997768
yes and she even tried to spin it like she wasn't a part of the establishment just because she's a woman

SJW ultra liberals are a minority and even if you wanted a female president, maybe not go with shillary, there are more important things in politics than what kind of genitals you have
>>
>>54997768
I'm voting for trump for sweet SJW and minorities tears.
>>
>>54996373
I know both high and low level.
>>
>>54997732

Yeah, just worked on my own little website, did a couple complicated projects involving math/ai and completed a uni course in Operating Systems (a hardcore one in C, not a babby "how to use the start menu")
>>
>>54996366

Any project is good practice.

Implement a graphical application.
>>
>>54997768
She's also campaigning pretty hard for all but abolishing the 2nd Amendment. For example, she wants to make it federally illegal for a father to give his gun to his son.
>>
>>54997635
F1C
15x16^2 + 1x16^1 + 12x16^0
3868
// to convert to hex
3868 mod 16 = 12
3868 / 16 = 241
241 mod 16 = 1
241 / 16 = 15

// end result
3868 => 15, 1, 12
F1C


And this works for conversions to any base system, not just hex.
>>
>>54997865
what about to a daughter?
>>
>>54997098
Tetris
Snake
Pacman
>>
>>54997884
All transfers in ownership of a gun, even in the event of the death of the original owner, would have required background checks and psychological evaluations.
>>
>>54997697
What a lazy comeback. Is he even trying? Feels like he was caught off guard.
>>
>>54997928
it was a joke, asspie. trump's not going to win in case you didn't notice so i hope you learn to accept whatever gun control she deems necessary. btw: delete your account
>>
>>54997931
how is "delete your account" witty at all and what would be a better comeback, dipshit
>>
>>54996971

The goal of writing software is not to befuddle anyone maintaining it (it could be you) it's to write a working product.

The problem is, once the product is released, management will shift the goalposts to something else, so your code ALSO has to extend to new scenarios. That code doesn't look like it extends easily.

A much easier way to write that EXACT logic, is to switch on mode, and have each case be a separate method/function. Using the stack is a bit less memory efficient, but will boil down to the same instructions to the processor, will do the same task, and will make people not hate you.
>>
>>54996328
When will cute anime girls become real?
>>
>>54997935
stay delusional fag

people are sick of the establishment, most bernie supporters prefer trump over shillary, trump will renegotiate the trade deals like bernie also wanted to
>>
>>54997966
>girl
>>
>>54997974
well according to twitter 2k agree with you while 200 million disagree. i wonder how the trump shills being paid to shitpost for him on 4chan will justify this
>>
>>54997098

A graphical form application. For shits and giggles, make it a resume builder, then hand it in as your resume (if you don't already have work).
>>
>>54997948
It's not that witty, it's just more so than trump's response.
>what would be a better comeback
I know it's you, Donnie. I'm not writing your next tweet.
>>
>>54998013
either you don't know how twitter works or you're this delusional or shilling this hard
>>
>>54998030
Trump. Can't. Win. How long will it take you to get it through your thick skull? You're fighting a hopeless battle. It's embarrassing. Give up
>>
>>54997935
>trump's not going to win
I think that Trump would be a shit president, but what the fuck makes you say that? He has done nothing but win so far when most people said he wouldn't get even a single delegate. He is consistently popular with everyone who the "experts" say should hate him.
>>
>>54998049
More republicans showed up to vote in the primaries and trump won unanimously in every state of the union.
>>
File: 1464369194514.gif (117KB, 271x309px) Image search: [Google]
1464369194514.gif
117KB, 271x309px
>>54998049
>>
>>54998049
Hillary. Can't. Win. How long will it take you to get it through your thick skull? You're fighting a hopeless battle. It's embarrassing. Give up
>>
>>54998055
if you take the current popular polls of him head to head with clinton in every state, and give him 5% on top of that in every state, he still loses by over a hundred delegates. trump's only popular in your NEET echo chamber and the only reason he won the primary is because he spent literally hundreds of thousands of his fortune campaigning. keep circlejerking over him with your neo-nazi cumskins while you can
>>
>>54998049
>oh gee a trump reply on a hillary tweet doesn't get as many likes as the hillary tweet
you're grasping at straws. you're deluded.
>>
>>54998089
>cumskins

hello pajeet
must feel bad to be a shitskin
>>
>>54998110
>>
>>54998089
>the current popular polls
his popularity is growing rapidly and he's barely even begun with his change in rhetoric to combat hillary vs appealing to republicans to beat cruz and all the others
>>
>>54998089
>delegates
Good thing the US election doesn't rely on delegates, then. Also, republican and democrat systems with delegates work completely differently, so it's absurd to even try to compare the two.
>hundreds of thousands campaigning
And Hillary spend literally millions from oil companies' bribes campaigning and slandering Bernie Sanders.
>>
>>54998089
>neo-nazi cumskins
sure is butthurt in here
>>
>>54997770
go js
>>
>>54996349
This post reminds me of how incredibly attracted to 2D I used to be.
I want to be a hormonal teen once again god damn.
>>54996374
>Befunge is a stack-based, reflective, esoteric programming language. It differs from conventional languages in that programs are arranged on a two-dimensional grid.
Fuck that's cool.
>>
File: help.jpg (102KB, 593x441px) Image search: [Google]
help.jpg
102KB, 593x441px
Does anyone know a good website translator?

from russian to english
>>
>>54997770
learn real programming. web dev is "easy" but you have no long term job security. learn java, or if you insist on falling for the meme, C#.
>>
>>54998263
google translate if you just want to more or less read some shit for free

fiverr if you need an actual translation without spending too much
>>
>>54998006
>boy
Even better.
>>
>>54998274
I already know java from my bachelor's degree, but everyone seems to want html/.net abilities.
>>
>>54998274
>learn java
Are you implying there's a place on earth where just knowing java will get you hired

i'm not meming i genuinly dn't know
>>
>>54998360
android uses java, so anything with android development
>>
>>54998316
ok well then i think you should learn C#, it's good to know multiple languages and you can go for the .net jobs as well
>>
>>54996861
Doesn't this just
if((mode==0||mode==1) && gloop(a,b)){ 
result=arfle(a,b);
}
else{ //covers the case 2:
result = barfle(a,b);
}
return(result);

There's no default case so the only valid values are [0,2].

Is maybe the point of writing it like that that you can easily split the different cases but you wanted to use the case 0 to use gloop(a,b) to check which case you go into?

So it should be more like
switch(mode){
case 0: if(gloop(a,b)){
case 1:
result=arfle(a,b);
break;
}
else{
case 2: //maybe we want multiple of them here aswell. I'd put the case before the result= if that's not the intent
result=barfle(a,b);
break;
}
}
return (result);


Or am i misinterpreting the code?
>>
>>54997872
What about converting on pen and paper?
>>
>>54998405
Thanks for the advice man
>>
>>54998410
Oops. first line should be :
if((mode==0&& gloop(a,b))||mode==1 ){
>>
>>54998431
That's the pen and paper method.
How do you think programmers write functions?
They write them out on paper and then convert it to a function.
>>
im actually working rihgt now. they pay me about 100$ a month for 5 hours of work/day but its okay because i live in the third world and thats like 3 times the minimum wage

im using php and i see why they say it's bad. these people dont know what the fuck they're doing. it just attracts retards
>>
>>54998251
Try it out, it's a fun time waster and my favorite esolang.

https://esolangs.org/wiki/Befunge
http://www.mikescher.com/programs/view/BefunUtils
http://www.mikescher.com/blog/2/Lets_do_Befunge93
>>
File: 1458942024464.png (335KB, 1280x720px) Image search: [Google]
1458942024464.png
335KB, 1280x720px
>>54998461
>php
>>
>>54998461
Are you good at whatever you do? Because I'd like some contact info for later. I really like the idea of outsourcing like this.
Do you have friends who do other stuff as well? Maybe you could put me in contact with them and you get some money for that.
>>
>>54998294
>>54998263
Does anyone know any other?
>>
>>54998448
Pardon my ignorance, but what does F1C and mod mean?>>54998461
>>
>>54998502
the absolute madman
>>
>>54996834
what about people who write in both high and low-level languages?
>>
>>54998569
F1C is a hex number
mod is modulo division
you remember in 2nd grade when division was simply getting the remainder?
That's what modulo is.
>>
>>54998549
iirc google play has a paid service where developers submit strings of text and random people translate them
>>
>>54996888
gold and silver were the same except for one dungeon each where you get the legendary bird pokemon.

they kind of reminded me of the walking puzzles in oracle of ages which were also really satisfying
>>
>>54996861
Basically, you write this kind of code because you think goto is evil.
>>
>>54998609
OK so actual pen and paper conversion is obsolete?
>>
>>54998641
Nobody says goto is evil except for webdev kids who still believe the meme about C being portable assembler.
>>
>>54998663
What the fuck are you asking even?

Go figure out how to do it on paper and then you'll figure it out how to write it in software.
>>
>>54998599
Race traitors desu
>>
>>54998684
huh, back the fuck off?
>>
>>54998684
I only asked about a site to practice physical conversion and you started going on about software conversion.
>>
>>54998664
I know, that's the kind of people who write that crap instead of

// assuming mode is a label value, but could be done differently
goto *mode;

mode_0:
if !gloop(a, b) {
goto mode_2;
}
mode_1:
return arfle(a, b);
mode_2:
return barfle(a,b);


>>
>>54997928
So you want psychopath jimmy to get a glock from daddy to go shoot up his school?
>>
>>54996790

Don't do >>54997105 unless you're looking for trouble.

Allocate the memory however you want but do it OUTSIDE the function and pass in a reference to the memory which the function fills the values of.
>>
>>54996328
Here are my problems:
>1: I have no projects
>2: I have no money
Would freelancing be good for me? I'm afraid my skill level won't be all that good enough to do shit on Upwork or Freelancer, but I've been doing this shit for like 3 years now.

What are the best freelancing sites?
>>
>>54998599
In the same source file? There's no way that will compile or assemble properly.
>>
>>54998784
uh
well technically you can use inline c in chicken scheme and inline assembly inside of that maybe.

but no, not normally in the same file
>>
>>54998717
it shouldn't be hard at all and not require practice if you understand how it works
>>
>>54998298
GOTO HIME
>>
>>54998717
>practice physical conversion
Anon you can probably understand the confusion since this is /dpt/.
Why would you ever not use a computer to do math? We humans are notoriously bad at it.
>>
>>54998502
Kek, I think I love that guy now.
>>
>>54998722
Damn that's some neat and easily readable code right there.
>>
>>54998770
>I'm afraid my skill level won't be all that good enough to do shit on Upwork or Freelancer
I'm always questioning myself like this.

But then I realize that if people agree to pay for it I'm good enough.
>>
>>54998502
>i don't need math in CS/CE
>>
Is it OK if I post gamedev progress here? I promise it won't be art stuff. It would be stuff like "look at how this nice system works now"
"my game now supports almost infinite worlds"
"look, asset streaming/reloading"
"live shader recompilation"
"how do I fix this quadtree?"
>>
>>54998967
that would probably be fine
>>
File: Rasmus Lerdorf.png (23KB, 583x194px) Image search: [Google]
Rasmus Lerdorf.png
23KB, 583x194px
>>54998502
He knows a lot about PHP then.
>>
>>54998502
i do it for the money
>>54998548
i think i'm good enough. i'll probably be able to do whatever i'm asked to, given that it isn't something very specific like cryptography or fancy statistics. yeah i know some third-worlders that know how to program too. i'm at [email protected]
>>
>>54999057
>[email protected]
Thanks. I'l save that for later. Maybe months or years (or far less) but I'l keep it.
>>
>>54999057
>ichinisanyongorokunanahachikyu
seriously? get a shorter email address
>>
>>54996328
>pythonista
>getting better at C
>mfw no more whitespace
if ( a ==


2 {
int b =
2;


// ass
}
>>
>>54999097
i only use that one on 4chan friend
>>
>>54999111
>>pythonista
*dibs bedora*
>>
>>54998784
Racket lisp has super-c, which lets you write inline C code. They also have modules for Algol 60 or 68 ECMA+JavaScript so you could inline those as well. The ECMAscript language is provided as a separate language on top of racket, so you'd have to wrap it in an explicit module expression if you wanted it inside of another file. You can evaluate JavaScript expressions using the other library with just the eval-script function it provides though.
>>
>>54999057
Which country are you in that that's a normal and memorable email address?
>>
What's the best language for someone who wants to make video games?
>>
>>54999216
if you just want to make video game's, learn an engine
>>
What's the equivalent of java System.out.print("string"); in python??

I mean, a print that doesn't cause a new line to form
>>
>>54999216
C++ and opengl/directx, GLSL/HLSL
>>
>>54999176
Danks
>>
>>54999216
JavaScript.
>>
>>54999216
What kind of video game? Since you're asking you don't know any language I'm assuming.
>>
>>54999216
Do you want to make video games or do you want to write a game engine?
>>
>>54999233
print 'hello',
print 'world'

will print hello world on same line
>>
>>54999209
nihon desu ne
>>
>>54999209
>Let's Count in Japanese!
>1 (ichi).
>2 (ni).
>3 (san).
>4 (shi or yon).
>5 (go).
>6 (roku).
>7 (hichi or nana).
>8 (hachi).
>9 (ku or kyu).
He's just a weeb. No one reasonable would make their email address [email protected]
>>
>>54999332
its just some address i made for some 4chan thing a while ago. whats the big deal..
>>
Newfag here
How do I print the highest numer in a set of n numbers?
I don't know how much is n until the program operator ends adding numbers to it.
>>
>>54999489
use a variable for the highest number
>>
>>54999489
You mean the maximum?
type max = yourarray[0];
for ( int i = 1; i < N; ++i )
if ( yourarray[i] > max )
max = yourarray[i];

Something like that. You first assume the maximum is the first number, then you go check for every other number whether it's bigger, if it is, then that's the new maximum etc.
>>
>>54996834
Could you call him a high level programmer? He made Python in C, so he's mainly a C person I'd think
>>
>>54999535
I'm not allowed to use for (...)
Is there any way to do it using a do while?
>>
>>54999639
No need for that outdated bullshit, it's current_year.

auto max = *std::max_element(array.cbegin(), array.cend())
>>
Why do webdevs try their hardest to force JavaScript for backend and applications programming?

Every time im forced to write JS for web scripting I feel dirty all over
>>
>>54999732
Because you're a retard who tries to be elitist by hating on JS? Kill yourself?
>>
>>54999743
>Kill yourself?

Why did you pose that as a question?
>>
Got a Samsung Gear S2 Smartwatch as a present. Now, I'm trying to write an app which show's me the nearest bus/train/tram-stations with departure times of the next few busses/trains/trams.

It's a Tizen system and the Online-API only returns JSON stuff. Using xmlhttprequests seems to only work only for XML stuff. A async call doesn't seem to work yet.
>>
>>54999639
>Is there any way to do it using a do while?
Of course there is. All a for loop is
for(a; b; c)
. a is initializing a variable before the loop takes place, b is the test to see if the loop should take place, and c is the action taken at the end of every loop. You can easy rewrite it as
a
while(b) {
...
c
}
>>
>Flex bison git asp.net jsf
I wrote this this last weekend, thinking i could play with all these tools before Monday. I just got my flex/bison project working.
>>
BeautifulSoup isn't searching my html properly
do I need to write my own html parser or are there any alternative modules for python?
>>
If your language doesn't have dependent types then it's basically not worth using.
>>
>>54999743
>bizarre scoping
>bizarre typing
>bizarre inheritance
>bad performance
What's not to like about JS?
>>
>>54999732
It's because they're incapable of learning anything else.

Prove me wrong webshits
>>
>>54999732
>/g/ loves sicp
>/g/ hates scheme's parenthesis heavy notation
>/g/ refuses to use a language that was explicitly designed by a scheme programmer to be scheme with a more "normal" c-like braces syntax because "it's popular with webdevs"
>>
>>54999984
>bizarre scoping
Maybe if you're retarded?
>bizarre typing
It's not a typed langage?
>bizarre inheritence
Inheritance isn't a feature of the language, so I don't know which butthole you pulled this from?
>Bad performance
V8 doesn't exist?

Thanks for confirming that you're a retard?
>>
>>55000107
Maybe, just maybe, /g/ is full of retarded shitposters while the actual programmers are off actually fucking programming?
>>
>>55000107
Eich wanted to give us Scheme in the browser, but he only had 10 days to work on it so we got the shitshow that is JavaScript instead. It's like Scheme in the way an aborted fœtus is like a baby.
>>
>>55000107
Nobody who learns JavaScript these days has any idea what functional programming is, they're just regurgitating the shit they learned from their coding bootcamps.
>>
>>55000142
That seems to be the case.
>>
>>55000126
>muh v8
Still not as fast as C or Java. AND IT NEVER WILL BE
>>
>>55000146
Just think, JS is what we're stuck with now. Forever.
>>
>>54999711
>using C++ in *current-year*
(apply max numbers)
>>
>>55000210
>parentheses
>>
>>55000244
>
>>
>>55000170
It's fast enough. Prove me wrong.
>>
>>54999743
Will someone post the image of how JS handles mathematics? I remember it include shit like "5 + '3' returns 53"
>>
>>55000244
5 curly brackets have been deposited in your poo account my friend, thank you for your everlasting support.

Sincerely,
Pajeet Enterprises
>>
>>55000287
No, different definitions of operators doesn't make them inherently inferior, and feeling irrational hatred towards them for being different is like hating black people. Are you an operator bigot?
>>
How long has this guy been trying to argue about javascript in /dpt/ now?
>>
>>54997732
>>since i'm 25+ and too late for this
it's not late.
>>
>>55000200
Highly doubt it. "Better-than-javascript" alternatives like typescript are becoming more popular and are backed by large companies and big bucks.
>>
>>55000305
'5' + 3 gives '53'
'5' - 3 gives 2
The language has no fucking consistency.
>>
>>55000330
How is typescript better?

It just seems like another obscure transpiler abstraction layer?
>>
>>54997732
Find interesting APIs and set up a server using a custom backend to pull and compile data. You can just use it to find comparisons or also use some interface to present the data. It would be a fun project and literally tons of APIs are out there.
>>
>>54997770
html and css aren't really programming.

Learn JS and try to learn something like node.js/express.js or angular.js as a stepping stone. Really I would recommend SICP or just K&R to start if you really want to get elbows deep in the bull's ass but if you want a comfy and fun experience learn JS.
>>
>>55000381
>obscure
Are you sure about that?
>>
File: jstruthtable.png (28KB, 705x490px) Image search: [Google]
jstruthtable.png
28KB, 705x490px
>>54999743
>>
>>55000330
It's still targeting JavaScript.
>>
>>55000406
>comfy
>fun
>js
No.
>>
File: feels good.jpg (92KB, 680x497px) Image search: [Google]
feels good.jpg
92KB, 680x497px
>when you spend days hacking together your custom mesh builder
>when it all comes together so all the "special cases" just turn into an if/else
>when you use mathematica to simplify the boolean conditions for culling vertices
>>
>>54996328
who is that girl?
>>
>>55000481
hime
>>
>>55000453
>you
>NEET
Yes.
>>
>>55000423
That's not bad. False the value of not the same as the word false in a string. Why would they be equal? False isn't "nothing", so its not equal to null. Null is undefined. Strings, like in C and other languages, are indexes, so the empty array just returns zero. That example is even given twice. It's a little quirky to have something that's empty return zero, but I get it. It's not any worse or weirder than lisp's "if it ain't nil, it's #true" and boolean short circuiting.

To be honest, that truth table looks very reasonable to me and I don't even use JavaScript. Some of you guys go out of your way to get mad about dumb shit.
>>
>>55000517
Ordinarily I would say no, but I quit my job last week, so I suppose I am indeed a NEET right now.

Gods, that was difficult to write.
>>
>>55000433
Hence the quotes.
>>
>>55000423
In a good language, the first one is false and the rest are compile-time errors.
>>
>>55000554
>That's not bad
'0' == 0
0 == ''
'0' != ''
Can you really say that this isn't that bad?
>>
>>54996373
/g/ 2016
>>
File: 1464411185004.jpg (118KB, 673x673px) Image search: [Google]
1464411185004.jpg
118KB, 673x673px
So I'm trying to do some shit in C++, and I'm trying to return an array from a function. I googled it and people talked about pointers and whatever.

What are pointers and how do I use them?
>>
>>55000726
A pointer is like a dick. it points
>>
>>55000726
I'd give you a few pointers but they might send you into disarray.
>>
whoops forgot my code tags

here's a problem
you can interpret a structure like this:

<large header>
<small header>
<text>
<text>
<text>
<small header>
<small header>
<text>
<large header>
<small header>
<text>
<small header>
<large header>
<small header>
<text>



which should obviously be sorted like this:

<large header>
<small header>
<text>
<text>
<text>
<small header>
<small header>
<text>
<large header>
<small header>
<text>
<small header>
<large header>
<small header>
<text>


in an XML file
how would you go about setting up a loop for nesting that? I'm completely lost

I mean one possible solution is a 2d array where you assign a label to each header or text and then interpret it later but that seems like there MUST be a better way to do it
>>
>>54997770
Dont post that picture you arent a programmer kys. You know fucking markup languages well done. Also no programmer ever thinks he is a god
>>
File: 666.jpg (51KB, 394x379px) Image search: [Google]
666.jpg
51KB, 394x379px
>see this thread
>'woah who is this semen demon?'
>reverse image search, doesn't work, search more
>turns out it's a fucking trap

Goddammit, /g/.
>>
>>55000726
>has to learn all about the C and C++ memory model just to write a function
You're in for a month of tedium before it clicks and your couple lines of code just werk. I'm sorry.
>>
>>55000406
Thanks for the tips
>>
File: 1449611751881.png (1MB, 1702x2471px) Image search: [Google]
1449611751881.png
1MB, 1702x2471px
>>55000726
A pointer is the location in memory of whatever it's pointing at. You usually shouldn't return a pointer from a function because the thing being pointed at will automatically be cleared from memory.
>>55000811
Pic related
>>
>>55000750
My friends and I used to joke about this.
>Bro if you run sizeof() on my pointer it will return a huge number.
>Wachhu doin faggot? Forming a linked list?
>I don't have a girlfriend. Owner of a dangling pointer.
>>
>>55000726
Its like a address to a house
>>
What should I learn first? Python or Javascript?
>>
>>55000914
neither you should kill yourself.
No but really why do you pick 2 memelangs?
>>
>>55000914
you should Never learn a shit language like javascript first if you're new to programming
>>
>>55000941
I would go as far as to say you should never learn javascript at all
>>
>>55000914
learn java
>>
>>55000914
Learn C++, then learn C.
>>
>>55000932
>>55000941
I know C java and Csharp
>>
So I just learned that my game engine supports custom DLL's for importing into games when they are compiled. This is fantastic because there is a use I really need form one that is very simple but the game engine I am using isn't capable of doing it. I need to get the window color, the thing you can change in the personalize settings on Windows. I have already gotten some help and source code and was able to make one that gets the ACTIVECAPTION color which prior to windows 7 I believe worked. However I need this feature for 8 and 10 in mind and on these platforms it only returns a light blue color.
I know VERY little about C++ so I was helping someone could lend me a hand. Here is my source for the DLL:
#include <windows.h>
#define DLLEXPORT extern "C" __declspec(dllexport)

COLORREF GetBrushColor(HBRUSH hBrush) {
COLORREF color = 0;
LOGBRUSH logBrush;
if (GetObject(hBrush, sizeof(LOGBRUSH), &logBrush)) {
color = logBrush.lbColor;
}
return color;
};

DLLEXPORT double GetCol(void) {
return GetBrushColor(GetSysColorBrush(COLOR_ACTIVECAPTION));
};

Ive read about using DwmGetColorizationColor to get it but I dont know how this works.
Any help would be appreciated :)
>>
>>55000959
Kys sanjeef you code-monkey faggot
>>
>>55000965
learn C++
>>
>>55000976
nice meme nathan
>>
>>55000986
no
>>
>>55000381
It's ES6/7 with static typing and enums.
>>
>>55000726
>>So I'm trying to do some shit in C++
>doesn't know about pointers
wut
there really are people like this? and I keep being sorry for myself for not knowing shit (data structures, some concepts and other shit)
>>
>>55001000
enjoy your fucking python and js then lmfao
>>
>>54998902
>Why would you ever not use a computer to do math? We humans are notoriously bad at it.
What are you smoking, optimization starts at the pen and paper math, then you write the program.

Think of calculating fibonacci numbers, you can either do some O(n^2) recursion shit or just use the proven formula that gives you O(1);
>>
>>55000726
learn java before you delve into the world of C++
>>
>>55000406
>angular.js
>comfy
The fuck are you on?
>>
>>55000965
go python then if you dont want to die off of cancer
>>
>>55001032
>optimization starts at the pen and paper math, then you plug it into mathematica, then you write the program.
FTFY
>>
Let me rephrase my question into something more specific.

I currently know Java, C# and C, I have developed a few projects and would like to build a website to show off my portfolio.

Should I build a website using Python or Javascript?
>>
Is there a way to rewrite this so that I don't get an uninitialized variable warning on compile?

template <typename T>
T SelectQuery(std::string QueryText)
{
T ReturnType;

try
{
// Get the value
otl_stream i(50000, // buffer size
QueryText.c_str(),
database
);

while (!i.eof())
{
i >> ReturnType;
}
}
catch (otl_exception& p)
{
PrintErrors(p, __LINE__);
}

return ReturnType;
};
>>
>>55000998
why thank you panjeet
>>
>>55000406
>this is what flaming web fags actually believe
>>
>>55000870
>return a huge number
wtf u on some kinda x128 architecture or something?
>>
>>55001037
I already learned some. Latest thing I learned about was inheritance after learning about ArrayLists.
>>
>>55001114
What happens if i is eof right from the start?
>>
>>55001183
a pointer is like a java reference, it points to a variable
>>
>>55001101
None you should build a website by using html, css, <insert server side meme here>, python/ruby on rails/js/any other popular lang/framework
>>
>>55001101
ask in >>>/g/wdg
>>
>>55001101
the front end should be in html and css for fuck's sake
>>
>>55001205
that shouldn't happen. even if it does happen its not a big deal
>>
>>55000971
i wish i could help you
>>
>>55001238
The front end should be C/C++ WASM.
>>
>>55001276
only if it's a game or someshit a basic website doesn't need js cancer
>>
>>54998717
>>54998569
Go learn about the modulus operator!

    static int[][] arrayToMatrix(int size, int [] arr){
int [][] matrix = new int[size][size];
for(int i=0,j=0;i<arr.length;i++){
if(i%size==0){
j++;
}
matrix[j-1][i%(size)] = arr[i];
}
return matrix;
}

How would you do it without mod in O(n)?
>>
File: DMUX_027.png (515KB, 1600x865px) Image search: [Google]
DMUX_027.png
515KB, 1600x865px
Got the vehicle physics going for my game, and got the tires drawn using Bullet Physics and Irrlicht. Now we are trying to get some basic networking going. Not sure why people hate C++
>>
Hi is anyone here? I have a question
>>
>>55001527
1+ month later and this is all you've got lol
>>
>>55001556
hello yes sir this is pajeet how may I answer question?
>>
>>55001560
Nice to know you are following our project! :)
>>
>>55001562
I am new to programming. I have begun to learn Java, I know the basic syntax now.

What project should I do first to get good?
>>
File: bait.png (122KB, 625x626px) Image search: [Google]
bait.png
122KB, 625x626px
>>54996861
>flat out ignores any sort of style guide
>"why is this language so ugly?"

0/10 apply yourself.
>>
>>55001573
A snake game might be fun, that is what I did
>>
>>55001573
Minesweeper is a fun one. Also Simon Says can teach you something about threading.
>>
>>55000406
>Thinking node and angs is real programmer

pls stop.

Interesting point about angular2 vs react (I've been using both pretty heavily lately, trying to decipher which one I should stick to for tha long run)

Facebook uses alpha react while google won't use angs2 in their core sites. Says a lot about how they feel about their products.
>>
>>54996328
GOD I want to FUCK that trap and then take them to bed and cuddle.
>>
>>55001623
>fucking something with a penis
No I swear I am not gay!
>>
>>55001599
I think Google is considering Polymer more seriously for the future.
>>
>>55000726
A pointer represents an address in memory of the thing you want. When you leave the function, the array goes out of scope and you don't have any way to refer to it anymore. So what you need to do is tell the system to allocate memory for the array somewhere permanent, and then all you need to do is keep track of the address (i.e. the pointer). You can use malloc(), which allocates the amount of memory you ask for somewhere and returns you a pointer to it. Just remember to free the memory when you're done using it.
>>
>>55001642
>Polymer
great, yet another shitty meme library
>>
File: 1459953929749.jpg (161KB, 1890x1417px) Image search: [Google]
1459953929749.jpg
161KB, 1890x1417px
>>54996328
Lads, still new to coding here, need some help with this:

try {
if (folder.Length == 0) {
throw new Exception("Folder is required.");
}
if (url.Length == 0) {
throw new Exception("URL is required.");
}
if (!Int32.TryParse(txtPostNumberStart.Text.Trim(), out postNumberStart) || postNumberStart < 1) {
throw new Exception("Invalid start at post number.");
}
url = General.CleanPageURL(url);
if (url == null || url.IndexOf("/res/", StringComparison.OrdinalIgnoreCase) == -1) {
throw new Exception("Invalid thread URL.");


It's supposed to accept 4chan urls and find the board + thread, but I always just get "Invalid url" error.

Help.
>>
>>55001639
It's pretty gay dude but I don't care.
>>
>>55001736
Thank you for acknowledging that it is gay
>>
>>55001734
Ignore the folder insert.
>>
>>54996328
>>55001747
>>
>>55001488
55001762
>>
>>55001748
?
>>
>>54996328
Cool picture op. What's that have to do with the topic?
>>
>>55001774
i think he's testing/tuning a dubs script
>>
>>55001728
You know what's the best part of it? If you think webdev is lego now, with Polymer you are able to easily import entire functional components of web pages somebody else wrote and stick them together with zero effort.
>>
>>55001788
both anime and crossdressing are very popular in programmer culture
>>
>>55001801
Sure if you hang around with a bunch of faggots; if you like dick that is fine but please do not say that a majority of us are gay
>>
>>55001801
no, even on 4chan it's not all that popular, kill yourself
>>
>>55001810
>>55001815
t. pajeet
>>
>>55001822
So only pajeets are the only programmers who do not like sucking cock?
>>
>>55001822
t. delusional weeb fag
>>
>>55001789
>needing a script to get dubs
Pfft, pathetic.
>>
>>54998923
thanks anon
>>
File: young dubs.jpg (58KB, 400x400px) Image search: [Google]
young dubs.jpg
58KB, 400x400px
>>55001844
>>55001833
>>55001822
>>
>>55001852
Do you want to molest this young lad as well?
>>
>>55001801
>crossdressing
>very popular in programmer culture
saying it doesn't make it so. in fact, your delusion makes it that much more pathetic.

own that you're a fucking freak.
>>
>>55001734
Anyone?
>>
>>55001801
Anime and cross-dressing is not popular, no matter how many times you say this, it won't come true.
>>
have tv shows like silicon valley and the big bang theory even brought up anime or crossdressing like ever
>>
>>55001864
Programmers are usually white and meek 20-somethings.
Most crossdressers are usually white and meek 20-somethings.

Whether you want to admit it or not is irrelevant.
A programmer is more likely to crossdress.
>>
>>55000726
think of computer memory as a big array
a pointer is simply an index into that array


(this is not technically correct on all platforms but you don't have to worry about all the details)
>>
>>55001935
are you that idiot that compared tweet likes and delegate counts to try to make a case for shillary
>>
>>55001935
You can believe that as long as it makes you feel better about being a faggot cross dresser
>>
>>55001032
> O(1) fibonacci

Let me know some more about that constant time bignum exponentiation algorithm you've got
>>
File: delet.jpg (59KB, 590x479px) Image search: [Google]
delet.jpg
59KB, 590x479px
>>55001994
you got me.

it's still better than recursive
>>
>>55001032
>O(n^2) recursion fib
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
>>
>>55002017
actually, it's the same complexity as the log(n) recursive implementation.
>>
>>55001935
woah dude, your understanding of the transitive property is totally fucking broken. like to the point that i don't think you understand it at all.

just because the crossdressing community is predominantly constituted of white guys in their 20s doesn't mean that it's "very popular" in any other community of white guys in their 20s.

to make this especially concrete since abstract reasoning tends to confuse retarded people...

if there are 10 people in the world who crossdress and they're all 23 year old white men, and 1 million people in the world who program (and they're all white men in their 20s), then your first two premises would be accurate. the connection that crossdressing - an activity that 10 people engage in - is very popular or even partially overlapping with the 1M person group is completely unwarranted.

your bizarre misuse of logic could be twisted and used similarly for rapists or pedophiles or serial killers
>Programmers are usually white and meek 20-30-somethings.
>Serial killers are more often white and in their mid to late 20s than anything else
>herp derp
>killing people is very popular in the programming community!
>>
>>55001763
Close mang!
    static boolean isOdd(int n){
boolean [] truthTable = new boolean [n+1];
boolean previousEven = false;
for (boolean i: truthTable){
if(previousEven){
previousEven = false;
}else{
previousEven = true;
}
}
return !previousEven;
}
>>
>>54997682
there's no accounts retard. sure is summer in here
>>
>>55002072
>serial killers are more often white
lie, blacks tend to be serial killers more
but I guess frequent shootings are ok and thus normal for them

same thing with incest,
blacks tend to have more incest than whites
but whatever
>>
File: betauprising.jpg (17KB, 316x239px) Image search: [Google]
betauprising.jpg
17KB, 316x239px
>>55002037
>>55002024
>>
>>55002133
good post, adds quality to the thread
>>
>>55002102
Version 2, more sexier version!
    static boolean isOdd(int n){
boolean [] truthTable = new boolean [n+1];
boolean previousEven = false;
for (boolean i: truthTable){
previousEven = (previousEven) ? false : true;
}
return !previousEven;
}
>>
>>55002133
that one is O(n), i'd like to see an O(log n) recursive fib
>>
File: 1444001187199.jpg (27KB, 455x334px) Image search: [Google]
1444001187199.jpg
27KB, 455x334px
>>55002121
8/8
>>
>people are unironically suggesting crossdressing is a natural inclination, but will say that a fascination with firearms is unusual and frightening

why dpt
>>
>>55002178
crossdressing is an intellectual gentleman's sport, while guns are for brutes
>>
>>55002178
flaming shillary fags
>>
>>55001032
Recursion isn't slower because of higher time complexity, it's slower because of the extra stack overhead you mong.
>>
>>55001734
>>55001873
REEE JUST HELP ME GOD DAMN IT
>>
File: 1374616482010.png (169KB, 352x349px) Image search: [Google]
1374616482010.png
169KB, 352x349px
>>54996328
lol why would anyone want to write their own code
that's microsoft or apples job
>>
>>55002197
Cross-dressing is a mental illness that should be treated at medical institutions, not encouraged.
Meanwhile a gun hobby is manly and fulfilling. Also useful.
>>
>>55001734
>>55001873
>>55002223
how about you print url before the if? that's not difficult to do or to understand, right?
>>
>>55002178
A fascination with firearms is fine.
Thinking that every citizen has a right to use and own them, even if they're on lithium, is batshit insane.
>>
why does python do this?
>>>a = [0, 1, 2]
>>>a[-1]
2
>>>a[3]
list index out of range

why can it loop backwards once but not twice and not loop forward at all?
how would this be useful ever?
why make it loop at all?
>>
>>55002178
Why not both you limp wristed faggot
>>
File: 1445994512767.jpg (9KB, 146x250px) Image search: [Google]
1445994512767.jpg
9KB, 146x250px
>>55002260
>that's not difficult to do or to understand, right?
Seems it is, c-c-can you show me it?
>>
>>55002265
>python being shit
>surprised
>(You)
>>
>>55002170
(defun fib (n &optional (a 1) (b 0) (p 0) (q 1))
(cond ((zerop n) b)
((evenp n)
(fib (/ n 2) a b
(+ (* p p) (* q q))
(+ (* 2 p q) (* q q))))
(t (fib (1- n)
(+ (* b q) (* a q) (* a p))
(+ (* b p) (* a q))
p
q))))
>>
New thread: >>55002296
>>
>>55002261
>Thinking that every citizen has a right to use and own them, even if they're on lithium, is batshit insane.

Not a right, but a duty. An obligation, if you will. Absolutely everyone should be armed.

>>55002275

/k/ already has crossdressers. I don't care.
>>
>>55002163
isOdd n = n `mod` 2 /= 2
>>
>>55001734
>>55002280
print the url variable before the last if. the idea is that you'll see if it's null, or if it contains "/res/", and you should be able to see the problem.
>>
>>55002261
in america where all the bad guys already have guns or can easily obtain guns it's the most appropriate solution
>>
>>55002331
the appropiate solution is to REDUCE the amount of guns, so it will be a bit harder for criminals to get guns, and people/cops will become less paranoid and trigger-happy

but expecting muritars to understans logical solutions is illogical on itself
>>
>>55002303
>>55002331
I gave the most ridiculous example I could think of, a person with severe depression owning a firearm, and you still think that's a good idea.

I hope trump wins and you all kill yourselves.
>>
>>55002366
>le trump is bad
Opinion: DISCARDED.
>>
>>55002366
why is that a bad thing?
he'll kill himself if anything
>>
>>55002365
it's practically impossible to reduce the amount of guns to the point where almost no one has guns

>>55002366
shooting yourself can be a good way to go, it's better than throwing yourself in front of a train which affects hundreds or thousands people
>>
>>55002261
I am on lithium, no bully.
>>
>>55002395
Oh no, a merican who votes for celebrity socialites instead of politicians doesn't like my opinions, what will I do /g/?
>>
>>55002178
crossdressing never killed anyone
>>
>>55002451
yes it has you disgusting arrogant delusional self-centered moron
>>
>>55002439
Trump is a better politician than anyone else on the presidential stage. His policies are flawless, prove me wrong Yuropoor.
>>
>>55002420
>it's practically impossible to reduce the amount of guns to the point where almost no one has guns
I wasn't talking about banning guns, I don't think anyone has talked about that, but YES, you CAN reduce the amount of guns easily. in fact, it's happened a few times in my country: the govt bought them from their owners (legal or otherwise).
>>
>>55002420
Sure it's a good way to go, so long as the person doesn't get any bright ideas to take anyone else they don't like with them.

Bit trickier to do that when jumping in front of a train, unless you just want to grab a stranger.

I love how I talk about a depressed person owning a gun, and everyone's immediate thought is their danger to themselves but not to everyone else.
Stay classy murica.
>>
>>55002487
people would still keep guns especially the bad ones you idiot

>>55002493
you're the one who brought up suicide IDIOT ASSWIPE
>>
File: implying.jpg (23KB, 637x287px) Image search: [Google]
implying.jpg
23KB, 637x287px
>>55002451
>>
>>55002487
that already happens in the us though
>>
>>55002493
the way you take down a bad guy with a gun is by using a gun yourself

RETARD
>>
>>55002478
>prove me wrong
>never actually provide any proof
>I won't make any bets until I can see all the cards

I think you'll find the only outrageous claim made here is that trump is a politician and not a socialite.
>>
>>55002532
THAT'S THE ENTIRE POINT YOU FUCKING RETARD, PEOPLE ARE FUCKING SICK OF THE ESTABLISHMENT, WHY DO YOU THINK BERNIE IS SO POPULAR MORON
>>
>>55002476
>>55002511
>suicide
Oh, i wonder what caused those senseless deaths.
Oh I know! A GUN

Which leads me back to my main argument.
Unlike guns, crossdressing has never killed anyone.
>>
File: 1446489858633.jpg (1MB, 1029x4529px) Image search: [Google]
1446489858633.jpg
1MB, 1029x4529px
>>55002493

Shut up gun grabbing libtards.
>>
>>55002562
FUCKING KILL YOURSELF RETARD THERE ARE COUNTLESS STORIES LIKE THAT TRANNY THAT GOT KILLED BY A DRUG DEALER FOR TALKING TO THE POLICE FUCK YOU INCONSIDERATE DELUSIONAL PRICK
>>
File: 1449270835869.jpg (22KB, 400x400px) Image search: [Google]
1449270835869.jpg
22KB, 400x400px
>>55002562
>guns caused people to kill themselves
Holy shit how can you be so retarded?
>>
>>55002507
>>55002530
>US cops are notorious for being shit at their jobs, always making bad decisions
>People literally paid and trained to be able to respond to violent situations, and still fuck it up every day
>I know, lets give everyone weapons with absolutely none of the training the already terrible law enforcement has

Sounds great, totally not the source of any problems whatsoever.
>>
>>55002593
FUCKING RETARD THE POLICE WOULD HAVE GUNS EITHER WAY, IT'S THE CITIZENS THAT WOULD GET DISARMED

FUCK YOU FUCK YOU FUCK YOU
>>
>>55002586
Maybe it whispered something in his ear... before the bullet hit the eardrum.
>>
>>55002507
>people would still keep guns especially the bad ones you idiot
are you expecting to find an instantaneous, overnight solution to the problem? do you really think that criminals would be as violent as they are if they knew people didn't have as many guns as they do have now?

>>55002521
oh, I had no idea. well, I guess you/they need more strict laws, find ways to demotivate gun owners and such.
isn't carrying a gun in public places legal in some places in the US?
>>
>>55002544
>bernie
>not establishment
>>
>>55002586
Maybe if the tranny didn't have easy access to a gun, he would have been more hesitant to kill himself because literally every other method would take more effort and has more room to change your mind.
>>
>>55002614
refer to >>55002565

SHALL NOT INFRINGE, MOTHERFUCKER.
>>
>>55002614
>do you really think that criminals would be as violent as they are if they knew people didn't have as many guns as they do have now?
you're incredibly stupid.
>>
>>55002627
Wrong. People will kill themselves either way, same as kill others.
>>
>>55002604
People should have the right to bear arms, as long as they first prove themselves responsible enough to use them properly.

And no, an ID check is not what I mean. Actual fucking training of some sort before being able to take one home.

I think if the military spend so much goddamn money training soldiers how to use their weapons before putting them on the battlefield, there must be a good fucking reason for it.

Everyone is allowed to drive, but you still need a fucking licence. It's not about preventing people from exercising their rights, it's about stopping retards from fucking shit up.
>>
>>55002671
>people should have the right, but...
DISCARDED.

Try again commie.
>>
>>55002671
>Everyone is allowed to drive, but you still need a fucking licence.

The only barrier to driving is $35, a 20 question test and a 10 minute driving test that makes sure you can follow traffic signs.
THAT'S IT.

They let literally any drunk driving teenager on the road so long as they have daddy's insurance.
>>
>>55002649
Not that I have a problem with degenerates killing themselves, but your point is provably wrong.

Plenty of studies show that removing a quick to hand method of killing yourself greatly reduces suicide rates.
In many cases, someone who made a failed attempt never tries again, it's a spur of the moment thing.

Look up what happened to suicide rates in the UK after coal gas was eliminated, they went down and never went back up again.
>>
>>55002706
>le my country let's any retard drive, it must be the same anywhere

Tests here last 40 minutes, getting any minor fault repeated 4 times in for the same marking section is an instant fail.
The theory tests are notoriously difficult, pass rates well under 50%, and yet there are still too many people doing stupid shit on the roads.

That doesn't mean we'd want even more of them out there by lowering the bar further still. If the tests are not good enough, you make them better, not get rid of them completely.
>>
>>54997089
Only lispfags
Paul Graham still thinks lisp is useful
>>
sup /g/

just a little reminder that it's out

you should pirate, fap to it and then support the author in Patreon or DLsite (Patreon is better)

good night
>>
>>55003038
kys
>>
>>55000756
MASSIVELY UNDERRATED POST
>>
>>55002290
fuck i can't even read that. there's a log(n) approximation with exponential decomposition. It's just ((1 + 5^.5)/2)^n
>>
>>55003489
It's easy to read. Just take one part at a time.

Don't expect to be able to read a language intuitively when you've never put in the time to be able to do so.
>>
>>55003038

whats out?
>>
>>55004100
>implying you don't know
Everyone knows.
>>
>>55004444
i really dont pls help
>>
>>55004460
I don't believe you.
>>
>>55004515
;-;
>>
>>55004535
Try checking /h/, there's two generals dedicated to it.
>>
Are java arrays dynamically allocated?
>>
>>55004550
oh shit
i actually had an idea this might be out
>>
>>54996373
>>>/reddit/
Thread posts: 373
Thread images: 37


[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.