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

penis pump

Community Updates

420chan now supports HTTPS! If you find any issues, you may report them in this thread
Bubble Sort Question by Edwin Sembleworth - Fri, 20 May 2016 22:47:48 EST ID:YfNtQmPq No.35650 Ignore Report Reply Quick Reply
File: 1463798868276.jpg -(101782B / 99.40KB, 920x299) Thumbnail displayed, click image for full size. 101782
I have a question about a Loop in C ++.
I know how to write a loop and do a bubble sort but it just fucking kills me that this loop I have written here doesn't have any letters but it knows to sort the names I input by alphabetical order. HOW THE FUCK DOES IT DO THAT?!

for (int i = 1; i <= stud; i++)

{

cout << "Please enter the name of student " << i << ". ";

cin >> name;

if (i == 1)

{
Comment too long. Click here to view the full text.
>>
Phineas Bardson - Sat, 21 May 2016 01:47:52 EST ID:4AC8OQBZ No.35651 Ignore Report Quick Reply
>>35650
It looks to me like it doesn't sort the names you enter in alphabetical order very well. It only sorts to the front of the list or to the end of the list, but never into the middle of the list.

So if you entered letters of the alphabet instead of full names, then you could enter:
Z, Y, X, W, V, U, ...
And it'd print the alphabet correctly forwards ("sorted").

However if you enter this sequence:
A, Z, B, X, C, Y, ...
It would not end up printing the alphabet in order (it would not be sorted).


How to look at Tomorrow's stupid deal of the day??? by Phineas Wemmlenig - Thu, 19 May 2016 22:50:36 EST ID:NTDuQOYX No.35648 Ignore Report Reply Quick Reply
File: 1463712636794.jpg -(81527B / 79.62KB, 520x750) Thumbnail displayed, click image for full size. 81527
So at www.musiciansfriend.com they have a pretty great deal everyday called "The Stupid Deal of the Day". There used to be a way of seeing the image of tomorrow's stupid deal of the day when you looked at the script of the page but it looks like they figured out people were doing that. Is there another way to check it out (that's still legal) ?
>>
Edward Hottingwill - Fri, 20 May 2016 03:18:37 EST ID:92a19VVt No.35649 Ignore Report Quick Reply
There isn't a compelling reason for them to design the page in that way, so probably not.


Good starting place by Fuck Brookfuck - Wed, 11 May 2016 17:09:08 EST ID:KNHdydFq No.35604 Ignore Report Reply Quick Reply
File: 1463000948348.png -(831535B / 812.05KB, 575x560) Thumbnail displayed, click image for full size. 831535
I'm sure this question has been asked a million times but where is a good place to start programming. I remember years ago when I was first interested, all fingers pointed towards python. I remember trying python a few times and I never ended up sticking with it.

What is a good language to start with?

My goal is to know and understand web development, and app development. I would say I have a good understanding of html. I want to soon learn java script, but not sure what to learn after that.

My next question is. What is a good resource to learn these languages? What are some good books that really get to the point and accurately explain what I need to know?

This is all my thoughts off the top of my head. Sorry if this wasn't organized well. If you need any other information just ask.

Pic unrelated
>>
Jarvis Horringchot - Wed, 11 May 2016 21:58:03 EST ID:w/mYfe4W No.35608 Ignore Report Quick Reply
Web dev here. My first foray into Javascript was adding effects and interactivity to static pages using only jQuery, and I probably wouldn't have enjoyed it as much otherwise. jQuery is nice because it abstracts away a lot of the tedium and cross-browser concerns of DOM manipulation, but doesn't limit you at all in terms of building production-ready sites and apps. It is (obviously) a hugely popular library and one that will benefit you professionally to know how to use well, especially once you start working with its sister libraries (jQuery UI and Mobile) and writing your own plugins.

After that I moved on to Angular for building larger apps, which I really like. I can't speak for other frameworks like React (which Facebook is built on, I believe) but Angular 2 is on the horizon so it's a good time to get started. In working with Angular, I have learned a lot more about Javascript itself, and I feel like I could do just about anything with the language now.

There's also Node if you're more interested in server stuff, but I don't have much experience with that besides using NPM and gulp.

I learned both jQuery and Angular just by reading the docs (jQuery's are excellent; Angular's are somewhat lacking), experimenting and spending a lot of time on Google and Stack Overflow. The only specific resources I'll recommend that I've found helpful are (founder of jQuery) John Resig's Secrets of the Javascript Ninja which covers a lot of useful information about the language itself and how to write cleaner and more performant code. That, and Code School, which is where I got my first taste of Angular and really got excited about it.

I'm by no means an expert, but I'm making a decent living with these skills so I figure I'm doing something right.
>>
Samuel Blurringsture - Thu, 12 May 2016 12:40:07 EST ID:mfkLzG/S No.35609 Ignore Report Quick Reply
The Zed Shaw books are a good intro and he has free copies up
http://learncodethehardway.org/
http://learnpythonthehardway.org/book/ is a good starter

There's lot's of shit in compsci you'll need to know like algorithms, and why one algorithm is faster than another O(n), O(1), ect. You can learn this from Harvard's free intro to compsci https://www.edx.org/course/introduction-computer-science-harvardx-cs50x

This page basically covers the entire course condensed: https://study.cs50.net/

After, every compsci student takes a course in abstraction. Harvard has CS51 (CompSci II) but it's not public so what you can do is take SICP instead, which is the same course http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/ read the lecture notes, then read the chapters, do the book exercises. This book is important because it literally hands you everything you will run into while programming.

This is as to the point as you can get. Zed Shaw very to the point, the Harvard course if you skip the lectures and just watch the "Sections" or "Walkthroughs" also very to the point. SICP is a masterclass in writing where absolutely no word is superfluous, and every exercize important. If you want to learn Linux/Unix command line filters after, get the small book "The Unix Programming Environment" it's a crash course on the commandline and all you will ever need to know. Combine that book with Zed Shaw's Regex online book and now you can call yourself DevOps.

Congrats you're now a programmer that's already better than 60% of other developers. Now go get a book on modern Ruby, or advanced Python book, or gopl.io book (since very similar to C) and you can now go earn some money somewhere. As you go through the books type out all the programs, do the exercises. Try learning a framework, like Django if doing Python or Rails if doing Ruby.

If you want a job, at some point during all this go on stack exchange and start helping people with Python, Ruby, C, or other questions of shit you learned. Then go apply somewhere for 'Remote Support Engineer' and show…
Comment too long. Click here to view the full text.
>>
Samuel Blurringsture - Thu, 12 May 2016 19:51:12 EST ID:mfkLzG/S No.35613 Ignore Report Quick Reply
>>35609
I forgot to add, the language you learn in any intro to programming book or course doesn't actually teach you that language, it's just a prop to help you learn the basics like for-loops/while do/arrays/hashes ect. Pick the course that has the least amount of weird syntax going on so you aren't distracted for example if you do the Zed Shaw Ruby book, you'll run into the strange Ruby syntax of how they do loops (each.do) and other language specific shit like screwing around with gems that you can always learn later after you get the basics down.

You learn the actual language when you're finished the course and go get a book on React or Javascript or Ruby that completely covers the language and all it's standard libraries, then you go through that book. If it's a good book it will have exercises to test your knowledge so you really actually learn the material instead of reading and forgetting a day later.


Returning a String Java by Phyllis Clinnershit - Mon, 15 Feb 2016 01:01:23 EST ID:9GNL65xE No.35160 Ignore Report Reply Quick Reply
File: 1455516083471.jpg -(33118B / 32.34KB, 300x300) Thumbnail displayed, click image for full size. 33118
I have a class called Model, which has one enter in data for a particular model.
I want a method that takes height in inches and converts it into feet and inches using a static instance variable and then returning it as a String. The instruction state to return it as a string.

class Model
//instance variables
private int height;
public static final int IN_PER_FOOT = 12;

public int getHeight(){
return height;
}

public void setHeight(int modelHeight){
height = modelHeight
}
Comment too long. Click here to view the full text.
>>
Cyril Driggleket - Mon, 15 Feb 2016 17:27:07 EST ID:FZqsCuoJ No.35171 Ignore Report Quick Reply
>>35160
Why is your code obviously incorrect?
Because your method doesn't take in height as inches?
>>
Walter Hedgenod - Wed, 04 May 2016 10:51:19 EST ID:TBTemjoO No.35551 Ignore Report Quick Reply
>>35160
You are missing a " on the end of the line

String feetAndInches = feet + "feet" + inches + "inches;
>>
Stphan Floffingbridge - Fri, 06 May 2016 08:43:49 EST ID:SWJfiJ9j No.35566 Ignore Report Quick Reply
>>35551
Cyril is correct, however you should also get into the habit of cleaning up your code. Instead of declaring a new String try:

return String feetAndInches = feet + " feet " + inches + " inches ";

It's also never too early to get in the habit of handling data in strings properly. Your method works for a display method but outside of software-dev 101 you'll want to do this:

return "feet="+feet+",inches="+inches;
This will allow you to easily process the data OR use it in a display method, i.e:

public void displayFeetInches(){
String data = convertHeightToFeetAndInches();
if(data!=null&&data.length()>0){
if(data.contains(",")){
for(String line : data.split(",")){
Comment too long. Click here to view the full text.
>>
Reuben Brookstock - Sat, 07 May 2016 11:41:52 EST ID:9QSfnS0r No.35568 Ignore Report Quick Reply
>>35566
>return "feet="+feet+",inches="+inches;
> This results in your desired output but increases cohesiveness while reducing coupling.
lol no quite the opposite there is no coupling when dealing with local variables and it's way more useful to be able to change the return value of a function.


SOLID is a bad idea even for a mature software developer but of a bloody newbie it's probably the one thing that can lead to discouragement at this stage.
>>
Stphan Floffingbridge - Sat, 07 May 2016 20:39:12 EST ID:SWJfiJ9j No.35577 Ignore Report Quick Reply
>>35568
Yes, you are absolutely correct... There are certainly multiple ways to handle this.
My answer, however, is in the context of Java which OP is using (and returning a String, which OP is trying to do).
Following Java's default toString format is ideal when you are passing multiple data values as a String. (Imagine the chaos if every developer on a large scale project was just making up their own format for returning toString data)


C++ ifstream by Edwin Pittcocke - Thu, 05 May 2016 16:16:15 EST ID:jD7NTaOL No.35559 Ignore Report Reply Quick Reply
File: 1462479375725.jpg -(11449B / 11.18KB, 320x240) Thumbnail displayed, click image for full size. 11449
I have already #included <fstream>
and am running this
std::ifstream dictionary;
dictionary.open (filename);
the filename is correct and the file is in the same folder as the program on linux using a g++ compiler. I have no idea why this is not working or reading the file
>>
Fanny Chashbury - Thu, 05 May 2016 19:36:52 EST ID:JhIhwAJD No.35560 Ignore Report Quick Reply
>>35559
Are you reading the file after you open it?

What is the error message you are getting?


JQuery VS Javascript For the Web? by Priscilla Sunkinwell - Mon, 28 Mar 2016 19:51:10 EST ID:tSOrTy4O No.35414 Ignore Report Reply Quick Reply
File: 1459209070082.png -(112393B / 109.76KB, 1366x768) Thumbnail displayed, click image for full size. 112393
I am starting to dig JQuery but it will always be JS at it's core. What do you all think?
1 posts omitted. Click Reply to view.
>>
Walter Feffingshaw - Tue, 29 Mar 2016 00:46:45 EST ID:dw4jEIU+ No.35419 Ignore Report Quick Reply
I think a mod told you to keep to one thread.
>>
Matilda Blaffingville - Tue, 29 Mar 2016 01:15:45 EST ID:tSOrTy4O No.35420 Ignore Report Quick Reply
this is a question bro
>>
Eugene Tootshaw - Tue, 12 Apr 2016 04:16:11 EST ID:hFDFtj8J No.35472 Ignore Report Quick Reply
I spent 3 years having to support ie8 for work, for some apparently super "important" internal facing legacy garbage. Jquery is the only reason I could do that without hanging myself from a highway overpass.
>>
Walter Hedgenod - Wed, 04 May 2016 10:45:51 EST ID:TBTemjoO No.35550 Ignore Report Quick Reply
When you learn to properly code frontend, you don't want to use Jquery. For data binding you should use a library designed for it, such as knockout.js. For manipulating DOM-elements you can use plain JS or a library/framework designed for it.
>>
Wesley Smallwater - Wed, 04 May 2016 16:18:02 EST ID:9QSfnS0r No.35553 Ignore Report Quick Reply
>>35550
That's because most people don't work at a fortune100 company.
So no time to code fronted "properly" because there are also backend and business logic they have to take care of. And that's more important than if some ancient browser only stupid people use crashes.
sncr.


Amateur Game Development by Hugh Hublingfadge - Tue, 03 May 2016 22:51:33 EST ID:LroNL5Dp No.35548 Ignore Report Reply Quick Reply
File: 1462330293650.png -(37592B / 36.71KB, 341x170) Thumbnail displayed, click image for full size. 37592
So, the near mythical amounts of shitposting on 4butt's amateur gamedev general has caused some to seek refuge in the cozy, moderated arms of 420chan. But I think maybe it's a bad idea to try and migrate, and a better idea to try and start a new community.

I'm more of a math person but I do like programming, and I think gamedev provides a great canvas for working on programming skills. Some of my first programming as a kid was the turtle shit, and much later, I had fun just making a box bounce around and change colors based on some code.

So besides just shilling >>>/vg/664016 I also think we will see more gamedev in the early classroom. (wouldn't be surprised if it's in the classroom now, I have no part of that world though) What do you think?
>>
Clara Blammerbanks - Wed, 04 May 2016 01:21:52 EST ID:4AC8OQBZ No.35549 Ignore Report Quick Reply
>>35548
It's in the classroom now. Most classrooms actually. My niece in San Francisco is learning Scratch at school now to make simple little games, and she's loving it!


Java noob here... how do i android studio? by Phineas Dodgetork - Sat, 02 Apr 2016 23:58:13 EST ID:SWJfiJ9j No.35433 Ignore Report Reply Quick Reply
File: 1459655893980.png -(66269B / 64.72KB, 1130x720) Thumbnail displayed, click image for full size. 66269
wtf is this xml shit? Where do I put the java to make it do things?
9 posts and 1 images omitted. Click Reply to view.
>>
Matilda Blackwell - Sun, 10 Apr 2016 17:49:09 EST ID:5q2tULje No.35459 Ignore Report Quick Reply
>>35455
I always wondered one thing: Do you lispers actually type all those parenthesis, or does the programming environment do it for you.
I even get light headed when I have a more than three nested procedural function calls in c like syntax, I can't Imagine how it would be with Lisp.
>>
Simon Creffinghot - Sun, 10 Apr 2016 20:28:38 EST ID:GbHobBfJ No.35462 Ignore Report Quick Reply
>>35458
Python lists are very powerful and you can actually implement Lisp with them ( http://docs.hylang.org/ ) but no, not at all.

>>35459
Highlighting and indentation go a long way. The real cognitive load is I think inherent to functional programming.
>>
Matilda Blarringbanks - Sat, 16 Apr 2016 00:09:31 EST ID:vIbiteGg No.35494 Ignore Report Quick Reply
>>35449
https://www.youtube.com/watch?v=Z98hXV9GmzY
fuck you for asking me to endure that. What the flying fuck was that corporate nonsense?

It seems AndroidStudio switched to gradle which would be fine but all the projects I want to contribute to are on ant/maven and there is no clear way to run those in Gradle studio.

Also why the fuck cant i cli this shit? WHY MUST I USE AN IDE?
>>
IDE - Sat, 16 Apr 2016 15:13:59 EST ID:tSOrTy4O No.35499 Ignore Report Quick Reply
I don't know enought about droid os to answer your question about why. I can tell u about AIDE an Android based IDE That is IMO very Easy to use and understand than ADS!!
>>
Cornelius Sobberhun - Mon, 02 May 2016 15:16:42 EST ID:8gl+mZ4G No.35542 Ignore Report Quick Reply
>>35494
> want to contribute to are on ant/maven
hahaha
Calm down and make a new branch ffs


I could use some help by Sidney Hozzleson - Mon, 25 Apr 2016 19:12:17 EST ID:bcf8kw7H No.35526 Ignore Report Reply Quick Reply
File: 1461625937131.png -(163487B / 159.66KB, 1366x768) Thumbnail displayed, click image for full size. 163487
Hey guys, I'm in a CS course on understanding operating systems. I have this code assignment that I'm pretty confused about and the class is all online. We haven't really even learned about coding in the class (I've already taken classes that teach code, but not this kind of thing), just the various aspects of an OS. Could any of you guys give me some suggestions on how to go about this assignment? I'm okay at coding but this has me a bit confused. I can do this in any language. I plan to just use Python, but I also know a bit of Java and C++. I'll be really grateful for any guidance. Pic related, it's the assignment.
5 posts and 1 images omitted. Click Reply to view.
>>
George Bunderfag - Tue, 26 Apr 2016 22:28:50 EST ID:lSbxvUCI No.35532 Ignore Report Quick Reply
>>35531
lolwut? How the fuck would you even propose that OP find such a version, if it indeed exists?
>>
David Cloddlewell - Thu, 28 Apr 2016 19:00:56 EST ID:G5UQTlPX No.35535 Ignore Report Quick Reply
>>35532
>

>lolwut? How the fuck would you even propose that OP find such a version, if it indeed exists?
>
Version control?
>>
Isabella Surrydale - Thu, 28 Apr 2016 20:35:15 EST ID:5q2tULje No.35536 Ignore Report Quick Reply
>>35535
https://www.kernel.org/pub/linux/kernel/Historic/
>>
Barnaby Smallridge - Thu, 28 Apr 2016 23:01:02 EST ID:CPIPn/RL No.35537 Ignore Report Quick Reply
>>35535
>>35536

Cool. Now just track down a particular version that may or may not have the code OP needs but almost certainly can't read because he "knows a bit of C++".
>>
Isabella Surrydale - Fri, 29 Apr 2016 02:46:36 EST ID:5q2tULje No.35540 Ignore Report Quick Reply
>>35537
something about the lines of
# wget -r -l1 -nH --cut-dirs=2 --no-parent -A.tar.gz --no-directories
https://www.kernel.org/pub/linux/kernel/Historic/
# for a in `ls -1 *.tar.gz`; do gzip -dc $a | tar xf -; done
# grep -Rin "FCFS" .


MIPS Instructions by Rebecca Greenson - Thu, 28 Apr 2016 18:37:21 EST ID:tWqw3xwf No.35534 Ignore Report Reply Quick Reply
File: 1461883041958.png -(270309B / 263.97KB, 300x345) Thumbnail displayed, click image for full size. 270309
Does anyone know an easy way to memorize how many bits are in each section of an R-Type, I-Type, and J-Type instruction, and how to differentiate between them when given a bare MIPS instruction ie 34110000?
>>
Doris Murdman - Fri, 29 Apr 2016 02:18:45 EST ID:4AC8OQBZ No.35538 Ignore Report Quick Reply
Perhaps this will help:
http://www.eecg.toronto.edu/~moshovos/ECE243-2009/l19-instruction-representation-stored-program.html


RecursionFX by Buttz McButterson - Mon, 18 Apr 2016 05:53:27 EST ID:rPpNgdEP No.35504 Ignore Report Reply Quick Reply
File: 1460973207629.png -(1955B / 1.91KB, 448x224) Thumbnail displayed, click image for full size. 1955
Trying to teach a friend about Events using Towers Of Hanoi, and he's using JavaFX, wondering if anyone's got any useful examples I could show him? So far he's got the pieces made and stacked up but having trouble with the Event side of things.
>>
Clara Pockbanks - Mon, 18 Apr 2016 16:15:28 EST ID:lP2HGMzK No.35507 Ignore Report Quick Reply
>>35504
I don't understand how events are particularly suited to this game?
What sort of events do you have in mind, aren't click events and mouse over better choices?
>>
Priscilla Pimblepack - Thu, 21 Apr 2016 00:52:15 EST ID:tSOrTy4O No.35514 Ignore Report Quick Reply
You can use functon Collided(Imga, Imgb){
}
and encapsulate that within the event change thats urually the best one or mouse move/up/own/keypress/leyup/keydown ...ect what lang?


New small programming ebook by George Chaddleway - Sat, 16 Apr 2016 16:07:45 EST ID:2j/vWnYO No.35500 Ignore Report Reply Quick Reply
File: 1460837265352.png -(93953B / 91.75KB, 900x1200) Thumbnail displayed, click image for full size. 93953
The Ultimate Question of Programming, Refactoring, and Everything - http://www.viva64.com/en/b/0391/

PDF: https://yadi.sk/i/u11TL5ccr2cSf
>>
Alice Drettingbanks - Sun, 17 Apr 2016 02:26:32 EST ID:W/zS63TD No.35501 Ignore Report Quick Reply
>>35500
i report yu


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