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

CuckOverflow attacks and downboats me every time I ask something.

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: 132
Thread images: 13

File: so-logo.png (6KB, 1000x298px) Image search: [Google]
so-logo.png
6KB, 1000x298px
CuckOverflow attacks and downboats me every time I ask something. What's the point of this elitist circlejerk if they won't even help beginners with coding?
>>
>>52524759
Maybe you're retarded. Post an example so we can judge.
>>
File: Ruby_on_Rails.svg.png (107KB, 791x1024px) Image search: [Google]
Ruby_on_Rails.svg.png
107KB, 791x1024px
I just wanted to know how to write a simple PHP code like this in Ruby on Rails:

$urls = array (
"1.html",
"2.html",
"3.html",
"4.html",
);
$random = mt_rand(0, count($urls) - 1);
header ("Location: ".$urls[$random]);
exit;

Appearently that deserves -6 in 5 minutes.
>>
>>52524801
Should have been -100. RTFM idiot.
>>
>>52524801
Maybe you should read a forum's rules first before posting there
>>
>>52524759
>>52524801

google before posting your babby shit on SO
retard
>>
>>52524815
Guess what, I'm stupid

Making that PHP code took me a day

But people would rather call me retarded than help me out with a simple fucking RoR code
>>
File: 900270110.png (71KB, 291x108px) Image search: [Google]
900270110.png
71KB, 291x108px
>>52524759
post your questions or gtfo
>>
>>52524801
I just wanted to know how to write a simple Python code like this in Ruby on Rails:

print("Hello world!")

Appearently that deserves -6 in 5 minutes.
>>
>>52524840
It's a website where you ask technical questions, not get people to do your homework, (Rajeesh|Chen Ling)
>>
>>52524849
you're a retard
>>
>>52524840
What is the point of that code even. It allready looks retarded, just delete it and write something that is better.
>>
>>52524840
Why didn't you just ask stackexchange how to do that in PHP?
>>
>>52524870
I did and they told me to fuck off
>>
>>52524801
Post SO link so I can downvote you also.
>>
>ask for help with code
>LOL YOUR STUPID DON'T CODE AT ALL

Fucking nerds.
>>
>>52524897
Coders are usually the worst people
>>
>>52524855
because?
>>
>>52524759
>if they won't even help beginners with coding
I don't think helping beginners is the agenda at SO anon desu.
>>
>>52524897
Judging by the question he posted on a forum because he couldn't even use a fucking search enging to get the answers, OP is stupid and shouldn't try to code at all.
>>
>>52524759
>>52524801

StackOverflow isn't for straight beginners, they make this quite clear. It's okay to be a beginner and ask questions, but one of the big, bolded things it says when you ask a question is to 'make sure you've researched and tried to solve the problem on your own'. They want questions that people can reference in the future, should that question arise again. They DON'T want people asking the same question over and over again that's been answered a million times.

Also, while occasionally asking for help on a particular problem isn't bad, becoming dependent on it makes you a bad software developer. It's important to know what you're working with and be able to come up with solutions on your own, as opposed to having your entire code base be a patchwork of copy/pasted SO code.
>>
>>52524759
Read the rules of SO, faggot. As an active user, you can't imagine how much shit we read every day. Also, if the question is formulated correctly, it doesn't get downvotes, even if it is retarded question.
>>
>>52524918
How do you even search code like this?
>>52524801

Not op but that looks confusing as hell
>>
>>52524929
I'm unable to understand any coding beyond HTML/CSS

I'm okay with my website being a patchwork. I just want it to work. I'm not trying to be a programmer. I just need to code some specific things.
>>
So can anyone help me or do I just go fuck myself?
>>
>>52524963
yeah, mate, SO won't do your homework for free.
Stop criticizing people just because they refused to do your own job. Quick rules:
1. Google beofre posing
2. Post a piece of code that shows you have tried solving the problem and failed.
3. Post what doesn't work in your code.
>>
>>52524962
>How do you even search code like this
You search for whatever the hell it is you're trying to do. You don't just post the code, expecting people to figure out what you're trying to do.

OP didn't explain shit. From the code, it seems it's trying to make a script that feeds you a random url from the array of html pages.
>>
>>52524962
"ruby rails array declaration"
"ruby rails random number generation"
>>
>>52524962
(0. "ruby example code")
1. "arrays in ruby"
2. "ruby random element from array"
3. "ruby visit site"
That's what I would do if I had to write OP's code in a language I never heard of before
>>
>>52524963

