[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: 314
Thread images: 40

File: i eat dpt for lunch!.jpg (68KB, 800x500px) Image search: [Google]
i eat dpt for lunch!.jpg
68KB, 800x500px
old thread: >>62058143

Friendly reminder that declarative programming (SQL, Haskell, etc.) is not real programming!
>>
Too soon. Fuck off, faggot.
>>
Is Haskell better than Python?
>>
>>62066877
That book is funny in that sense it has very little to do with AI.
>>
>>62066901
Yes
>>
File: 1483073157801.jpg (110KB, 1280x720px) Image search: [Google]
1483073157801.jpg
110KB, 1280x720px
Employed Haskell programmer here :)
>>
>>62066877
>Friendly reminder that declarative programming (SQL, Haskell, etc.) is not real programming!
says who
>No "What are you working on, /g/?"
Half of a shit thread.
>>
>>62066918
Is your job to calculate yearly fedora expenses?
>>
>>62066877
>declarative programming (SQL, Haskell, etc.) is not real programming!
WRONG
>>
>>62066877
Please don't use pictures of my wife to shitpost
>>
>>62066901
>is a statically typed functional language better than a dynamically typed poo language
guess
>>
>>62067061
I'll guess the language that is actually used is better, sweetheart. ;)
>>
>>62067075
wrong
>>
>>62067061
can u translate to brainlet pls
>>
>>62067088
Not an argument, just the automatic gainsaying of what I said.
>>
>>62067101
The translation is: I don't like Python's programming paradigm, so I'll shit on it, even though it's one of the most successful languages that has ever existed.
>>
>>62067061
Python
>>
>>62067061
Why is Haskell irrelevant if it's so good?
>>
>>62067138
310, newfriend
>>
File: 1494719619461.png (10KB, 645x773px) Image search: [Google]
1494719619461.png
10KB, 645x773px
this is how I feel while I read /dpt/ why do I do it to myself?
>>
>>62067125
Don't worry, the free market will fix it.
>>
>>62067161
So you grow smarter.
>>
File: 1495635065747.png (127KB, 601x508px) Image search: [Google]
1495635065747.png
127KB, 601x508px
>>62067166
It's working!!
>>
>>62067125
why is javascript everywhere if its trash?
>>
File: 1476563454537.jpg (166KB, 969x1024px) Image search: [Google]
1476563454537.jpg
166KB, 969x1024px
What language lives closest to Bushido code?
>>
>>62067166
>>62067184
You won't become smarter by reading /dpt/, but you'll feel like it and will start behaving smugly because you like some obscure esoteric language and hate on OOP.
>>
File: 1481352717880.jpg (33KB, 300x375px) Image search: [Google]
1481352717880.jpg
33KB, 300x375px
>>62067196
i don't even understand the words
>>
English dubbed anime is better than Japanese subbed anime.
>>
>>62067196
>hate on OOP
Even the people who like OOP still suggest using it sparingly
>>
>>62067138
you can find out by going to https://a.4cdn.org/boards.json and reading the 'bump_limit' field
>>
>>62067117
That must mean JS is the epitome of programming language
>>
File: 1370464392195.jpg (30KB, 366x408px) Image search: [Google]
1370464392195.jpg
30KB, 366x408px
>>62067222
You did not deserve trips for that post
>>
>>62067187
Because there's no other embedded in browser language.
>>
File: 1480525355082.png (35KB, 365x367px) Image search: [Google]
1480525355082.png
35KB, 365x367px
>>62067214
>mfw I come here to read everyone elses shitty code, laugh and offer no help
>>
>>62066877
I used to do Java programming while in highschool. I want to get back into programming now but can't figure out what language I want to learn. Any recommendations for a beginner?
>>
>>62067223
Everything has a proper use case anon, saying that doesn't mean you hate something.

Functionaltards ignore that and seem to preach their favourite paradigm as the only valid one and a silver bullet for all problems, when as a matter of fact it is not. It too must be used sparingly, only when it in fact is the proper tool to tackle the problem at hand.

Hating on a single paradigm is idiotic.
>>
>>62067252
There's VBScript.
>>
>>62067265
Why not stick with Java?
>>
>>62067280
>
>>
>>62067282
I might, but is Java still useful today? I want a language that can actually do stuff.
>>
>>62067265
Just learn a couple, each from different paradigms, but learn them deeply. Don't make the mistake of hopping around languages, just stick with one and master it, but do that for a couple that are different. Something like: Java, Haskell and some scripting language like Ruby.

If you go that route, I can easily recommend two quick tips: Use 'stack' instead of 'cabal' for haskell, and use rbenv for ruby.
>>
>>62067338
http://www.codingdojo.com/blog/9-most-in-demand-programming-languages-of-2017/
>>
>>62067340
>use rbenv for ruby
this, rvm is trash
also pry is better than irb
>>
What was your first programming language?
How did it influenceon your life?
Do you still like it?
>>
>>62067369
LOGO
>>
File: faded_cuh.jpg (68KB, 1280x720px) Image search: [Google]
faded_cuh.jpg
68KB, 1280x720px
who here /sipping/ while coding?
>>
>>62067369
delphi pascal
>>
>>62067369
BASIC
>>
>>62067369
c
I find non c family languages strage at a first glance
kinda, cpp is more productive tho
>>
>>62067387
Go to bed Tyrone
>>
>>62067369
C++, but that was just blindly following like 3 or 4 tutorial videos, feeling good about myself. Then I learned Java in Uni, and now I find all dynamically typed syntax disgusting and consistently scoff at non-compiled languages.
>>
>>62067434
Dynamically typed languages are fine until you have a project with more than 2 developers or one that last more than 3 months.
>>
>>62067359
Any recommended IDE's? I used to use a basic text IDE called RTP Java IDE on Windows. I would like something for Linux Mint Cinnamon
>>
>>62067338
https://kotlinlang.org/
https://blog.jetbrains.com/kotlin/2017/05/kotlin-on-android-now-official/
>>
>>62067387
fuck off, web developement is not really coding, DaKwan.
>>
>>62067484
for beginners I always recommend a basic text editor like vim, nano, or sublime text and to compile on the command line. intellij community is pretty comfy though if you want a full ide for whatever reason
>>
Just finished few emacs functions that can create new project, compile the current file into shared library, manage linking between files.
Now I just need to create main C program that watches for the lib directory and on file update tries to load/reload the library.
Soon I'll be live coding C.
>>
File: s.png (117KB, 1680x1050px) Image search: [Google]
s.png
117KB, 1680x1050px
/dpt/-chan, daisuki~

