[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: 315
Thread images: 55

File: 1477536161856.jpg (329KB, 850x511px) Image search: [Google]
1477536161856.jpg
329KB, 850x511px
Old thread: >>61504912

What are you working on, /g/?
>>
>>61509923
Trying to my shitty Discord Bot working on Google Compute
>>
>>61509948
LINQ isnt C#, its a bolted on hack.
>>
I'm going to be honest with you, guys. The most I've programmed is fizz buzz in Python and I shit up EVERY thread with pro-C, C++, Lisp and Haskell shitposts.
>>
>>61509960
int[] arr;
>>
What's special about LINQ anyways. Is it any better than Haskell list comprehensions/monad, or Racket for loops?
>>
File: 1498955889913.webm (2MB, 1546x554px) Image search: [Google]
1498955889913.webm
2MB, 1546x554px
Working on an image orgranizer

Is anyone interested?
>>
>>61509999
not really, but for the unenlightened masses raised on Java it's pretty refreshing
>>
>>61509969
How is any Rx library (and LINQ, by extension), any more of a "hack" then a languages standard library? It's just another tool in the box
>>
>>61509989
D?
>>
>>61510022
mhm
>>
>>61510006
pretty neat. i just have a folder of raw images and then i make symlinks. that way i can have an image in cats and dogs but it uses the same amount of space.
>>
I have a script written in python that interacts with a MySQL database. It runs super fast at first, then completely slows to a crawl within 24 hours, maybe less. I can restart the script and have it continue from where it left off. When I do that it runs fast again. I close connections when appropriate, and I've given MySQL a lot of resources.

Why does this slowdown happen, and what can I do to make it consistently go fast?
>>
>>61509999
It better than anything from Haskell/Lisps only because it can be used by normies/drones.
>>
go is fun as hell to code in

>in during muh gc
>>
>>61510055
How is the memory consumption?
>>
>>61510055
what's the memory usage like after 24hrs?
is it just the script itself that is slow or does all mysql activity slow down until you close the script?
my guess is something is not being freed but i haven't used python in a long time
>>
Have you read your SICP today, /dpt/?
>>
>>61510163
> no pattern matching & abstract data types.
> no immutable variables.
> no generics.
> no exceptions, (uses error codes everywhere)
> error type is simply an interface to a function returning a string
>>
>>61510564
I was slacking off for weeks, but yes.
>>
>>61510571
Have you done the exercises too?
>>
>>61510582
Yes, that's why, I'm afraid to move on without making sure I fully understand what's going on.
>>
>>61510587
Good stuff anon.
>>
>>61510567
>muh jen 'n' erics
>>
>>61509979
I FUCKING KNEW IT
>>
>>61510628
>Jen & Eric
>>
Is it worth doing both SICP and HtDP? Or will you learn enough from just doing one of them?
>>
>>61510208
>>61510221
Memory consistently stays at about the same 25% throughout according to the server status page on MySQL workbench. Almost all MySQL activity is slower than usual if the script is running. However when the script is slow, running selects on either MySQL workbench or the mysql client command line tool is faster than when the script is fast.
>>
>>61510741
According to the resource monitor the disk read/writes start out very fast (SSD speeds) but then significantly slow after 24 hours just like the script.
>>
File: old_hag_langs.png (173KB, 600x355px) Image search: [Google]
old_hag_langs.png
173KB, 600x355px
It is imperative that I remind the rest of the thread on a day-to-day basis that Go is just C for people who can't code in C.
>>
>>61510783
Go is an insult to C.
>>
>>61510645
Start with HtDP and do SICP after that. HtDP is beginner tier and SICP is CS tier.
>>
>>61510883
>CS
Cocksucker?
>>
>>61510889
computer science dumb nigger
>>
>>61510896
What does that last word (beginning with 'n') stand for?
>>
In gdb, is there a way to set a breakpoint that activates right when a certain register is changed to a specified value?
>>
>>61510916
Since the dawn of history the Negro has owned the continent of Africa – rich beyond the dream of poet’s fancy, crunching acres of diamonds beneath his bare black feet and yet he never picked one up from the dust until a white man showed to him its glittering light.

His land swarmed with powerful and docile animals, yet he never dreamed a harness, cart, or sled.

A hunter by necessity, he never made an axe, spear, or arrowhead worth preserving beyond the moment of its use. He lived as an ox, content to graze for an hour.

In a land of stone and timber he never sawed a foot of lumber, carved a block, or built a house save of broken sticks and mud.

With league on league of ocean strand and miles of inland seas, for four thousand years he watched their surface ripple under the wind, heard the thunder of the surf on his beach, the howl of the storm over his head, gazed on the dim blue horizon calling him to worlds that lie beyond, and yet he never dreamed a sail.” — Charles Darwin
>>
>>61510974
>>>/pol/
When did /dpt/ get infested with /pol/tards?
>>
>>61510974
Time to get back to /pol/.
>>
File: Capture.jpg (54KB, 955x655px) Image search: [Google]
Capture.jpg
54KB, 955x655px
Yesterday I was bored so I started working on a game backlog tracker thingy.

At first I was going to manually add the games and the platforms but then I thought fuck it, I'll scrape thegamesdb.net for their DB.

They have this API that gives you an XML file with all the info of the things you request; e.g. http://thegamesdb.net/api/GetPlatform.php?id=3

So I started coding, but it runs PAINFULLY slow.

I don't know if it's because I fucked up somewhere or because I'm scrapping in a shitty way.

Here's the code:

public void updatePlatforms()
{
BufferedReader bufferedReader = null;
int currentElement = 1;
boolean finishedUpdating = false;
while (!finishedUpdating)
{
bufferedReader = getPlatformXML(bufferedReader, currentElement);
try
{
Platform platform = parsePlatformXML(bufferedReader);
insertPlatform(platform);
} catch (PlatformAlreadyExistsException ex)
{
} catch (EndOfPlatformsException ex)
{
finishedUpdating = true;
}
currentElement++;
}
}


private BufferedReader getPlatformXML(BufferedReader bufferedReader, int currentElement)
{
try
{
URL url;
URLConnection urlConnection;
url = new URL("http://thegamesdb.net/api/GetPlatform.php?id="
+ currentElement);
urlConnection = url.openConnection();
urlConnection.addRequestProperty("User-Agent", "Mozilla/4.0");
bufferedReader = new BufferedReader(
new InputStreamReader(urlConnection.getInputStream()));
} catch (Exception ex)
{
}
return bufferedReader;
}
>>
>>61511021
Show me the parsePlatformXML method.
>>
>>61511021
Cont.

private Platform parsePlatformXML(BufferedReader bufferedReader) throws EndOfPlatformsException
{
String currentLine = advanceLines(bufferedReader, 5);
if (currentLine.equals("</Data>"))
{
throw new EndOfPlatformsException();
}
currentLine = advanceLines(bufferedReader, 2);
String platformName = currentLine.substring(11, currentLine.length() - 11);
Platform platform = new Platform(platformName);
return platform;
}


private String advanceLines(BufferedReader bufferedReader, int lines)
{
String lineToReturn = null;
for (int i = 0; i < lines; i++)
{
try
{
lineToReturn = bufferedReader.readLine();
} catch (IOException ex)
{
}
}
return lineToReturn;
}


It took the "scrapper" 9 seconds to add those 18 rows.

I can't even imagine how long it would take it to add scrape the game list.

Any thoughts?
>>
>>61510974

Beautiful.
>>
>>61511036
The code is complete shit, but I don't see any obvious performance bottlenecks. Profile that shit!
>>
File: 515GX-Cc.jpg (18KB, 400x400px) Image search: [Google]
515GX-Cc.jpg
18KB, 400x400px
Is it possible for Oracle to make Java programming language proprietary in the future if they wanted too?
>>
I completely forgot how to handle generics in jaba
public class TestClass<T> {

private T key;

public TestClass(int input) {
//There are three input options, and I need to assign one of three data types based on that
//how do
}

}


I feel like this is really obvious but I'm just retarded
>>
>>61511165
Java is a specification, not an implementation. If you're talking about OpenJDK, Oracle doesn't own it.
>>
>>61511094
>The code is complete shit
Why?

> Profile that shit!
From my light testing, I found that the slowdown occurs in the getPlatformXML method.
>>
>>61511165
Java is a language specification. Anyone can make a proprietary JVM if they want.
>>
>>61511214
So what does Oracle actually own?
>>
>>61511176
>I need to assign one of three data types based on that
What do you mean by this?
>>
>>61509979
happens to us all man
>>
>>61511036
So if I read that correctly, you are making sequential requests to their api, waiting for the response before starting the next request. Measure how long the requests take, my guess is you're spending most of those 9 seconds just waiting for the response. You can improve this by sending out multiple requests in parallel, and/or checking to see if you can request larger data sets from the api using some parameter.
>>
>>61511255
It means I'm retarded and forgot that I could just use Object
>>
>>61511226
you can build a JVM that behaves in a very Java like way and be completely open source, but, if you want to call it a "Java JVM" you need to buy the certification suite under a non open source license.
>>
>>61511249
Your mom...
Oracle is a core contributer of Java, but they don't own anything. If they did, the project would've already been forked like what happened to MySQL and OpenOffice.
>>
>>61511225
i have 0 java experience but my guess would be because it's not downloading the page until you walk through using the reader. maybe it is downloading one line at a time per get request (which would be slow as fuck and depending on the site they might throttle you for too many requests. especially as an api)

maybe try rewriting it to download everything at once and see if that fixes it?
>>
>>61511225
>Why?
exception thrown on success
unhandled exceptions
magic numbers
hard coded strings
>From my light testing, I found that the slowdown occurs in the getPlatformXML method.
I guess
lineToReturn = bufferedReader.readLine();
is the bottleneck of your program.
>>
File: 1496792270113.gif (2MB, 325x213px) Image search: [Google]
1496792270113.gif
2MB, 325x213px
>>61509923
>>61498243
Still trying to setup some sort of debugger for D. Now I have two compilers, DMD and LDC. Even though both can compile fine and can be executed with debug arguments, I still can't debug much. GDB refuses to work with either compiler outputs. Can barely use Windbg. It allows me to step through code but I have no visibility into what variables exist in the background. Not sure what to do.
>>
>>61509923
I spent 2 days debugging my CUDA kernel and I just found out that the problem was this:
http://developer.download.nvidia.com/NsightVisualStudio/2.2/Documentation/UserGuide/HTML/Content/Timeout_Detection_Recovery.htm

I don't know what I feel right now.
>>
>>61511036
does java not have an xml library? this seems like an incredibly low level way to interpret an xml file
>>
File: cute anime pic 0921.gif (2MB, 540x378px) Image search: [Google]
cute anime pic 0921.gif
2MB, 540x378px
If your type, function and variable names are longer than 8 characters, you are a codemonkey.
>>
>>61511405
Give up anon, D sucks.
Join Rust :^)
>>
File: Capture.jpg (166KB, 1470x603px) Image search: [Google]
Capture.jpg
166KB, 1470x603px
>>61511261
Yup, I think you're right.