You may want to try a traditional forum, quite possibly the QTDDT or DPT on here might give you some assistance. StackOverflow isn't really meant to be a 'help desk' of sorts, the mindset of the community, and website as a whole, is that it's very academic.

It's fine to be a newbie and not immediately get shit, we were all new at once, but StackOverflow isn't the place to ask new, redundant questions.
>>
>>52524991
What do you want?

Search for
- ruby arrays
- ruby random
- ruby echo/print

it's literally in every beginner tutorial
>>
>>52524962

>How do you search for code like this.

You're not searching for 'code', per se. You have a problem, you need a solution to that problem in a given langauge/setting. So your first step would be to enter something into google like..

"(What I want to do) in (What language I need to do it in)"

Omitting the "in" is optional because google really doesn't give a shit.
>>
File: patrick.jpg (19KB, 225x225px) Image search: [Google]
patrick.jpg
19KB, 225x225px
>>52525014
Can't you see? I still wouldn't understand. My PHP code is made by pure luck. I barely understand it myself.
>>
>>52525047
Get a book in programming and stop wasting others' time.
>>
>>52525059
THIS IS WHY I HATE ALL OF YOU

I'VE TRIED

EVERYBODY CAN'T BE A PROGRAMMER
>>
>>52524801
>These are the kind of retards who bash on stackoverflow.

RTFM
>>
>>52525047
Get a book in maths too
knowledge in programming might be useful, but problem-solving skills even more
>>
>make an edit because guy asking question fucked up the formatting in one or two places
>reviewed by the author himself (3000) and some other fuck (3500 pts)
>edit rejected
>>
>>52525047
>I barely understand it myself
you..don't understand what you're trying to do?
>>
>>52525067
You're right.
Give up.
>>
>>52525067
Absolutely wrong.
Every retard can do simple stuff that you are trying to do.
>>
>>52525067
let's start easy
What are you trying to achieve with your code?
What are you trying to achieve by having your code in Ruby instead of PHP?
>>
>>52525047

You need to understand a few things..

- Most programmers don't work for free, a lot of them do it as their job. Most people who do something as their job, really don't want to spend their free time doing it for free. Much like being a mechanic, outside of a good project or two, you don't want to see your job when you get home.

- Do you plan on maintaining this code in anyway? What you need to add/fix something? To do either of those things you need to understand your code.

A huge part of coding, and I mean huge, is learning how to solve problems yourself. Even if you're completely stuck in the water with no direction, you've got to learn how to obtain direction and figure it out, even if that means just plugging in shit in a futile attempt to get something to work, you'll often learn just by doing that.
>>
>>52525067
So find a living person that would help you. Attend a class maybe. Communities you so much dislike for not helping you were not made for helping people like you in the first place.
>>
>>52525084
Yes. The code is my index.php and it redirects the user to a random page. But it's a miracle I put it together. Won't ever happen again.
>>
>>52525067
>EVERYBODY CAN'T BE A PROGRAMMER
Then stop trying
>>
>>52525125
I have to for my shit to work
>>
>>52525106
If that's the motivation you have then you should just give up on programming
>>
>>52525134
It's not going to work because you don't know how to make it work. Pay someone else to do it for you like with everything else you don't know how to do and can't learn.
>>
>>52525106
why do you need it in ruby?
>>
>>52524801
>hey guise, i dunno lang X, halp me translate to lang Y pleas, guise pleeeeaaase
Fuck off and learn rails then you retarded autist.
>>
>>52525096
It's my index.php. I need it in Ruby because I'm done ith PHP, and if I can see how this works in Ruby, then I can maybe figure out how to change my other PHP stuff to Ruby as well
>>
File: google-it.png (14KB, 482x500px) Image search: [Google]
google-it.png
14KB, 482x500px
I think what these anons are trying to say is that you, as a developer/programmer, should spend time doing extensive research before asking such simple questions. If you haven't found anything after hours of research, go back and look at your code. Then research more.
>>
>>52525166
>implying i'm not dirt poor and this project isn't my only chance at having a decent income
>>
>>52525167
Something's wrong with my PHP codes, they don't work even though they should. Maybe if I can convert them to Ruby, they can be saved
>>
OP should really go read a tutorial or two first.
>>
>>52525186
Then I guess you're fucked. It's not going to make you any money if you can't build the simplest of parts of it.