>>62066877
Crafted a shitty game of life. it's now done and i need something else to do.
>>
>>62067369
Technically C. When I was 13 I tried to learn it off a book which told me to write a simple hello world program and then "compile it". I tried everything I could think of to compile it, but MS word, notepad, cmd, etc could not do it. A few years later when I learned java in high school I found out that the book was supposed to come with a cd that had a compiler, but it didn't and the text never mentions it. Fuck that book.

So the first one I really learned was java, and its biggest influence was the opinion that IDEs are for convenience, and should thus offer autocomplete functionality. Though, I really only care about that for object orientated languages. When working with C, assembly, HDLs all I really need is syntax highlighting.
>>
>>62067369
python
I learned programing
no, I actually hate it
>>
>>62067369
Sinclair ZX 48k Spectrum Basic.
It's the reason I'm a professional programmer now.
No, it's not the best language on the machine. Hell, it's not even the best Basic on the machine.
>>
Lets say you're hiring for an entry level programing job with minimum credential requirements.

The main buffer will be a test of your own devising. What do you ask them to do to weed out the trash?
>>
>>62067665
invert a binary tree.
>>
>>62067665
Write a simple program that shuffles a deck of playing cards.
I don't even care if he finishes it, I just want to know how he would write one.
If he's clueless or if he starts talking about some non-standard npm package to do it for you, show him the door.
>>
>>62067545
>vim
>basic text editor
>>
>>62067665

Implement bubble sort in C under a "no internet access" policy. Those unfamiliar with the language will be given a sheet with all the relevant syntaxis.

If they don't know what bubble sort is...
>>
long time;

heheheeheh
>>
>>62067745
> If they don't know what bubble sort is...
Then what? It's an inefficient algorithm with no use outside teaching, why would you expect someone to know it by heart?
>>
>>62067738
hit 'i'
use like nano
>>
>>62067695
>binary tree
wtf is that
>>62067720
how the fuck are you supposed to "shuffle" cards in a computer

>>62067665
Make sure they're familiar with JavaScript
>>
>>62067829
Where are the menus?
>>
>>62067214
Literally just google stuff, grow your noggin
>>
>>62067835

Pseudo-randomize an array of 52 items if you prefer the terminology.
>>
>>62067665
implement bubble sort in haskell under a "no internet access" policy. Those unfamiliar with the language will be given a sheet with all the relevant syntaxis.
>>
>>62067807
>with no use outside teaching.
You would not get hired.
>>
File: wtfrecursion.png (45KB, 522x439px) Image search: [Google]
wtfrecursion.png
45KB, 522x439px
someone pls explain to this brainlet how does this recursion work
>>
Alright how about this?

PROGRAM Newton
USE double
IMPLICIT NONE
REAL(KIND=DP) :: target, current
REAL(KIND=DP), DIMENSION(5) :: previous
INTEGER :: i, k
mainloop: DO
PRINT *, 'Type in a real number'
READ (*, *, IOSTAT=k) target
IF (k < 0) THEN
STOP 1
ELSE IF (k > 0) THEN
PRINT *, 'Some sort of horrible I/O error'
STOP 1
END IF
IF (target .EQ. 0.0_DP) THEN
PRINT *, 'The cube root of zero is, er, zero'
CYCLE
END IF

current = 1.1*CMPLX(target,KIND=KIND(0.0))**0.3
DO i = 1,5
previous(i) = 0.0_DP
END DO
loop: DO
current = current - &
value(current,target)/derivative(current)
PRINT *, current
DO i = 1,5
if (current .EQ. previous(i)) EXIT loop
END DO
DO i = 1,4
previous(i+1) = previous(i)
END DO
previous(1) = current
END DO loop
PRINT *, current**3, current**3.0_DP
END DO mainloop

CONTAINS

FUNCTION value (arg, targ)
USE double
IMPLICIT NONE
REAL(KIND=DP) :: value, arg, targ
value = arg**3-targ
END FUNCTION value

FUNCTION derivative (arg)
USE double
IMPLICIT NONE
REAL(KIND=DP) :: derivative, arg
derivative = 3*arg**2
END FUNCTION derivative

END PROGRAM Newton
>>
>>62067797
let go;
>>
>>62067961
>end
>::
>CAPS LOCK IS CRUISE CONTROL FOR COOL
It's shit.
>>
>>62067695
lmao, is the Homebrew guy still salty about not getting hired at Google because he couldn't do that on a whiteboard?
>>
>>62067961
Is this how modern Fortran looks like or is it some ancient shit?
>>
Do you ever get the chance to use Modern C in the real world? Or is ANSI C still the standard?
>>
>>62068014
That's modern one. Ancient Fortran has fixed spacing and labels.
>>
>>62067880
void randomizedeck (int deck[]) 
{
int randNum;

for (int i = 0; i < 52; i++)
{
randNum = rand() % 52;
swap(deck[i],deck[randNum]);
}
}

did I pass
>>
File: 1463363949111.jpg (36KB, 511x509px) Image search: [Google]
1463363949111.jpg
36KB, 511x509px
>>62067143
Anime website
>>
>>62068048
int deck[]

gtfo
>>
>>62067807

Fun fact. Most advanced sorting algorithms consist in efficiently breaking down large chunks of the array down to a size bubble sort can handle.
>>
Why haven't you developed an Isogeometric Analysis program yet?
>>
File: 1466257431636.jpg (440KB, 693x693px) Image search: [Google]
1466257431636.jpg
440KB, 693x693px
>>62068067
>anime
>>
>>62068184

Where do you think we are newfriend?
>>
>>62067665
Give them some partially obfuscated code that we need fixed and tell them to email us their solution within 1 week. Use all the solutions we like, and roll a d20 or d100 to choose one from that group to hire.
>>
what you think?

#include <gismo.h>

using namespace gismo;

//int main(int argc, char* argv[])
int main()
{
gsInfo << "Hello G+Smo.\n";

real_t a = 2.0; // a real number, ie. double

index_t b = 3; // an integer, ie. int

GISMO_ASSERT( a*b == 6, "This is an error, 2*3 should be 6.");

gsKnotVector<> kv((real_t)0, a, 1, b);

return 0;
}
>>
>>62068214
/dpt/

posting anime here is like if glossary store had vegetables on shelves next to cleaning powders.
Sure glossary stores are primarily for food but they have other sections that include, or have, 0 to do with food
>>
>>62068297
LOL
Get a job loser.
>>
>>62068297
>glossary
meant grocery
>>
>>62068044

Modern FORTRAN doesn't require caps on reserved words anymore.
>>
>>62068297