I get what you say but I have no idea how to implement that.

What you're saying is part of multi threaded programming, right?

>>61511326
It downloads the whole "page" with each call.
You might have a point with the API throttling though.

>>61511358
Thanks for pointing them out, I'll try to fix them.

The one about the magic numbers I really don't know how to, though.

I got those from looking at the XML page and figuring out how many lines I had to advance and how many characters I had to trim from the string.

>I guess lineToReturn = bufferedReader.readLine(); is the bottleneck of your program.
According to the profiler, the slowdown occurs in this line:
 bufferedReader = new BufferedReader(
new InputStreamReader(urlConnection.getInputStream()));


>>61511416
I believe it does, but I started yesterday with zero experience regarding APIs and XML, so I'm just trying to survive, I'll look into it later, when things work..
>>
one last time:
>>61508727
>>
>>61511453
Is it still slow if you read all lines from the input stream without doing anything with each read line?
>>
>>61511455
This book is pretty good IMO. Used it in school.
https://www.amazon.com/dp/0321486137
>>
>>61511438
But Rust doesn't interest me.
>>
File: Capture.jpg (91KB, 1475x355px) Image search: [Google]
Capture.jpg
91KB, 1475x355px
>>61511493
Yup.

Parsing the file is basically free.
>>
>>61511453
when he's talking about magic numbers he's referring to within parsePlatformXML

Why advance 5 lines? why advance 2 lines? why cut the first 11 characters?
As outsiders reading your code we have no fucking idea what the significance of these numbers are. And in 6 months when you read it again neither will you.