Maybe you're dirt poor because you're retarded and skill-less
>>
>>52525202
Tell me something new you autistic faggot
>>
File: 1447374096827.jpg (36KB, 774x435px) Image search: [Google]
1447374096827.jpg
36KB, 774x435px
>>52525199

>code doesnt work
>guess i'll switch to another language
>>
>>52524759
probably cause you post things in the wrong place

see:>>52524759
>>
>>52525199
>code doesn't work in language I know nothing of
>maybe it'll work in this other language I know even less of
>>
>>52525215
>>52525230
I also personally hate PHP and the way it works
>>
>>52525208
Get a book in PHP/Python/whatever and start from the beginning. Stop trying to build a big thing immediately. Start small.
>>
>>52524759
>CuckOverflow
So this is the kind of person that spams cuck.
Not surprising in the slightest.
>>
google 'display random page ruby on rails'
>>
>>52525266
No results exact enough
>>
>>52525281
>No results exact enough
found the problem
>>
>>52524759
>legit answers are on a question
>some clown with 907816235762834571309284 reputation makes a joke and everyone upboats it to 500
epin
>>
>>52525281

Yes, because you're doing something different with your code..

Honestly, before you try fucking around with code in ANY capacity, it's paramount that you can take an example of what you're trying to do and piece it together in such a way it'll work for your situation. That's a problem solving skill on par with opening a jar..
>>
File: 1447015406101.jpg (25KB, 552x594px) Image search: [Google]
1447015406101.jpg
25KB, 552x594px
>>52525281
i dont know what you're expecting outside of someone literally doing it for you
>>
>>52525281

Try researching for the method of what you're trying to do, not a copy and paste cheat sheet.
>>
>>52525301
never happens. They are serious about the content. Jokes get nothing but downvotes.
>>
>>52525309

This is what he wants, however; he doesn't understand no one wants to deal with the headache, especially if they're not being paid.
>>
File: help.png (166KB, 475x624px) Image search: [Google]
help.png
166KB, 475x624px
>>52525312
>>
>>52525239
You're going to hate everything you try if this thread is characteristic of your attitude to learning.

Though I have to agree on PHP deserving some special scorn.
>>
>>52525324
Since everyone's so smart, I didn't think it would be a headache for such a small code
>>
>>52524759
Yeah it's not a helpful place for beginner questions. Tbh senpai reddit is a better place for getting beginner questions answered.
>>
>>52525348

If it is such small code, and you can't figure it out, then it would be a headache to try and answer your questions.
>>
>>52524801
hahahahahahahahahahahaha
>>
File: anal man.jpg (4KB, 356x103px) Image search: [Google]
anal man.jpg
4KB, 356x103px
>>52525375
Who helped you put on your big boy pants today?
>>
>>52524801

Disclaimer: I don't know Ruby, nor have I ever tried it.


urls = ["1.html", "2.html", "3.html", "4.html"]

request.add_field 'Location' urls.sample

Retards can figure this shit out you bloody degenerate
>>
>>52525320
Here you go nigger, it would be the highest but the other guy wrote a fucking book.
http://serverfault.com/questions/339128/what-are-the-different-widely-used-raid-levels-and-when-should-i-consider-them
>>
>>52525348

I don't think you quite realize what a pain in the ass it is to try and help someone do something and that person doesn't even know WHAT they want to do.
>>
>>52525388
I'm going to assume you think I'm trying to be an asshole but I'm seriously just being genuine. If you can't take that then gtfo.
>>
>>52525399
I know what I want, just not how
>>
>>52525398
You are literally linking to the page where the situation you described does not happen. Real answer has 4 times the score of a joke. Are you stupid?
>>
>>52524759
Have you tried reading the fucking manual yet? Because it totally works.
>>
>>52525419
Hire a man to do it for you.
>>
>>52525439
>money
>>
File: reddit-alien-215x300.png (24KB, 215x300px) Image search: [Google]
reddit-alien-215x300.png
24KB, 215x300px
>>52524759
>>52524815
>>52524882
>>52524917
I fucking despise reddit, *overflow and all sites which employ a reputation system then ask le tricky questions to boost their reputation.