Stock images don't belong here either by that definition, but look at you go.
>>
function [ N dN ] = BsplineBasis( i,p,xi, knot )

basis=zeros(p+1,p+1); % this will contain the basis functions of everything of lower order

for c=0:p
if(xi>=knot(i+c) && xi<knot(i+c+1)) % do we lie within the interval xi_i<=xi<xi_(i+!)?
basis(1,c+1)=1;
elseif xi==max(knot) && knot(i+c+1)==max(knot) && knot(i+c)~=knot(i+c+1)
basis(1,c+1)=1;
end
if (p==0) % if the basis order is zero we have the fn directly
N=basis(1,c+1);
dN=0;
return
end
end

for b=2:p+1
start=p+1-b+1;
finish=1;
for c=start:-1:finish
basis(b,c)=BsplineBasisHighOrder(basis(b-1,c:(c+1)),xi, knot, i+c-1, b-1);
end
end

N=basis(p+1,1);

temp=p / ( knot(i+p) - knot(i) ) * basis(p,1);
if isnan(temp)
temp=0;
end
temp2=p / ( knot(i+p+1) - knot(i+1) ) * basis(p,2);
if isnan(temp2)
temp2=0;
end
dN = temp-temp2;

end
>>
>>62068347
There's no dedicated board for stock images, you dumbass.

Not to mention all you're really doing by defending anime here is embarrassing yourselves. Anime is for losers and virgins, we've been cringing hard this entire thread.
>>
>>62068412

>Anime is for losers and virgins
I repeat my question.
Where do you think we are?
>>
>>62068412
> Anime is for losers and virgins
I'm a virgin tho.
>>
rate my blackjack game!
void bj_state_recalc(struct bj_state *self, struct card ins)
{
if (self->count == self->limit) /* grow vector */
{
self->limit *= 1.5;
self->hand = (struct card *) realloc(self->hand, sizeof(struct card) * self->limit);
}
self->hand[self->count++] = ins;
self->score = 0; /* recalculate hand */
unsigned i;
for (i = 0; i < self->count; i++)
{
struct card *c = self->hand + i;
if (c->r + 1 == 1) /* ace */
self->score += (self->score + 11 > 21) ? 1 : 11;
else if (c->r + 1 > 10) /* face cards */
self->score += 10;
else
self->score += c->r + 1;
}
}
>>
>>62068433
Defiantly not >>/r9k/
>>
>>62068412
>using virging and loser as unironical insults.
You don't belong here.
>>
If you can't understand what this does, you really shouldn't be posting here:

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "NURBS.h"
#include <float.h>
#include "mex.h"


void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{

if(nrhs != 5) mexErrMsgTxt("You fool! You haven't passed in 5 arguments to the function."
"We expect it to be in the form [Nip] = NURBSBasis(i, p, xi, knot, weights)\n");

int c, k, p, m, i, numKnot, numWeights;

double *p_in, *m_in, *i_in;
double *knot, *xi, *weight;

double tol=100*DBL_EPSILON;

for(c = 0; c < nrhs; c++)
{
switch(c)
{
case 0:
i_in = mxGetPr(prhs[c]);
i = (int)*i_in -1;


case 1:
p_in = mxGetPr(prhs[c]);
p = (int)*p_in;


case 2:
xi = mxGetPr(prhs[c]);

case 3:
knot = mxGetPr(prhs[c]);
numKnot = mxGetN(prhs[c]);
m = numKnot - 1;

case 4:
weight = mxGetPr(prhs[c]);
numWeights = mxGetM(prhs[c]);

}
}

if(fabs(*xi-knot[numKnot-1]) < tol)
*xi = knot[numKnot-1] - tol;

double Rip, Nip, dRip_dxi;
double w_interp, dw_interp_dxi ;

int n = m - p -1;

double *N = (double *)malloc(sizeof(double)*(p+1));
double *dN = (double *)malloc(sizeof(double)*(p+1));
double **ders = init2DArray(p+1, p+1);

int span = FindSpan(n, p, *xi, knot);
BasisFuns(span, *xi, p, knot, N);
dersBasisFuns(span, *xi, p, p, knot, ders);

w_interp = 0.0; dw_interp_dxi = 0.0;

for(c = 0; c <= p; c++)
{
w_interp += N[c] * weight[span-p+c];
dw_interp_dxi += ders[1][c] * weight[span-p+c];
}

dersOneBasisFuns(p, m, knot, i, *xi, p, dN);

Nip = OneBasisFun(p, m, knot, i, *xi);

Rip = Nip * weight[i] / w_interp;

dRip_dxi = weight[i] * ( w_interp * dN[1] - dw_interp_dxi * Nip ) / (w_interp * w_interp);


free2Darray(ders, (p+1));
free(N); free(dN);

plhs[0] = mxCreateDoubleScalar(Rip); plhs[1] = mxCreateDoubleScalar(dRip_dxi);

}
>>
>>62068497
Why, is this your safe space?
>>
>>62068500
>undocumented code
sorry, pull request rejected
>>
File: cat.png (144KB, 600x811px) Image search: [Google]
cat.png
144KB, 600x811px
>>62068526
>>
>>62068526
Get fucked, normie
>>
>>62068526
not really, just pointing out you stand out like a sore thumb.
>>
>>62068563
>normie
Holy shit.

>REEEE
>REE
>do I fit in now guys?

It's "normalfag" btw you pseudo oldfag
>>
>>62068582
>CATCH UP WITH THE MEMES GRANDPA

>>>/9gag/
>>
>he doesn't write his programs manually in machine code
You people are pathetic.
>>
>>62067075
I think you should use python, haskell will be very hard for you
>>
>>62068412
There is no dedicated oil painting board either, but you don't see me posting any, do you?
You're literally bitching about a reaction pic solely because its from a nipenese cartoon.
>>
>>62067604
learn how to use static types
>>
File: laughing elf men.gif (354KB, 384x239px) Image search: [Google]
laughing elf men.gif
354KB, 384x239px
>>62068631
>he doesn't hard code his functionality into physical circuits
What's the point?
>>
>>62068683
no, static typing is handcuffing me.
>>
>>62068690

>Circuits
Mechanical computing or GTFO
>>
File: smugtree.jpg (85KB, 550x821px) Image search: [Google]
smugtree.jpg
85KB, 550x821px
>>62068690
>he doesn't weld his circuits from scavenged raw minerals
>>
>>62068734
>his computations aren't purely theoretical
>>
>>62068778
>he needs to compute
>>
>>62068500
> unironically doing ML in matlab
>>
>>62068804
>he needs
>>
hey fags
how do they implement collision system? dont tell me they have 13124352424 sized 3-d array for object placement.
>>
>>62068819
>he
>>
File: 1502125645412.jpg (730KB, 2583x4096px) Image search: [Google]
1502125645412.jpg
730KB, 2583x4096px
>>62068847
>she
>>
File: hiltrump.jpg (142KB, 1024x1022px) Image search: [Google]
hiltrump.jpg
142KB, 1024x1022px
who here gonna do the debug politics hackaton?