The better way to do it is to declare variables that are set to 5,2 and 11 with names that indicate what the 5 lines, 2 lines or 11 characters you're trying to advance through are
>>
>>61511501
Thanks, I'll check it out.
>>
Tell me about your type system
>>
>>61511594
Strongly normalizing
>>
>>61511567
Oh, okay.

I get it.

Based on the file: http://thegamesdb.net/api/GetPlatform.php?id=15432432

I should make clear that I advance 5 lines to get to the "</Data>" to check if I'm done, then advance 2 more lines in case I'm in a valid file (e.g. http://thegamesdb.net/api/GetPlatform.php?id=3) to get to this line: "<Platform>Nintendo 64</Platform>"

The substring part takes care of removing the XML tags (start from the 11th character and stop at the length - 11 character).
>>
File: smug_ran.jpg (632KB, 709x1063px) Image search: [Google]
smug_ran.jpg
632KB, 709x1063px
>>61511594
It is anime-complete.
>>
>>61511618
YOUR

WAIFU

A

SHITSUNE
>>
hey guys, what was the url for that site where you just choose a language and it has one long text document that goes over all the syntax and pertinent use cases? I forgot what it was and I want to bookmark it on my new machine for reference
>>
>>61511358
>>61511453
In my experience, constant reads to an external source outside a program can be a rather slow process, at least in Java. It depends on what you are doing and the size of the data on the outside but I'd just ingest all the data into an array and do manipulations from there.

With a BufferedInputStream object, you can check how many bytes are available in the steam when you first create it. As a result, you can create an array of the perfect size to hold the data. Read the data to said array and then close the BufferedInputStream when you are done.

http://docs.oracle.com/javase/8/docs/api/java/io/BufferedInputStream.html
>>
File: syd_consider_the_following.jpg (13KB, 200x200px) Image search: [Google]
syd_consider_the_following.jpg
13KB, 200x200px
Can we all agree that C++ arrays are too confusing?

Why are arrays pointers? Why do pointers even exist? I know smart people who've gone to university for three years and still don't understand pointers.
>>
What's the >best typed lambda calculus and why do you like it so much
>>
>>61511646
You'd understand if you learned C first.
>>
>>61510006
That looks very nice. Is there a git?
>>
I'm writing a list of things to work on.

First out is a blog written in racket.
>>
>>61511646
The pointer points to the first member of the array. That way you can just add n to the pointer to get to the n:th element. Pretty simple, in my opinion.
>>
File: 1488131486953.jpg (20KB, 255x256px) Image search: [Google]
1488131486953.jpg
20KB, 255x256px
>>61511646
Sounds like you're a brainlet desu senpai
>>
>>61511640
https://learnxinyminutes.com/
>>
>>61511453
Sorry I don't know java very well, but yeah you probably have to use multithreading, or async io if this is supported.

I whipped up a quick sample in python:

import requests, grequests, time

ses = requests.session()
url = 'http://thegamesdb.net/api/GetPlatform.php?id='

def scrapeSequential():
for i in range(1, 50):
res = ses.get(url + str(i))

def scrapeConcurrent():
urls = [url + str(i) for i in range(1, 50)]
requests = [grequests.get(u) for u in urls]
responses = grequests.map(requests)

start_time = time.time()
scrapeSequential()
print "sequential: %s seconds" % (time.time() - start_time)

start_time = time.time()
scrapeConcurrent()
print "concurrent: %s seconds" % (time.time() - start_time)



output:
sequential: 11.367000103 seconds
concurrent: 2.89800000191 seconds
>>
File: smug_ran6.jpg (114KB, 802x1240px) Image search: [Google]
smug_ran6.jpg
114KB, 802x1240px
>>61511646
>Can we all agree that C++ arrays are too confusing?
Sorry I don't have double digit IQ.
>>
File: akko_annoyed3.png (154KB, 360x351px) Image search: [Google]
akko_annoyed3.png
154KB, 360x351px
>>61511679
>The pointer points to the first member of the array.
The pointer is just a really long number, though. It's not the first member at all.
>>
>>61511646
http://shop.oreilly.com/product/0636920028000.do
Enlighten yourself instead of bitching.
>>
>>61511665
Not yet but I'll upload it when i fixed all the problems
>>
>>61511705
Array is just a bunch of bytes addressable by numbers. Like, think of a street where each house has a number.
>>
>>61511689
awesome, thank you
>>
>>61511714
*memory is
>>
why is there such an overlap of sheltered,
goofy southern christian men and notable programmers?
>>
>>61510974
>Charles Darwin
nah, this was a KKK leader that said this iirc. not sure why it get mis-attributed so often
>>
>>61510941
watch $eax == 0x0000ffaa

To break at a point:
break test.c:120 if $eax == 0x0000ffaa
>>
>>61511705
>The pointer is just a really long number, though.
That's because it points to an address in memory. You have to dereference it to get the actual value it points at.

Just learn how to use pointers.
>>
>>61511752
Thanks!
>>
>>61511021
Something is seriously wrong with your text editor or you.
>>
>>61511705
>It's not the first member at all.
And it isn't. The pointer POINTS TO the first member of the array.
>>
File: hqdefault.jpg (8KB, 480x360px) Image search: [Google]
hqdefault.jpg
8KB, 480x360px
reading this for the first time.
>>
>>61511753
>That's because it points to an address in memory. You have to dereference it to get the actual value it points at.
That's really fucking complicated, Anon. Modern languages like Java don't have any of this shit.

Just admit that pointers are stupid. There's a reason they're not taught in programming classes.
>>
>>61511789
>There's a reason they're not taught in programming classes.
Okay nice bait dude
>>
>>61511453
https://x-stream.github.io/tutorial.html
XML deserializer.
>>
>>61511789
>That's really fucking complicated, Anon.
It's really fucking simple once you understand how they work.
>Modern languages like Java don't have any of this shit.
Yeah, they manage all that stuff for you but they use it internally. You can often write more performant code with pointers.
>There's a reason they're not taught in programming classes.
Bait?
>>
>>61511789
>Modern languages like Java don't have any of this shit.
In Java every single type apart from primitves are pointers.
They're simply crippled pointers which you can't do arithmetic on.
>>
>>61511789
>computers are too hard >_<
>>
>>61511789
>Modern languages like Java
I lol'd
>>
>>61511767
I haven't read it. Does it have exercises?
>>
>>61511872
>Does it have exercises?
Does anyone actually do these? I commend you on your industriousness if you do.
>>
>>61509999
http://blog.ielliott.io/why-LINQ-is-broken/
>>
what's the difference between asynchronous vs synchronous requests ?
>>
>>61511921
I do, but I go through books pretty slowly as a result.
>>
>>61511963
Asynchronous requests don't block the execution of the thread, whereas synchronous do. That is, with asynchronous requests you can do other things while waiting for a function call to return.
>>
File: combinprobs.jpg (14KB, 332x499px) Image search: [Google]
combinprobs.jpg
14KB, 332x499px
>>61511921
I do exercises a lot, pic related is my favorite book
First section is just statement of problems, second section is hints about those problems, third is solutions to those problems
>>
Is a register just memory inside the processor?
>>
Which IDE should I use for Java?
>>
>>61511789
http://ideone.com/v1Subk

4chan dislikes the code enough to block me from posting it.
>>
So guys, which language should I pour some time into learning and doing stuff in:

C, Go, Racket or Java? I've touched c and Java briefly.
>>
>>61512015
Basically yes. You can think of the memory as a register as well, if you want.
>>
>>61511712
>>61510006
I am definitely interested
>>
>>61512015
Yes, but it's in a different address space, super-multi-ported and often has certain magical capabilities.
>>
>>61510777
Just restart apache every 10 requests
>>
>>61512015
Yes. In many architectures, it's the only storage the processor can actually use (all data from main memory must be loaded into registers first). It's by far the fastest memory.
>>
>>61512015
More or less. It's the fastest/"most local" form of memory in your processor.
>>
>>61512033
Go is pretty fun.
>>
>>61510741
Python memory, not sql memory
>>
>>61512033
What kind of stuff are you looking to do? I'd suggest python for most of your scripting and small projects needs. Not bad for bigger projects either. It's great for maths as well.
>>
>>61512064
it's because of the gopher
>>
>>61511872
yes the exercises are good and i try my best to understand them all.
>>
>>61512025
>words[i] != "\0"
I think you meant words[i][0] != '\0'

There's no guarentee that two char pointers
will be equal, even if they both point to "\0"
>>
>>61510567
Interfaces sort of let you do ADT's and pattern matching on arguments though. The issue is that lack of generics strongly restricts what you can do with it.

Not having Immutable variables or generics is indeed terrible.

I hate exceptions so I actually like not having them. Panicing for things that should crash the program and using ordinary function return otherwise is preferable imho. Sadly, again, no generics means you can't do monadic error types, which is my preferred way of handling errors.

Go with generics would probably be a very comfy language. It has just enough features to let you build fairly good abstractions, if it just let you have generics.
>>
File: rolling!.png (4KB, 200x200px) Image search: [Google]
rolling!.png
4KB, 200x200px
>>61512142
!*words[i]
>>
>>61509923
Does marijuana improve your programming performance? Don't really like smoking weed but my brother has this thc pen you can vape with and I was wondering. It helps with abstract thinking right?
>>
File: g projects 2.0.png (378KB, 1450x1080px) Image search: [Google]
g projects 2.0.png
378KB, 1450x1080px
I'm bored, let's roll.
>>
>>61511646
Arrays are not pointers. They decay to a pointer to the first element in implicit type conversions.
>>
>>61512230
This.
>>
>>61512207
if I see this, you're getting a performance evaluation on the spot
>>
Are there any languages with slightly more exotic mathematical structures/operations/whatever primitives?
>>
File: 1500699747673.jpg (2MB, 1920x1080px) Image search: [Google]
1500699747673.jpg
2MB, 1920x1080px
Reading K&R and doing the exercises

Makes me feel retarded sometimes. Like I'm only on exercise 3-1 and they want a binary search loop with only one test in the loop and I'm just blanking on a solution..
>>
>>61512224
No, but hot peppers do
>>
File: 1500102870745.jpg (58KB, 481x380px) Image search: [Google]
1500102870745.jpg
58KB, 481x380px
>>61512224
Programming isnt abstract you fucking hippy, its entirely logical if you arent a dumbfuck ruby on rails user
Kill yourself immediately
>>
>>61511646
>I know smart people who've gone to university for three years and still don't understand pointers.
>>
File: 1479175831843.png (43KB, 649x330px) Image search: [Google]
1479175831843.png
43KB, 649x330px
>>61511697
It would be super easy in java using an arraylist of completablefutures. asyncspawn them then wait() on them in a loop.
>>
I don't like Go but tbqh it does kind of have a point in that generics and type algebra are bad

There are only three possible reasons for needing the same code to work the same way on multiple mutually incompatible types

>For your own comfort you are trying to force a concept of dynamic typing into a language that doesn't have it
>You are trying to apply the paradigm of code reuse to avoid duplication, but this paradigm does not actually apply well in context because the code you are trying to avoid duplicating actually serves different purposes in its different instances
>You are writing a library

In all three of these cases generics are a serviceable but really stupid solution to a really stupid problem and the PROPER solution is no that's stupid stop doing that.
>>
>>61512142
I made it on purpose, the same as i+1[words]. Was going to add trigraphs but it was too much.
>>
>>61512229
rolan

wanna learn some scheme
>>
>>61512269
>dumbfuck ruby on rails user
I take exception to this. I mean, sometimes I use javascript for the frontend, for instance.
>>
>>61512276
actually even better would be to replace that last for loop with

List<String> results = list.stream().map(x -> x.get()).collect(Collectors.toList());
>>
Is there a way I can reliable convert a shapefile into vector format using python via GDAL/ogr2ogr? I can only find a way through GDAL by using C/C++, and ogr2ogr works on bash but I can't find an exact function to convert to vector format.
>>
>>61512257
What do you mean with binary search loop? Does it want you to go through a tree recursively? In which case just if a < b: call f(a), else f(b). Does it want to go through in a loop? In that case just store the current node in a variable and get its children from that variable every loop.

Define the problem a bit better if you want more coherent answers.
>>
File: G8cwnvsz.png (35KB, 622x225px) Image search: [Google]
G8cwnvsz.png
35KB, 622x225px
Moved my new python discord bot's database systems from ponyorm to asyncpg. Adventures in SQL resulted.
Also made this horror of an if statement chain. Fixed it after.
>>
>>61512269
>programming isn't abstract
Okay smartie pants, then why is it called an ABSTRACT class, huh? BTFO anon. Think before you post.
>>
>>61512277
Ho my gosh.
>>
File: 1465841346565.jpg (91KB, 480x515px) Image search: [Google]
1465841346565.jpg
91KB, 480x515px
>>61512332
SHIT YOU'RE RIGHT
I'M ETERNALLY BTFO
>>
>>61512324
I wasn't really looking for an answer just complaining

But this is the code the exercise wants changed
int bin_search(int x, int arr[], int n)
{
int low, high, mid;
low = 0;
high = n-1;

while (low <= high) {
mid = (low + high) / 2;
if (x < arr[mid]) {
high = mid - 1;
} else if (x > arr[mid]) {
low = mid + 1;
} else {
return mid;
}
}
return -1;
}
>>
>>61512331

Are you a bird?
>>
>>61512269
>ruby gets shat on even though it's just slightly better python and was my first programming fwb
>always imagine her as a chubby submissive, still want to play once in awhile
>>
File: unknown.png (103KB, 313x331px) Image search: [Google]
unknown.png
103KB, 313x331px
>>61512361
yeah I spend most of my time laying fucking eggs and catching worms
>>
>>61512313
pls help

how do i use ogr to convert to a vector?
>>
Doing the first rewrite of my 3D Game engine, after first making sure that the features work.
Decided I will go with Newton Dynamics for physics instead of bullet, since it's smaller and I understand it better.
Also it seems to actually work better, and the the physics are more stable.
Now I am thinking about how to assemble the draw command for all my entities.
Will probably just put every entity which collides with the view frustum into buckets regarding their mesh (bucket sort style), and then assemble the draw call from that bucket list.
Can't think of a faster way to do that.
Anyway, I am glad that a physics engine like Newton can save a ton of work if you understand how to use it.
>>
Instead of adding a toolchain to Qt, can you just add Qt to an existing toolchain? That'd help me a lot.
>>
>the wikibooks book on scheme programming only sometimes uses pretty-printing and other times tries to use traditional C/C++ style indenting
this is bothering me way more than it should be
>>
Thanks for a high quality anime pic.

What's good quick guide on Perl?
>>
>>61512269
It is abstract compared to more concrete and difficult fields like building rockets.
>>
>>61512385
lold pretty hard
>>
>>61512385
we all do anon, we all do
>>
>>61510006
>>61511665
>>61512038
https://github.com/Akari-chan/Image-Organizer

There you go
>>
I want to put a gif of my project on github, just to show what the program does (in the README).

do you guys upload to imgur and put the link in your README, or is there another website more suitable to upload it?
>>
File: 1498366184283.png (15KB, 754x406px) Image search: [Google]
1498366184283.png
15KB, 754x406px
Ever just have a brain dead day?

I need to make a simple input loop that prompts the user for data until they tell you they're done.
Like you toggle a data input option and they can just hammer in data, but as soon as they input the "I'm done" option, the loop ends.

Should be easy.
I did something similar in 15 minutes a month ago for another project.

Today I just cannot give a single fuck about sorting out the logic for this.
>>
>>61512647
Just commit it into git repo.
>>
>>61512667
while not_done:
A = get_input ()
If A == "done"
not_done = false
Else
Data.add(a)
>>
File: karen frogs.jpg (43KB, 526x421px) Image search: [Google]
karen frogs.jpg
43KB, 526x421px
Is there a difference between hurr(0|1) == 0 and hurr(0) == 0 || hurr(1) == 1?
>>
>>61512680
yeah, but the gif must be uploaded somewhere

see

https://stackoverflow.com/questions/34341808/is-there-a-way-to-add-a-gif-to-a-markdown-file
>>
>>61512706
yes
>>
>>61512409
I've tried the following, but ogr2ogr wants a dest_datasource_name and I want to create a new .gmt
ogr2ogr "GMT" "wwf_terr_ecos.shp" "wwf_terr_ecos.gmt"
>>
File: animation.gif (5KB, 25x25px) Image search: [Google]
animation.gif
5KB, 25x25px
testing
>>
>>61512731
>must be uploaded somewhere
Yes, the git repo itself is "somewhere".
Normally committing binary files to git is looked down upon, but it's honestly not that uncommon for maybe a couple of screenshots or simple images to be included in one.
The link you put in your README would be the raw.github.com/whatever link to the image.
>>
File: 1499410360689.jpg (13KB, 280x210px) Image search: [Google]
1499410360689.jpg
13KB, 280x210px
>>61512692
Yup.
Literally "intro to programming" material.
And yet today I can't even.
I had to read that post three times.

I'm in a senior level physics class solving Schrodinger equations during the week but I try to work on a fun side project on my day off today and the most basic while loop in the world breaks me.

RIP
>>
>>61512754
thanks it works now.
i used
![Alt Text](https://github.com/{user}/{repo}/raw/master/path/to/image.gif)
>>
>>61512733
surely there are some GIS anons here

I've gotten to this, but it's shooting out "ERROR 1: GMT driver has no vector capabilities."

ogr2ogr -f "GMT" "wwf_terr_ecos.gmt" "wwf_terr_ecos.shp" 
>>
meh, this will do
>>
>>61512823
Also btw it uses markdown-like syntax
        , hello_world_(RichText::from_markdown
("Hello, world!\n"
"This text is a test to see if word wrap and text style are "
"functioning correctly. The styles are *bold* and _emphasis_."
"\n\n\nLine breaks?\nLine \n\n\nbreaks."))
>>
File: Screenshot_20170722_161806.png (72KB, 621x717px) Image search: [Google]
Screenshot_20170722_161806.png
72KB, 621x717px
>>61512324
>>61512353
>>61512257
posting the passage
>>
>>61512454
Why are you reading the wikibook on scheme programming when you could read SICP which is totally free?
>>
>>61513034
I have the SICP right in front of me m8
i was looking at the wikibook because I forgot how to do something and google is faster than using the SICP's index
>>
>>61513022
Just check is v[mid] < x. You will stay in the loop event on equality. Aand check at the outside.
>>
>>61511646
You r retard as fuck =='
Learn ARM architechture. Its will gelp you son
>>
File: comfy cat.jpg (210KB, 1600x1067px) Image search: [Google]
comfy cat.jpg
210KB, 1600x1067px
Working on BMP file parser in C to learn C.
Having a bit of trouble learning byte sequence to int conversion, but i hope to get the hang of it soon.
>>
>>61512257
see >>61513129
>>
i am going to major in cs. when i graduate i will work in a japanese video game company. what do u think of this plan?
>>
>>61513251
GAY
>>
>>61513251
you're plan more than likely won't go down like that.
>>
>>61512810
pls help

Is there any way of converting shapefiles to .nc?
>>
>>61513251
>already assuming you will work there.
Thats where you went wrong kiddo
>>
File: ps4 sdk.png (123KB, 823x932px) Image search: [Google]
ps4 sdk.png
123KB, 823x932px
Never ever they said. :^)
>>
>>61513251
>work in a japanese video game company
not in japan lol
maybe in an american office of theirs, but Japan doesn't not accept many foreigners for work
and those it does:
1 are usually korean or chinese
2 aren't allowed to stay very long
>>
File: ps4 doc.png (94KB, 1197x799px) Image search: [Google]
ps4 doc.png
94KB, 1197x799px
>>61513297
>>
>>61513297
>>61513312
plz share
>>
File: ps4 doc 2.png (88KB, 1195x802px) Image search: [Google]
ps4 doc 2.png
88KB, 1195x802px
>>61513312
>>61513297
>>
>>61512082
Here's the memory usage after about 4 hours since the last restart:
29776 KB working set
8856 KB shareable
27563 KB private


Total computer memory usage is at 21% right now. Before the last restart it wasn't much higher (25% maybe?)
>>
>>61513251
ask /agdg/
and prepare to be laughed at
>>
File: ps4 sdk 2.png (79KB, 1336x842px) Image search: [Google]
ps4 sdk 2.png
79KB, 1336x842px
>>61513320
Use google, you fucking nigger. I can't be bothered with Sony kicking down my door.

>tfw CS student with part time job
God, I wish I had time to use this to write an emulator.
>>
>>61512033
Racket, Rust, C in that order :)
>>
File: ps4 gpu debugger.png (43KB, 1233x713px) Image search: [Google]
ps4 gpu debugger.png
43KB, 1233x713px
>>61513371
>>61513342
>>61513320
>>61513312
>>61513297
>>
>>61512229
rolling
>>
>>61513487
wew
>>
>>61512229
rolling
>>
>>61513397
>>61513371
muh diq
>>
>>61513251
Good plan, follow your dreams, friend.
>>
File: ps4 gpu.png (114KB, 1201x898px) Image search: [Google]
ps4 gpu.png
114KB, 1201x898px
>>61513552
I wish I had time to write an emulator.
>>
Working with some java.
I'm keying some stuff based off of hashes, but I don't know whether the income key is going to be int or long. I'm checking with instanceof Long and it's executing the right branch, but I'm not sure how to boil that back down to an int (the key will ultimately always be within int range so that's not a concern)?
Trying to just cast it errors out.
>>
>>61513651
new Integer(longnum);