An invisible hand of Q&A exist in a free market without reputation system:
>anyone can ask any question (even if it's duplicate)
>anyone can answer any question (even if it's easy or already answered)
>the questioner benefits because he earns knowledge from the solution of the issue.
>the answerer benefits because answering duplicate questions refines his knowledge

It doesn't matter if a question was asked by a senior with 15 years experience, Pajeet, or a 12 year old trying to make his video game in C++. It doesn't matter. If you have a problem, you ask to get a solution. You don't ask questions to get responses like "OMG this is so le tricky xD dunno the solution, but I like the question!" and this is what these sites encourage and consider a good question.

Just imagine grade math teacher teaching math with "Just google the solution dumb kids, all the answers are there!", and only the autistic nerds asking about degenerate cases no one ever thinks about or cares about get an A.
>>
>>52525428
>4*42 = 168
>168 > 155
Go back to school dumb fuck. See, I can do it too.
The fact that an epin joke got 42 votes just goes to show how much of a fucking joke that site is.
>>
>>52525471
Fucking thank you

I'm tired people and their meme points
>>
I exclusively ask stupid beginner questions on SO, since I am a stupid beginner.

Also, I never really learned programming in general, or the language I use.

Yet, I only got one or two downvotes so far, but even those questions have always been answered quickly and thoroughly.

My secret?

>Explain WHAT I want to do and WHY

>Explain what I tried, where I am coming from and what I researched in order to answer this question myself

>Give some ideas, suspicions of where the error might be, or what direction I think the answer would be

>Give some well formated code example + (erroneous)output

>Be polite and write in clear sentences

Magic!
>
>>
>>52525476
>The fact that an epin joke got 42 votes just goes to show how much of a fucking joke that site is.
No, it does not. I don't know where you're getting this.

And you are a retard. Before I was just throwing empty insults to shame you for making a statement you know to be false. After your complaint about math, I can see with clarity that you need medical assistance.
>>
>>52525504
Conveniently, your questions are also going to be a lot of help for other newbies.
>>
>>52525471
Points free system is the opposite of a free market

In a free market, people are driven by their desire for money. This can lead to great things and despicable things. But all of these things have in common that they were not done for the sake of the thing or its inherent effects, but for money

Same shit applies when you have upboats and people start chimping out the way you described
>>
>>52525471
It's not the fact of the place or who x person asks, it's the fact of pure laziness when it comes to simple questions. Sure, the question may not be simple for x person but that's why you should ask the simple questions in the right places to the right people. Not on forums such as Overflow.
>>
>>52525471
>>52525480

I can't speak for Reddit, but as explained earlier - StackOverflow is very clear in it's goals. They don't want people coming in, asking a redundant question that's been answered a billion times. Making a programmer who just asks 'HOW DO I SOLVE PROBLEM, K?" and then spoon feeding them the answers makes shit programmers. You bitch and moan about "muh meme points and rep D:::" and "omg dont give me trivia quesstions spoon feed me plsX DDD" when that is the kind of shit that makes shitty programmers and pollutes the community as a whole with idiots.

Complaining about StackOverflows mindset, when they make it so fucking clear when you sign-up, is quite literally like going to a Chinese restaurant and complaining they serve Chinese food. If you don't like actually making yourself a not shit programmer, then go be a complete fucking retard somewhere else.
>>
>>52524963
>I do not want to bother to learn programming.
>I just want it to work.
Then hire a programmer, they are available for some $$$.
>>
File: My_point_exactly.png (303KB, 268x200px) Image search: [Google]
My_point_exactly.png
303KB, 268x200px
>>52525546
>>
>>52525512
>hurr that doesn't happen
>durr that example doesn't mean anything
>ur dumb
Nice arguments dipshit.
>>
>>52524801
reeeeeeeeeeeeeetard
>>
>>52525644
That example doesn't mean anything; the only thing score actually matters for is ordering and replies are presented in correct order in that example. There literally is no problem on that page.
>>
>>52524759
JUST
>>
>>52525471
A teacher gets paid to teach all the dumb kids.
What do forum users get paid exactly?
>>
>>52525731
This, not everybody works for good boy points.
>>
>>52525716
>stackoverflow is super serious
>joke with 42 upboats
>that doesn't mean anything
Keep moving those goalposts, maybe someday you'll be right.
>>
>>52525546
>Making a programmer who just asks 'HOW DO I SOLVE PROBLEM, K?" and then spoon feeding them the answers makes shit programmers. You bitch and moan about "muh meme points and rep D:::" and "omg dont give me trivia quesstions spoon feed me plsX DDD" when that is the kind of shit that makes shitty programmers and pollutes the community as a whole with idiots.

Right, instead of asking how something is actually done, a good programmer goes around google searching for similar questions, copypastes the parts of solution he doesn't understand to his code (beacause nobody got to explain to him how it works), and mashups a hideous monstrosity that somehow just werks and he calls it a day.

And there's your "good programmer" (of PHP perhaps)
>>
>>52525067
There you have your answer. Just give up
>>
>>52525756
You're acting like there is a problem when there is not.
>>
>>52525766

A good programmer won't have to refer to StackOverflow every 5 minutes to solve every problem they encounter, they will understand basic programming concepts/the technologies they're working with enough to be able to productively and effectively solve the problems they need.

Even if they do need to research to solve an issue, a good programmer can utilize the already NUMEROUS available resources available to solve their problem. Maybe even read some pseudo-code, know how to apply it, and optimize it for their situation.

What you're advocating is poor, spoon-feeding practices. It's that simple.
>>
>>52525756

Here's something, have you yet failed to realize that what you're posting about is NOT StackOverflow and that each StackExchange site has it's own independent team of moderators?

It's hardly 'moving the goal posts' when your goal posts were on another fucking field entirely.
>>
>>52525844
>they have different moderators, it's not even the same site!!!11
It's in the same network dumbass. That's like saying fucking /g/ and /v/ are sites "because they have different fucking moderators."
>>
>>52524759
They suck. They're incompetent compared to the gurus on 4chan. Stay here and ask help here anon.
>>
>>52524759
they are raging downvoters, worse than ledditors

and you havent seen the non programming boards
>>
>OMG why don't NERDS just SPOONFEED me CANT you see im LAZY and can't do it on my own.

Fuck you OP
>>
File: CYmkgxyWsAA9bzG.png large.png (557KB, 604x1024px) Image search: [Google]
CYmkgxyWsAA9bzG.png large.png
557KB, 604x1024px
>>
>>52525981
>i habe le autismo
>>
>>52526011
>can't figure out how to do something by translating languages

seriously, 40% of the time my solution is done a different language.
>>
File: installgentoo.jpg (185KB, 769x777px) Image search: [Google]
installgentoo.jpg
185KB, 769x777px
wow this is sad. you should just end it op. end it with a semi colon
>>
>>52526048
I think this is complaining about jQuery specifically, since its not usually translatable, and also since lisp is a completely different style of programming it won't help at all. It's a shit joke but it's kinda relatable.
>>
>>52526048
jquery is not a language homie, just like .sort() isnt a sorting algorithm
>>
>>52524801
>please code this for me
>why am i being downvoted to oblivion
>>
>>52524799
OP is asking memeoverflow. Of course he's retarded.
>>
I'd say the biggest cuck is OP here. He got told to fuck off and cried about it on a completely different site. That's pretty sad.
>>
>>52525521
Which is why people don't downvote them. Whenever I encouter a question first thing I ask myself, "has this been answered before here?"

If the answer is yes, I downvote, if it isn't I either answer it myself or, if I find that I don't know, try to contact someone who might know so they can answer it.
>>
All these replies and no one answered this poor anon's question

>>52524801
well first of all I'd rewrite this like
<?php
$urls = ['1.html','2.html','3.html','4.html'];
header('Location: '.$urls[array_rand($urls)]);


which if people still don't understand, picks a random element of that array of html files and sets an http header redirecting the client to that html file.

In Ruby, hold on let me google...

http://stackoverflow.com/questions/3482149/how-do-i-pick-randomly-from-an-array

The random array element method is apparently called "sample" so
urls = ['1.html','2.html','3.html','4.html']
random = urls.sample


No idea how to set headers directly in rails though...

http://stackoverflow.com/questions/16654052/how-do-you-add-a-custom-http-header

ok so add above then this
response['Location'] = random


into your controller.
>>
You need to ask proper questions
>>
>>52524801
Can you link to the question so I can downvote?
>>
>>52525471
The point of Stack Overflow is not discussion or education. It's a knowledge base to supplement official documentation and unofficial forums and mailing lists. Questions that have multiple answers may be useful, but do not belong on their site.
>>
OP, you are seriously fucking retarded. Go sparrow a book if you can't afford it.

>hurrdurr this is my only chance not to be poor

Shut the fuck up. If you can't do this simple task, then this isn't a chance at all. Go do manual labor, you borderline monkey.
>>
>>52524801
If I had an SO account (seriously, why would you? pretty much every question is already answered or you can find it on your own), I'd search out your post and downvote you too.
Thread posts: 132
Thread images: 13


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