https://www.debugpolitics.com/

Programmers too have to withstand donald trump.
>>
where do i buy strawberry flavoured socks for programming in general? what cute socks do people use nowadays to improve their programming ability?
>>
bounding box (also know as hitbox)
>>
>>62068818
Spotted the brainlet.
>>
>>62068887
so this is an anti trump protest, right?
>>
File: trash.png (292KB, 708x910px) Image search: [Google]
trash.png
292KB, 708x910px
>>62068921
>>
what's a good book on learning JAVA? beginner through intermediate shit
>>
>>62067254
kek
>>
>>62068500
What is the point of the for loop with a nested switch? Can't you just write each case on its own without a for loop or switch?
>>
alright lads, listen up

normal fag here (you can clearly see it in the reddit spacing)

i just started comp sci in uni cause thats the new normalfag meme degree and i need you faggots to make comp sci seem appealing (post screen shots of you coding)

thanks
>>
Should I Ruby instead of Python for general-purpose dickery?
What about for employment as a codemonkey?
Why is Rails the only application of Ruby that has ever been attested in real life?
so many questions
>>
>>62069290
Wait nevermind, I'm retarded, each case falls through.
>>
>>62067369
Actionscript 2 @ 10 years old

who else used to go on youtube, steal the "How to make a platform game in flash AS2" tutorials, apply the scripts in the description on circles and squares, and upload them to Newgrounds as "betas" or "alpha demos"?
>>
>>62067369
QBASIC on MS-DOS.
My initial goal was to play games (of course), but that led to modifying the game logic, which eventually led to creating my own projects.
I do still have a fondness for BASIC-family languages, and the QBASIC editor is maximum comfort
>>
File: 1492870106236.jpg (211KB, 612x816px) Image search: [Google]
1492870106236.jpg
211KB, 612x816px
>get excited to make addons of game
>get tired of game before even starting
back to square one, aka no idea what to fuck to program
>>
File: anonymous.jpg (92KB, 640x480px) Image search: [Google]
anonymous.jpg
92KB, 640x480px
>>62069294
>>
>>62069386
A game lad.
It has many systems for you to learn.
>>
Reposting from the Linux thread, since I might be more likely to find someone who has gone through this:

I've switched my primary system over to GNU/Linux - but 85% of my experience programming has been with .NET C# on a Windows platform.

I understand that .NET Core is out and expanding, but there isn't much there for it (Console applications, web API.)

My other 15% is split between Java, and minimally C++.

Has anyone else made this transition, or have any ideas on how to cope with seemingly handicapping my self? I'd like to continue programming on GNU/Linux its just a bit difficult to kind of 'start over'.

Any recommendations on languages/libraries/frameworks that would make this less painful would be really appreciated (and friendly, if possible - I do understand I am an easy target).
>>
>>62068332
Modern Fortran seems like a nice language. Is in usage anywhere besides NASA?
>>
>>62069461
> I understand that .NET Core is out and expanding, but there isn't much there for it
I TOLD YA
I TOLD YA .NET CORE CAN'T BE VIABLE YET

Ahem.
What kind of programming do you want to perform in Linux?
>>
>>62069461
If you like C#, you might like Vala.
https://en.wikipedia.org/wiki/Vala_(programming_language)
>>
>>62069461
See if MonoDevelop works for you. It is also my understanding that Visual Studio 2010 works in Wine. No luck for Visual Studio 2017 or 2015. Virtual Box might work as well.
>>
>>62067369
HyperCard, but I was only a kid and never learned it properly. I still maintain that it's one of the best damn programming environments ever made. Apple royally fucked up in the 90s by not beating Tim Berners-Lee to making it a web standard.
>>
>>62069508
Vala is practically dead, there's no reason to waste time on it.
>>
>>62069508
Gnome says not to use Vala anymore and it has no active maintainer.
>>
>>62069461
You can transition to cross-platform .NET C# then with http://www.mono-project.com/. For C++ probably, if you aren't already, you will switch into using GCC for compiling instead of whatever Visual Studio had. On another note, since you're using them, how do C# and Java compare?
>>
>>62069494