Does that not work? Been like 6 years since I looked at a java program so just going off memory.
>>
>>61513888
I found a way to do it with Math.intValueExact()
Suspiciously now all my keys are off and the insertcount tracker broke
I fucking hate working with java for datastructures, its such an overengineering piece of shit.
>>
>>61513900
Documentation says that's for bignums not longs. Are you sure that you can't cast?

((int)longnum)
>>
give me one (1) reason you aren't using common lisp as your shell RIGHT NOW
>>
>>61513965
because I don't use my shell for anything other than launching a repl, launching vim, launching make, launching apt ... I think you're starting to see a pattern.

A CI shell would just add more typing.
>>
>>61512229
roll
>>
>>61513251
do you even live in japan and speak japanese?
>>
So apparently Lua doesn't natively support 128 bit numbers. I still want to work with them, doing logical and arithmetic operations on them. How do I best go about doing this?
>>
>>61513270
>>61512313
>>61512810
>>61512733
>>61512409
>>61512313


Please
>>
>>61512229
Rolling
>>
>>61514042
>How do I best go about doing this?
stop using lua
>>
>>61513914
I'm very sure I can't cast. Every time I do it just squeaks out a "cannot convert long to int" error at me.

Also does anybody have a better idea for implementing a generic equals method on a generic object type?
right now I have three branches using instanceOf to cast the Object variable to its correct form, but I feel like there's a better way to do that.
Right now it's only three possible types, String Long Int
>>
File: emulation4.jpg (694KB, 3024x1345px) Image search: [Google]
emulation4.jpg
694KB, 3024x1345px
>>61509923
Implementing a gear system for my FFXIV Stormblood emulator, ended up with an amusing bug where the character decided to wield 2 bows.

