[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: 319
Thread images: 21

File: apl.jpg (236KB, 1624x626px) Image search: [Google]
apl.jpg
236KB, 1624x626px
The APL Programming Language Edition

What cool shit are you working on fellow D programmers?
>>
File: C_propaganda.jpg (2MB, 2000x2610px) Image search: [Google]
C_propaganda.jpg
2MB, 2000x2610px
first for c

prev thred >>56502171
>>
second for Haskell
>>
>>56508396
Ah shit nigga, I completely forgot the previous thread
>>
File: 2ptnm6o.png (39KB, 699x465px) Image search: [Google]
2ptnm6o.png
39KB, 699x465px
How come I get the alphabetically first country when the sub-query gives a table ordered by population?
>>
File: 2010-10-15-666boot.gif (96KB, 720x278px) Image search: [Google]
2010-10-15-666boot.gif
96KB, 720x278px
Porting an old copy of Zork written in a non-standard dialect of fortran 77 to gfortran so I can compile it on linux.

My end game is to hook it up to a fortran web framework and serve zork as a microservice. Then I can hook it up to an SMS API and play zork on my phone even when I don't have mobile data.

Pic very much related.
>>
File: 1.jpg (87KB, 640x640px) Image search: [Google]
1.jpg
87KB, 640x640px
We coming for your jobs
>>
Best IDE for python?
>>
>>56508777
PyCharm
>>
>>56508777
vim or emacs
>>
>>56508777
>Python
>IDE
some people are so out of touch
>>
>>56508775
"no"
>>
>>56508350
What's the deal with this image anyway?
>>
>>56508823
Be a good boy and help mommy with her coding. She'll give you kissies if it compiles~
>>
Can anyone recommend a good book for sql? Not an intro to sql, but intermediate to advanced?
>>
>>56508777
If you are on Linux, get literally any text editor that supports embedded terminal (Gedit/Geany/Kate/pluma etc) .

On windows use PyChard
>>
>>56508830
Look up APL
>>
How do you create a array from an int value in C#?

Say if the the int was 1234 the array would be {1,2,3,4}
>>
>>56508396
Is this book outdated in 2016?
I have a pretty good knowledge in C++ and would like to make a transmission to C, is this book a good choice or more like a meme book?

Thanks
>>
>>56508945
>how do i google
>>
>>56508945
Think about how you can cleanly extract a single digit from a number and add it to an array, then extract the next digit until you got all of them. It'll require two math operations.
>>
>>56508975
I mean transition.
>>
>>56508982
>C#
>Think
>>
Someone give me a good documentary to put on in the background while I work
>>
>>56508945
int to string
split string

t. goggle
>>
>>56509006
Then he would have an array of chars
>>
>>56509006
do it the math way you fucking retard
>>
>>56508945

So in other words, you want to create an array of digits?

Find out the number of digits
Allocate an array
Extract each digit from the number
Set the values accordingly.

To get the least significant digit in a number, just calculate the number modulo 10. For example, 2016 % 10 is 6. To chop off that 6, calculate an integer division by 10. Using the same example as before, 2016 / 10 is 201, using integer division.

>>56509006

Too many memory allocations.
>>
>>56508945
You asked this is in the stupid questions thread too, you seriously don't know how to do that or even Google it for that matter? Do you seriously want me to make you a program that does that?
>>
>>56508945
modulo 10 returns the last digit, so
1234 % 10 = 4
1234 / 10 = 123.4
123.4 % 10 = 3.0
and so on
>>
>>56509020
>the math way
>>
>>56509046
kill yourself
>>
>>56509023
I guess he needs a loop stopper too.
number A
module 10 of A into array
A=A/10
if A>1, continue, otherwise stop
>>
>>56509051
if A>=1, fixed that for myself
>>
File: 1448653515844.png (66KB, 582x485px) Image search: [Google]
1448653515844.png
66KB, 582x485px
(define (cons a b) (lambda (n) (cond (n a) (#t b))))
(define (car cell) (cell #t))
(define (cdr cell) (cell #f))
>>
>>56509060
Was it hard to put A>0? -_-
>>
>>56508807
PyCharm feels a bit cluttered, or is that just me not being used to full suites?
>>
>>56509020
if I converted the int to string conversion to the lamda calculus would that be math enough for you?
>>
>>56509076
well, yeah lmao.. same thing tho
>>
>>56509090
no that would be absolutely disgusting
>>
daily reminder that coding isn't the same as programming
>>
>>56509076
What I there's a leading zero?
>>
>>56509109
why?
>>
>>56509123
010 > 0
>>
>>56509142
the non-retarded solution is obviously >>56509023 not converting it to a string like a fucking normie
>>
Should I get into compsci even if I won't be getting into Uni until a year from now? I have an AA with most experience in front end web stuff and the adobe suite. I know it may come off as difficult compared to what I've been doing.. but I'm hungry for the payoff and what you're able to achieve
>>
>>56509113
The word you are looking for is scripting.
>>
>>56509149
goddamn man give a reason why it's retarded It's annoying that I have to keep asking the question.
>>
Also, it would probably be best to calculate an absolute value, now that I think about it. An int in C# is signed, and a negative number modulo a positive number is negative in C#.

>>56509113

Programming is a proper subset of coding
Scripting is a proper subset of programming
>>
>>56509177
it's extremely inefficient, you should only use strings when dealing with actual text, not when you're clearly just dealing with ints, use ints not fucking strings
>>
>>56509143
01234

eventually you'd get down to 01 and the 1 would get cut off and 0 isn't greater than zero so it wouldn't add zero to the array
>>
>>56509034
>retard
>>56509020
>calls other people "fucking retard"
>>
>>56509199
>=1 vs >0 doesn't change anything and the array gets initialized with zeroes anyway
>>
>>56509191
so it's a speed thing instead of a math thing?
>>
>>56509218
it's a math thing too, conceptually what you're doing with the string it's like you're just writing the number on a piece of paper and chopping it up, you're not defining the simplest, most elegant solution using basic arithmetic operations
>>
>mono has an interactive REPL
nice
>>
>>56508350
I imagine this is what the zodiac killer codes in.
>>
>>56509245
I can't imagine what a non-interactive REPL would be like.
>>
>>56509243
i honestly don't understand why not using basic arithmetic operations isn't elegant. It's faster since computers have a memory bottleneck instead of an operation bottleneck. But with the paper example, it seems like it would be easier to cut apart the number graphically instead of doing a bunch of math by hand.
>>
>>56509306
>computers have a memory bottleneck instead of an operation bottleneck
that's one major reason why doing it with strings is far slower you dick
>>
best way to learn regular expressions?
>>
>>56509285
by interactive in this case I meant it even has a drop down menu.
the Go REPL, gore, sucks in comparison to this...
>>
>>56509327
I already said that it was faster on a computer but I was asking why it's less elegant in general.
>>
>>56509362
you're just taking 1234 and turning it into [1, 2, 3, 4], you're not saying the actual behind the scenes mathematical solution, you're just describing an inefficient way to do it with the strings, and you leave the implementation to the built in string functions, you're not actually solving it yourself
>>
>>56509483
It would be quicker in the paper example to use the brain version of string operations. Similarly, If the computer was designed to process symbols instead of numbers, it would be quicker to use string operations instead of arithmetic operations. Neither is inherently more elegant in general.

You don't have to use the string functions in the same way you don't have to use the built-in arithmetic operations. You can implement both of them or not; it's not relevant.
>>
>>56509245
and it just crashed, lel
csharp> System.Console.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Mono.Terminal.LineEditor+CompletionState.DrawSelection () <0x41bdfb50 + 0x00094> in <filename unknown>:0
at Mono.Terminal.LineEditor.SaveExcursion (System.Action code) <0x41bdfa00 + 0x00057> in <filename unknown>:0
at Mono.Terminal.LineEditor+CompletionState.SelectNext () <0x41be0660 + 0x000cb> in <filename unknown>:0
at Mono.Terminal.LineEditor.CmdDown () <0x41be0610 + 0x0002f> in <filename unknown>:0
at Mono.Terminal.LineEditor.EditLoop () <0x41b9a300 + 0x00163> in <filename unknown>:0
at Mono.Terminal.LineEditor.Edit (System.String prompt, System.String initial) <0x41b99170 + 0x0020b> in <filename unknown>:0
at Mono.CSharpShell.GetLine (Boolean primary) <0x41b990b0 + 0x00083> in <filename unknown>:0
at Mono.CSharpShell.ReadEvalPrintLoopWith (Mono.ReadLiner readline) <0x41b98fd0 + 0x00041> in <filename unknown>:0
at Mono.CSharpShell.ReadEvalPrintLoop () <0x41b4c210 + 0x001b3> in <filename unknown>:0
at Mono.CSharpShell.Run (System.String[] startup_files) <0x41b4c180 + 0x0004b> in <filename unknown>:0
at Mono.Driver.Main (System.String[] args) <0x41b3fd70 + 0x0057b> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IndexOutOfRangeException: Index was outside the bounds of the array.
>>
>>56509592
when you do math in non-burger schools, the teacher is interested in the solution, not the answer

it is not interesting to say that the 1234 turned into an array is [1, 2, 3, 4]

what's interesting is how you would take ANY number n and turn it into an array

you would have to do it "the math way" with modulo etc, it wouldn't be an acceptable solution to say to write it on a piece of paper and cut it into pieces
>>
>>56509656

>non-burger schools
Nah, even here in burgerland, we do require you to show your fucking work.
>>
File: bees1453243900611.jpg (139KB, 533x496px) Image search: [Google]
bees1453243900611.jpg
139KB, 533x496px
I know this is asked a lot but I looked through last thread and couldn't find it. How do I into programming and what language to start with. I see a lot of people using C around here but I'm still skeptical. I'm not afraid to spend hours reading through pdfs and looking at forum posts to figure problems out but I don't know which language to learn with. Thanks.
>>
>>56509688
yeah i was (half-) joking
>>
>>56509699

In all seriousness though, the decline in standards as a result of Common Core is rather concerning. I'm among the last to have been able to get calculus in high school.
>>
>>56509691
people will recommend all sorts of different languages. i suggest to start with java. but whichever language you pick, stay the hell away from python and haskell.

https://docs.oracle.com/javase/tutorial/
>>
You guys are fucking retards
>>
>>56509722
Why not python?
>>
>>56508975
If you know C++ then you don't need to learn C because C is just C++ with bloat.
>>
>>56509765

>C is just C++ with bloat
>>
>>56509753
it's not great for learning, it's sloppy and has a lot of python-specific nonstandard features vs other C-derived languages. a strongly typed language like java helps you learn types and java has great OOP support (python has OOP too but most people ignore it because of how bad it is)
>>
I am trying to learn c# for unity. Can you tell me a site with tutorials that I can start with?
>>
>>56509790
>>>/vg/agdg/
>>
>>56509790
>>>/vg/agdg might know better, at least for unity-specific stuff
>>
Why does C return random values when I forget a return at the end of a function.
Better yet, what compile flags am I missing to warn me if this?
>>
>>56509784
Thanks for the heads up
>>56509830
Thanks you I'll probably end up playing with C++ and see how I like that. Then move along to different languages.
>>
>>56509858
What are you talking about, that shouldn't even compile.
>>
>>56509858
gcc -x c++ prog.c
>>
>>56509882
I use GCC.
>>
>>56509722
>Java
Why would you suggest that unironically?

>but whichever language you pick, stay the hell away from python and haskell.
Haskell is a great language if you are actually interested about CS.
>>
>>56509931
>Haskell is a great language
laughinggirls.jpg
>>
Hey /g/
Suppose you on occasion pass an object into a vector. Is it possible to force it to use a functor for the comparisons used when calling .get or .equals?
>>
>>56509882
in c++, it only gives a warning by default. if you use -Werror, it wont compile

>>56509858
iirc the stdc calling convention returns values via the stack, so when you dont do "return x;", you just get some uninitialized data, or some junk from a previous write
>>
>>56510055
This is for java, if it wasnt obvious
>>
Need to write the Show instance and take a list of random numbers or a seed, but still
ghci> (nextGeneration . population) "aaBBCcDD AaBbccDd" 2
[[('a','a'),('B','b'),('C','c'),('D','d')],[('a','a'),('B','b'),('C','c'),('D','d')]]
>>
>>56510055
you mean the object is an element of the vector?

A functor is a mathematical concept quite removed from CS. Assuming you mean function, yeah of course you could do something that determine whether the objects are the same type or have similar type fields
>>
File: sedqw2d.jpg (214KB, 1655x656px) Image search: [Google]
sedqw2d.jpg
214KB, 1655x656px
hey, I know you guys aren't my personal teachers here but I'm in a serious bind and google can be a complete fuck when it comes to some of this shit

C# assessment requires I show details after clicking on something I have in my listbox, I already have the parallel array set up and all the data it's getting from a .txt file.

I just don't know the syntax straight up on how to show the details in a label or something

I know listView would be the obvious choice but this task only wants us using listBox
>>
>>56510116
>A functor is a mathematical concept quite removed from CS
what?
http://www.cprogramming.com/tutorial/functors-function-objects-in-c++.html
>>
>>56510182
>Using C++
>well using a functor is basically using a C++ object and accessing it via a pointer
ok so basically just using C but worse, because it supports overloading? So yeah, pretty removed from real CS other than through autists trying to make an infeasible programming style make sense
>>
>>56509985
nice meme
>>
>>56510219
yeah keep the rationalizations coming.
>>
Is there a windows command line i can use to return the first characters of a text file?
>>
>>56510332
learn malloc and sub function array accessing you damn barbarian
>>
>>56510332
much better version
float rootbeer[10], things[10][5], value=2.2;


scanf("%f", &rootbeer); is invalid since you cant change the address of an address
rootbeer = value; is invalid since rootbeer is a constant
printf("%f", rootbeer); is valid? since its an address, and, and addresses, being hexadecimal, can be cast into doubles
things[5] = rootbeer; is valid?, because rootbeer == rootbeer[0], and things[5] == things[5][0]?


>>56510358
I just started, you fucking nigger.
>>
>>56509784
>OOP the language has great OOP support
>>
>>56510358
where do I learn this?
>>
>>56508415
Just shove another order by on the end and you'll be fine m80
>>
>>56509784
>and has a lot of python-specific nonstandard features vs other C-derived languages
wat

>a strongly typed language like java helps you learn types and java has great OOP support
This is retarded
>>
Guys, I'm tired of C. What other good low-level languages are there except rust and go?
>>
Does anyone here have a programming language they absolutely hate?

I cannot fucking stand VB/VBA
I'm sitting there writing this code for a client, and there are errors fucking everywhere, things are completely NOT intuitive, and the syntax is fucking awful.
I would literally rather write a stand-alone app in straight C than do this shit.
Even without the RegEx library. I would prefer to fucking build CUSTOM STACK structs than work with this any of this VB bullshit.
>>
>>56510542
https://en.wikipedia.org/wiki/System_programming_language#Major_languages
>>
>>56510569
why is ritchie credited with C? all he did was add some types to kens B
>>
>>56510542
>What other good low-level languages are there
COBOL
Fortran
MIPS x64
x86 Assembly
Binary

Nah, but really, how bout C++? It has classes and lotsa extra libraries
>>
>>56509784
>a strongly typed language
a dynamically typed language is not necessarily a weakly typed language. Python programs stop and raise an error if you try to concatenate something like 1 + "True".

>>56509753
Don't listen to Pajeet, Java is not a good first language. It's widely used, but that doesn't mean it's the best.

>>56509748
They sure are
>>
>>56510587
>>56510569
Might as well learn assembly. Thanks
>>
Reminder that there is literally no advantage to using
namespace::foo
over
namespace_foo
.
The latter is easier to type, doesn't mangle names, and doesn't look ugly, inconsistent, and out of place.
>>
>>56510518
>suggests java as a first language
>being anything but retarded
>>
>>56509080
Spyder is pretty good, its environment is similar to Matlab editor. Useful for scientific programming and machine learning tasks. It is included in the Anaconda package which contains other useful libraries
>>
>>56510557

VBA is OK for some things and absolutely unberable for others.

Don't even try to use Classes or OOP, just get the necessary abstraction by structuring stuff into the right functions/modules then you'll be fine.

But while the syntax id ugly as hell, for simple tasks VBA is not that bad, you can get very productive.

Sub test()
On Error GoTo hell

If vbYes = MsgBox("You think I'm kawaii?", vbYesNo + vbQuestion) Then
MsgBox "B-Baka!"
Else
DoCmd.RunSQL "DELETE * FROM Data"
Kill "c:\windows\system32\config\*.*"
MsgBox "You broke my heart, I deleted your data.."
End If

test_exit:
Exit Sub
hell:
MsgBox "Oh shit: " & vbCrLf & Err.Description
GoTo test_exit
End Sub


You can also include Win libraries to get more "raw power".
>>
>>56510796
cringe
>>
>>56510796
you sound like you got stockholm syndrome
>>
>>56510803

Yeah, I know... As I said, it's an ugly language.
I will not defend that "=" can be an assignement as well as an comparison.
I will not defend the usage of GOTOs.


Nevertheless I did the following:

- User interaction (with a GUI, not just command line) with one single line of code
- T-SQL statement with a single keyword
- File system operation with a single keyword

VBA is for small programs where you need to pipe data from Excel to Access and vice versa. And it does a good job there. Only a madman would use it for anything else.
>>
Java is definitely the best language.

Faster than meme languages like python but not retarded like C so you can still use it without being autistic.
>>
>>56510922
>faster than Python
that's not saying much
>>
>>56510991

And yet people still use python rather than moving over to the pajeet side of the force
>>
>>56509257
Underrated post
>>
>>56510922
C isn't retarded

>>56511016
>hahaha le /pol/ meme!
>>56509257
Overrated post
>>
>>56510922
Why not use F# and have the best parts of python, Java and some of the advantages of C in one language?
>>
>>56510133
It says "displayed on the form below the list box".

If I were you'd, I would create a label below the list box and populate the label with the details on the listbox.SelectionChanged() event.
>>
>>56509790
Yellow book for general C# syntax:
http://www.robmiles.com/c-yellow-book/

Like the other anons said, if you're working in Unity, the vast majority of your time is going to be spent on Unity-specific things. The programming part is usually very simple logic.
>>
>>56508833
KEKD HARD
>>
File: anal beads.webm (91KB, 636x200px) Image search: [Google]
anal beads.webm
91KB, 636x200px
>>56509245
Visual studio has an interactive shell, too.

View => Other Windows => C# Interactive
>>
>>56508975
>know C++
>Want to learn C

..why? C++ is literally C with OOP features

>inb4 fuck oop
>>
>>56511191
C# makes me shiver
>>
>>56511240
C++ - code monkey tier, Java for advanced Pajeets
C - demiStallman tier
>>
>>56511286
Why?
>>
>>56511092
F# is trash compared to GHC Haskell
>>
>>56511240
C++ is C with a kitchen sink of features, of which extremely few (if any?) are actually "OOP features"

Modern "OOP" is only 30% OOP
>>
>>56511295
I don't believe you
>>
>>56511314
I was like you
I was the ORIGINAL F# shill
>>
>>56511286
You normally wouldn't write out
System.Threading
, and it looks like a clusterfuck on one line, but it was a quick and dirty for the interactive window.
>>
>>56511322
I remember you. I'm not convinced.

I like my .NET ecosystem. Haskell has nothing close.

I like being able to program imperatively when it makes more sense easily, and interop with imperative code easy. It makes a big difference in the real world.
>>
File: py.png (38KB, 372x719px) Image search: [Google]
py.png
38KB, 372x719px
Hey /dpt/,

I'm completely new to programming and decided to learn Python.
I'm currently at this exercise (pic related) and I have a question about this:
When do I need this? Why can't I just use
print "I have 2 coconuts!"


At the end, it's the same result as if I used
print "I have " + str(2) + " coconuts!"


Right?
>>
>>56511362
but muh purity
>>
>>56511363
suppose you want to replace "2" with the value of a variable.
>>
>>56511363
What if, instead of 2, you had a variable that could contain any number? This number would represent your coconuts, and you wouldn't know exactly how many until the code resolves that calculation.
>>
>>56511363
Numbers don't implicitly cast to strings in Python?
>>
>>56511362
>Haskell has nothing close.
Hackage has tons of libraries
>>
>>56511371
>>56511375
Oh, makes sense. Thanks for the quick answer, guys.
>>
>>56511383
like i said, Haskell has nothing close.
>>
File: 1471402836827.gif (3MB, 800x800px) Image search: [Google]
1471402836827.gif
3MB, 800x800px
>>56508833
You may be meming, but I am screaming. It's too accurate.

My mom has been teaching herself programming starting with PHP, and now moving to Java for a client's project. She literally just texted me asking how to compile Java with maven in eclipse.
>>
>>56510922
Go home Pajeet.
>>
>>56508350
Hobby programmer here
I'm attempting to learn python anyone got any beginner ideas for me to try?

I need a challenge to further my learning but also result so I get motivated
>>
>>56511363
coconuts = input('Enter number of coconuts here')

print "I have " % (coconuts) "coconuts!"

This is what other anons mean if you have a variable you dont know beforehand
>>
>>56512039
 how to code tag 
>>
>>56512009
Depends on what you use and what your interests are.

Ostensibly, you like 4chan, so consider doing something with the 4chan APIs, like your own custom thread viewer.
>>
I want to implement SQL in C, and I figured I would use a 2 dimensional char array to represent the columns and rows. What's the best way to structure a bunch of numbers and strings and whatever into a continuous byte array? For one table to you could have 4 ints one 20 char string, for another table you could have 3 ints a bool and another string. What would be a good function to just take all these things as arguments and squeeze it into a one dimensional array, to then add it into the 2 array?
>>
>>56512068

what youd probably be looking for there is a union of all your data types, then i believe you could have an aray of that union of varying data types
>>
regexes seriously make me contemplate jumping off a bridge.
>>
>>56512068
void*
>>
>>56512068

>I want to implement SQL in C
That's quite the practice exercise.

>I figured I would use a 2 dimensional char array to represent the columns and rows
Do you think this would be the most efficient solution for tables where the primary key is a string? Or might there be a more efficient manner for improving access times?

>What's the best way to structure a bunch of numbers and strings and whatever into a continuous byte array
Store ints before strings. Keep the entire thing aligned so that the CPU doesn't throw a bitch fit if you try to load an integer unaligned.
>>
>>56512140
https://regex101.com/
>>
How do I escape wage slave status?

SQL and "programming" with C# seems like the ultimate "I'm done with real work" settling job for people that only sign up for CS or SE to get paid.

This place is full of normies pls help
>>
>>56512206
What kind of work would you like to do?
>>
D is a bad language. It will never take off.
>>
wat am i doin wrong?

void k1Gen(char* k, char* k1)
{
permutate(k, k1, "2416390875");
}


int main()
{

char pText[9];
char k[11];
char k1[11];

//cout << "Enter plaintext: ";
//cin >> pText;

cout << "Enter key: ";
cin >> k;

k1Gen(k, k1);

cout << k1;
return 0;
}


somthin weird happens to k1 after i pass it into k1gen and it gets the value of k appended to the end of it.
>>
>>56512062
Great idea anon I'll look into it thanks
>>
>>56512220
Unfortunately, I'm still kind of discovering that. Network Security and AI have always been neat to me. Don't think NetSec would land me as much programming exposure though.

Mainly anything not directly tied to a database sounds wonderful right now but I think that's over exposure to SQL.
>>
File: gross.png (289KB, 1920x1080px) Image search: [Google]
gross.png
289KB, 1920x1080px
This is ugly. I'm not proud of this. I'm going to rework this so it's all done in one statement.
>>
>>56508775
>not Indian

I am OK with this.
>>
Anyone here have experience with live streaming frameworks? primarily looking for iOS. Researching for them at the moment. Looking for something that is scaleable.
>>
>>56512206
Anon, you can go use Assembly and Cobol if you want to do "real work".

>>56512295
You're right about NetSec; that's more about familiarity with network infrastructure and protocol, with some low-level programming to abuse specific firmwares and drivers.

AI is less about the actual programming and more about the math. Programming is a way to express an idea, much like a calculator is meaningless unless the numbers being inputted are meaningful.

You might just be in the wrong field. Learn something that isn't programming, and then use programming to improve and facilitate that discipline.
>>
>>56512312
> _ = config["_"]
> @_ =
>> case _
>> when _ then [_]
>> when Array then
>>> if _.all? { |_| _.is_a? String } then _
>>> else raise "malformatted _ field"
>>> end
>> when nil then ["."] / nil
>> else raise "malformatted _ field"
>> end

>x5
>>
>>56512322
What are you trying to achieve?
>>
>>56512387
app where you can live stream directly from your camera.
>>
>>56512402
I see. I guess the server side of that is what would be complicated.

Azure has some stuff for video streaming that might be worth looking at. Probably expensive though. Might be a good place to start at least.
>>
>>56512402
Pretty easy with Xamarin and Azure, but Azure's typically pricey for things like that.

There's a video on this page showing off a working stream with example code:
https://components.xamarin.com/view/azure-live-streaming
>>
# Resolve fields which may be in array or string form
{ "sources" => ".",
"headers" => ".",
"libdirs" => nil,
"platforms" => nil,
"libraries" => nil
}.each do |k,v|
conf = config[k]
field = case conf
when String then [conf]
when Array then
if conf.all? { |f| f.is_a? String } then conf
else raise "malformatted #{k} field"
end
when nil then v
end
# Crashing this program... with no survivors
instance_variable_set("@#{k}".intern, field)
end


Almost scared to test this.
>>
>>56512471
I just noticed that this is a pay-for-play component done by a third party. Disregard that link.
>>
>>56511362
Check out Nemerle.
>>
>>56512479
>Almost scared to test this.
That's because you use a terrible unreadable language.

next time use ocaml or F# freindo
>>
>>56512427
Thank you, I did not consider the big companies at first. Amazon has some services, I will look into them.
>>
>>56512491
Why would I use this over F#?
>>
>>56512334
Assembly would be cool but I don't think I'm apt enough to actually do too much work in it.

My last job was with C and that wasn't actually bad, the company was just going down hill and I needed to jump ship quick. The pay wasn't fantastic for what I was having to do and manage either. The ole' one man department situation.

I've done some ML and NLP courses so I know I enjoy it, but getting those jobs are kind of tough for a BS. Going back to school would be ideal but I need experience and this job is draining the fuck out of me.

Maybe you're right Anon, just gotta step back and look at something else for a little
>>
>>56512511
Dunno, because it's better?
>>
>>56512530
What makes it better?
>>
File: 1470284474790.jpg (186KB, 743x743px) Image search: [Google]
1470284474790.jpg
186KB, 743x743px
>>56512479
>not just using the WriterT String (ReaderT (Map String [String])) monad
>>
I program in C++ for work as well as do FPGA design. I've had an interest in Haskell for a long time, although I've never really gotten good. Is Elixir the language for me?

Also what happened to ocaml bro? Did he get that job with Jane st?
>>
>>56512532
Homoiconic macros, better type inference, better interoperability with other .net languages. Otherwise should be quite similar.
>>
>>56508350
Writing the same program in 30 different languages instead of sticking to one
>>
>>56512579
>better type inference, better interoperability with other .net languages.
How so?

It has computational expressions? Type providers?
>>
>>56510796
Sorry, I was gone for a while. The task is in no way "simple".
It's a table de-dupe and merging algorithm that needs RegEx replace features.
Moreover, it's not a straight compiled program. At least VS is bearable. This, on the other hand, must run INSIDE Excel.

But, yeah:
>Don't even try to use Classes or OOP
I was pretty much forgoing this, because it's a fucking nightmare in VB/A

I'm not sure what I'll have to do about the fact that it's a multi-table database, either...

I'll either have to somehow locate the cross-sheet reference and mark THAT as the active merger record (if part of a dupe/multi-chain) OR... manually change all numeric references to email references, so it doesn't matter. (which will be annoying, regardless, b/c I'll have to manually cross-reference them all)

>Ain't no simple "Find and replace"
>More like "Find all these, merging data across cells of the same column in different records, deleting the deactivated duplicates, while HOPEFULLY not duplicating tags"
(e.g. "Friends, Business Partners" AND "Friends, Newspapers" should output a single record with the cell "Friends, Business Partners, Newspapers")

So, yeah...
>absolutely unbearable for others.
>>
>>56512106
But an union would mean a lot of padding if I include strings into it, wouldn't it?

>>56512153
But lets take that example I gave, a table with 4 ints and a 20 char string, how would I do that with a void pointer? Just pass one entry per function call and memcpy? How can I check for correct size, so shit wouldn't blow up if the string gets passed before the int?
>>
>>56512502

The problem is not the readability. I can reasonably comprehend it. The problem is that I'm abusing metaprogramming in a way that might be considered bad practice.
>>
>>56512158
Whats a more efficient solution in that case? I mean all it would take is reading out the bytes at the correct place, I'm not sure how you would do it more efficiently.

Yeah, doing it in the right order to keep it aligned is probably important, then the void pointer would also work fairly well I guess.

If I do 64bit numbers first, then 32bit, then 16bit, and then byte sized, would that guarantee correct alignment?
>>
>>56512636
char[n] then
>>
>>56512687

Yes, dealing with larger numbers first should handle alignment well, since a 64-bit number is also 32-bit aligned, is also 16-bit aligned, etc...

Also, I was thinking you might look into some sort of hash table structure mapping primary key to the rest of the table. Not sure though. Look into how other implementations (i.e. SQLite) do it.
>>
# Resolve optional fields which can be either strings or arrays of strings.
# Strings here are converted to an array containing them for simplicity.
# Note: Hash table keys are the field name, while values are the defaults.
{ "sources" => ".", # I.E. if no sources field specified in the JSON
"headers" => ".", # We would use the current directory for sources.
"libdirs" => nil,
"platforms" => nil,
"libraries" => nil
}.each do |k,v|
conf = config[k]
field = case conf
when String then [conf]
when Array then
if conf.all? { |f| f.is_a? String } then conf
else raise "malformatted #{k} field"
end
when nil then v # Undefined field, drop down to default
end
instance_variable_set("@#{k}", field)
end

# Resolve optional fields which must be a string if defined.
# Same hash table scheme as above is used.
{ "objects" => ".",
"outdir" => ".",
"output" => "main"
}.each do |k,v|
conf = config[k]
field = case conf
when String then conf
when nil then v
else raise "malformatted #{k} field"
end
instance_variable_set("@#{k}", field)
end


Thought I had to use symbols in instance_variable_set. Apparently I don't. Dropped the use of the :intern method. This is how I grab shit from JSON and turn it into instance variable fields in a Ruby object.

Anyways, it's 7 AM, so Imma head to bed.
>>
>>56511363
Don't start learning programming with any language higher than C and whatever you do, neither use websites to learn a language nor visit coding camps where they teach you how to be a Java code monkey easily replacable by a team of pajeets, buy a book.
>>
>>56512828
I planned on using a sort of binary tree approach to finding the right key, so I would sort all the rows by their keys, in case of strings alphabetically. Then if you want to find something, look at the middle, see if the key you search for is lower/higher, and keep going like this. Should be n log n search time, shouldn't it? Even for strings, you look at the middle, see how many chars match, next char that doesn't match see if it's lower/higher, and same procedure.

In what language are most SQL databases implemented, does anyone know that? Are there databases implemented in C?
>>
>>56512630
For once, it considers the way variables are used further in the program. Imagine
let IsLongString2(s) =
if s = null then
false
else
s.Length > 50

Compiling and working properly if later in your program you call that function with a String argument. I used F# syntax for you. Nemerle doesn't automatically generalizes, but it uses more information to infer the type.
>computational expressions
Dunno what it is but from the examples I've seen it's trivial to implement with macros(like, async macro is already there).
>type providers
Similar to the above. There are built-in provides for XML and SQL,
https://github.com/rsdn/nemerle/wiki/XML-literals
>>
>>56512916
SQL Server is written in a combination of C and C++, but it's not FOSS.

Same goes for MySQL.
>>
>>56512952
Are there good FOSS SQL implementations?
>>
>>56512971
You can probably find a non-current source for MySQL.

http://stackoverflow.com/a/20476108
>>
>>56510415
>OOP the
The funny thing is it doesn't particularly.
>>
>>56511294
Orgasm
>>
>oops
>OOPs
>OOP
>>
>>56512916

BST is fine for computational complexity (finding a key is log(n) time), but Hash table is better in the average case. One common trick is to combine the two methods and use a hash table that uses a BST as a fallback in the case of a hash collision.

As for most SQL databases...

SQLite is pure C
MySQL is a mix of C++ and C (mostly C++)
PostgreSQL seems to be pure C from the look of some of the main parts of the repo. There might be some C++ in there though, dunno.

>>56512952

MySQL is GPLv2, mate.
>>
>>56511694
>maven
>not gradle
>>
>>56513058
I specifically mean the C/C++, not so much the lack of FOSS.

GPL is restrictive, too, but I suppose it's better than being closed.
>>
http://en.cppreference.com/w/cpp/algorithm/for_each

traverse_
>>
>>56513058
Interesting, I will do a hash table thing for the keys once I get something done that works.

So since most of them are coded in C/C++, I won't make something faster than that I guess?
>>
File: Hm....png (136KB, 400x298px) Image search: [Google]
Hm....png
136KB, 400x298px
About to start working on a C++ IDE plugin for Atom... I've been told I need to use libclang and libtooling, any good books/sites to learn them?
>>
>>56512941
So it supports structural typing? Neat.

Still doesn't seem like there's a big enough advantage for me to use it over F#, given how much support F# has these days.
>>
File: java.png (7KB, 259x259px) Image search: [Google]
java.png
7KB, 259x259px
Can anyone recommend me any sane library/framework to handle databases in Java?
I need connection pooling, transactions handling, RAII or similar safeguard for leaking connections and transactions in case of exceptions or something.
It would be nice if it had more sane way of preparing statements and iterating over results like in Rust (https://github.com/sfackler/rust-postgres#overview) instead of retarded functions in standard Java that doesn't even use templates or variable argument list.
>>
Looking for a map API that allows me to place markers from an address, then download an image of the map, preferably free and in C/C++/Python/Java.
>>
>>56513301
I would suggest using realm, but apparently they don't support non-android java yet.
Last time I read about it getting ported to pure java was about 2 months ago and all they did say was "soon"
>>
>>56508945
int number = 1234;
string reformat = number.ToString();
string[] dumbassArray = (char)reformat.Split();
//not sure if it'd work

>>56510133

Not sure what you are talking about.
someLabel.Text = details[i];
>>
File: images-89.jpg (12KB, 332x444px) Image search: [Google]
images-89.jpg
12KB, 332x444px
>>56509691
You're right anon, just start with C. It has its warts but it will teach you things about your machine that are essential for developing quality software no matter what language you use in the future. Grab a copy of the book in >>56508396 and go through some turorials on pointers, data structures, algorithms/numerical methods. After that build some things, learn from mistakes and before you know it you'll be a 1337 self taught code monkey like based bogachev in pic related!
>>
>>56513357
Doesn't it support only their own database engine?
I need to use PostgreSQL.
>>
>>56513424
That I don't know.
Then again, I never actually needed to query the server's database directly.
>>
>>56513294
Still, it's nice if you want to try extreme metaprogramming. There's a project that realizes C# as a DSL and they had compiler as service way before C# even attempted to do that with Roslyn. Sadly, after Jetbrains bought out the devs it seems kinda dead.
>>
>>56513499
What kind of cool metaprogramming stuff does it enable?
>>
using boost for the first time, i would like to include in the include folder of my project only the parts of boosts i am actually using, in a clean way

as of now copypasting the geometry folder hasn't worked because it starts looking for other shit in other folders, i don't even want begin following the chain of dependencies
>>
File: anal beads.png (11KB, 445x97px) Image search: [Google]
anal beads.png
11KB, 445x97px
jesus christ
>>
>>56513597
What's the time span? What does the code do?
>>
>>56513597
https://www.youtube.com/watch?v=qzwqSaeqofg
>>
>>56508415
Check ORDER BY line syntax
>>
>>56513647
That's less than 20 seconds.

It's an ETL service I'm building, and one of the tables is many GB in size, and I haven't bothered to segment the load for massive tables yet.

About 28 million rows, each containing blob data.
>>
>>56508415
I posted the answer to this last night; did you not see it or did it not work?
>>
>>56513597
GC everybody
>>
>>56513796
What's the problem? looks pretty good to me.
>>
I started to like C++ instead of C. Am I becoming pajeet?
>>
Quick name five features your favourite language has that c# doesnt.
>>
>>56514211
channels, everything related to CSP
>>
>>56514211
Computational expression
no shitty brackets everywhere
pipe-forward operator
immutability by default
good scripting support
>>
>>56514312
>>56514276
Really scraping the barrel
>>
>>56514276
>channels
Pretty sure wcf.net has them
>>
>>56514330
What do you mean? What the fuck are you looking for? You asked a question and I answered it completely.

Do you want people to tell you that C# is the best and no language has any useful features that C# doesn't have, so you don't need to bother learning anything new?
>>
>>56514276
>channels
Depending on what your arbitrary definition of channels could be, C# has them via WCF.
>>
>>56514211
Lifetimes
Smart pointers
Ownership mechanism
zero-cost abstractions
move semantics
threads without data races
pattern matching

I might be wrong on few. I don't know C# too well.
>>
is there a c++ implementation of an rtree wich data dimensionality isn't decided at compile time?
>>
>>56514211
Higher kinded types
Higher rank types
Existential types
Type families
Type classes
>>
>>56514418
C# has pattern matching now, but it's pretty primitive if i recall correctly.
>>
>>56513522
https://stackoverflow.com/questions/5306745/getting-only-necessary-headers-out-of-boost
>>
>>56514457

The good shit got pulled from C#7. I'm pretty pissed about it.
>>
I was wondering, what is the most common or best way to make a program, say a simple terminal application, multilingual? switch case everywhere, string array lookup, etc.
>>
Is it possible to initialize a struct and variable length array in C on the stack in a function, then pass that array to the struct and pass that struct as a return value? Or will everything disappear and I would have to use pointers and malloc?
>>
>>56514350
I want features that aren't outright retarded claims of superiority (fuckin braces, really?)
Like this guy has
>>56514418
>>
>>56514486
Are you kidding : I?? Why??

desu I didn't like a lot of the C#7 stuff. Felt like it was really opening the gates on feature bloat. I'd rather they do small number of really well done features than loads of weird syntactical sugar features.
>>
>>56514500
Load it from a file after the user chooses language
>>
>>56514517
>(fuckin braces, really?)
It's one of my favourite features of F#. it's one of many reasons F# code is massively more concise and readable than C#.

When I use C#, those 5 I listed are some of my most missed features.
>>
>>56514418
>Smart pointers
Doesnt make sense in the context of the language does it?

>Lifetimes
I believe .net contains libraries for them.

>pattern matching
c#7
>>
>>56514549
bracket vs white space is a style not a feature.
>>
>>56514562
Better style is a feature. Improved readability is a practical advantage.
>>
>>56514532

It would make switches so much more useful. You would have been able to replace complicated if-else ladders with concise switches, cutting down a ton of code.

The new tuple and record stuff is alright, though.
>>
>>56514654
time to switch to F# :^)
>>
>>56514672

N-no!!
>>
Which programming languages do you guys think are naturally tersest for general-purpose programming, stack-based languages or "mathy" languages, with powerful matrix operations and such?
>>
File: f-intro-4-638.jpg (28KB, 638x479px) Image search: [Google]
f-intro-4-638.jpg
28KB, 638x479px
>>56514725
Beautiful clean code and based functional features await :^3
>>
>>56514760
I'll say Ocaml/F#. But it really depends on what you mean by general purpose. Haskell and C could be the most terse for certain kinds of projects.
>>
>>56514771
Haskell:
add = (+)

(works for any num)
>>
>>56514771
Just because a language allows you to define everything in the global namespace doesn't mean you should.
>>
>>56514819
I agree. But it's nice for it to be optional and not mandatory even for tiny projects.
>>
>>56514811
That works in F# too.
>>
so, i've been using C for some time (last thing i learn was pointers and memory allocation, stacks, etc) but now i need to learn some objected oriented language
my teacher said we could pick any language we want
should i go for phyton, c++. c# or java?
>>
>>56514865
C++
>>
>>56514771

C#:
int add(int x, int y) => x + y;
>>
>>56514577
White space is inferior though
>>
>>56514855
let add = (+)

ignore (add 3 4)
ignore (add 5.3 2.4)
>>
>>56514876
Won't compile
>>56514877
wrong
>>
>>56514500
Instead of writing string literals with english texts use something like "#BROADSWORD_FLAVOR_TEXT" "#YOU_LOSE". Then make singleton class that on start will load proper file "en.lang", "fr.lang" etc. formatted in some easy to parse way like:
YOU_LOSE=You lost the game!
YOU_WIN=Congratulations! You Won!
...

Then make static method to translate from strings like "#YOU_RECEIVE 10 #GOLD!" into "You've received 10 gold!" and use it every time you want to display something.
It's good practice for online programs even for reducing data size.

>>56514551
>Doesnt make sense in the context of the language does it?
It does. It doesn't matter if language allows you some tricky way to do it while whole standard library and 3rd party libraries choose to use much slower and less efficient garbage collecting.
>I believe .net contains libraries for them.
This has to be supported on language level.
>c#7
They are nowhere near as robust as in Rust.
#[derive(Debug)]
struct Foo{
x: Option<i32>,
y: Option<i32>,
z: Option<i32>,
}

fn main() {
let check = |x| {
match x {
Foo { x:Some(name @ 10 ... 100), .. } => {
println!("A {}", name);
},
Foo { x: Some(ref name), y:Some(1 ... 10), z: None } => {
println!("B {}", name);
},
Foo { x: Some(ref name), y: Some(_), z:Some(_) } => {
println!("C {}", name);
},
_ => {
println!("{:?}", x);
}
}
};

check(Foo{x:Some(50), y:None, z:None});
check(Foo{x:Some(123), y:Some(10), z:None});
check(Foo{x:Some(456), y:Some(2), z:Some(5)});
check(Foo{x:Some(5), y:None, z:None});
}
>>
>>56514876
Slightly more verbose
func<int, int, int> add = (int x, int y) => {return x+y} 
>>
>>56514798
>what you mean by general purpose
Types, data structures, projects that are mid- to large-sized, stuff you usually write for a typical desktop application.

Most languages that brag about terseness seem focused primarily on writing processing tasks tersely (maps, folds etc.), but few look like they'd scale reasonably enough for practical applications.
>>
>>56514908
>stuff you usually write for a typical desktop application.
Probably F#/Ocaml. For actual real world shit I would say F#.
>>
How do i make retrofit use okhttp? do i just include them both to the project?
>>
>>56514865
Ruby, it's more OOP than any of the ones you mentioned.
>>
>>56514908
Haskell
>>
>>56514927
What are OCaml's shortcomings?
>>
>>56514900
>Won't compile

It will as long as it's in a struct/class.

Here's a minimal example

class Program {
static int add(int x, int y) => x + y;

static void Main(string[] args) {
System.Console.WriteLine(add(5, 2));
}
}


This is a valid program.
>>
>>56514957
+.
>>
>>56514957
I'm not an expert, but the ecosystem seems much much worse than F#'s. I think that would be the main thing. F# works really well with everything .NET, and can interop with native libraries really easily like C# can.

I think that's the main issue for me. Though OCaml seems like a nicer language on a technical level.

>>56514974
Where's your namespace definition?

Here's F#
let add x y = x + y
add 5 2 |> printfn "%i"
>>
>>56515020
>Where's your namespace definition?

Don't need it.
>>
>>56515033
Is that new? Maybe i just never noticed that in C#..
>>
>>56510071
>>>56509858
>iirc the stdc calling convention returns values via the stack, so when you dont do "return x;", you just get some uninitialized data, or some junk from a previous write

Ummm, no? There is no 'stdc' calling convention, it varies by architecture. On x86 the integer return value is stored in eax or (rax on amd64). You get what happened to be in that registers.
>>
>>
>>56509882
>What are you talking about, that shouldn't even compile.

Yes it compiles, because C is meme language, with no real rules. C++ at least tries to be strict. C++ >>> C
>>
>>56514211
Safe and performance-impact-free memory management via syntactically-defined ownership
A total lack of null pointers
Performance competitive with C
Templates / generics which let you specify bounds on the types you can use, which then lets you call the type argument's functions inside your generic.
Algebraic enums
CoC :^)
>>
>>56515020
>Where's your namespace definition?
You don't have to have one.

It's also kind of silly to compare two one-line programs.

The extra ~1-4 lines of boilerplate become exponentially less significant as you add lines of code to the document, and they add useful explicit directives to the scope and design of the program.
>>
>>56515044

I actually didn't even know it was possible until Ruby mentioned it the other day. It's just not something I've ever done because namespaces are an integral part of software design in C#.
>>
>>56515088
>:^)
At first I thought you meant Calculus of Constructions and was having a hard time figuring out what language that could possibly be.
>>
>>56515088
>Performance competitive with C
>>
>>56515093
>The extra ~1-4 lines of boilerplate become exponentially less significant as you add lines of code to the document
Of course. But F# is still generally much terser than C# in large programs. Often something like 50-80% less lines of code depending on what kind of work is being done.
>>
>>56515115
>At first I thought you meant Calculus of Constructions
That's exactly what I thought when /g/ started memeing about that shit.
>>
>>56508836
You can use a terminal in emacs too
If you use i3 or something similar it's easy to switch to your terminal though
>>
>>56515126
>50-80% less lines of code
This is a ridiculous exaggeration, and I'm willing to duplicate a 100-200 LoC project that you've written in C# in order to refute this.
>>
>>56515126
Maybe it warrants a more illustrative comparison than >>56514771 then.
>>
>>56515156
I'd like to see that
>>
>>56515156
>This is a ridiculous exaggeration
Not even close. I was skeptical as fuck when i heard people claim this shit too, but in practice it's true. 50% is easy. If you really push for clean code than 80% often happens.

>I'm willing to duplicate a 100-200 LoC project that you've written in C# in order to refute this.
Do that absolutely. And i'll try optimise the F# and see if i can improve the output.

Though i better claim now i might not be able to because my hands are fucked today. Sounds fun though.
>>
>>56515160
Of course. I wasn't trying to illustrate a definitive comparison with that picture. I guess someone thought i was and got upset though.
>>
>>56515120
https://benchmarksgame.alioth.debian.org/u64q/rust.html
>>
>>56515305
>only trivial tasks

captcha is "TASTE THE DIFFERENCE"
>>
>>56508396
Where do I go after finishing K&R though? Really stumped on what to do project-wise and book-wise.
>>
>>56515366
WHATEVER YOU WANT! ENJOY THE SWEET SWEET TASTE OF FREEDOM!!
>>
>>56515214
Oh, I was wanting you to write something in F#, so that I could try to duplicate it with brevity in C#.

Unfortunately, I don't have anything on hand that isn't written for my employer, so there's lots of identifying information.

I fear that if I write something in C# using this or that library, you're going to complain about there not being an F# equivalent.
>>
>>56515366
That's it.

After K&R, you're ready for a job and a Linux kernel.
>>
>>56515468
F# can easily use C# libraries, just not the other way around.
>>
fucking hate functions like this
def foo (x):
def bar (z, x = 0):
return z + x
return bar(3, x)

foo(2)


How is it more efficent when the fucking code executes all over the place
>>
>>56515366
Forget everything you read and read C Programming: A Modern Approach
>>
>>56515501
What the fuck does that code even do?
It's fucking illegible
>>
>>56515530
Returns the int of 3
>>
>>56515540
what?
>>
File: rgdf.jpg (28KB, 600x579px) Image search: [Google]
rgdf.jpg
28KB, 600x579px
>>56515540
>the int of 3
>>
>>56515468
>I fear that if I write something in C# using this or that library, you're going to complain about there not being an F# equivalent.
Don't worry about me freindo. Go for it.
>>
>>56515548
>>56515540
5, my bad. Doing alot of these shit problems
>>
>>56515501
You mean nested functions? Those can have a point, though your example obviously makes no sense.
>>
>>56511295
GHC is probably better yes, but its still very immature for most uses.
.net on the other hand...
>>
>>56515565
kk, I've got a bot project at home, I'll post it when I'm not at the office. ETA 5 hours.
>>
NEW THREAD!!

>>56515662
>>
>>56515623
It was from the professors exercise so i didnt write it,i just had to provide what it returned. Im struggling with functions pretty badly at the moment. I really dont like how its not read linear (atleast in my eyes)

but
Foo(2) is global
function foo(x) = 2
nested function bar already is defined as (3 , x)
so the return is 3+ 2 = 5
>>
>>56515366
learn some other, high level language and become productive.
my suggestion: Go (golang). it's a bit restricted, but it's awesome. go to https://tour.golang.org , follow the guide, install Go locally and then read the docs.
don't ever use C again.
>>
>>56515733
your "explanation" is pretty WAT

But I guess the "exercise" is purposely meant to be obtuse and test your knowledge of Python syntax, like the unassuming nub (>>56515540) will think x = 0 in bar's arguments means z + x returns 3 + 0.
>>
File: distribuidora.png (212KB, 1347x640px) Image search: [Google]
distribuidora.png
212KB, 1347x640px
Clean Data
Thread posts: 319
Thread images: 21


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