In regards to "not quite ready" - it certainly is NOT ready for desktop development on _anything_ - including windows. Console applications have limited use, afaik there is no Gaming frameworks hitting it yet (SFML, SDL, Anything - i'd love to be proven wrong).

>What kind of programming do you want to perform in Linux?

I would love to answer this question - maybe some desktop applications (then I need to come up with ideas, of course!)

I was hoping there might be a list of "most wanted" applications or something floating around that people would like to see (much like GNU's priority list, just more scoped - i.e. not "a phone operating system, but open")

This comes back to my lack of ideas, and I understand this *really* impacts any ability for someone to recommend a language to start with.

I think might just be in a rut at this point and need a hobby offline and come back and just explore.

>>62069509

Visual Studio is fantastic application on Windows, and Mono might be a replacement for it. It just feels odd working on what is essentially a non-microsoft backed alternative to Core. (Much respect to the framework its self, i can't imagine the time and effort it would have taken to get that going)
>>
>>62069415
interesting lad

what are u programming?
>>
>>62067369
TI-84 Plus. Not kidding. I programmed Minesweeper and Battleship on it back in 1st year highschool, among other things.
>>
>>62067986
Story?
>>
language with no -0 is shit
>>
>>62069600
language with no integer is shit
>>
can someone explain quantum computing to me in 10 words or less?
>>
>>62069545

>How do C# and Java compare?

You're going to get a lot of people spitting back and forth about both sides on this one. I am very bias for C#. I started with Java in College (2010) and didn't like it out of the gate. My first job was Java and it just compounded my dislike for it.

C# has had Lambdas for much longer and just "feel" right, lots of short cuts that make code much easier to read, but again, anything I say in Pro for C# can be refuted by anyone that knows Java equally to what I know C#.

public string UserName { get; set; }


will create a Property with a getter and setter very easily. slap private in front of either of them and you have them scoped.

LINQ its self is a whole beast that i won't entirely cover here - I think its very powerful in its own right, maybe comparable to how things "just work" in Python


Dick simple case:

List<User> users = getUsers(); //whatever, populate the list

// Get all users that havne't confirmed their emails yet
var unconfirmedUsers = users.Where(x=> !x.EmailConfirmed).ToList();
>>
File: comfy.jpg (95KB, 564x786px) Image search: [Google]
comfy.jpg
95KB, 564x786px
my high performance computing class is basically just C

also it's full of grad students (90% indian of course) and the professor said that undergrad students do better than grad students in that course and he couldn't figure out why
>>
>>62067520
One day I will learn proper computer science with moneys I earn from this bastard discipline
>>
>>62069615
a collection of bits can be both 0 and 1 at the same time (superposition) and thus "theoretically" represent every possible combination of bits .
Using some very not well understood laws of the universe, like quantum entanglement, where you can predict the state of two bits no matter how far away they are from each other, you can make predictions about the bits themselves.
It's a fucking meme.
>>
>>62069386
>that pristine binding
this is just your screenshot copy, right?
>>
>>62069657
>some very not well understood laws of the universe
Maybe for you It is well understood in physics.
>>
>>62069484
calling fortran (or c) from R is fairly common
>>
>>62069615
nothing you will ever actually need. classical mechanics is enough.
>>
>>62069705
well done
>>
>>62069623
You'd like Java 8.
>>
>>62069623
I am not a fan of Java either, but someone had posted some good arguments and wanted to give C# and .NET a try.
>>
>>62069781
For now, if you're OK with targeting Windows only (WinForms/WPF), people should give .NET Framework 4.X a shot, its pretty great (IMO).

If you need something cross platform *AND* its an API/Web - .NET Core is (relatively) ready for that, but not much beyond that,
>>
>>62069924
and of course, there is Mono/Xamarin alternatives.
>>
What is the official terminology for "project with split files" and how can I begin understanding this?

Example: https://github.com/vichan-devel/vichan
>>
>>62070034
https://en.wikipedia.org/wiki/Separation_of_concerns
>>
File: 1502448176807.jpg (111KB, 740x740px) Image search: [Google]
1502448176807.jpg
111KB, 740x740px
>people make games in JavaScript
wtf man
>>
import java.io.*;
import java.net.*;
import java.awt.*;
import java.awt.event.*;

import javax.swing.*;

public class Client extends JFrame{

private JTextField userText;
private JTextArea chatWindow;
private ObjectOutputStream output;
private ObjectInputStream input;
private String message = "";
private String serverIP;
private Socket connection;

//constructor
public Client(String host){
super("Client");
serverIP = host;
userText = new JTextField();
userText.setEditable(false);
userText.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent event){
sendMessage(event.getActionCommand());
userText.setText("");
}
}
);
add(userText, BorderLayout.NORTH);
chatWindow = new JTextArea();
add(new JScrollPane(chatWindow));
setSize(300, 150); //Sets the window size
setVisible(true);
}

//connect to server
public void startRunning(){
try{
connectToServer();
setupStreams();
whileChatting();
}catch(EOFException eofException){
showMessage("\n Client terminated the connection");
}catch(IOException ioException){
ioException.printStackTrace();
}finally{
closeConnection();
}
}

//connect to server
private void connectToServer() throws IOException{
showMessage("Attempting connection... \n");
connection = new Socket(InetAddress.getByName(serverIP), 6789);
showMessage("Connection Established! Connected to: " + connection.getInetAddress().getHostName());
}
}
>>
>>62070118
>not knowing web browsers are the only easy and portable way to make graphical applications
It's sad world but QT sucks and there's really no alternatives.
>>
>>62070118
>You could write a C/C++/Java program, but it can take a lot of development time to get even a first-draft program
>>
>>62070154
So if I wanted to make a simple 2D game, would I use html5 canvas or webgl?
>>
>>62070168
with your attitude you should go asm
>>
Thoughts on this spin button?

from gi.repository import Gtk


class SpinButtonWindow(Gtk.Window):

def __init__(self):
Gtk.Window.__init__(self, title="SpinButton Demo")
self.set_border_width(10)

hbox = Gtk.Box(spacing=6)
self.add(hbox)

adjustment = Gtk.Adjustment(0, 0, 100, 1, 10, 0)
self.spinbutton = Gtk.SpinButton()
self.spinbutton.set_adjustment(adjustment)
hbox.pack_start(self.spinbutton, False, False, 0)

check_numeric = Gtk.CheckButton("Numeric")
check_numeric.connect("toggled", self.on_numeric_toggled)
hbox.pack_start(check_numeric, False, False, 0)

check_ifvalid = Gtk.CheckButton("If Valid")
check_ifvalid.connect("toggled", self.on_ifvalid_toggled)
hbox.pack_start(check_ifvalid, False, False, 0)

def on_numeric_toggled(self, button):
self.spinbutton.set_numeric(button.get_active())

def on_ifvalid_toggled(self, button):
if button.get_active():
policy = Gtk.SpinButtonUpdatePolicy.IF_VALID
else:
policy = Gtk.SpinButtonUpdatePolicy.ALWAYS
self.spinbutton.set_update_policy(policy)


window = SpinButtonWindow()
window.connect("delete-event", Gtk.main_quit)
window.show_all()
Gtk.main()
>>
>>62070168
<style>
.pixel { width:1px; height:1px; }
</style>
<div class="pixel"></div>
>>
HTML and CSS sucks! JS GUI library based on canvas / webgl when?
>>
Are programming socks a meme or do they actually work?
>>
>>62070296
>>>/lgbt/
>>
>>62070296
my socks always fall apart by the end of the day if i make them my self desu
>>
>>62067369
Lua.
Take a wild guess.
>>
>>62070232
soon everything will be on js
soon
>>
File: c64.gif (2KB, 640x400px) Image search: [Google]
c64.gif
2KB, 640x400px
>>62067369
C64 BASIC
Honestly I was only 7 years old and could not do much more than simple loops and primitive vector graphics

The first language that I learned properly was C on MS-DOS. I had a lot of fun making games, wrote my own keyboard interrupt handler, own timer handler (because the default timer ran at useless 18.2 Hz IIRC), direct blitting to MCGA mode. I still remember the video memory base address, 0xA0000. Generally there wasn't much operating system between you and the hardware. Most games only used DOS for file I/O. Everything else, including keyboard handling, was custom IRQ handlers, bypassing DOS.

Then I was set back for years when Windows 95 came out, I "grew up" and stopped making games for some reason. That was my biggest mistake. I was good at low level coding. I sucked hard at OOP GUI programming.
>>
>>62070154
>Qt sucks
Yeah, the gazillion JS frameworks and the clusterfuck that Electron is are certainly better.
>>
>>62067369
LOGO and Just Basic.