Any other anon's interested or develop a server emulator?
>>
In pointer arithmetic, I know ptr++ will jump to the next address based on the size of the pointer.
Is there a way to jump multiple address spaces of that pointer size? Something like ptr += (sizeof(*ptr_type) * 3)?
>>
>>61514187
ptr + 3
>>
>>61514187
ptr + 3
>>
>>61514022
That was easy
#include <stdio.h>
#include <stdlib.h>

int bincoeff(int n, int k) {
int num = 1;
int dem = 1;
for (int i=0; i<k; i++) {
num *= n - i;
dem *= k - i;
}
return num/dem;
}

int main (int argc, char **argv) {
if (argc<2) {
printf("Please pass the number of rows to print\nSyntax: %s <number literal>\n", argv[0]);
return EXIT_FAILURE;
}
int rows = strtol(argv[1], NULL, 10);
if (rows<1) {
printf("At least one row may be printed.\n");
return EXIT_FAILURE;
}
for (int j=0; j<rows; j++) {
for (int k=0; k<j+1; k++) {
printf(" %d", bincoeff(j, k));
}
printf("\n");
}
return EXIT_SUCCESS;
}
>>
>>61514223
>>61514227
So there's some obfuscated magic going on with point arithmetic then? It's not influenced directly by the number you give it, but rather is multiplied by the int and pointer size?
>>
>>61514180
That's pretty neat although I have no interest in FF14. My mmo itch is solely classic wow and I gotta stay away from that shit. Shit's too much fun.

