[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: 325
Thread images: 34

File: 1446345278258.png (72KB, 640x427px) Image search: [Google]
1446345278258.png
72KB, 640x427px
Gas the weeaboos edition

What are you working on, /g/?
>>
Also forgot
previous: >>57246428
>>
>>57252068
xkcd is worse
>>
>>57252130
the internet is a big place. you can go literally anywhere if you're being triggered. this isn't a safe space
>>
File: dpt-poster.jpg (517KB, 1521x1076px) Image search: [Google]
dpt-poster.jpg
517KB, 1521x1076px
>>
I have a script.

#!/bin/bash
while (true)
do
read A
echo $A
done



Why pressing Enter key makes bash to repeat line, later giving error like "[abc: command not found"? Why can't it just switch to the next line?
How can I make script to not exit after ^C, but still having ^C printed?
How can I say Bash if we have line 'exit\n', then exit script?
>>
It's not like I want you to post the discord link, bakas.
>>
File: removedupes.png (50KB, 942x666px) Image search: [Google]
removedupes.png
50KB, 942x666px
Can someone help explain the line with dup=ptr2.next ? Posted in old thread by accident.

I'm pretty sure it's trying to maintain the position in memory, but it's never used anywhere else in the function. Can someone explain whether this is unnecessary or what's going on to require a variable used once to hold a node but not used again?

The function's purpose is to remove dupes in a linkedlist, I know better alternatives to do this exist but that's not what i'm interested in.
>>
File: 55779590_p0.png (374KB, 600x812px) Image search: [Google]
55779590_p0.png
374KB, 600x812px
>>57252068
>xkcd
>anime hate
Is op a faggot?
>>
>>57251905
Heh, nice try ... kid


choices = join $ fromList
[(ln "Got two chests!" *> chests, 1/10),
(ln "Got some gold!" *> pure 1, 3/10),
(ln "Got NOTHING!" *> pure 0, 6/10) ]
where chests = (+) <$> choices <*> choices
ln = lift . putStrLn
>>
>>57252175
who is this 2d qt
>>
>>57252140
I hate you
>>
File: 44606515_p0.png (547KB, 700x866px) Image search: [Google]
44606515_p0.png
547KB, 700x866px
>>57252181
http://www.pixiv.net/member.php?id=612602
>>
>>57252173
>System.gc()
>>
>>57252173
Meanwhile, in Haskell:
removeDuplicates (x : y : as)
| x == y = x : removeDuplicates as
| otherwise = x : y : removeDuplicates as
removeDuplicates as = as
>>
>>57252173
Those are the worst comments I've ever seen.
>>
>>57252178
this is using
Control.Monad.Random (fromList)
Control.Monad.Trans (lift)
Control.Monad (join)
>>
>>57252230
>this is tricky
>this is important
Ikr
>>
>>57252230
>>57252225
>>57252200
I didn't write the code bros, some Pajeet did.
Just need help understanding that one line, rest is fuck all.
>>
>>57252117
Add this piece of code after "sum += term;"
std::cout << "Iteration: " << n << " Term: " << term << std::endl;
>>
>>57252173
It's completely pointless.
>>
>>57252245
I'm a neet and I have never seen actual pajeet code so...

Fuck you for raping my brain. NSFW content should stay in /b/.
>>
>>57252175
I am a faggot but at least I don't watch anime
>>
File: i got myself an anime!.jpg (204KB, 440x574px) Image search: [Google]
i got myself an anime!.jpg
204KB, 440x574px
I decided to relearn shell scripting without using bashisms.
Rate my bash-free rice script!

#!/usr/bin/env sh
# launch xload and xclock in top-right corner

LIST="xload xclock"
COUNT=$(echo $LIST | wc -w)
SCREEN=$(xdpyinfo | grep "dimensions" | cut -d ' ' -f7)
WIDTH=${SCREEN%x*} HEIGHT=${SCREEN#*x}
SIZE=130 # window size
GAP=10 # gap between windows
EDGE=30 # distance from screen border
XPOS=$(($WIDTH - $EDGE - (($SIZE + $GAP) * $COUNT)))
YPOS=$EDGE

for PROG in $LIST
do
if ! pgrep $PROG > /dev/null
then
$PROG &
sleep 0.2s
fi
WINDOW=$(wmctrl -l | grep $PROG | cut -d ' ' -f1)
wmctrl -i -r $WINDOW -b add,skip_taskbar,skip_pager
wmctrl -i -r $WINDOW -b add,sticky,bottom
wmctrl -i -r $WINDOW -e 0,$XPOS,$YPOS,$SIZE,$SIZE
XPOS=$(($XPOS + ($SIZE + $GAP)))
done
>>
>>57252178
>>57252239
I cant even compile this shit, much less read it. Haskell/10.
>>
>>57252286
>NSFW
>Neet
Pick one.
>>
>>57252324
Why would you do that?
>>
>>57252245
It doesn't seem to be doing anything. Honestly that whole code is shit. What it's trying to do is, for every elem in list, check it against every other elem and delete other elem if they are duplicate. This is very obviously O(n^2). You can trivially make an O(n) version of it:

Make a hashmap.
Make a new empty linked list.

for each element,
if it's not in the hashmap
add it to hashmap
add it to the new linked list

The hashmap is needed for O(1) checking of whether the element has been added already.
>>
>>57252332
{-# LANGUAGE NoMonomorphismRestriction #-}

import Control.Monad (join)
import Control.Monad.Trans (lift)
import Control.Monad.Random (fromList, runRandT, getStdGen, setStdGen)

choices = join $ fromList
[(ln "Got two chests!" *> chests, 1/10),
(ln "Got some gold!" *> pure 1, 3/10),
(ln "Got NOTHING!" *> pure 0, 6/10) ]
where chests = (+) <$> choices <*> choices
ln = lift . putStrLn

main = do
g <- getStdGen
(act, g) <- runRandT choices g
print act
setStdGen g


you need the MonadRandom package and the mtl package
>>
>>57252353
Mate I know that it's a shit implementation, I mentioned that in my post.
Hashmaps are obviously superior. I'm just studying for interviews and whenever I come across code I try and figure out what the fuck it does.

Looks like most of you think it's an unnecessary line, guess Pajeet just wasted my time trying to decrypt his shitty code.
>>
>>57252187
ily2 anonkun
>>
File: 126385544611.gif (3MB, 320x240px) Image search: [Google]
126385544611.gif
3MB, 320x240px
Trying to make sense into what I wrote last night

//  this function somehow exists

????!
>>
>>57252403
where'd you find it
you cannot trust pajeets
>>
>>57252353
>or O(n log(n)) by using quicksort
>or even O(log(n)) by keeping the list sorted in a B-Tree
>or even O(1) with direct memory access (only possible if the data are small and a numerical key can be computed from the data)
>Or fucking O(0) if you don't waste your time with useless bloating and remove unnecessary functionalities.
Pajeets this days.
>>
>>57252434
http://www.geeksforgeeks.org/remove-duplicates-from-an-unsorted-linked-list/

His way of creating nodes is also quite interesting, at least Pajeet entertains.
>>
>>57252428
How tired were you?
>>
>>57252470
Reading further into it, yesterday's answer would probably have been "yes"
>>
>>57252444
O(0) is best O. Until someone figures out how to do O(-)
>>
File: Untitled.png (2KB, 130x67px) Image search: [Google]
Untitled.png
2KB, 130x67px
double mycosx(double cosx, double threshold)
{
double sum = 0.0;
int n = 0;
while (true){
double term = (pow(-1, n) / Fact(2 * n))*pow(cosx, (2 * n));
sum += term;
if (term < threshold) { break; }
n++;
}

return sum;
}
__int64 Fact(int n)
{
__int64 result = 1;
while (n > 1) {
result *= n--;
}

return result;
}


Anyone know how to fix this code? I'm required to use the equation that is pic related and I can't do any other way. I can't seem to get the answers right when I use .5 or 2 for cos. Threshold is 10^(-3). When I put .5 I get a pretty close proximity, but when I do 2, the number is just way off.
>>
i big Od ur mum
>>
>>57252332
>>57252375

fromList takes a list of pairs with associated probability [(a, Rational)] and returns a (RandT g m a) that represents a choice out of that list. (g and m are unimportant for now, ignore them)

The action in choices represents a choice from that list, based on the probabilities it is paired with.
The list used in the code consists of a set of Rand+IO actions - print a string (describing what happened), then return either 1, 0, or (thanks to lazy evaluation) the total of the results of two further actions.


Going back to the type parameters from earlier, RandT is a monad transformer.
This means you can combine it with a monad to produce a new monad that can do both things.

RandT g IO
is a monad that can get random numbers, and perform arbitrary IO (the random interface is cleaner though)

join collapses the action of randomly picking from the list with the action that is produced from it

g is just the type of the random number generator / seed
so the type of choices is
RandomGen g => RandT g IO Integer

Here's one that doesn't do any IO, but is a lot cleaner and makes more sense:

choices2 = join $ fromList
[(chests, 1/10),
(pure 1, 3/10),
(pure 0, 6/10) ]
where chests = (+) <$> choices2 <*> choices2

main2 = evalRandIO choices2 >>= print
>>
>>57252444
>>or O(n log(n)) by using quicksort
First of all O(n log(n)) is slower than O(n). You also can't quicksort without "direct memory access" as you call it, i.e. you can't quicksort a linked list.

>>or even O(log(n)) by keeping the list sorted in a B-Tree
He doesn't keep the list sorted in a B-Tree, so he can't O(log(n)) it. It's in a linked list. Transforming it to a B-Tree is going to be at least O(n) for obvious reasons.

>>or even O(1) with direct memory access (only possible if the data are small and a numerical key can be computed from the data)
This is just a fucking hashmap

>>Or fucking O(0) if you don't waste your time with useless bloating and remove unnecessary functionalities.
What exactly are you claiming here? That there's no use for a duplicate-free list?
>>
>>57252565
>First of all O(n log(n)) is slower than O(n).
what scares me is that it was necessary for you to post this. how retarded is /g/ these days?
>>
>>57252506
is this the birth of a new meme?
>>
>>57252352
portability
>>
whats something cool i can programmer
>>
Do you ever do projects that you know are useless but you do it for fun and learning?
I need a new side project but I can't think of anyhing useful.
>>
>>57252586
A lot more since you joined.
>>
>>57252603
gf
>>
>>57252565
This desu. That anon was retarded.
>>
>>57252604
It's literally the only kind of project I do. I can't stick to one project for long enough to complete anything useful.
>>
>>57252612
no man i want rms to program my gf's software
>>
>>57252565
There's no use to check a duplicate free list for duplicates, is what he's saying. Don't stick duplicates in your list.

>>57252506
does pow(-1,n) return an int or a float? Because it looks like you have an integer division there.
Naming the argument to your cosx function 'cosx' hurts my brain.
>>
>>57252506
What's it supposed to give out?
>>
File: textboard3.webm (792KB, 903x830px) Image search: [Google]
textboard3.webm
792KB, 903x830px
Still writing my textboard. Progress has been slower than I'd like because of work, and generally not wanting to program after a day of programming.

I was going to implement a ban system, but then I got sidetracked and ended up doing a "delete all users posts" system and a page for seeing all of an ip's posts.

Also, how would you guys suggest doing a ban system? I was just thinking of having a table with an IP, ban reason and ban expiry date. Then when the user tries to post, it checks if their IP is in the table, and if the expiry date has passed etc.

The only issue with this is that if someone is banned, then never returns, their ban entry will forever exist in the database. So I was thinking of maybe purging expired bans from the database every 100~ posts.
>>
>>57252648
Yes but it's a fucking interview question, not a design problem
>>
>>57252648
he's either memeing or severely retarded
>>
>>57252506
see >>57252262
and then get the fuck off my board
>>
>>57252463
http://www.geeksforgeeks.org/about/
ahahaha
>>
>>57252664
You should have a daemon monitoring expiration times for database entries.
>>
File: 1461933441647.png (1MB, 1076x790px) Image search: [Google]
1461933441647.png
1MB, 1076x790px
>>57252664
>127.0.0.1
>>
>>57252664
>So I was thinking of maybe purging expired bans from the database every 100~ posts.

Why not just purge after a certain amount of time. If IP == 24 hours, purge;
>>
File: pajeet.png (79KB, 332x288px) Image search: [Google]
pajeet.png
79KB, 332x288px
>>57252678
>>
>>57252648
>There's no use to check a duplicate free list for duplicates, is what he's saying. Don't stick duplicates in your list.
That's reasonable if that's really what he meant. Checking if an element exists in a linked list still O(n) though so he'd have to back it with a hashmap like in my pseudocode >>57252353 but you'd do it on insertion. But it's also kind of besides the point, there could be a reason to keep a list that allows duplicates, but sometimes you want to use a duplicate-free version for whatever reason.
>>
>>57252463
why not just put the values you've read into a sorted array as you're going through, and if you come across an item that has a value matching something in the array, you delete it
>>
>>57252678
>100% pajeet
holy shit
>>
>>57252707
>A geek who enjoys practising Dark Arts with Computer Code. And, he sometimes uses Machine Learning techniques to challenge unconventional challenges. In his free time, he creates video tutorials for other geeks.
What did it mean by this
>>
>>57252714
So a hashmap...
read the thread
>>
>>57252068
Finally got my web server and ftp server running. I feel accomplished.
>>
>>57252726
A very cringy geek
>>
>>57252731
Now try to get email support
>>
Today I am working on a encryption/decryption program for school. It looks like a lot of the information on the internet is dated because they keep telling me to use pycrypto which is unmaintained. Do you think NaCl, cryptography or pycryptodome is better?
>>
>>57252730
what the fuck's a hash map
>>
>>57252753
just reverse the string and call it encrypted
>>
>>57252713
>there could be a reason to keep a list that allows duplicates, but sometimes you want to use a duplicate-free version for whatever reason.
Well now you'll have to spend even more cycles running a deep copy on your list, before running destructive operations on it.
>>
What is /g/'s thoughts on namespaces? I know a lot of people say C is better than C++, and I actually just took a look at what namespaces are for.

Now, I normally remove namespaces from the top of my programs if I compile in C++. And if I happen to need to use it, I just prefix it.

But I want to know, C vs C++ programmers in here, are namespaces good, because you can name a bunch of unrelated classes the same without ambiguity? Or do they suck, for the same reason, with similarly-named classes polluting all the files?

Also, any other thoughts? I'm really just curious what people think of them.
>>
>>57252758
Oh god save us. When you insert an object into a hash map the value is hashed and that is used as a key for the map's internal storage. This way if you try to insert the same object multiple times you don't get duplicates.
>>
>>57252707
Ha. I was going to post that too, but i decided making fun of how someone looks is too much assholery. I'm ashamed of myself for even considering it.
>>
>>57252737
how would I go about doing that?
>>
>>57252787
>I normally remove namespaces from the top of my programs
What did he mean by this?
>>
>>57252758
A map of md5 hashes and where to find them on stored in a JSON file.
>>
>>57252812
Ha.
>>
>>57252807
>What did he mean by this?
I never use
"using namespace std" or whatever
It automatically show up in my IDE, and I just comment it out.
>>
>>57252758
i think it's a node package
>>
>>57252829
Better hope the package maintainer doesn't get upset!
>>
>mfw you can execute functions by string like this in javascript
this['func_name']();


First thing about javascript that I don't absolutely hate.
>>
>>57252860
It's because that is semantically equivalent to
this.func_name();

i.e.
a['b'] == a.b
>>
>>57252651
cos(.5) = .877
cos(2) = -.4161
>>
>>57252860
Never knew about this.
JavaScript has a lot of useful features, but this is not one of them.
JavaScript is also fucking retarded. This is one of them.
>>
>>57252958
Why is it retarded? Because you don't like it?
>>
>>57252664
4chan doesn't purge expired bans. When I tried to post here about 2 months ago from a university wi-fi I got an expired ban from fucking 2012.
>>
>>57252986
it lets you overwrite built in functions?
>>
>>57252958
>JavaScript has a lot of useful features
[citation needed]
>>
>>57252787
Not a heavy C++ user but I think namespaces are useful when you have larger projects and multiple namespaces flying around. The general rule if thumb I know of is to avoid using them in class/header files to avoid conflicts when compiling. But if you're making a simple program having "using namespace std;" isn't the worst thing and just helps with the hassle of typing std:: whenever you want to print something or whatever it is you're doing. This is just speculation, I'm sure you could just google and get a better answer.
>>
>>57252787
Namespaces are good, languages which lack them suck for complex software. And wildcard imports (e.g. "using namespace X" in C++ or "from X import *" in Python) is bad because then you can't easily tell where a given name comes from. You should be able to identify what a name refers to solely by looking at the file in which it's used, without needing encyclopaedic knowledge of every module which it imports.

Also, in C++ namespaces do more than just give you a choice between using qualified or unqualified names. They also play a role in argument-dependent looking (aka Koenig lookup).

When an unqualified function name or operator is used, the set of namespaces which are searched includes any namespaces containing the types of the function's arguments. And argument-dependent lookup takes precedence over "using" declarations.

The standard example of where this matters is in the case of:
using std::swap;
swap(a, b);

If there exists a suitable swap() function in the namespace containing the type of a or b, it will be used in preference to std::swap(). This allows you to write a version of swap() specialised for a particular type, which will then be used automatically by any (correctly-written) template code.
>>
>>57252664
>The only issue with this is that if someone is banned, then never returns, their ban entry will forever exist in the database.
This isn't really an issue. You're talking about doing select * from bans where ip = "whatever", on an indexed table. It might become a little sluggish after 10 million bans. But at that point just take the site down, manually run a query to purge it and take the site online again. No biggie.
>>
>>57253060
>downtime
gross
>>
>>57252664
I think all today's databases support job scheduling. So just run a stored procedure once a day.
>>
First for Python.
>>
>>57252787
> Many consider C++ namespaces dangerous or bad practice because of the poor type system might create conflicts for you
What did C++ mean by this?
>>
>>57253117
Who are you quoting?
>>
>>57253135
Stack overflow's consensus on why namespace is bad practice
>>
>>57253116
sasuga python performance
>>
File: 1476643902417.png (320KB, 578x435px) Image search: [Google]
1476643902417.png
320KB, 578x435px
>>57252068
>for a gnu dawn
very nie
>>
File: 1466793801762.jpg (41KB, 486x498px) Image search: [Google]
1466793801762.jpg
41KB, 486x498px
>>57253155
>Stack overflow's consensus
>>
i made a bunch of php scripts to access the database for my """""group""""" project and now i need to make it usable by the java project. should i make a "Database" class, and then within that a bunch of static methods for what the scripts do?

also, how do i use a php script in java lol
>>
>>57253156
??
>>
>>57253177
>first
>post ~98
>>
>>57252986
>Why is it retarded? Because you don't like it?
If you meant, "Why is JAVASCRIPT retarded?", it's because JavaScript is insanely obnoxious to debug and is not that nice to work with syntactically. And I don't like the loose typing, either... which is part of the reason Web Programming, although something I do, is fuckinga nnoying, because even PHP does it.

If you meant, "Why is THAT FEATURE retarded?", then to be fair, it's not much worse than the language itself. I should say, "It's fucking pointless, and I have no idea why anyone would write it like that.". Just like a LOT of the language. So, this is ANOTHER feature that was thrown in instead of fixing already-existing obnoxious bullshit.

>>57253022
AJAX. And jQuery.
That's about it.
We really need a better standardized Asynchronous Web Language.


>>57253025
I just kind of wonder if it promotes misuse of function names. Being ABLE to name a bunch of functions the same seems like it's bad practice, but I've never worked on anything that big, I guess.

>>57253042
>If there exists a suitable swap() function in the namespace containing the type of a or b, it will be used in preference to std::swap().
That's interesting. I'll have to look more into this.

After I finish this C book, I got a C++ book I also plan to read. Maybe after practicing with them a bit, I'll see what you mean more.

>>57253117
See, this is what I was thinking, though. Wouldn't it promote the misuse of function names and such?
>>
>>57253176
why are you using two different languages lmao
>>
>>57253184
heheXDDD
>>
>>57253176
You were probably supposed to access the database from java not from php lol.
>>
>>57253194
i don't follow
>>
>>57253186
>We really need a better standardized Asynchronous Web Language.
So C then?
>>
>>57252506
If you're iterating over n, you can calculate x^n and n! incrementally, which is far more efficient than calculating from scratch at each iteration.

double tsin(double x, int n)
{
double xn = x;
double x2 = x * x;
double nf = 1.0;
double s = 0.0;
for (int i = 1; i < n; i += 2) {
int k = (i & 2) ? -1 : 1;
s += k*xn/nf;
xn *= x2;
nf *= (i+1)*(i+2);
}
return s;
}

double tcos(double x, int n)
{
double xn = 1.0;
double x2 = x * x;
double nf = 2.0;
double s = 1.0;
xn *= x2;
for (int i = 2; i < n; i += 2) {
int k = (i & 2) ? -1 : 1;
s += k*xn/nf;
xn *= x2;
nf *= (i+1)*(i+2);
}
return s;
}
>>
>>57253217
>asynchronous
>>
>>57253225
C is asynchronous if you know how to use it.

>What is epoll
>>
>>57253225
So golang then. I figure you're talking about frontend though. Let's all cross our fingers for webassembly.
>>
>>57253217
>So C then?
See:
>>57253225


So... someone should make... Web-C
Then the only problem is getting all the browsers to support it or get everyone using the sites to download a fucking plugin!
>great....
>>
>>57253240
See:
>>57253245
He's right, you know:
For frontend.
>>
>>57252323
anime shills BTFO
>>
>>57253254
http://bellard.org/jslinux/
>>
File: WebDevAssembly.png (312KB, 506x662px) Image search: [Google]
WebDevAssembly.png
312KB, 506x662px
>>57253245
Holy shit, I thought Web Assembly was a meme or a joke or something.

So... they're actually planning to make it?
>I looked it up just now
>>
>>57253267
"Frontend" just means problems are being solved by someone else.

Also, kill yourself.
>>
I need a project.
Give me your suggestions please
>>
>>57253304
asm.js already exists, see something like emscripten, compiles C to Javascript. Some libraries already offer "binaries" in Javascript format using it (for example SDL/SDL2)
>>
>>57253337
can you write a system to compares two sql databases and returns whether the data contained in them is the same?

thanks
>>
>>57253304
Yep. Using Javascript as the compile target for front end programming languages was a horrendous mistake that has taken us way too long to rectify.
>>
>>57253361
do you mean if they're the same file or if the contents of file 1 is in file 2, or vice versa?
>>
>>57253337
Write a program that efficiently recursively checks for identical files in a given folder, should be a fairly simple project
>>
>>57253361
diff a.db b.db
>>
>>57253301
Wait, what exactly is this thing??

There's nothing really on it.

The title is "Javascript PC Emulator"
Is this a false Linux written in JS or something?

If so, I'm hella impressed. It even does grep -E RegEx parsing.
>>
>>57253418
take a look at hello.c
>>
>>57253418
It's a PC emulator written in JS.
>>
>>57253316
>Also, kill yourself.
Y-you too

>>57253340
holy fuck, I gotta see this.
Is there good documentation on it?
>(for example SDL/SDL2)
So, I can even use graphical libraries this way??

>>57253373
>Yep. Using Javascript as the compile target for front end programming languages was a horrendous mistake that has taken us way too long to rectify.
I am looking forward to this thing then.


And it actually follow C syntax and stuff?
I'm just confused, though; how will it manage the DOM?

>>57253456
yeah, that's what I was grepping.
just found the executable. it runs. pretty freaking awesome.

>>57253481
I am impressed, then.
>>
>>57253506
>how will it manage the DOM?
Browser vendors will need to build in things like that, but all the major ones (firefox, chrome, ie, safari) are on board to make webassembly happen. It's just a matter of time.
>>
>>57253523
That is amazing.
Be way better to work with. I will gladly switch over my stuff when it happens.
>>
File: 1450800787739.png (2MB, 1920x1080px) Image search: [Google]
1450800787739.png
2MB, 1920x1080px
What's the difference between emacs and vim? Just got kinda fluent in vim, is it worth learning emacs too?
>>
why the fuck doesn't patool work?

>>> patoolib extract 'C:\477413.rar'
File "<stdin>", line 1
patoolib extract 'C:\477413.rar'
^


what's its fucking problem?
>>
>>57253541
No you may only have one.

Like Nico or Maki
>>
>>57253418
>open vi
>:o is not implemented
:-|
>>
>>57253561
also tried

patool extract 'C:\477413.rar'
File "<stdin>", line 1
patoolib extract 'C:\477413.rar'
^


and the damn thing won't work. it also won't work with pyunpack. WHAT THE FUCK?
>>
>>57253561
>using pajeet's patools
>>
>>57252140
This is some gay-ass shit
>>
>>57253587
what do you suggest? honestly, what do you suggest? is there a better program to unrar shit for python? big fucking help you're offering
>>
html and css sucks.
GUI library for js using webgl when?
>>
>>57252826
Namespaces are good. "using namespace" is bad, except for in restricted surcumstances, and your IDE is bad for suggesting otherwise.
>>
>>57253604
just be urself lol
>>
>>57253606
When you write it.
>>
>>57253631
fuck off
>>
>>57252802
Cry
>>
>>57253581
no, it was.

I created a bullshit file in it.

However, now gcc isn't working... it worked last time...

>>57253609
I wonder if I can turn off that part of the auto-code...
>>
I'm so fucking bored. Give me a project to work on.
>>
>>57253713
dees nutz
>>
>>57253701
No wait, my mistake. I didn't actually get gcc to work before.

I just chmodded the file and then for some reason it outputted an executable after failing to run it or something.
idk what's going on there
>>
File: image.jpg (3KB, 300x57px) Image search: [Google]
image.jpg
3KB, 300x57px
>>57253713
Brainfuck compiler
>>
>>57253254
Yes?
This is literally what webassembly is.
I cant wait for JS-only faggots to get BTFO out out of web development.
>>
>>57253713
>GUI library for js using webgl
>>
>>57253713
remove duplicates from a linked list
>>
>>57253713
Write a program that can classify images of animu waifus by hair color
>>
>>57253713
build an AI waifu

To be real challenging, make them a tsundere.
or, maybe a yandere that is capable of randomly deleting files if you don't show it enough affection.
Give it full access the the whole filesystem and all mounts for extra fun
>>
I have just started learning to programme and I'm looking at graphs, so can someone explain to me why in some implementations of a graph data structure in java some will have node.java, edge.java and graph.java where as some will just have graph.java ?
>>
>>57253195
it's for an android app, so if i was accessing the database from java it'd have to be a database held in the phone
>>
>>57253741
please do this
>>
>>57253713
>>57253725
NO no no no no no...

A Zombie Compiler.

Or for Hard Mode, a Piet compiler.
Maybe Ook.
>>
>>57253741
>"anon do you care more about sdb1 than me?"
>>
File: honoka.png (456KB, 1024x576px) Image search: [Google]
honoka.png
456KB, 1024x576px
>>57253562
>Like Nico or Maki
what if i choose Honoka tho?
>>
>>57253506
> So, I can even use graphical libraries this way??

easyrpg.org/play/

RPG Maker 2000/2003 clone, written in C++. The web version is just compiled to JS using Emscripten.

It needed some minor changes to allow for the fact that you can't have a blocking main loop in JS, and resource loading is asynchronous. But the graphics are done using pixman (cairo's software back-end) with the final blit using SDL, both compiled to JS.

As an actual web-dev platform, C++ and SDL makes no sense whatsoever. But this project is mostly aimed at PCs (as well as phones and 3DS); the web player was an experiment which turned out to have some use in terms of making it easier to get the code out to beta testers.
>>
>>57253787
then kys
>>
>>57253741
>inb4 botnet waifu
>>
File: honoka_zps5fb72cfe.jpg (19KB, 479x269px) Image search: [Google]
honoka_zps5fb72cfe.jpg
19KB, 479x269px
>>57253799
>>
>>57253815
sorry
kys gently
>>
Fact: Uneducated retards that hate on JS for wrong reasons are worse than JS "programmers"
>>
>>57253790
>talk to some guy
>"Do you want Alex in your party"
>No
>character gets deleted
wtf man
>>
>>57253826
copy pasting a 5000 callback node hello world doesnt make you a programmer
>>
>>57253725
I fucking might.

>>57253733
>implying I wasn't the person who posted the (good) answer to that guy.

>>57253735
I've actually wanted to do something like this, but I was thinking something much more dubious...

>>57253741
>build an AI waifu
I've done this. I didn't get very far but I had a little waifu icon displaying as an overlay on my screen, and every now and then it would turn into gifs and play voice lines etc.
I never got too far with it but it wouldn't be too difficult to program in moods like how tsuntsun she is.

>>57253750
So you have computer A running a database and a webserver (PHP), then a computer B (android phone) running java? You will need to learn how to make HTTP requests in java, and you will also have to define an endpoint on the webserver to make those requests to.
>>
>>57253790
That's pretty cool. I'll look more into this.

>>57253814
Heh... hehe...
Next we'll be suggesting to allow it to propagate across the network by sending itself to random IP addresses if it gets mad at you (and later, infected users), like a Yandere AI Virus more than a Yandere AI Waifu

But... you should not do that... for various reasons. But we can all have a laugh at the idea, anyway without... doing it.
>>
File: 2016-08-30a.webm (2MB, 480x360px) Image search: [Google]
2016-08-30a.webm
2MB, 480x360px
>>57253846
I have a very basic thing like that myself as a webapp.

I haven't done much on it in a long time, though
>>
>>57253745
An educated guess would be that the latter solution makes nodes and edges internal, or nested, classes to Graph.

Also possible, but not terribly likely because lol oop, is that the implementer has gone all oldschool and done it using an adjacency matrix or adjacensy list, and not using classes.
>>
>>57253845
Forming opinions based on memes and your own incompetence doesn't make you a programmer either.
>>
>>57253925
But when you switch to another tab she's gone man. She's gone... ;_;

It has to be a window overlay so your waifu can be always-on-top. And I don't mean that in the lewd sense.
>>
>>57253846
>So you have computer A running a database and a webserver (PHP), then a computer B (android phone) running java? You will need to learn how to make HTTP requests in java, and you will also have to define an endpoint on the webserver to make those requests to.
i don't intend to make an actual functional app on the app store that people can download. i just need something that i can demonstrate in front of the class. the database will be on my laptop running lamp. can you write the code for me? the script i'm trying to run right now is get_all_entries.php. it works when run from the terminal
>>
>>57253964
you have no idea what your doing, just fake it
>>
>>57253962
>But when you switch to another tab she's gone man. She's gone... ;_;
Yeah, well it was just an attempt at a hentai webapp embedded in my homepage I didn't complete

>so your waifu can be always-on-top
I want her on top
>And I don't mean that in the lewd sense.
Oh... yeah... I... wasn't meaning it lewdly either...
<.<
>.>
>>
>>57253826
Then please educate us. What are the right and wrong reasons? Now i want to know if i'm a worse than a JS programmer.
>>
>>57253964
>can you write the code for me?
No.

>>57253725
I kind of wanted to make a .NET brainfuck compiler, but it seems like it's already been done... Maybe I should do it anyway.
>>
>>57253962
Many many years ago a had a little app ihad found somewhere, that had a little green haired animu always sitting on top of the title bar of the active window and swinging her legs.
>>
>>57252068
writing babby's first sklearn program
>>
File: drinking.jpg (23KB, 425x283px) Image search: [Google]
drinking.jpg
23KB, 425x283px
>>57254108
>No.
>>
>>57254108
>but it seems like it's already been done
Then make .NET brainfuck compiler
>>
>>57247361
reporting back in. I'm an idiot.

All I need to do is permute through the possibilities for the bottom row, because the other rows are all defined based on the rows below them.

It finds the solution in about 5 seconds now.
>>
In haskell, if I have some data like this

data State = State {
memory :: S.Seq Int8,
pointer :: Int,
totalInput :: String,
nonConsumedInput :: String
}


How can I let the user decide what type he wants the Seq to be? I want to be able to get input from the user, then make the Seq either Int8, 16, 32, or 64.

I'm pretty shit at type-fu
>>
>>57254182
>brainfuck .NET compiler
fixed
>>
how do i modify this to return what it gets as a string?

    public static String getAllEntries(){
try {
// open a connection to the site
URL url = new URL("http://localhost/android_connect/get_all_entries.php");
URLConnection con = url.openConnection();
// activate the output
con.setDoOutput(true);
PrintStream ps = new PrintStream(con.getOutputStream());
// send your parameters to your site
ps.print("firstKey=firstValue");
ps.print("&secondKey=secondValue");

// we have to get the input stream in order to actually send the request
con.getInputStream();

// close the print stream
ps.close();
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}



i'm following the orly "copy and pasting from stackoverflow" textbook except this is actually from some german guy's blog
>>
>>57253725

Hey, I wrote one of those a couple of days ago.
>>
>>57253741
see
>>57253474
>>
>>57254232
data MyMemory = Int8 | Int32 | Int64 

data State = State {
memory :: Seq MyMemory,
pointer :: Int,
totalInput :: String,
nonConsumedInput :: String
}
>>
>>57254312
Tyvm
>>
>>57252506
use that cos is a periodic function
>>
>>57254317
actually you probably want
data MyMemory =  Seq Int8 | Seq Int32 | Seq Int64

so your list is only of Int8 or whatever
>>
>>57252173
I think in his mind he's doing it to prevent the Node that's being removed from the list being caught by the garbage collector by guaranteeing a live reference.
>>
>>57254486
But why? And also: Why?
>>
>>57254505
I said "in his mind" intending to give the impression that I can't possibly untangle his twisted thought process.
>>
>>57254525
You gave the impression that you tried.
>>
>>57254525
you wrote that code didn't you
>>
>>57252324
Use lowercase variable names for unexported variables
Don't use $ on variables in $((..))
Quote variables
You're trying to avoid bash but you're still depending on GNU sleep for fractional waits
>>
>>57254151
holy crap.
Entire functions in this package seem to change names, parameters, deprecate entirely, or do something completely different by the month. Googling problems is practically useless.
>>
>>57254800
That's probably because it's still on version 0.18
>>
>>57254800
i've found most machine learning packages to be oddly designed. the authors have other concerns, it seems to me
>>
how do I not be a pajeet?
>>
>>57254838
yeah, partly. if you're trying to get it working on wangblows, you can't with normal python distribution because some of the dependencies have not been ported yet and some other don't work with older versions.

>>57254847
I'm even struggling to add a fucking column the way it's done in the/a reference. It turns it into a row and adds it to the bottom. Instead of having a 5x2 matrix i get a 6x5 matrix with 5x4 zeroes.
>>
>>57254859
Change your name to Steve.
>>
i really am curious about what steve yegge is up to though
>>
>>57252068
got an idea not sure if it's autistic, thinking of backing up my pepe folder to a github repo I mean people could git clone, download as zip and even make pull requests to add there own pepes is this an ok idea or do I have autism or both?
>>
>>57254355
Also cos(-x)=cos(x), cos(π+x)=-cos(x). So you only need to handle 0<=x<=π/2.
>>
>>57255057
enjoy your terms of service violation for hate speech
>>
>>IndexError: index 36069 is out of bounds for axis 1 with size 36069

Imma cry
>>
File: 1463578827277.jpg (80KB, 500x737px) Image search: [Google]
1463578827277.jpg
80KB, 500x737px
>>57252140
I find it astonishing that weeabs somehow manage to function in societies
>>
File: stargazer.gif (924KB, 500x281px) Image search: [Google]
stargazer.gif
924KB, 500x281px
>tfw i said the language a^n, b, c^2n wasn't context free on a 4 question quiz instead of making a grammar that solved it
i don't know what happened to me. i was so hung up on the b separating the two of them. i get it now, that you just force it to put it in at the end. sensei looked at me funny when i turned it in
>>
File: ass.png (991KB, 656x701px) Image search: [Google]
ass.png
991KB, 656x701px
>>57253597
>>57255146
>>
>>57255159
can you explain wachu talkin bout to someone who barely knows any PL theory?
>>
http://blog.racket-lang.org/2016/10/racket-v67.html

wow...
>>
>>57255196
context free grammars are where you can have nonterminal symbols and terminal symbols, and nonterminal symbols can produce other symbols. you always have a designated start nonterminal. so if you wanted to produce the language a^n, b, c^2n, you'd do

S -> aScc | abcc

which means the start nonterminal S can produce either the string aScc or abcc. so whenever it wants to end, it has to produce abcc, since that ends the recursion. aScc can become either aaScccc or aabcccc and so on. it was a piss easy question is part of why i feel bad
>>
>>57254859
Use Sqoop, Hadoop, and OOP whenever possible.

Basically, any technology that has a combination of two o's and a 'p' are really what you're going for.
>>
>>57255196
Suppose you have the string aaabcccccc and you want to check if it fits into a^n, b, c^2n

A human can see straight away that it does. It's a^3, b, c^6. But for a computer to see that, when it gets to the 'b', it needs to "remember" that n = 3. That means the grammar is not "context free" because the parser needs to know the context "n = 3".

However, you can solve it by doing something like

S = a M c c
M = a M c c
| b
>>
>>57255230
>racket android
shan't be touching this
>>
>>57255196
It's not PL theory.
>>
>>57255259
and Oraoop
>>
>>57255272
hello r/britreddit!
>>
>>57255261
the language's context free though
>>
>>57255302
if you said that to me in real life i'd heem you instantaneously
>>
File: anal beads.png (24KB, 904x275px) Image search: [Google]
anal beads.png
24KB, 904x275px
Holy fuck, I keep imagining the question title in pic related being pronounced in a hard pooinloo accent, and I can't stop chuckling

All the better that I'm at an IBM conference and 2/5 presenters are Indian as fuck.
>>
Any C# Linux user here?
>>
>>57255282
please to be more constructive
>>
File: dotnet-tomorrow.png (98KB, 1581x853px) Image search: [Google]
dotnet-tomorrow.png
98KB, 1581x853px
>>57255325
Not until they release the One Library to Rule Them All™

There will be some big changes around that point that will make everything easier, so I'm holding off.
>>
>>57255324
There's milk coming out of my nose! Fuck you.
>>
>>57255324
http://vocaroo.com/i/s1YkFihIgGju
>>
>>57255324
>>57255423
>/dpt/ - You Laugh, You Lost, hardmode
>>
>found someone on twice programming who isn't a trap
nice
>>
>>57255421
>There will be some big changes around that point that will make everything easier, so I'm holding off.

Pretty easy as-is, lad.
>>
>>57255120
>>57254885
fixed it. I hate it when packages mix types in a weak typed language and suddenly stumble over the fact that they better shouldn't mix them.
>>
>>57255423
>tfw you get to use you first semi-useful program for the first time in a non-demo situation
"Hey, i downloaded this random wave file from the internet. I could open it in MPC, or i COULD open it with the program i wrote myself especially to play wave files"
Worked like a charm.
>>
what does /dpt/ think of the odin project?
>>
Best way to create gui in java?
>>
File: 1473782744835.jpg (511KB, 1280x720px) Image search: [Google]
1473782744835.jpg
511KB, 1280x720px
can I code my way out of this pathetic reality?
>>
>>57255665
Yes, actually.

Have you tried a Vive?

Maybe we aren't quite there yet, but we're not far off.
>>
>>57255665
You can code yourself out of the patheticness of this reality.
>>
>>57255665
i remember a philosopher used a "fact" in a proof of his that no one would ever choose to live in a reality that is a pleasant simulation over real life
>>
>>57255703
>"philosopher"
ftfy.
>>
>>57255655
JavaFX is the hip new thing, but I'm more comfortable with Swing.

Your basic swing boilerplate looks like:

JFrame frame = new JFrame("Window Title");

//add components to frame
frame.add(/*somecomponent*/);

frame.setDefaultCloseOperation(JFrame.EXIT_ON_Close); //program ends when you close the window
frame.setLocationRelativeTo(null) //center the window on the screen
frame.pack() //fit the window to the size of the components
frame.setVisible(true)//show the window
>>
>>57255665

Suicide is much cheaper, and it's available RIGHT NOW!

ABSOLUTELY NO WORK NECESSARY!
>>
>>57255703
that was a shitty philosopher
>>
>>57255772
Spoken like someone who's never been close to doing it.
>>
>>57252506
>while (true)
But why?
>>
Linux anons
Which IDE you use for java/c++
>>
>>57255793
Well, yeah.

Nearly all people are not mentally unstable to the point of actual suicidal thoughts.*


* Many who claim to have suicidal thoughts have no actual intention to eat a bullet.
>>
>>57255815
Because infinite series. Duh!
>>
>>57255849
but you could just use while (term < threshold)
>>
>>57255774
it was an esteemed philosopher
>>
>>57255847
I'm just saying, anyone who says it's easy has never tried to make themselves go through with it.
>>
>>57255866
optimisations and cleanup later. first get it to work correctly.
>>
>>57255793

I've been thinking about it every day for probably 5 years now.
>>
>>57255945
>for probably 5 years now.
and what does this tell you?
>>
>>57255957

I care too much about other people to kill myself.
>>
This
if boolean_expression_1 and
then boolean_expression_2 then
expression;
end if;

Or
if boolean_expression_1 
and then boolean_expression_2 then
expression;
end if;
>>
>>57255974
And if it wasn't for that, you'd totally do it right now, right? Totally.
>>
File: 1476885002812.jpg (104KB, 640x632px) Image search: [Google]
1476885002812.jpg
104KB, 640x632px
>>57255974
>libertarian
>caring about others
>>
>>57256022
>and then
Probably the first one
>>
File: iWBcrxrRHgdN0.gif (4MB, 283x176px) Image search: [Google]
iWBcrxrRHgdN0.gif
4MB, 283x176px
Is getting gud at HackerRank worth the time?
>>
>>57255840
I used to use Kate and KDevelop for C++.

Eclipse for jarvar.
>>
>>57256025

I'm not joking when I say 100% yes. I'm not living for myself, that's for sure.
>>
>>57256022
Wat shitty language is that?
>>
How do I put column headings in my csv that I explored from mysql without having it be affected by the enclosed by statement?
I want something like
firstcol, secondcol
But because I have a enclosed by ' " ' in the section that's exporting the data
The head column in the file comes out as
"firstcol", "secondcol"
It's just gonna be ignored anyways when I import it into a table but I'm curious if there's a way
>>
https://medium.com/code-like-a-girl/a-letter-to-guys-in-safe-spaces-9a9170361b17
>>
>>57256067
Having access to guns makes it easier of course, but i'm not joking when i say that simply pulling that trigger is harder than it has any business being.
I'm secretly impressed with people who have gone through with it.
>>
>>57256152
>Having access to guns makes it easier of course, but i'm not joking when i say that simply pulling that trigger is harder than it has any business being.

Like I said, if I didn't have to worry about how my doing it would affect the people that I love, I'd find it incredibly easy.

If I were estranged from my family, I'd have done it years ago.

It'd be such a relief.
>>
>>57256127
How do people like this even function?
They literally think a group of men is going to rape them if they cluster together, like migratory locusts.

Also, what does this have to do with programming?
>>
File: giphy.gif (2MB, 500x281px) Image search: [Google]
giphy.gif
2MB, 500x281px
>>57256127
pfffhahaha

"In other news tonight, a few guys threaten several dozens of women by existing"

You fucking nuns. If they try shit you smash them over the head. You have their numbers. How the fuck do you NOT feel safe in that situation?
>>
>>57256078
> This bad of taste
Why even live dude
>>
>>57256193
>Also, what does this have to do with programming?
probably not enough
i thought it would be more lighthearted than suicidal trips
>>
>>57256298
Did you write this?
I have a hard time believing that the person described in this article is a real person.
>>
any programming books with a similar amount of personality?
i know that's not well defined
>>
>>57256127
>I can't help my behaviour, it's dictated by evolution.
>This will not change until the situation changes.
*groan*
>>
>>57256127
>https://medium.com/code-like-a-girl/a-letter-to-guys-in-safe-spaces-9a9170361b17
>nobody is safe and everyone's a threat
Welcome to the world, girls.
>>
File: 1352239510950.png (673B, 473x454px) Image search: [Google]
1352239510950.png
673B, 473x454px
I have a weird and slightly stupid question for any C# users itt, it didn't seem entirely appropriate for the stupid-question-thread:

I've been programming over a year (2, I think) now and decided to pick up C#. BUT I've only ever programmed in Lisp, and mostly functional programming. I was going to pick F# instead (most of the tutorials are aimed towards programmers with experience but not experience with OCaml/ML-likes), but it looks like most of the interesting libraries and research are involved with C#, and even if you write F# you'll still end up wrapping it or interacting with C#.

I'm having trouble finding something that fits my needs. I don't need handholding tutorials like
>first download visual studio
>install visual studio (click install.exe!)
>open a project
>type "static void main() string hello world"
>congrats on your first program!! :))
I understand and can implement algorithms and data-structures, and have done a lot of small-medium projects on my own. At the same time, I have no idea what the difference is between static and dynamic is when creating an object, and know very little about OOP in general. What's the best resource for me?
>>
>>57256406
this isn't a stupid question
>>
>>57256406

MSDN. Just look up "C#" + thing and you'll almost certainly get a link to the MSDN with an article that explains it, plus examples.
>>
File: 20161026_184115.jpg (281KB, 1280x720px) Image search: [Google]
20161026_184115.jpg
281KB, 1280x720px
Shout out from IBM conference in Vegas.

C# is best language.
>>
>>57256406
Use the yellow book.

Skip the parts you get.
>>
File: cosmics.jpg (95KB, 750x750px) Image search: [Google]
cosmics.jpg
95KB, 750x750px
>>57256495
what're you learning about anon
>>
File: Indian metal.jpg (80KB, 640x426px) Image search: [Google]
Indian metal.jpg
80KB, 640x426px
>>57256495
>Pajeet Slayer
>>
>>57255146
Well I'm about to intern at a big four company so I guess some of them do alright
>>
Has anyone ever encountered multi-armed bandit problems? I'm looking over dynamic programming right now and it seems like just gimmicky shit that varies between problems rather than a generic implementation method.
>>
>>57256565
the problem with dynamic programming is the unhelpful name
>>
Now the program runs, and assuming it works, it takes a fucking long time. Now arising is the age old question whether I should stay awake until it may or may not finish or just go to bed.
>>
Can someone explain to me the point of virtual methods? I looked at examples with animals and having a sound method, but what is the point if you're still gonna be overriding it each time. Is it meant for the times that you don't override a virtual method?
>>
>>57256565
From what i remember of dynamic programming from school, it's just about caching your intermediate values and looking them up in a lookup table before recalculating them when needing them again.

What's a multi-armed bandit?
>>
>>57256565
>gimmicky shit that varies between problems
I think this perspective occurs easily when you view dynamic programming (yes, poorly named) as algorithms rather than efficient expressions of the underlying recurrence relations (through which the medium is an algorithm).

>>57256613
Virtual methods gain purpose *because* you override them. The value in a virtual method is that your compiler/runtime decides which method to call automatically.
>>
>>57256613
Say you have Animal *fido = new Dog()

then you call fido.makeNoise()

if the method is virtual, Dog.makeNoise() will be called. If not, Animal.makeNoise() will be called because the pointer is of type Animal.
>>
>>57256593
Tell me about it eh. There is nothing dynamic about dynamic programming.

>>57256620
That is the correct idea, however the lookup table should be eliminating the recursion in the algorithm all together. Here is a link to the problem: http://www.lancs.ac.uk/~winterh/GRA1.html
>>
>>57256638
Why would you do Animal *fido instead of Dog *fido?
>>
>>57256655
You might want to have an array of Animals which can hold Dogs, Cats, Sheep, etc. simultaneously
>>
>>57256672
Oh that makes more sense now
>>
NEW THREAD
>>57256724
NEW THREAD
>>57256724
NEW THREAD
>>57256724
NEW THREAD
>>57256724
NEW THREAD
>>57256724
NEW THREAD
>>57256724
>>
>>57256731
>303
>>
>>57256516
http://www.robmiles.com/c-yellow-book/
This one?

>>57256447
Thanks anon.

>>57256439
It feels like it. C# seems like a popular language, but none of the tutorials are directed towards people in my situation. OOP is weird and I don't really "get" the dot-syntax or other simple things like that.
>>
>>57256127
this is the most disjointed thing I've read in ages
she talks about the dangers of groups of men in the back of workshops, but then talks about how the real danger is felt when she's walking around and not at home, except the danger is primarily individual people the victim knows, especially their partners in their homes, and this is why she's afraid of "packs" of men present at tech conferences, and this is all just inarguable biological fact derived from pure reason
what?
>>
>>57256731
remake it at 310 with the right title
>>
>>57256764
>I don't really "get" the dot-syntax
Weird
>>
>>57256201

>If they try shit you smash them over the head. You have their numbers. How the fuck do you NOT feel safe in that situation?

When women walk into a room, they don't think about how they could kill everyone there if they had to.
>>
>>57256853
Yeah, I had to look it up and it still doesn't "feel right". I'm used to the slightly more verbose
(send object-id method-or-message args)
and functional syntax.
>>
What languages allow mixins with their own instance variables? Ruby makes them instance variables for the containing class, potentially leading to name conflicts between modules. Java only allows static variables in interfaces.
>>
>>57256814
Okay
>>57256927
NEW THREAD
>>57256927
NEW THREAD
>>57256927
NEW THREAD
>>57256927
NEW THREAD

THIS TIME WITH THE CORRECT TITLE
>>
>>57256908

It's just syntactic sugar. If it annoys you though, try Clojure maybe?

(.methodname object args)
>>
>>57256908
Of course, I look up "OOP dot operator" and get an article on the C# . operator on MSDN. Welp, guess I complained for no reason.

>>57256951
I'm familiar with Clojure but I'm not interested in focusing my time on another Lisp, and between .NET and Java I decided to settle on .NET first.
>>
>>57256127
> You’re just an unknown—potentially a threat, potentially not—but how are we supposed to know which?
Holy shit, these people literally think all men are just waiting for the opportunity to rape everyone they see...
The author doesn't even mention a traumatic event that's scarred her into this schizo paranoid state of mind, she just read a bunch of statistics...
>>
>>57257069
But she can't control that; it's evolution! That can't change until the situation changes.
>>
>>57257069
Given the prevalence of "tits or gtfo", I'm not surprised she thinks that.
>>
>>57257177
"tits or gtfo" is usually misogynistic and disrespectful, but it doesn't mean "tits or I am going to come and rape you".
Also, wasn't "tits or gtfo" supposed to come into play when women on the internet (/b/ more specifically) are pointing out their gender without purpose to the discussion? As in, we could have had a normal discussion but if you're going to bring up the existence of your tits then atleast post pictures of them. I understand that that may not apply any more...
>>
>>57257227
It was. Retarded newfags took it and ruined it.
>>
>>57257227
Slightly serious talk:

Women get a shitton of messages that say "I am going to come and rape you" on the internet and there are regularly articles discussing how this is a problem. You can write off as standard internet trolling, but then you can't be surprised that women are pointing out that they have no idea which men are actually rapists and which aren't when they're bombarded with these messages regularly.

>are pointing out their gender without purpose to the discussion?
It's just used whenever somebody finds out that somebody else is a woman here now. It's not that "nobody cares about your gender" (because if that were true, there wouldn't be so many people obsessing over women whenever they show up), it's that the default gender is just assumed to be male. You don't have to believe me, but it's pretty funny to swap your default pronouns for anonymous posters from he to she and watch the ensuing butthurt as everyone points out "I'm a boy!" as if their gender actually mattered.
>>
>>57257299
>Women get a shitton of messages that say "I am going to come and rape you" on the internet
I don't understand the mindset that would urge someone to send such a message. It's stupid an immature and if I got death threats I would discard them as immature, but I'm not condoning that kind of thing either. I wish I could tell you I have a solution to that kind of issue but that's what happens when you combine anonyminity + assholes

>It's just used whenever somebody finds out that somebody else is a woman here now.
I know, and it's unfortunate. There are enough assholes on 4chan to maintain it's "boys only" policy for quite some time.
>>
>>57257299
The appropriate response to that is
>dick or gtfo
>>
>>57257299

>they have no idea which men are actually rapists
If they're sending the message using the Internet, none of them. Absolutely zero people on the Internet should be taken seriously.
>>
>>57255175
Wake me up
Thread posts: 325
Thread images: 34


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