The influence? I have no idea. I dislike those languages.
>>
File: clinical-screen-retinawp-fx.jpg (627KB, 1920x1200px) Image search: [Google]
clinical-screen-retinawp-fx.jpg
627KB, 1920x1200px
>>62070525
>>62070154
JavaFX is underrated
>>
>>62070350
>Take a wild guess.
On what? Why did you learn it? Probably making WoW addons. How did it influence your life? Made you even more of a nerd. If you still like it? Probably since you can now even customize master race media player mpv with it.
>>
File: PSIasm_04.jpg (825KB, 1919x1199px) Image search: [Google]
PSIasm_04.jpg
825KB, 1919x1199px
>>62070561
https://jaxenter.com/20-javafx-real-world-applications-123653.html
>>
>>62070503
Ever hear of PICO-8? It's lua (barf) but it looks like a fun way to do that sort of thing.

I kind of want to make something like that, but with C. I just haven't used an actual old-fashioned PC enough to understand what makes that stuff good.
>>
>>62070576
Actually, it was Roblox scripting.
>>
>>62070561
>>62070603
It is enterprise wet dream. Targets the lingua franca enterprise language, has complex licensing allowing commercial use (and which only makes sense to lawyers), no public development and great support when on contract. If I was running a big corporation I would considered it.
>>
reading on collision math bros??
>>
>>62070604
The simplicity and the technical limitations is made old computers good. They were simple enough to be understood fully.

Also it's much easier to be creative with a restricted set of tools, like 320x200 graphics with 256 colors.

TempleOS tries to emulate that playful way of programming

You can still program playfully today. Limit yourself to a set of tools and limit your scope.

Star Wars IV was filmed in an actual desert, Star Wars V in actual ice and snow. The adversity the crew experienced transpires in the final result. The Star Wars prequels however were mostly shot in air-conditioned green screen studio, and it shows.

Art through adversity
>>
What did Rustfags mean by this?
https://github.com/redox-os/games/blob/master/src/commie/main.rs
>>
>>62070727
>Redox isnt even GPL
>>
File: bug.gif (274KB, 976x576px) Image search: [Google]
bug.gif
274KB, 976x576px
>add velocity
>calculate collision penetration
>penetration is only from West, not from both West and East, so do not die (and even if penetrations WERE opposing, their absolute value sum would need to overcome DYING_PRESSURE for hero to actually die)
>fix position
>fixing position results in other collision with other hero but from the other back
>tick (logical frame) end
>the other tick loop repeats itself, just this time the penetration is from the East, because last collision resolution made it collide with the other hero
>repeat ad infinitum
>>
>>62070727
Americans are retarded, nothing new.
>>
haha
I am in a math programme and sometimes I forget what programmers consider "math"
it's really just wow
pretty pathetic :)
>>
>>62070772
Is the dark red rect movable? If so, shouldn't force be applied to it as well and push it back a bit until both can fit right to the red wall?
>>
Can we all agree that Javascript is the best first language to learn for beginner programmers?
>>
>>62070842
no
>>
>>62070842
no
>>
>>62070842
no
>>
>>62070721
> Also it's much easier to be creative with a restricted set of tools, like 320x200 graphics with 256 colors.
If you mean to be creative with hardware, then yes.
>>
>>62070842
its literally the worst besides Lisp.
>>
>>62070837
This is my own little engine, there's no momentum, only simple collision logic.
So far everything was fine because I ensured nothing else except the current hero moves (and platforms, both those are static and push everything away) and you can't switch to other hero if:
>you are in air
>you are in platforms path (where platform is or is going to touch in the future)
>you are on platform
And also, you can't switch to a hero that's right below other hero, so it wouldn't be left in air when you move.

I guess I'll just stick with this bug, it's nonintrusive and rare.
>>
>>62070772
stealing this and posting it in agdg
>>
>>62070940
Wait a month and it will be under BSD2
>>
>>62070940
>nodev this desperate for (You)s
>>
>>62070921
>>62070881
>>62070864
>>62070856
ITT: Fedoratippers.

Javascript is the perfect language to ease beginners into the daunting world of code. Not too difficult to understand, yet teaches you about everything you need to know.
>>
>>62070979
The perfect language for beginners is the Turtle language.
>>
To. 62070979
not even bothering, please head back to /wdg/
>>
>>62070979

no you are thinking of java
>>
Speaking of video games, who here is excited for Godot 3?
>>
javascript is a functional language
in every sense of the word! =)
>>
>>62071020
I'm more excited to make games in openMW
>>
>>62071020
>>62071035
Why not make your own game engine?
>>
>>62067161
>Find a language and learn it
>Look at post in the thread talking about that
language
>Shitpost

CMON SON IT'S SIMPLE
>>
>>62071068
aggydaggy told me not to
>>
Been considering learning C++ (for realsies, I know how to get by, but not really in any sort of advanced degree). I am a C# software dev at a pretty ok level.

Would people suggest making engines etc. and so on in C++ and interfacing them (if needed) via a UI built in C#, or can you do the whole XML UI in C++ aswell?
>>
>>62071024
>this statement was typechecked in javascript
>>
File: dagoth ur.jpg (54KB, 388x480px) Image search: [Google]
dagoth ur.jpg
54KB, 388x480px
>>62071035
speaking of, just saw 0.42 is out.
https://www.youtube.com/watch?v=YKhfdOxkafo
https://www.youtube.com/watch?v=exWbXBAJYtY
>>
>>62071122
Really hope someone starts OpenOblivion soon.
>>
>>62071164
i'd take OpenDaggerfall tbqh
>>
Yet another A Tour of Go exercise passed
package main

import (
"golang.org/x/tour/wc"
"strings"
)

func WordCount(s string) map[string]int {
var ok bool;
sfields := strings.Fields(s)
m := make(map[string]int)
for _, v := range sfields {
_, ok = m[v]
if ok == false {
m[v] = 1
} else {
m[v] = m[v] + 1
}
}
return m
}

func main() {
wc.Test(WordCount)
}
>>
>>62070721
I know that the limitations made things interesting, the thing I struggle with more is, how do I simulate that sort of hardware design? I know so much about it, but it's still very difficult for me.
>>
>>62071186
rip DaggerXL
>>
>>62071068
Because if you knew anything about gamedev, you'd know that takes way too fucking long, at least in 3D. You're better off spending your time working on your game instead of reinventing the wheel.
>>
>>62070979
===
>>
>>62070979
the perfect language to make any beginners with enough braincells to rub together drop computer science, but yes, cater to laziness
>>
>>62071068
In the same way that you don't build an oven in order to cook dinner, you don't write an engine to make a game.