Is it linux compatible though anon? Most servers you'd wanna host that on are linux.
>>
>>61514256
It's equally as obfuscated as ptr++. Just gets translated to ptr+= 3 * sizeof(*ptr);
>>
File: 1482424804443.jpg (91KB, 405x540px) Image search: [Google]
1482424804443.jpg
91KB, 405x540px
>>61514269
As long as its consistent
>>
>>61514242
Your implementation is garbage though. Pascal's triangle should be really fast to compute, but you have that unnecessary binomial expansion. An entry below a row is the sum of the entries directly above it.
>>
>>61509923
are regular expressions the same for every language?
>>
File: Screenshot_20170722_pascal.png (44KB, 789x490px) Image search: [Google]
Screenshot_20170722_pascal.png
44KB, 789x490px
>>61514242
shit desu senpai
>>
>>61514258
Currently no, once .NET Core is more mature I'll move to using that for cross platform support.

Do/did you develop for Vanilla WoW or just play?
I used to contribute to the WoW open source scene but now only develop privately.
>>
>>61514311
Not always, and it can be frustrating. Hopefully your language will just support Perl regexp (PCRE) which is always the same across implementations
>>
File: Screenshot_20170722_standards.png (84KB, 1681x241px) Image search: [Google]
Screenshot_20170722_standards.png
84KB, 1681x241px
>>61514311
Regex has various standardizations
hard to say if a language follows any standard in particular
>>
>>61514311
No.
>>
>>61514335
I never got in to development. I'm a bit fiscally motivated, money keeps me accountable, and I'm an amerifat so I don't.

