420chan now has a web-based IRC client available, right here
Leave these fields empty (spam trap):
Name
You can leave this blank to post anonymously, or you can create a Tripcode by using the float Name#Password
A subject is required when posting a new thread
Subject
Comment
[*]Italic Text[/*]
[**]Bold Text[/**]
[~]Taimapedia Article[/~]
[%]Spoiler Text[/%]
>Highlight/Quote Text
[pre]Preformatted & Monospace text[/pre]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists
File

Sandwich


Community Updates

420chan now supports HTTPS! If you find any issues, you may report them in this thread
Java by Anon - Sun, 30 Jul 2017 21:21:21 EST ID:ddyPydmV No.37126 Ignore Report Reply Quick Reply
File: 1501464081485.png -(37854B / 36.97KB, 500x500) Thumbnail displayed, click image for full size. 37854
Is Java worth learning? I want to get into software development but I'm not sure what language to pick up.
11 posts omitted. Click Reply to view.
>>
Nicholas Mumblewitch - Thu, 22 Feb 2018 08:42:42 EST ID:spYr3Czu No.37444 Ignore Report Quick Reply
>>37126
No, Java is trash you faggot.
>>
Esther Bunham - Tue, 20 Mar 2018 18:39:31 EST ID:uuTMcsOp No.37476 Ignore Report Quick Reply
>>37274
Kotlin is a shitty version of Scala
>>
Esther Bunham - Tue, 20 Mar 2018 18:48:27 EST ID:uuTMcsOp No.37477 Ignore Report Quick Reply
Let me just mention.

Most big companies I know programmers in are writing high performance/availability applications in Java, C++, or Golang depending on the domain. Some are still using PHP. My own company (one of the top 20 "internet companies" according to Wikipedia) is using Java and Golang for writing new high performance backend services. For new frontend services which talk to the backend ones we're using Node.js for server-side and React.js for client-side. Our old frontend stuff is in PHP.

So my thought here is that Java is a good choice of first language. It's sort of middle of the road so you could go from Java to Golang/C++ or JS/Python/Ruby/Kotlin pretty easily.
Although if you know you want to do less performance intensive web apps (this would cover almost all web apps actually) you could start with something like Node.js or Ruby on rails.
>>
Esther Bunham - Tue, 20 Mar 2018 18:52:52 EST ID:uuTMcsOp No.37478 Ignore Report Quick Reply
>>37477
And just a personal thought - if you're just getting started writing programs it might be good to learn HTML+javascript. Just because I think it would be more fun for most people if they could learn by writing applications that have a visible component (in this case a web page you can interact with).
>>
Esther Bunham - Tue, 20 Mar 2018 18:54:43 EST ID:uuTMcsOp No.37479 Ignore Report Quick Reply
>>37476
Oh and by the way, my Scala fanboyism only applies if you're not writing smartphone apps


fuck collect2: ld returned 1 exit status by John Darthood - Wed, 21 Feb 2018 10:27:03 EST ID:iHgPZrys No.37431 Ignore Report Reply Quick Reply
File: 1519226823005.jpg -(189873B / 185.42KB, 1600x1159) Thumbnail displayed, click image for full size. 189873
Hi guys, today I wanted to start learning about programming, so I wanted to do that Hello World crap thinking it would be really easy, so I wrote the program:
[CODE]#include<stdio.h>

#include<stdlib.h>

int main()

{

printf("\nHello World!");

return(0);

}[/CODE]
Comment too long. Click here to view the full text.
>>
Jenny Crocklesug - Wed, 21 Feb 2018 11:56:25 EST ID:1j8iF08r No.37432 Ignore Report Quick Reply
That's not the error message you want. That's just the last error message where the process was aborted. Turn off all those warning options if you can't see what came before that.
>>
Jenny Crocklesug - Wed, 21 Feb 2018 11:59:17 EST ID:1j8iF08r No.37433 Ignore Report Quick Reply
Also I think you want
 [ pre ] 
>>
Basil Fanfuck - Thu, 22 Feb 2018 03:26:14 EST ID:BW3MomrQ No.37441 Ignore Report Quick Reply
When you tell gcc to build your program (which is basically what you did with your command to gcc), it first compiles the code files (*.c files and *.cpp files) you give it into object files (*.o or *.obj files). It then tries to link all of the generated object files into a running program. In order to do this last step, gcc needs some help, so it invokes ld to perform the linking step. In your case, OP, ld ran into an error and tried to tell you an error message.

Also your C code has some oddities to it that while they may not be causing any immediate problems, they might cause confusion if you show this code to anyone else:
  • Your printf() string starts with \n . \n is the character that when printed will cause a newline to be generated. Usually you want this at the end of your string so that your program prints a line and then moves the cursor down to the next line.
  • Your return value is wrapped in parenthesis. Try doing "return 0;" instead. The parenthesis you have surrounded the return value with should have no effect (other than making the code harder to read).
>>
Polly Debblekack - Wed, 07 Mar 2018 23:28:07 EST ID:KhmUde/p No.37467 Ignore Report Quick Reply
1520483287608.png -(1066835B / 1.02MB, 1366x768) Thumbnail displayed, click image for full size.
You have a lot going on. Look at my pic. Look at my example. Look at the directory of my terminal, and then look at the commands I used. This is as simple as it gets.


https://dis.tinychan.org/prog by Graham Duckridge - Tue, 06 Mar 2018 20:18:06 EST ID:Eft7V+7U No.37464 Ignore Report Reply Quick Reply
File: 1520385486895.jpg -(5970B / 5.83KB, 250x241) Thumbnail displayed, click image for full size. 5970
https://dis.tinychan.org/prog

This is a new iniciative by the original /prog/ community of late world4ch to increase its traffic and activity by making its current address known to other related textboards and communities elsewhere.
>>
Barnaby Grimfield - Tue, 06 Mar 2018 22:06:04 EST ID:LJ4pKTeI No.37465 Ignore Report Quick Reply
I wouldn't have a problem with this except it's one day old and already full of shitposting.
>>
Frederick Haffingladge - Wed, 07 Mar 2018 22:50:10 EST ID:Eft7V+7U No.37466 Ignore Report Quick Reply
>>37465
/prog/ has an old policy of zero moderation
I think the shitposting comes from the stagnation of the community.
>>
Archie Nonkinfutch - Thu, 15 Mar 2018 06:58:55 EST ID:gCLfOTyx No.37471 Ignore Report Quick Reply
Fuck off


Fuck learning all this shit by Cyril Fundlemog - Sun, 07 Jan 2018 23:01:24 EST ID:EOzYeBa9 No.37259 Ignore Report Reply Quick Reply
File: 1515384084027.jpg -(24595B / 24.02KB, 340x451) Thumbnail displayed, click image for full size. 24595
I wish I could know how to code without having to learn it.
5 posts omitted. Click Reply to view.
>>
Thomas Buzzstone - Fri, 02 Feb 2018 01:34:31 EST ID:HH6lED9y No.37309 Ignore Report Quick Reply
>>37259
If you want an intro to programming that utilizes python, check out MITx 6.00.1.
>>
Archie Sucklelock - Sun, 25 Feb 2018 23:29:30 EST ID:c9h0RhPb No.37453 Ignore Report Quick Reply
How do I learn to enjoy programming or to actually know what I'm doing?

I'm in college and am in computer science and I just fucking detest programming classes. I find myself completely unable to do anything so I've hidden away in math courses and really theoretical courses.

I just cant wrap my head around it. I dont know what im missing
i have the basics but I cant seem to actually make anything
>>
Henry Nendersot - Tue, 27 Feb 2018 01:00:25 EST ID:BW3MomrQ No.37455 Ignore Report Quick Reply
>>37453
Maybe programming isn't for you then. It sounds like you have a penchant for maths though, so that's good.
>>
David Dartham - Tue, 27 Feb 2018 14:03:31 EST ID:1j8iF08r No.37456 Ignore Report Quick Reply
>>37453
Programming is a craft. If all you've ever done is toy CS programming then of course you can't make anything. Try a software engineering course or apply for Google Summer of Code or just look at some small open source applications. Also a lot of CS people can't write software to save their lives, so don't sweat that.
>>
Priscilla Grandstone - Tue, 27 Feb 2018 23:57:42 EST ID:QSmou+wR No.37457 Ignore Report Quick Reply
>>37453

I can't imagine anyone putting effort in not being able to understand the basics. Just remember that there are people dumber than yourself who can program.


Disadvantaged youth to young independent adult wanting to finally pursue his dreams by Wizzle710 - Sun, 22 Oct 2017 23:02:04 EST ID:YAuFJPxx No.37221 Ignore Report Reply Quick Reply
File: 1508727724535.jpg -(49540B / 48.38KB, 480x852) Thumbnail displayed, click image for full size. 49540
Hey everyone. So this is the long and the short of it.
For as long as I can remember, I've wanted to be a computer programmer, work with computers, do really geeky stuff with technology. I remember at 12 getting a cracked version of Macromedia Flash and teaching myself how to animate, and also trying to teach myself HTML and CSS. Well, my piece of shy father has been in prison since I was 7 and my mom had five kids, so I really didn't exactly get to pursue my dreams while my mom lost her house, and all of us kids had to get jobs and go stay with friends or family members because she couldn't afford to house us and support us all through school, and I was kind of a bad kid and a slacker and got kicked out of school, so I never even considered a scholarship was kind of out of the equation .
I still want to go to school and get a job sitting on my computer all day doing nerdy interweb stuff, where should I get an education? How can I get help paying for it? I want to be a success story and not the bitter shell of an abandoned son who gave up on his creative dreams and ended up as a cook making $10 dollars an hour.

To;Dr
Im 25 and want to get an education and become a computer programmer or work in cyber security or something. I would like some recommendations as to where to go and how to get financial assistance.
7 posts omitted. Click Reply to view.
>>
Jarvis Clayworth - Wed, 22 Nov 2017 18:06:55 EST ID:5N3VHd+T No.37238 Ignore Report Quick Reply
OP, internships are hard to come by. I live in NYC and with 2 years education and loads years of freelance exp, I have yet to find one myself.

People who have connections seem to always suggest it, which is kinda unfair.

Anyways, for learning purposes, community colleges offer pretty good associates' in Programming and/or computer science.

If you're like me and hate math, a computer science degree is probably not the best to chase, but programming or telecom or information systems management paths would be adequate.
>>
Martha Tillingcocke - Mon, 27 Nov 2017 03:38:05 EST ID:HH6lED9y No.37242 Ignore Report Quick Reply
>>37221
I just wanted to say, if you're low income (which it sounds like) you should consider going to college because federal grants will cover most, if not all, of the tuition price.
This may vary state to state (I assume you are in the USA), but for my first bachelor's I did not pay a dime because I was considered low income as well.
Keep in mind the assistance is not forever. Where I live I believe the max is seven years of assistance or until you get your first bachelor's. With that said, you should try to finish community college as quickly as possible, so you can transfer to a four year university and not worry about the aid running out.
Good luck and it is possible!
>>
Martha Tillingcocke - Mon, 27 Nov 2017 03:43:02 EST ID:HH6lED9y No.37243 Ignore Report Quick Reply
1511772182901.jpg -(958965B / 936.49KB, 1405x1405) Thumbnail displayed, click image for full size.
>>37242
I just read the tl;dr where you ask about getting the assistance. Most schools have a financial aid office where you can get more information to apply. Ask lots of questions because any worker you interact with is going to want to do the minimum amount of work and send you on your way ASAP, whether or not your issues have been addressed. This applies to academic counselors as well. You are your own best advocate, remember that.
>>
Cyril Bunforth - Wed, 06 Dec 2017 13:46:15 EST ID:FfnIApJC No.37251 Ignore Report Quick Reply
Apply to four year universities in your state. In-state tuition is a huge cost saver for most people. Join the one with the best Computer Science or Computer Engineering department that accepts you. Go to their finical aid office. They will help you with grants and loans.

If you graduate with CS or CE degree the loans will be worth it as long as you keep it under a hundred grand.
>>
amydewkiss - Sat, 24 Feb 2018 02:05:34 EST ID:TLIaEAm5 No.37452 Ignore Report Quick Reply
Just get a job coding. No education needed. Google that shit and get work done. Apply to all the things. Wander the earth with nothing but a laptop, sleeping bag and a copy of Structure and Interpretation of Computer Programs


Somebody please explain interfaces in C++ by Jack Pittshit - Thu, 22 Feb 2018 15:54:59 EST ID:kBelsIZm No.37445 Ignore Report Reply Quick Reply
File: 1519332899121.jpg -(165557B / 161.68KB, 1280x960) Thumbnail displayed, click image for full size. 165557
I have a question.
I've done something similar to the example on this page.
https://www.tutorialspoint.com/cplusplus/cpp_interfaces.htm

What they've got there is a virtual class that's called Shape. And then a load of derived classes called things like Rectangle and Circle etc.

Then the go
Rectangle rectangle = new Rectangle();

What I can't see is a way to declare a variable of type Shape. I don't care if that winds up a Rectangle or Circle because they both will implement the interface. How can I do the following?

Shape shape = methodThatWillGiveMeRectOrCircle();

My compiler can't compile that method. It says:
> error: return type 'Shape' is an abstract class
>>
Jarvis Wesslelure - Thu, 22 Feb 2018 23:07:30 EST ID:8hwK1pxu No.37447 Ignore Report Quick Reply
>>37445
You have to use pointers.
Shape* shape = methodThatWillGiveMeRectOrCircle();
cout << "Totalarea: " << shape->getArea() << endl;
delete shape;
>>
Martha Drellyway - Fri, 23 Feb 2018 04:51:38 EST ID:kBelsIZm No.37448 Ignore Report Quick Reply
>>37447
That did the trick, thanks for pointing that out.
Can you explain to me why a pointer works here?
From what I understand, an int* can't just be assigned to a char* or void* without being explicitly cast so why is this different?
>>
Rebecca Dumbleshit - Fri, 23 Feb 2018 23:50:53 EST ID:8hwK1pxu No.37450 Ignore Report Quick Reply
>>37448
That's just how polymorphism in C++ works.

A Rectangle IS A Shape so it can always be safely cast implicitly.
While a Shape may not necessarily be a Rectangle so it has to be explicitly cast.
dynamic_cast<Rectangle*>(shape)
>>
Wesley Furringnet - Sat, 24 Feb 2018 01:37:47 EST ID:BW3MomrQ No.37451 Ignore Report Quick Reply
You might be able to use references here too, but if that works then it's only because references are just pointers with nice syntax under the hood.


Developer at Amazon Video by Phyllis Gunderbare - Thu, 11 Jan 2018 21:01:01 EST ID:/G+nGQo2 No.37264 Ignore Report Reply Quick Reply
File: 1515722461566.jpg -(25399B / 24.80KB, 840x360) Thumbnail displayed, click image for full size. 25399
I'm a developer at Amazon Video, ask me anything
>>
Caroline Fecklecocke - Thu, 11 Jan 2018 21:46:29 EST ID:Ach3S7Tm No.37265 Ignore Report Quick Reply
I've heard nothing but bad things about Amazon as an employer. I don't have a question.
>>
Alice Hummerstut - Fri, 12 Jan 2018 01:44:28 EST ID:BW3MomrQ No.37266 Ignore Report Quick Reply
What do you specifically do on a day to day basis? What programs are you most often running and for what purposes?

How much effort do you guys put into content protection (such as HDCP) versus prioritizing working on improving customer-facing things?

Do you guys host Amazon Video out of the same datacenters that the public uses for public AWS nodes, or do you have special Amazon Video datacenters just for this?

How much hard disk space does Amazon's current video library take up?

Why is "Your Prime Video" separated from "Your Video Library" (this is always a usability thing that I run into - I'm looking for a video that I just purchased and I forget which category it shows up under, so I tend to have to look through both of them to find it...)?

It seems like the switching between HD and SD is automatic most of the time. Why did you guys choose to use this sort of a system (one that is automatic based on the empirically-measured bandwidth of the user while downloading the given video) versus something like what Youtube does where users can manually select between a bunch of different resolutions and frame rates? Is that a player limitation, a content limitation, or both?

What's the most interesting part of your day job?

What is the least interesting part of your day job?
Comment too long. Click here to view the full text.


Crypto Currency Technical Discussion Channel by Graham Docklehudging - Wed, 10 Jan 2018 22:16:05 EST ID:agmSr6q5 No.37263 Ignore Report Reply Quick Reply
File: 1515640565870.jpg -(154202B / 150.59KB, 1096x750) Thumbnail displayed, click image for full size. 154202
Thought this might interest the board! They discuss the technical merits and trading strategies a lot of different coins including ETH, BTC, and BCH. They also discuss programming methods, APIs, and workarounds for various echanges.

https://discordapp.com/invite/FcfwWpE


HOLY SHIT I'M ABOUT TO KILL MYSELF (SEGFAULT AT INDEX 0) by Lillian Puddlesture - Thu, 04 Jan 2018 10:17:51 EST ID:kvqggUwM No.37252 Ignore Report Reply Quick Reply
File: 1515079071468.png -(47908B / 46.79KB, 625x429) Thumbnail displayed, click image for full size. 47908
Has anyone ever had a segfault while accessing an array A at A[0][0]?
So, this is making me go insane. I have a good understanding of C, but I stopped doing anything with it after completing my exam about it (which was about simple client/server applications and implementing a petite GNU find).

Now I have to use it again for a BLOODY SIMPLE SHIT, WHICH IS GENERATING A FUCKING MATRIX. I've been banging my head on the wall for the past hour and nothing seemed to help.

My code segfaults at index (0,0) of the matrix. I isolated the problem by reducing it to a simple function that should print the contents of the matrix, which you can see in the image but I'm going to paste it here anyway:
[Note: not event matrix[0][0] is printed.]

#define RADIUS 7
int ** mask;

void printMatrix(int ** matrix, int size) {
for (int i = 0; i < size; i++) {
for (int j = 0; j < size; j++) {
//segfaults at i = 0, j = 0.
Comment too long. Click here to view the full text.
>>
Ian Bingerspear - Thu, 04 Jan 2018 15:09:48 EST ID:5/K3jMSW No.37253 Ignore Report Quick Reply
Obviously the matrix isn't what you think it is. Debugging with print statements like that doesn't help you much. Print more interesting information about matrix or better yet learn to use a debugger.
>>
Ernest Pimmledale - Thu, 04 Jan 2018 20:44:52 EST ID:4Jf4geC2 No.37254 Ignore Report Quick Reply
Okay so I ran your code through a debugger and figured out what happened. Also as one minor thing I think you forgot your #include's for printf and calloc (which I believe are <stdio.h> and <stdlib.h> respectively).

So you're using calloc() which allocates you cleaned memory that is set to all zeros. The NULL pointer is also represented by all zeroes. You should consider how the constructs you are invoking actually work here. What you're allocating with calloc() is a block of memory (in this case, a block of memory of size "RADIUS * RADIUS * sizeof(int)" ) and setting that memory to all zeroes. Then your code, outside of calloc, is creating an int** and pointing it to that newly formed block of zeroed memory.

If you were to access this block of memory as a regular int* array, like this:
int* memory = calloc(RADIUS * RADIUS, sizeof(int) );
for (int x = 0; x < RADIUS * RADIUS; x++) printf("%d,", memory[x]);
Then that would print out RADIUS * RADIUS zeroes, since all of the ints in your block of memory are zero.

Now what you did instead was you made a pointer-array pointing to that block of all zeroed memory. We can indeed print out the pointer values of each element in your array like this:
mask = (int**)calloc(RADIUS * RADIUS, sizeof(int) );
for (int x = 0; x < RADIUS; ++x)
{
int* thisPointer = mask[x];
printf("%p,", thisPointer);
Comment too long. Click here to view the full text.


Game Engines with open source-code by William Fanwater - Thu, 30 Nov 2017 17:54:29 EST ID:xESEUkvI No.37244 Ignore Report Reply Quick Reply
File: 1512082469156.png -(399990B / 390.62KB, 2000x1037) Thumbnail displayed, click image for full size. 399990
What are the best 3ngines to work with?
>>
Molly Fasslewane - Thu, 30 Nov 2017 19:18:04 EST ID:v79vrqu4 No.37245 Ignore Report Quick Reply
You mean FOSS or just a copy of the source with a license to use it?
>>
Henry Beblingbutch - Sat, 02 Dec 2017 02:30:33 EST ID:BW3MomrQ No.37246 Ignore Report Quick Reply
The ideal game engine is dependent upon what project you have in mind. There is no such thing as a "best" game engine.
>>
Nell Nagglefot - Sat, 02 Dec 2017 15:18:11 EST ID:9QSfnS0r No.37247 Ignore Report Quick Reply
Best as in most feature complete (level editor, asset management, rendering & events, virtual reality) and fully FOSS is Blender.


They don't want to solve this simple math by Anonymous - Thu, 16 Nov 2017 15:34:35 EST ID:/Irek0az No.37234 Ignore Report Reply Quick Reply
File: 1510864475496.jpg -(63851B / 62.35KB, 1200x599) Thumbnail displayed, click image for full size. 63851
Find out before it is taken down from the web: https://youtu.be/7GbsO-CFNMo
>>
Beatrice Banderdock - Thu, 23 Nov 2017 02:24:35 EST ID:BW3MomrQ No.37239 Ignore Report Quick Reply
>>37234
Naw dude, it's the weekend already...
>>
Angus Bluvingmork - Fri, 24 Nov 2017 20:52:29 EST ID:TMMzYIBA No.37241 Ignore Report Quick Reply
lol
>>
John Chesslepidge - Wed, 07 Feb 2018 06:19:43 EST ID:OAOU6kJR No.37351 Ignore Report Quick Reply
lmao bless you OP


TDD by Frederick Sushdock - Thu, 31 Aug 2017 10:33:41 EST ID:9cestl8h No.37169 Ignore Report Reply Quick Reply
File: 1504190021194.jpg -(324209B / 316.61KB, 503x376) Thumbnail displayed, click image for full size. 324209
Hey how often is test driven actually used in the real world.

Arrange - act - assert...
1 posts omitted. Click Reply to view.
>>
Oliver Cennerpetch - Fri, 01 Sep 2017 13:12:10 EST ID:P6PS9CBz No.37173 Ignore Report Quick Reply
I would agree with the above poster. Variants on "TDD-lite" are far more common than real full-on TDD. I think that asserts are pretty widely used (due to their low cost, low maintenance approach), though complete integration tests and even widespread use of functional testing are much less common.
>>
John Sockleson - Mon, 11 Sep 2017 19:29:18 EST ID:9QSfnS0r No.37189 Ignore Report Quick Reply
It one of the things teams wholeheartedly agree on to do for "the next project" during an intense debugging session.
After that it becomes irrelevant again.

Well sort of, this stuff is usually done for code that's intended to be shared on your github curriculum, because you want people to know you can if you must.
>>
Jack Chobblebot - Tue, 12 Sep 2017 10:50:53 EST ID:MEaLO7ku No.37190 Ignore Report Quick Reply
1505227853286.jpg -(89762B / 87.66KB, 493x396) Thumbnail displayed, click image for full size.
>>37189
> Well sort of, this stuff is usually done for code that's intended to be shared on your github curriculum

The pretty well sums up the quality of my code. "Will anyone else else ever look at this code? If yes then pretty code, if no then garbage."
>>
David Blatherbury - Fri, 15 Sep 2017 02:43:23 EST ID:P6PS9CBz No.37191 Ignore Report Quick Reply
>>37190
Yep same here.
>>
Frederick Drovingcocke - Fri, 17 Nov 2017 22:51:43 EST ID:uWLieSb9 No.37235 Ignore Report Quick Reply
tdd?

everyone wants to do it and you'll get points in an interview for familiarity with it, but I've never actually seen someone really do it. it's like agile, lot of people want to do it, they just have no idea how to actually make it really happen.


<<Last Pages Next>>
0 1 2 3 4 5 6 7 8 9 10 11
Report Post
Reason
Note
Please be descriptive with report notes,
this helps staff resolve issues quicker.