Sure, there's good ways of doing it from scratch, but it's always going to be a lot more work.
>>
Is there a single person here who can write intermediate programs in Fortran or Assembly?
>>
>>62071289
What's intermediate to you?
>>
>>62070842
i think he should go for it because he will notice what are for the other languages.
>>
>>62071289
I've been slowly learning 6502 via ye olde book by Rodnay Zaks, it's pretty interesting to me.

Why are you asking?
>>
>>62066877
Friendly reminder that haskell is not declarative.
>>
>>62071320
Just interested to know if there's anyone left here still interested in those language.
>>
>>62071294
programming level 26-50
>>
>>62071186
>>62071202
at least there's daggerfall for unity
https://www.youtube.com/watch?v=Qskg3LsTTNw
>>
>>62070689
>It is enterprise wet dream. Targets the lingua franca enterprise language, has complex licensing allowing commercial use (and which only makes sense to lawyers), no public development and great support when on contract. If I was running a big corporation I would considered it.
True, however there is a GPL'd implementation available now: OpenJFX
>>
I made this for a test. Can someone tell me why won't this compile correctly?
#include <stdio.h>


int main()
{
double tid;
int bake;
bake = 15;
tid = 1.5;
printf("%d", bake * tid);
}


I don't care if I lose decimal, is changing %d to %f the only way?
>>
Writing a naive dynamic memory allocator using free lists for my RTOS
>>
>>62071736
It is. Or explicitly cast the result to int.
>>
once I finish learning general scheme, what implementation should I learn? chicken, guile, and racket (if that's even scheme any more) seem like the major implementations.
so far I think I might go with guile since it was built from the ground up for C FFI, and since I wanna learn C next once I'm done with Scheme I though that might be a good idea
>>62071736
don't know much C, but I think %d is looking for an int, bake * tid evaluates to a double
cast the result and see if it works
>>
I have elements with three pieces of information (3 ints).
Each piece is uniquely identified by 2 of the information pieces.
The third information piece is needed for processing.

I’m thinking i’ll pack the two ints into one and store them in a vector of sets. I’ll have to do bit manipulation each time I process an item (but thats fast?)

Would this be significantly better (performance/readability-wise) than using a pair key and tuple value or (structs even)? It seems like a lot of copying/redundancy with pairs/tuples/structs.
>>
>>62069219

The first two Learn Java 8 booke by apress worked well for me.

>>62069321

Generally, I feel better using Ruby for personal code, even though I use Python very often for research.
>>
File: anime_pointing_dance.gif (483KB, 243x270px) Image search: [Google]
anime_pointing_dance.gif
483KB, 243x270px
>>62071736
The expression
bake * tid
is promoted to the higher priority of the two types. In this case, double is higher than int, so
bake * tid
is a double. This means that printf expects a double.
>>
>>62072138
Does sepples have some sort of type-inferring analogue to printf?
>>
>>62072150
template <typename T> ostream &ostream::operator<<(ostream &, T const &);
>>
File: 1472444179915.webm (3MB, 560x420px) Image search: [Google]
1472444179915.webm
3MB, 560x420px
>he's still coding in C++
>>
>>62069321
I prefer Ruby over Python because Ruby is much nicer to program in than Python. I don't really like Python as much because it really feels like a hacked together language, a lot of features were added on as an after thought, while Ruby has the feel that it only has a few simple construct which are powerful and everything works much better cohesively. Ruby is also closer to functional programming than Python and has much better OOP (OOP was really an after thought in Python).
>>
>>62071742
How are your free lists implemented?
>>
>>62072196
what's your alternative? C and rust are quite poor for certain tasks
>>
pro-tip for freshmen csci majors: make a github account, look up how to get a free upgrade for students, and then put all your class programs up in private repositories (for each class). when you finish the class, make the repo public
>>62072203
>I don't really like Python as much because it really feels like a hacked together language, a lot of features were added on as an after thought,
i don't even know ruby but you're right. it's not elegant at all and there's a lot of stuff that feels ad-hoc. i'm too busy to learn a language for fun now but i plan on learning ruby when i have the time
>>
>>62069321
python only accidentally got popular, while ruby got accidentally tethered to rails shit. Literally there are quite a few people who even go into rails without thinking they should even learn ruby. It's a fucking disgusting culture. So, people don't like to think, and they go "oh yeah, python is in college, ruby is for rails".

You should go with Ruby for your purpose, it's a much better language that has more to offer than rails. Check the ruby koans, and use pry, and use rbenv.
>>
>>62071289
I took a numerical optimization class and we used Fortran in it. I wouldn't say I'm an expert, but honestly it wasn't that bad. It's not like you're building a huge application, those super numerical problems are naturally very procedural anyway.
>>
File: 1502809370065.jpg (51KB, 500x375px) Image search: [Google]
1502809370065.jpg
51KB, 500x375px
I'm on the meme program learning train all they way. I've learned the basics to Ada, Fortran 08, Pascal, Rust, and Go, and now I want to learn COBOL, so does anyone have any books I can pirate to learn the basics?
>>
File: rubyfag.jpg (173KB, 634x640px) Image search: [Google]
rubyfag.jpg
173KB, 634x640px
>>62072203
>liking ruby
>>
>>62072323
put your trip back on ruby
>>
>>62072203
just use perl :^)
>>
File: RN-JKSTRCH-2.jpg (32KB, 500x500px) Image search: [Google]
RN-JKSTRCH-2.jpg
32KB, 500x500px
>>62072397
>>
>>62072400
didn't know you had a ruby tripfag here

>>62072395
you should consider MUMPS
>>
>>62072323
>liking any dynamic language that isn't a lisp
wew

W E W
>>
>>62072433
>liking Lisp
It's a useless language, and forces people learning it as their first to have to un-learn in and re-learn proper programming when they finally move on to better things.
>>
>>62069321
Learn Ruby to switch over to Crystal. The Crystal team plans on having 1.0 released around 2018, and with the maturity of the language, and the power it posses, expect a very nice following to occur. Besides, Crystal is like the fluff of Ruby, with the speed of any compiled language, it's a way better alternative to python imo-to
>>
>>62072446
>proper programming
you mean shitlangs like python, ruby and js? sure thing anon, that's "proper programming", dealing with bad language design decisions for the next 30 years
>>
>>62072479
>more dynamic trash
You are lost, please seek the light.
>>
>>62072465
>the speed of any compiled language
So it could be as slow as Haskell?
>>
>>62072498
lisp > java
>>
>>62072527
>shit > shit
astounding conclusion.
>>
>>62072500
What's gotten into your head?
Haskell isn't slow, it's just slower than C/C++.
>>
>>62072551
>Haskell isn't slow
yes it is.
>>
>>62072551
>What's gotten into your head?
Fast languages
>>
Scala
>can take ages to compile
>can't write code for you like agda and idris can
>>
>>62072500
Never touched Haskell, but if C is faster than Haskell, then Crystal should be faster. It's about as fast as C++, from my testing. The people claim a design goal is to be fast as C, though, so maybe 1.0 will increase speed? Think about it like this, you could write an OS in Crystal if you wanted to, and it wouldn't go any slower than a C++ OS.