If I had the money I'd definitely sue Blizzard for antitrust, arguing that the requirement of copyrighted material in servers is unnecessary (strings, textures, etc can be stored on disk) and that their necessity is a perversion of copyright law to ensure a monopoly on the "world of warcraft server" market. Given that they actually sell wow and double dip with monthly fees there's a change. Once I hit it big, I swear....
>>
What is the best GUI framework for Ruby?
>>
>>61514460

That depends by what you mean by "best". What do you want in your GUI framework?
>>
>>61514500
Seriously, does it matter? A GUI is a GUI.
>>
>>61514505

In that case, use Shoes.
http://shoesrb.com/tutorials/
>>
>>61514538
Yeah, I tried shoes but its shit because you have to run shoes then select the actual Ruby file.
>>
>>61514460
>best GUI framework for Ruby
A completely different language.
That's on par with people using Python for twitter.
>>
why is Clisp's logo a menorah
from what I could tell bruno haible put it in, but judging by his name I doubt he's jewish
what gives
>>
>>61514547

Alright, well, Qt, GTK, Tk, and WxWidgets all have bindings to Ruby IIRC. Pick anything.
>>
>>61514297
>>61514332
alright fine, jeez
#include <stdio.h>
#include <stdlib.h>

int main (int argc, char **argv) {
if (argc<2) {
printf("Please pass the number of rows to print\nSyntax: %s <number literal>\n", argv[0]);
return EXIT_FAILURE;
}
int rows = strtol(argv[1], NULL, 10);
if (rows<1) {
printf("At least one row may be printed.\n");
return EXIT_FAILURE;
}
int currentRow[rows];
int k;
currentRow[0] = 1;
for (k=1; k<rows; k++)
currentRow[k] = 0;
for (int j=0; j<rows; j++) {
for (k=rows-1; k>-1; k--) {
if (currentRow[k]) printf(" %d", currentRow[k]);
if (k) currentRow[k] += currentRow[k-1];
}
printf("\n");
}
return EXIT_SUCCESS;
}
>>
>>61513172
This
>>
File: 35058327183369.png (2MB, 750x1334px) Image search: [Google]
35058327183369.png
2MB, 750x1334px
I'm learning C++ and I'm doing some basic tests using MFC as GUI.
The event bellow changes the value of a static text control when the user moves a slider, but why is that 'else' needed?

void CMFCTest1Dlg::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
if (pScrollBar == (CScrollBar *)&m_sliderCtrl) {
int value = m_sliderCtrl.GetPos();
m_strSliderVal.Format(_T("%d"), value);
UpdateData(FALSE);
}
else {
CDialog::OnHScroll(nSBCode, nPos, pScrollBar);
}
}
>>
>>61514637
Could be better. You aren't printing it well still. Use "%{n}d" as your print format string. I'll leave it to you to figure out what n should be and how to get it into the format string. It better not be hard coded anon!
$ ./pascal 6
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
>>
Rate my friend's attempt at a tic-tac toe game in c++.

https://pastebin.com/nuqnBr00
>>
>>61509979
Kinda doubt someone could actually do this.
Id buy it if you were an oop proponent. Because as soon as discussions get serious they don't have arguments. It's all regurgitated from school/books whatever.
With advocating languages you generally don't make sense at all unless you've got experience.
>>
>>61514916
const int height = 2;
const int width = 2;
using namespace std;
void resetBoard (char b[][width]);
void printBoard (char b[][width]);
void getInput (int& d1, int& d2);
void setInput_p1 (int d1, int d2, char b[][width]);
void setInput_p2 (int d1, int d2, char b[][width]);


Already way, way WAY too complex.
>>
>>61514976
Should the only function be main?
>>
>>61514991
I'm very drunk and read those as #define's
Ignore me
>>
>>61514739
Well, now I'm back to binomial coefficients then
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

double bincoeff(int n, int k) {
double product = 1;
for (int i = 0; i<k; i++) {
product *= (n-i) / (double)(k-i);
}
return product;
}

int main (int argc, char **argv) {
if (argc<2) {
printf("Please pass the number of rows to print\nSyntax: %s <number literal>\n", argv[0]);
return EXIT_FAILURE;
}
int rows = strtol(argv[1], NULL, 10);
if (rows<1) {
printf("At least one row may be printed.\n");
return EXIT_FAILURE;
}
int currentRow[rows];
currentRow[0] = 1;
int k;
for (k=1; k<rows; k++)
currentRow[k] = 0;
int n = (int) log10(bincoeff(rows, rows/2));
n++;
for (int j=0; j<rows; j++) {
for (k=rows-1; k>-1; k--) {
if (currentRow[k]) printf(" %*d", n, currentRow[k]);
if (k) currentRow[k] += currentRow[k-1];
}
printf("\n");
}
return EXIT_SUCCESS;
}
>>
>>61512621
Thanks!
>>
Does anyone have any good resources on into a gui for c++
>>
>>61514916
>while (0 == 0);
>>
>>61515015 (Me)
it should be
int n = (int) log10(bincoeff(rows, rows - rows/2));
at line 28, but i'm not gonna spam my shitty code anymore
>>
What makes C++ compilation so ridiculously slow?
I have projects of a few thousand lines that take minutes to compile. But I don't see why it should, ever. I understand that templates can cause a lot of bloat. Especially variadic templates. But none of the code does anything that's so complex that I could actually see the reason why it's so slow.
And then I heard about JAI in this thread that apparently compiles an ridiculous amount more complex things in larger line counts that I have in sub-second speeds.
It doesn't make sense to me why C++ which is such a large industry language would be this slow? Compared to a language that's not even released to the public yet.
>>
>>61511872
Boring but well explained
>>
>>61515015
That's okay I'll post how I modified your algorithm.
>%*d
Fuck there was an easier way. Fuck. I thought it was an interesting challenge because I ended up sprintf'ing a format string.
    int currentRow[rows];
