[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: 331
Thread images: 43

File: 1452715120528.png (651KB, 561x800px) Image search: [Google]
1452715120528.png
651KB, 561x800px
What are you working on, /g/?

Old thread: >>58799206
>>
Still learning Racket.
>>
File: 1457925317594.jpg (19KB, 300x360px) Image search: [Google]
1457925317594.jpg
19KB, 300x360px
>>58806467
Thank you for using an anime image.
>>
>>58806468
Learn basic program concepts on some easy language at first.
Personally, I started with BASIC, you may start with C or Pascal.
You must get a grasp on programming basics first, later you'll choose where to move on.
>>
no FP rhetoricians edition
>>
File: 1483517949497.png (219KB, 400x370px) Image search: [Google]
1483517949497.png
219KB, 400x370px
whrere are the anime images?!
>>
File: 1452715120508.png (483KB, 600x800px) Image search: [Google]
1452715120508.png
483KB, 600x800px
>>58806512
>>
Thank you for not using an anim-
>>
File: 1460426390082.jpg (107KB, 662x570px) Image search: [Google]
1460426390082.jpg
107KB, 662x570px
>>58806525
what did he mean by this?
>>
File: rustacean-orig.png (53KB, 1200x800px) Image search: [Google]
rustacean-orig.png
53KB, 1200x800px
rustaceans report in!
>>
>>58806582
HIYA
>>
>>58806582
They couldn't have pick a more obnoxious name.
>>
>>58806595
>sjw language
>obnoxious names
no shit.
>>
>>58806609
>waah waah why do i have to treat people with respect
>>
I want to make a tool for A/B testing websites, using Laravel (PHP) and some hip Javascript frontend framework, like React, to display the dashboard with statistics results.
>>
>>58806555
>he
Check your fucking pronouns this is a rust friendly thread
>>
>>58806616
>what you call (insert progressive rich-white-kid nonsense here) I call being a decent human being
>>
is rust the best language for me if i'm a peaceful protester?
>>
>>58806609
why are all the developers white males?
>>
>>58806639
not enuff diversity
>>
>>58806627
ok
>>
>>58806639
some of them are white but suddenly become jew when convenient
>>
Are there any JIT compilers for Rust? Can Just in Rust be a thing already?
>>
>>58806658
And some of them try to become women when convenient.
>>
im new to programming.
i hear c# is pretty good. can you guys suggest some books i can use to get started with the language?
>>
>>58806616
agreed, fuck white people
>>
>>58806699
>strawman
>>>/pol/
>>
>>58806704
and fuck drumpf
>>
Wait, is Rust really an SJWlang?
>>
>>58806686
If they're thin, passable, have feminine penis, and will wear thigh-highs, I don't mind so much. But the moment they try to get me to switch from OOP to functional I'm going to Teena their ass.
>>
>>58806718
are you really this new?
>>
literally nothing wrong with rust
>muh sjw bogeyman
so what
>>
>>58806725
depends on your definition of "new". but no, I've been on this site for quite a while now.
>>
>>58806718
oh boy you are in for a rude awakening

hope you don't find out that mozilla fired their CEO because SJWs got mad at free speech
>>
>>58806719
>OOP
stopped reading right there.
>>
>>58806719
>have feminine penis
This does not exist. C or P: you must pick one.
>>
>>58806718
https://www.rust-lang.org/en-US/team.html

take a look
all bearded numales
>>
>>58806759
There are some people in the Community Team who may or may not be women.
>>
>>58806750
well, fuck it then.
>>58806759
>no anime
Yeah, I guess fuck this language.
>>
https://www.reddit.com/r/rust/comments/2rvrzx/our_code_of_conduct_please_read/

https://www.rust-lang.org/en-US/conduct.html

the code of conduct was taken fromhttp://contributor-covenant.org/ which is made by

https://github.com/CoralineAda
>Code witch. Notorious SJW. @CoralineAda on Twitter.
>GitHub Staff
>>
>>58806757
Oh they exist. I would post webm proof but rules. Hormones make the penis and testicles shrink and become cute and feminine.
>>
>>58806790
who cares
>>
>>58806791
Oh I do believe you, I was more implying that combining 'penis' or 'testicles' with 'feminine' would be seen as an oxymoron by many.
>>
File: Capture.png (48KB, 663x449px) Image search: [Google]
Capture.png
48KB, 663x449px
steve klabnik, core rust contributor and SJW
>>
>sjw language
>is still objectively a cool language

it's hard
>>
>>58806753
OOP is outmoded among pajeets, innit?
>>
>>58806790
>>58806834
can rustfags ever show their faces here again after this?
>>
>>58806846
Is this some sort of nigger-speak? Please use proper English.
>>
>>58806849
yes
>>
>>58806858
I can't speak pajeet English.
>>
>>58806834
>steve klabnik
>core rust contributor
That's what he thinks he is. He's actually just in charge of writing documentation and even fails in doing that. He's a failure like Antifa.
>>
>>58806834
It's almost like everyone should stop arguing with one another about how best to be nice to one another and just... be nice.
>>
>>58806834
shit, far left and far right movements are retarded

a little like sjw and pol
>>
>>58806873
It's telling that you think "pajeet English" is proper English. I guess that's just what O*P does to your brain.
>>
>sjwism is remotely far left
read a book
>>
>>58806879
>a left-wing board
>far right
what did he mean by this?
>>
what are you putting in your commit messages that the code of conduct affects you?
Fixed three memory leaks, prevented a race condition, Hitler did nothing wrong
>>
>>58806903
fucking bigot DELET
>>
>>58806884
Sorry, I don't understand pajeet English, it's probably due to OOP.
>>
>>58806878
>>58806879
Hooray, /dpt/ has finally achieved common sense. Next milestone: strong AI, ETA 2050.
>>
>>58806903
Add slave database in case master goes down.
>>
>>58806940
/dpt/ has always been a natsoc general, are you new?
>>
>>58806952
just be sensible and use "primary" and "secondary"
>>
>>58806967
Secondary could imply another database at root level. Slave tells you the database is redundant.
>>
>>58806964
I've been here since /dpt/s started. We seem to be remarkably tolerant of feminine penises for natsoc.
>>
>>58806983
ok use "primary" and "backup"
>>
>>58806993
"backup" implies that the database is only used to archive "primary".
>>
>>58806986
you may not be aware due to your obvious neglect of history books, but traps and catboys were popularized in the modern era by nazis
>>
>>58807005
>>58806952
>>
>>58807009
I thought that was just in Hellsing :(
>>
I'm working on finding a project to work on.
>>
>>58807016
?
>>
>>58807054
make a project idea generator
>>
>>58807054
openmw
>>
http://blogs.tedneward.com/post/the-vietnam-of-computer-science/
Anyone familiar with this article?
It's sad, really, that programmers were supposed to be these above averege intelligent people, and yet so many of us have fallen miserably for the OOP meme, that solves 5 problems while introducing another 20. How did this happen? How did we get here??
>>
>>58807132
They needed more programmers, and most people are not smart enough.
The only solution was to dumb down programming. Silliness resulted.
>>
>>58807152
>le programming is hard
>>
>>58807132
>so many of us have fallen miserably for the OOP meme
which you fully deserve since only retards can possibly fall for it.
>>
>>58807173
Actually, I didn't say that programming is hard, I said that most people aren't smart enough.
You can either infer that programming is hard, or (as I intended) infer that... most people are dumb.
>>
>>58807175
>only retards can possibly fall for it.
Or maybe people that are told for their entire educational path by supposedly smarter and more experienced people that OOP is the ultimate paradigm that solves all our problems, and since they're just newbies they have no idea? Just maybe?
>>
>>58807215
you don't need to be smart to program
>>
>>58807229
I didn't say that you had to be smart to program, I said that most people aren't smart *enough* to program(equivalent to 'most people are too dumb').
You can either infer that programming is hard, or (as I intended) infer that... most people are dumb.
>>
>>58807225
which is why I called them retards. also known as people who aren't able to think for themselves. it's easier to blame """"""""the system"""""""" like you leftist fucks always like to but that isn't the case here. it's your own fault.
>>
>>58807229
Welcome to /dpt/. We're happy that you joined our community.
Since you're new here, it's okay for you to say silly things, but let me just correct you on this one:
programmer ≠ script kiddie
>>
>>58807260
well memed
programmers just don't fit my definition of smart

maybe some programmers do, most don't
>>
>>58806696
Head First C# is a pretty good one
>>
>>58807225
>supposedly smarter
exactly.
>OOP is the ultimate paradigm that solves all our problems
obviously communism will solve our problems too. why don't you believe me?
>>
>>58807439
>Rust will solve all of our security problems
>>
>>58807582
who are you quoting?
>>
Rust will solve all of our security problems
>>
>the state of this thread
and to think it could be worse, there's 8gag
>>
>>58807582
>most browser vulns are memory corruption bugs
>>
>>58807713
The problem is that you probably aren't seeing all the posts. If you are just viewing dpt through the /g/ board, you don't see the green posts, the posts with letters in their ids, or anything numberless.
>>
Anyone can recommend some good starting material for learning Rust? I'm want to expand my knowledge and branch out from AutoHotkey and VBA.
>>
>>58807744
https://doc.rust-lang.org
>>
>>58807744
the language website
>>
Can anyone explain what language constructs FGAPI and FGAPIENTRY are meant to represent?

 FGAPI void  FGAPIENTRY glutSetWindow( int window ); 


Been looking through freeGlut header files, and many functions have this signature, but I can't wrap my head around what these constants are meant to mean. It seems to be related to library importing, but is there any name for these?

Noticed that Windows API has something similar such as WINAPI just before function names. Is it similar functionality?
>>
>>58807733
sentence = sentence.Replace('a', 'b');
>>
>>58807777
Xe said good material.
>>
http://pastebin.com/BthD8YGA

I'm learning python
>>
>>58807786
It's a Windows fuckery. FGAPIENTRY is __stdcall in DLL and FGAPI is __declspec.
>>
File: 2017-02-05_16-01-07.gif (194KB, 422x288px) Image search: [Google]
2017-02-05_16-01-07.gif
194KB, 422x288px
What framework should I look at to create something like this for a web app?
>>
>>58807777
>>58807785
Well, google is pointing in the same direction. I guess I'll use their official 'book' and 'rustbyexample' page.

Thanks /g/entlemen.
>>
>>58807919
Kys.JS
>>
You have 5 words to define a monad.
>>
>>58808007
shit nobody actually cares about
>>
>>58808007
"Monoid in category of endofunctors."
>>
>>58807919
soccer.js
>>
>>58808023
this
>>
What field should I focus on if I hate math and people
>>
>>58808063
NEET LIFE
>>
>>58808063
climate change denial
>>
>>58808063
Criminal Justice
>>
>>58808063
>math
WebDev.
>people
Anything where you can work from home.
>>
>>58808036
i know what a functor and a monoid is.
i have an idea of what a category is
but what's an "endofunctor"?
>>
>>58808116
A mapping between objects in the same category.
>>
>>58808063
women studies
>>
>>58808063
Cryptography
>>
>>58808063
install gentoo
>>
File: 1486296909914.jpg (136KB, 960x1280px) Image search: [Google]
1486296909914.jpg
136KB, 960x1280px
>>58808174
>>
>>58808232
do NOT bully petsu
>>
File: 1793519653.png (35KB, 400x400px) Image search: [Google]
1793519653.png
35KB, 400x400px
>>58808232
I have the same laptop.
But I'm a Vim guy
>>
>>58808232
c...cute
>>
What's the best way to keep things synced across multiple machines? Should I just back up to an external HDD?
>>
How do I extract numbers from a string in C# then add them back in the correct order without using regex?
Example:
"Th1s 1s 4 t3st string" would become "Ths s tst string", and then you would have to add the numbers back.
>>
>>58808459
git on a machine running 24/7
>>
>>58808466
>C#
stopped reading right there.
>>
>>58807744
>>58807929
You are wasting your time.

Rust isn't a language you can get things done in. The original concept was a knockoff of Go with generics bolted on. When SJWs overran the entire developer team, they "pivoted" the language to focus on "safety." In the process they removed structural subtyping, garbage collection, and ALL concurrency features, because leftist ex-Rubyists don't have the attention span to maintain a codebase of any real depth. The claims of "faster than C" come from their faith in LLVM to magically optimize code, because they've never heard of anyone using LLVM outside a C compiler before. They have no idea what they're doing. It shows. You can't put two lines of code together without the compile telling you off.
>>
>>58808608
>culture war bullshit
no
>You can't put two lines of code together without the compile telling you off.
Welcome to typing.
>>
>>58808703
>doubting that Rust is infested with Ruby webdev cancer
Take another look at the closure syntax.
>>
>>58808608
I've hears stories before that Rust initially head green threads and other nice concurrency tricks. Now it's just another C++.
>>
>>58808608
>knockoff of Go
false, they both were developed simultaneously but in isolation
>leftist ex-rubyists
jfc
>>
>>58808843
no such fucking thing you retard
already been two warns itt for unrelated politics shite
>>>/pol/
>>
>>58808870
>pol
I said right wing.
>>
File: image.jpg (28KB, 480x513px) Image search: [Google]
image.jpg
28KB, 480x513px
>>58808843
No such thing
>>
>>58808843
That's a retarded question
>>
>>58808870
How is this not related? The post clearly mentions a programming language.
>>58808876
At least 50% then?
>>
>>58808843
Go is ESR-approved
>>
do not reply to 58808890 under any circumstances, he is a chronic retard
>>
>>58808843
Lisp
>>
File: 1486110061898.png (818KB, 1280x719px) Image search: [Google]
1486110061898.png
818KB, 1280x719px
>>58808902
What's a good language for chronic retards
>>
Rank them:
Java, Python, C, C++, Go
>>
>>58808843
Holy C
>>
File: 1484627060451.png (439KB, 720x720px) Image search: [Google]
1484627060451.png
439KB, 720x720px
>>58808902
What's the matter, struck a nerve, did I?
>>
>>58808932
This is the correct answer.
>>
>>58808932
I'm kinda leaning toward left and I use C.
>>
>>58808930
Go > C > C++ > Java > Python
>>
>58808918
you should consult your smug haskell weenie alter ego obviously
>>
>>58808930
C > Go > C++ > Java > python
the last is purely because of typing
>>
File: rust.png (11KB, 512x512px) Image search: [Google]
rust.png
11KB, 512x512px
>>58808608
>Rust isn't a language you can get things done in
k tard

https://www.redox-os.org/
https://github.com/jwilm/alacritty
https://servo.org/
https://github.com/uutils/coreutils
https://github.com/derniercri/snatch
https://github.com/google/xi-editor
https://github.com/Immington-Industries/way-cooler
http://www.piston.rs/
https://github.com/Kintaro/wtftw
>>
>>58808950
>is an absolutely retarded newfag
>I'm kinda leaning toward left
Yeah, go figure.
>>
File: happy moth.jpg (153KB, 886x1100px) Image search: [Google]
happy moth.jpg
153KB, 886x1100px
>>58808930
They're all nice girls
>>
>>58808975
Rust isn't used outside of the community.
>>
>>58808978
>everyone on 4chan must be a nazi
>>
What's so bad about Python?
>>
>>58808986
>Rust isn't used outside of the community.
what the fuck does that even mean?
>c++ isn't used outside of the community.
>>
>>58808997
How did you get that from my post? Didn't I make it abundantly clear that I dislike leftism?
>>
>>58808999
Too easy, programming is supposed to be hard to keep the women out
>>
>>58808950
>he thinks Holy C and C are somehow the same thing
back to your subreddit
>>
>>58808930
Python > Java / C++ > Go > C
>>
File: 167249.jpg (254KB, 1920x1080px) Image search: [Google]
167249.jpg
254KB, 1920x1080px
>>58808999
Nothing, it's just easy to poop-post about it because it's common.
>>
>>58808914
Why? And which one?
>>
>>58808997
hello rebbit, enjoy your stay
>>
How do I do the code boxes?
>>
>>58809206
read the sticky
>>
Is there any supplemental quizzes I can do along with Learn Python The Hard Way? I'm on exercise 16 and it's hard for me to tell if I have a solid grasp on everything that's been covered. I don't know what I've retained and what I've forgotten.

It would be nice if it came with a quiz every ten chapters and described a script for you to write and you have to write it based on what's been covered.
>>
File: 1310616753030.png (104KB, 262x274px) Image search: [Google]
1310616753030.png
104KB, 262x274px
can I change the licence of my project later down the road if I decide to sell out?
>>
>>58809462
Yes. You are allowed to have multiple licenses too.
>>
>>58809478
but what if there are multiple contributors? can I just fuck them over if they signed a Contributor License Agreement?
>>
>>58809491
Depends on the CLA but in general, yes.
>>
>>58809491
if you're the project owner you can do whatever the fuck you want
>>
>>58807919

> framework
> webapp

you mean like a library to make a program?
>>
>>58809491
It depends on the contract.
>>
Trying to get keyboard input from SDL,
while(SDL_PollEvent(&e) != 0) {
if(e.type == SDL_QUIT)
quit = 1;
if (e.type == SDL_KEYDOWN)
switch(e.key.keysym.sym) {
SDLK_UP:
printf("hello");
break;
default:
printf("test");
break;
}
}

Anyone know why my SDLK_UP isn't working here? All my key presses just fall through to the default case.
>>
>>58809501
>substring or split allowed
Why? Homework?
>>
>>58809624
>all your stuff belongs now to the project owner. but you can still use it lol
>>
>>58809637
Who is stupid enough to sign that?
>>
>>58809649
literally everyone?
>>
>>58809628
Strange. It works for me.
>>
>>58809628
>>58809683
nevermind I'm retarded, rereading I realized I wrote default """case""" in my post and then realized I forgot to write case infront of my intended case in the code.
>>
>>58809665
I don't think so.
>>
>>58806467
what is the lisp dialect with better windows support?
>>
>>58809692
What is with these ''''''''quote marks''''''''? Is it a /pol/ thing?
>>
>>58809715
>everything must be /pol/

Talk about obsession
>>
>>58809696
consider this
>be sellout leader
>change licence and sell for trillions
>contributor dmca's you
>fuggg :DD
what do?
>>
>>58808930
java > c > python > go > c++
>>
relearning forth
: tri dup +1 do cr dup i - spaces i 0 do 42 emit loop loop ;

>>58809801
Forth > C > garbage
>>
>>58809747
Actually I was relating it to excessive ((((parentheses)))).

So if not /pol/, then where?
>>
>>58809747
>confirmed for /pol/ thing
>>
>>58809833
Is it supposed to 'loop' twice?
>>
>>58809849
pol is the most edgy and cool board. success breeds jealousy.
>>
>>58809775
>change licence
You can change license only for what you are allowed to.
>>
How do I make sure my expressions are in order in C?
Currently have this:
 static int i = ((((((x + 4))) * (((2 - 3))))));
>>
>>58809892
That should do it.
>>
>>58809889
and how do I know what Im allowed to? only my code?
>>
>>58809849
>something -stein name
>confirmed for jew

This is you
>>
>>58809883
I missed one thing and yes since it draws a 2d triangle with the outer loop handling Y and the inner being X
: tri dup 1+ 1 do cr dup i - spaces i 0 do 42 emit loop loop ;
>>
>>58809747
>>58809849
>>58809884
>>58809920
Jesus Christ guys, I was only asking about quote marks.

I'm glad I never go to /pol/ if this is what it's like.

>>58809941
Oh yeah, that works. First version I had to define '+1' myself and supply two arguments, but then it looped infinitely.
>>
>>58809981
fuck /pol/, /dpt/ stands with the rightful leader of the USA, say it with me
MADAME
>>
>>58809833
You using gForth?
>>
How do I get the first name and last name from a whole name in C#? Not allowed to use Substring or Split.

    public static void Main(string[] args)
{
Console.Write("Give your last name, then first name: ");
String wholename = Console.ReadLine();
String firstname = DeleteFirstWord(wholename);
String lastname = GiveFirstWord(wholename);
Console.WriteLine("Your first name is " + firstname +
" and last name " + lastname);
Console.ReadKey();
}
public static string GiveFirstWord(string wholename)
{

}
public static string DeleteFirstWord(string wholename)
{

}
>>
File: Cw_VWGxVQAAfT9z.jpg (112KB, 700x988px) Image search: [Google]
Cw_VWGxVQAAfT9z.jpg
112KB, 700x988px
>>58810026
Kagerou?
>>
>>58810054
Loops
>>
>>58810080

too advanced 4 me.
>>
>>58808930
C > Python > Go > Java > C++

All of them but the first one are useless though.
>>
>>58809981
Yeah It's been a long time so a few typos creep in when writing.
Going to be interesting as I'm planning to add bindings to OpenGL, OpenAL, and bsd sockets for pforth
>>
>>58810054
Get the index of the first space, then make an empty string, append each letter (with a loop) for each character at the index up to the space, and then do it again for the first name from the index + 1 to the end.
>>
>>58810037
pforth, gforth is too restrictive with GPL and it's easier to extend pforth (posted a fix as I missed a key and let a typo in).
>>
>>58810026
pReSiDeNt
>>
>>58806879
anon, pol is always right
>>
>>58810054
#include <stdio.h>

int main() {
char last[15];
char first[15];
printf("Give your last name, then first name: ");
scanf("%s %s", last, first);
printf("Your first name is %s and last name %s", first, last);
return 0;
}
>>
>>58810502
What if they contain more than 15 characters?
>>
File: terry_snap1.png (442KB, 1083x646px) Image search: [Google]
terry_snap1.png
442KB, 1083x646px
>>
Trying to learn and mess with flex (more precisely, jflex) and failing to compile the flex of only 13 lines long. Unexpected end of file error. I'm not blind but I can't find anything wrong with something so fucking simple as this.
%%
%public
%class lexer
%unicode

LineTerminator = (\r|\n|\r\n)
InputCharacter = [^\r\n]
WhiteSpace = {LineTerminator}|[ \t\f]

Octet = ([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])
IP = ({Octet}{Octet}{Octet}{Octet})
char = [0-9a-zA-Z_]
email = (char*@char*.char*)
>>
Just started learning C
A few questions
If you include libraries at the start of each code does that imply that any library you want has to be on your computer? or can you create your own library from scratch?
I see a lot of code showing Return 0; but from what I understand every character increases the size of the code, so is it necessary to put in returns?
I tried out fucking with the hello world code by changing int main: to int moin; and it returned one exit so i understand that it´s pretty useful for seeing whats wrong.
>>
>>58810673
Ignore the fact there needs to be .'s between those octets for recognizing an IP too btw, I took em out to see if anything would change.
>>
>>58806879
far right is basically what justice worriors aka WJW
>>
A bananas way of getting the values of the first n derivatives of a polynomial at a given point.
>>
>>58810502

can't you just do it so that you use a method to delete the first word and then use a method to give the first word?
>>
>>58810613
char last[INT_MAX];
char first[INT_MAX];


as long as we don't get any germans
>>
>>58810686
>If you include libraries at the start of each code does that imply that any library you want has to be on your computer? or can you create your own library from scratch?
You don't include libraries, you #include headers. And yes, the header files need to be on your computer when you compile your program. Generally, if you install any compiler, you should also have the standard headers installed too. And you can create your own headers: just create a file called bla.h and add #include "bla.h" in your source files.
>I see a lot of code showing Return 0; but from what I understand every character increases the size of the code, so is it necessary to put in returns?
A function, just like in fucking elementary math, takes a number of input values, and returns a value. This is what that statement does. Generally you need it, but if you don't, you can change a function's definition to return void.
>I tried out fucking with the hello world code by changing int main: to int moin; and it returned one exit so i understand that it´s pretty useful for seeing whats wrong.
Maybe your compiler returned "one exit", because it didn't compile your source. The C runtime requires a function called "main".
>>
Working on PathTransition


public class PathTransition extends Application {

@Override
public void start(Stage primaryStage) {

Pane pane = new Pane();

Rectangle rectangle = new Rectangle(0,0,25,50);
rectangle.setFill(Color.ORANGE);

Circle circle = new Circle(125,100,50);
circle.setFill(Color.WHITE);
circle.setStroke(Color.BLACK);

pane.getChildren().add(circle);
pane.getChildren().add(rectangle);

final PathTransition pt = new PathTransition();
pt.setDuration(Duration.millis(2000));
pt.setPath(circle);
pt.setNode(rectangle);
pt.setOrientation(
PathTransition.OrientationType.ORTHOGONAL_TO_TANGENT);
pt.setCycleCount(Timeline.INDEFINITE);
pt.setAutoReverse(true);
pt.play();



circle.setOnMousePressed(new EventHandler<MouseEvent>() {

@Override
public void handle(MouseEvent event) {
pt.pause();
}
});

circle.setOnMouseReleased(new EventHandler<MouseEvent>() {

@Override
public void handle(MouseEvent event) {
pt.play();
}
});



Scene scene = new Scene(pane, 300, 250);

primaryStage.setTitle("PathTransition");
primaryStage.setScene(scene);
primaryStage.show();
}

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
launch(args);
}

}



now I am trying to figure out how do objects react to each other when they are on the same path and collide into each other
>>
File: 1483023924444.jpg (20KB, 306x306px) Image search: [Google]
1483023924444.jpg
20KB, 306x306px
>>58810788
>>>>java
>>
>>58810776
>not ULLONG_MAX
are you writing programs for toasters?
>>
File: 1460104816167.png (29KB, 300x300px) Image search: [Google]
1460104816167.png
29KB, 300x300px
Can the SICP lectures be considered anime?
>>
Can anyone help me with Qt quick app
First time making anything in it and I have problems with Signal - Slot. QML to C++.

I made a Dial and Label elements in qml and I want to make when I change value of Dial it shows value on label.
I followed documentation http://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html
but it gives me bunch of errors.

pls respond
>>
doing some powershell

i like the pipeline/quasi-functional concept that's going on, is there a function/cmdlet in powershell that can replace the dot operator on an object/dictionary?
>>
>>58810827
do you make posts like this ironically, or is your brain really this fried from all the anime?
>>
File: flit.jpg (142KB, 735x700px) Image search: [Google]
flit.jpg
142KB, 735x700px
>>58810827
No

>>58810860
No
>>
>>58810810
What's wrong with programming in Java?
>>
File: 14715296417150.png (134KB, 500x500px) Image search: [Google]
14715296417150.png
134KB, 500x500px
>>58810860
What exactly in my post warranted this kind of response?
>>58810868
Why?
>>
>>58810897
>hay guys is [non-anime thing] anime?
>posts cute anime pic 0187.jpg
>>
>>58806467
anyone have some good asm resources?
>>
>>58810897
Because it is not anime anon, only anime is anime.
>>
File: 1486253659712.png (215KB, 288x422px) Image search: [Google]
1486253659712.png
215KB, 288x422px
>>58810912
Can the SICP lectures be considered a dog?
>>
File: solve (5).png (754KB, 1280x720px) Image search: [Google]
solve (5).png
754KB, 1280x720px
>>58810912
Reminder that math is anime
>>
>>58810919
Step-by-step Assembly
Not only teaches you assembly, but also some basic things about hardware and memory
>>
>>58810729
it's even worse when you fart and some cum slips outs
>>
File: 1459517124714.gif (747KB, 500x508px) Image search: [Google]
1459517124714.gif
747KB, 500x508px
>>58810912
But how would I know that SICP is supposedly a "non-anime" thing before asking? Which was the entire purpose of my post.
>>58810935
>only anime is anime
This is true by definition, but how do you derive from this basic truth the non-animeness of SICP?
>>
File: C33ZWCkUYAE8uXt.jpg (58KB, 600x480px) Image search: [Google]
C33ZWCkUYAE8uXt.jpg
58KB, 600x480px
>>58810946
i hate math
>>
>>58810956
>Step-by-step Assembly
I love how programming books often turn up as the second result in google (pdf form) without even appending .pdf to the search term
>>
File: 1470306362512.jpg (42KB, 712x712px) Image search: [Google]
1470306362512.jpg
42KB, 712x712px
>>58811004
What are you doing in a thread about math?
>>
>>58811004
you can learn to like math by learning a strong basic foundation of understanding the simple concepts then you will like it
>>
>>58811004
Do you also hate girls over the age of 5?
sick fuck lol
>>
>>58810880
a better question would be, what isn't?
>>
File: 1471863117661.jpg (392KB, 800x800px) Image search: [Google]
1471863117661.jpg
392KB, 800x800px
>>58811004
math is great!
>>
File: test (2).png (604KB, 811x599px) Image search: [Google]
test (2).png
604KB, 811x599px
>>58811004
Why are you on 4chan if you hate anime anon?
>>
>>58811016
I'm trying to improve myself. I mostly hate math because I never learned it in school so I struggle with things that are intuitive to 99.9% of other people
>>
>>58811016
>programming
>about math
retards will believe this lol
>>
>>58810880
it's profitable, thus it angers the neets
>>
>>58811059
I have made a ton of money programming in Java and objective C compared to any other of the languages suggested here
>>
How would you add the numbers back into the string in the correct position? This is the code to get them from the string.

Console.WriteLine("Enter a string: ");
string kodString = Console.ReadLine();
string pos = "";
string nums = "";
string comString = "";

for (i = 0; i < kodString.Length; i++)
{
if(Char.IsNumber(kodString[i]))
{
nums= nums+ kodString[i] + " ";
pos= pos+ i + " ";

}
else
comString = comString + kodString.Substring(i, 1);
}
>>
>>58811051
>I struggle with things that are intuitive to 99.9% of other people
I hated it in school too and had the same problem. You can learn that shit relatively easily if you aren't retarded.
>>58811057
>applied mathematics isn't mathematics
okay
>>
>>58810686
>from what I understand every character increases the size of the code, so is it necessary to put in returns?
Once you need to save space that hard you'll know about it. Until then explicit returns keep your code readable, and your compiler will take care of optimisation.

>>58809884
>thinks edgy == cool
yikes
>>
File: ?.png (7KB, 120x120px) Image search: [Google]
?.png
7KB, 120x120px
I'm gonna use flex + lex + bison for my compilers course, but i have to use windows.

i've used those before on linux, but now i'm stuck with windows.

can i use those tools in the windows command line like linux?

does anyone know how to do that?
>>
>>58811125
yeah, they know this kind of stuff on /r/programming
>>
>>58811051
I would recommend How To Solve It by polya G because it is one of the best math books to teach you how to get that intuitive thinking style to solve math problems which will translate into problem solving skills in general

How to Solve It suggests the following steps when solving a mathematical problem:

First, you have to understand the problem.
After understanding, then make a plan.
Carry out the plan.
Look back on your work. How could it be better?

If this technique fails, Pólya advises: "If you can't solve a problem, then there is an easier problem you can solve: find it." Or: "If you cannot solve the proposed problem, try to solve first some related problem. Could you imagine a more accessible related problem?"
>>
>>58811116
No I didn't hate taking it in school, I was "homeschooled" and actually never learned math
>>
>>58811059
>>58811075
It's only profitable because most employers are ignorant of the technology and how it works, the same people don't care if their programs use 10x more memory than is needed or if there are memory leaks and bad practices in the code, for them it just works and that's all that matters
>>
>>58811156
What is wrong with all of that if you are making a lot of money from it in a corporate sector?
>>
>>58811144
>I was "homeschooled" and actually never learned math
Have you reported your parents for educational neglect?
>>
>>58811057
Do you use arithmetic? Do you use algebra? Yes? It's maths
>>
>>58811125
mingw or cygwin
>>
>>58811156
none of that shit matters for the vast majority of applications in the modern day
>>
>>58811141
What level of knowledge does it assume?
>>
the real question is do you need to be good at math to be a good programmer or can you become a good one with just good logic skills?
>>
>>58811189
I didn't know that was a thing. Apparently you have to send in stuff to an actual superintendent but my mom just faked it.
>>
File: 176031871331.jpg (28KB, 300x438px) Image search: [Google]
176031871331.jpg
28KB, 300x438px
>Hating on math
Really, scrubs?
>>
>>58808007
A singular, non-corporeal entity which contains a mirror of the entire universe but can only see it from one perspective.
>>
>>58811234
You can't have one without the other.
>>
>>58811234
You need some basic math. Operator precedence, simple mathematical functions, bitwise calculations etc.

For more advanced stuff like 2D/3D game development, statistical analysis, cryptography, you need to know a lot more.
>>
>>58811248
If you want to send them to prison, you can and arguably should.
>>
>>58811185
>>58811230
It's morally wrong, what if you were building a house and your boss ignorantly provided you with tin beams to build the frame with, would you build the house with the tin framing knowing it was shit or would you use a stronger steel frame knowing you'll end with a better product?
>>
File: test (4).png (532KB, 602x699px) Image search: [Google]
test (4).png
532KB, 602x699px
>>58811249
This. Leave if you hate anime. This is an anime board
>>
>>58811234
you can be an ok code monkey with only good logic skills
if you are good maths are no problem anyway
>>
>>58811234
>>58811316
I suspect you don't mean formal logic when you say 'logic'.
>>
>>58811336
Either that or he is just a complete retard.
>>
>>58811307
I get no satisfaction from that kind of thing, I'd rather just focus on trying to improve my station in life.
>>
>>58811234
I have a literal learning disability and I can program in C and Java, I've even worked on large projects with other people and was often considered the best on the team.
>>
>>58809593
yes
>>
>>58810880
nothing wrong, they're just jealous of your successful choice
>>
>>58811308
it's morally wrong to not care about something that is meaningless to your goal? fuck off idiot
>>
>>58811368
an optimized and elegant product is meaningful to my goals though
>>
File: pep.jpg (35KB, 780x438px) Image search: [Google]
pep.jpg
35KB, 780x438px
So I'm studying programming at UNI and the first weeks were really easy, but now the difficulty has ramped up a lot and I'm not really keeping up.

Is this normal or am I a complete retard with no talent? Should I switch my main subject to math? (that's the one subject in school where I was on top of the class).
>>
>>58811392
good for you faggot, but not everyone cares
>>
>>58811401
If you can't get past 2 months of programming I don't know why you think you could do college level math
>>
>>58811401
this is very common to new programmers everywhere. I would recommend programming a lot, reading more programming books, reading problem solving logic books for computer programming, algorithms, and guess what? More programming!
>>
File: solve (1).jpg (119KB, 937x870px) Image search: [Google]
solve (1).jpg
119KB, 937x870px
>>58811401
>he thinks how well he does in high school math has any bearing on how well he'll do in uni math
>>
>>58811426

Because math is easy.
>>
you faggots realize that Rust and C++ are languages that are still being developed?

of the low level languages only Java is a finished product

Java is the most popular language for a reason
>>
>>58811444
if math is easy there's no reason why you shouldn't be able to program
>>
>>58811444
high school math is easy which is all you need for most programming unless you want to get into stuff like machine learning
>>
>>58811401
Remember how in school you were always 'the smart kid' in class? Well in (a good) university, everybody was that kid.

Time to rack it up a notch.
>>
>>58811110
please help
>>
Be honest, /dpt/
Programming is almost all about knowing your libraries.
For the 90% of the time, you are not required to implement a brand new algorithm, there are tons of libraries that does the job better than your algorithm.

Instead of teaching sorting algorithm the books should introduce people to some known libraries. This is much more productive. Of course, there can always be a new innovation but that's only for research.
>>
>>58811551
>Programming is almost all about knowing your libraries.
Only if you're a pajeet.
>>
I'm looking to disprove some fundamental part of mathematics which will render math unusable. Where should I start?
>>
>>58811584
Drop the memes and grow up.
>>
>>58811551
Wrong, programming is more about knowing how to process basic data structures like arrays and breaking larger problems into smaller ones to solve.
>>
>>58811551
REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
>>
>>58811551
Programming is about knowing what exists and what doesn't and where to get knowledge when you don't know how to do something specific.

Only codemonkey pajeets think they're required to memorize library function names.
>>
>>58811595
You have to know how data structures like arrays work in order to successfully study your libraries.
>>
>>58811606
Oh? And how many times did you redifine shit like puts or fgets?
>>
>>58811623
the c standard library is so small it's not even worth discussing

you clearly have never worked with any substantial library
>>
File: really_implores_you_to_ponder.png (147KB, 231x361px) Image search: [Google]
really_implores_you_to_ponder.png
147KB, 231x361px
>>58811551
But which library will let me combine two or more libraries together in an efficient and manageable way such that I could get the results I want?
>>
File: 1483907140525.jpg (62KB, 873x927px) Image search: [Google]
1483907140525.jpg
62KB, 873x927px
>>58811439
>solve 1
post more
>>
File: solve (2).jpg (236KB, 1280x720px) Image search: [Google]
solve (2).jpg
236KB, 1280x720px
>>58811640
Ok
>>
>>58811594
All memes aside, you're wrong.
>>
>>58811551
Close. Programming, and engineering in general is about stealing knowledge from scientists and make a shittons of money out of it.
>>
>>58811632
You are still "memorizing library function names". Nice self contradiction right there.

>>58811638
>two libraries together doing the same thing
>manageable and efficient
myth
>>
New thread

>>58811703
>>
>>58811670
Fuck off pajeet
>>
>>58811708
I love how underage toddlers resort to ad hominem when they get completely BTFO
>>
>>58811735
1. learn English
2. learn what an ad hominem is
3. fuck off, stinky pajeet
>>
>>58811735
Maybe anon is fed up with all this poo you're producing
>>
>>58811708
>>58811584
>>58811759
>>58811761
Embarrassing.
Is /dpt/ dying as well?
>>
>>58811786
yup, looks like we'll have to go back to our subreddit. i'll follow you. don't forget to close the tab though
>>
>>58811795
It's funny because reddit is so much better than 4chan and nobody there blame you for not posting anime. Let's go back!
>>
>>58811815
which third world shithole are you posting from?
>>
>>58811827
Earth?
>>
>>58811843
that's not a country, you commie fuckstain
>>
File: cofe1.png (284KB, 586x634px) Image search: [Google]
cofe1.png
284KB, 586x634px
>>58808250
mfw I will never sexually break your waifu and make her say shitty things about you and your favorite editor
Why even live?
>>
>>58811855
You mean those arbitrary lines humans use? I don't know, what's the answer you want to hear?
>>
>>58811234
logic is math...
>>
>>58811911
>after 323 shitposts /dpt/ finally made sense
Thank you anon, your life won't go unnoticed.
>>
>>58811551
>Instead of teaching sorting algorithm the books should introduce people to some known libraries.
If you can't implement some basic algorithms with the language builtins what makes you think you'll be able to effectively use existing libraries?
>>
>>58811551
So I should glue together poorly written libraries and gists to build a compiler then?
>>>/out/
>>
File: 1485643391674.jpg (246KB, 400x800px) Image search: [Google]
1485643391674.jpg
246KB, 400x800px
>logistic regression
>>
>>58806616
t. xir/xhe
>>
>>58811610
Are concepts like arrays difficult for people to understand?
>>
>>58813091
apparently... had a few uni students who avoided them like they were the plague
Thread posts: 331
Thread images: 43


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