One downside to Crystal is the fact that it isn't supported on Windows yet, but i dont use Windows so i dont really care.
>>
>>62072644
the ++ in C++ means better and more speed
>>
>>62072644
Is it statically or dynamically typechecked?

I have an moral opposition to dynamically typechecked languages.
>>
>>62066877

Why do languages like C# and Java to part input of numerical types. Both take strings fine, but you have to convert numerical input. C/C++ handles things fine.
>>
>>62072652
For certain applications C++ can beat C, but it's hardly idiomatic

>>62072718
Why do they have to parse it? C still has to use atoi and other functions, not sure what you mean. Every language has to do that, it's just syntax.
>>
File: pascalbro.jpg (264KB, 774x992px) Image search: [Google]
pascalbro.jpg
264KB, 774x992px
Any /legacy/bros here?
>>
>>62072196
this is what trannies actually believe will happen.webm
>>
>>62072669
It weakly-typed, so you can do either or.

some instances, like the
initialize
function needed to declare new classes, or declaring blank arrays, require you to statically type, but in most cases, doing
 var = 2 
or
 var = Int32 
or
 var = 2i32 
all work as you would expect
>>
>>62072778
>weakly-typed
even worse

absolutely disgusting
>>
File: 848.png (205KB, 659x525px) Image search: [Google]
848.png
205KB, 659x525px
Which programming language requires the greatest volume of intelligence to become an expert in?
>>
business idea: a language with strong dynamic typing
>>
>>62072740

Hmm, maybe I'm getting it wrong then. For example:

C++
int number = 2;
cin >> number;
cout << number;


Whereas in Java:
Scanner reader = new Scanner(System.in);

int number = Integer.parseInt(reader.nextLine());

System.out.println(number);


Forget creating a scanner and all that, why do I need to specifically parse an int. I guess in a way it's the same, but looks verbose?
>>
>>62072856
probably C++ unironically, but most of the people who think they're experts in it don't even know it enough to know why people hate it
>>
>>62072856
Malbolge
>>
>>62072860
python
>>
>>62068859
guys don't have hips like that
>>
>>62072856
I think every language is similar in intelligence required, but the amount of effort and how well that scales with intelligence does vary.

>>62072867
C doesn't have that, you said C/C++. Pedantry aside, it's just implicitly doing the same thing as Java.
>>
>>62072867
C++ is still parsing it. you're not passing it in the number 2, you're passing in the character "2", which is 0x32, which then has to be parsed into the number you want. you should learn C because you seem to think programs are magic, which is a really bad sign unless you're brand new
>>
How does /dpt/ feel about Groovy?

class SiteGenerator {

private final static Closure SEMANTIC_SORT = { String v1, String v2 ->
List<String> items1 = decomposeVersion(v1)
List<String> items2 = decomposeVersion(v2)
for (int i=0; i<Math.max(items1.size(),items2.size());i++) {
if (i>=items2.size()) {
return 1
}
if (i>=items1.size()) {
return -1
}
def p1 = items1[i]
def p2 = items2[i]
if (p1.isNumber()) {
if (p2.isNumber()) {
def pi1 = p1.toInteger()
def pi2 = p2.toInteger()

if (pi1 < pi2) {
return 1
} else if (pi1 > pi2) {
return -1
}
} else {
return -1
}
} else if (p2.isNumber()) {
return 1
} else {
return p2 <=> p1
}
}
0
}

File sourcesDir
File outputDir

private MarkupTemplateEngine tplEngine
private SiteMap siteMap

void setup() {

println "Generating website using Groovy ${GroovySystem.version}"

def tplConf = new TemplateConfiguration()
tplConf.autoIndent = true
tplConf.autoNewLine = true
tplConf.baseTemplateClass = PageTemplate

def classLoader = new URLClassLoader([sourcesDir.toURI().toURL()] as URL[], this.class.classLoader)
tplEngine = new MarkupTemplateEngine(classLoader, tplConf, new MarkupTemplateEngine.CachingTemplateResolver())

siteMap = SiteMap.from(new File(sourcesDir, "sitemap.groovy"))

}
>>
File: 1437497521042.jpg (60KB, 1280x720px) Image search: [Google]
1437497521042.jpg
60KB, 1280x720px
>>62072856
Haskell
>>
>>62072960
why
>>
>>62072856
Fortran, hands down.

The kids here love their development, but know fuck all about actual research.
>>
>>62072970
Reminder that Haskell is obsolete

https://www.youtube.com/watch?v=ad4BVmPni7A
>>
File: groovy_java.png (269KB, 700x350px) Image search: [Google]
groovy_java.png
269KB, 700x350px
>>62072960
Is this accurate?
>>
>>62072946

I don't think they're magic. And I started with C++ several months ago, but in class we use Java. I just noticed this difference. And was curious about the "why" behind the decision for the syntax to be like that. I think some of the resources online have taught me how but not why and I'm just as interested in why as I am the how. Thanks for the help.
>>
  function IntToStr(in mystr:string[*] out value:integer)
precond IsDigitStr(mystr)
code
call Val(mystr, value)
end function

public function main()
code
call Msgbox("OOP example", "IntToStr(10) = " + IntToStr("10"))
end function

end class
>>
>>62069599
https://twitter.com/mxcl/status/608682016205344768
>>
>>62073038
what language?
>>
>>62073165
Ubercode
>>
>>62073038
>closed source and commercial programming language
right into the trash.
>>
#include <iostream>
#include <SFML/Window/Keyboard.hpp>

#include <stdlib.h>

int main()
{
std::cout << "Press 'q' to exit.\n";
for (;;)
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Q))
exit(EXIT_SUCCESS);
return 0;
}
>>
New thread:
>>62073328
>>62073328

>>62073328
>>62073328

>>62073328
>>62073328
>>
>>62073322
What? They probably have a reference of the language. Make your own compiler if you don't wanna pay.
Thread posts: 314
Thread images: 40


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

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


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