int k;
currentRow[0] = 1;
memset(currentRow + 1, 0, sizeof(currentRow) - sizeof(int));
for (int j=0; j<rows - 1; j++) {
for (k=(rows/2)-1 + (rows % 2); k>-1; k--) {
if (k) currentRow[k] += currentRow[k-1];
}
}
int largest = currentRow[(rows/2)-1 + (rows % 2)];
int digits = 0;
while(largest > 0) {
digits++;
largest = largest / 10;
}
char * format = malloc(sizeof(char) * (3 + digits));
sprintf(format, " %%%dd", digits);
...

It's faster just to loop twice with your optimized algorithm, and less overflow.
>>
post your rewrite engine
>>
>>61510006
I did something similar two years ago.
But I never finish projects really. It's goal is to sort video and images and let you choose any folder on the drive to move images to. It can also convert videos using presets (was gonna expand this to be arbitrarily chosen FFmpeg settings) and it lets you move to slow destinations (like over the network) without any delay in the sorting process because I batch them.
The small window on the right shows the next image you're supposed to consider. It allows for far quicker

The slider under the image lets ffmpeg scan through the file and generate an image, so you can get a grip on what the file is without opening it. I was considering generating a list of distinct photos using something like:
https://superuser.com/questions/538112/meaningful-thumbnails-for-a-video-using-ffmpeg
But I got lazy, and I'm not sure it's more appropriate.

It's my first python/qt project and I wasn't aiming to make the UI look great yet.
Nice to see someone else has had similar ideas. The reason I made this was because I couldn't find anything else like it.
>>
>>61515158
Forgot pic
>>
>>61514916
>my friend

its ok pajeet
>>
>>61512229
roll
>>
File: Tomoko.jpg (72KB, 336x339px) Image search: [Google]
Tomoko.jpg
72KB, 336x339px
There's a party happening at my house, how am I supposed to get any work done with all this noise?
>>
>>61515286
install some soundproofing
>>
New JAI demo
https://youtu.be/MXNkQ5L4pLo
>>
>>61515314
fuck off invoke
>>
>>61515309
It wouldn't help
>>
>>61515097
kek, well i suppose we've both learned something

How's this?
https://ghostbin.com/paste/sbr4u
(Just so I don't take up too much space in the thread)
>>
What is the most profound/arcane program you have seen? Not in its implementation, in its function. Doesn't have to be practical.
>>
>>61515286
get in party
succ dicc
go back to werk
>>
File: picsort.png (13KB, 1170x813px) Image search: [Google]
picsort.png
13KB, 1170x813px
>>61515158
>>61515178

Huh, I made something just like that a while ago because I could find anything quite like it online.

I use it for sorting [spoiler]lewds[/spoiler]
>>
>>61515385
They're all much older than me and related to me or just out of or still in high school
>>
>>61515231
It actually was, mine is worse. I just did i while bored at work and the check if game is over function has an unnecessary for loop and an unnecessary switch statement in it, and the if conditions are long as hell and hardcoded in.
https://pastebin.com/Sb7hq9LW
>>
>>61515340
I don't know who this invoke is
>>
>>61512229
lets roll
>>
>>61514916
>>61515464
I'm impressed that people have the energy to write horrible code like this. I'd be so put down by how nasty my solution is that I wouldn't even write it.
>>
>>61515491
My excuse is I'm a first semester cs student with no programming before that.
>>
>>61511021
Have you profiled your app?
>>
>>61515517
Well it's to be expected then.
>>
>>61511921
I usually do a couple that seem interesting and go on with the next part, to see if I really understood what I just read.
>>
File: 71YNXYuwPGL.jpg (228KB, 1183x1454px) Image search: [Google]
71YNXYuwPGL.jpg
228KB, 1183x1454px
>>61509923
Learning basic C with this bad boy
>>
File: almy.jpg (115KB, 370x500px) Image search: [Google]
almy.jpg
115KB, 370x500px
>Hindley–Milner
>good
>>
>>61512269
well it is abstract, but it's not like the definition of abstraction like math, you can still do some pretty creative stuff
>>
File: libgdx.png (242KB, 1440x900px) Image search: [Google]
libgdx.png
242KB, 1440x900px
can I post here?
>>
File: 1480812177365.png (207KB, 450x416px) Image search: [Google]
1480812177365.png
207KB, 450x416px
>>61516131
>java
>>
>>61516148
I'm too low IQ for C and C++
>>
>>61516176
maybe you would like a simpler language that also has GC unlike C but is more consistent than C++ etc?
one that is also mostly a single paradigm and not a hodgepodge like C++?

here is one
https://en.wikibooks.org/wiki/Haskell
>>
What's a good backend framework for Python that would just communicate and do some data processing between two http APIs?
>>
File: ran_disgust.png (53KB, 204x288px) Image search: [Google]
ran_disgust.png
53KB, 204x288px
>>61516176
Maybe you should head on back to /wdg/.
>>
Guys. Whats the fastest way to advanced html+css from the pre-middle lvl?
>>
>>61512257
Thanks for the new background
>>
>>61511767
I really oughtta give that a decent read. My Uni has the entire set.
>>
>>61512229
rorringu
>>
File: trashkell_on_suicide_watch.png (448KB, 580x1500px) Image search: [Google]
trashkell_on_suicide_watch.png
448KB, 580x1500px
>recommending Shitkell
>ever
>>
>>61516197
>Haskell
>Simple
>>
>>61516427
yes

>>61516396
are you recommending java
>>
>>61516434
no
>>
>>61516434
no
>>
My C++ class names are entering enterprise Java territory. How fucked am I?
>>
>>61513251
Nice copypasta.

>tfw he actually made it.
>>
File: 1464893908703.png (441KB, 704x704px) Image search: [Google]
1464893908703.png
441KB, 704x704px
>>61516445
>>
New thread:

>>61516462
>>61516462

>>61516462
>>61516462

>>61516462
>>61516462
>>
>>61515658
Makes for a pretty good "absolute beginner" book. I think K&R fits better for people who already know how to program.
>>
>>61516465
>400 posts early
>>
>>61512229
rolling
Thread posts: 315
Thread images: 55


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