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

Programming Challenges: I'm bored edition

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: 12
Thread images: 3

File: fucking-image.png (302KB, 1920x1080px) Image search: [Google]
fucking-image.png
302KB, 1920x1080px
Instead of rolling you can just check: https://dpt-roll.github.io/ (Randomly selects a project)

I'm looking for something more substantial than most of the projects on this page though. What's something you could spend a week or two on that would be a good programming challenge?

Hell, if you just have an idea for a program you want made that'll work too. Anything to escape this boredom.
>>
>>56624270

Working on my own project right now (license plate-based messaging app), but rolling anyway because I want a side project for my side project
>>
>>56624302

shit I can one page that in PHP in like 30 minutes, time me faggot
>>
>>56624302
>>56624314

> http://www.digitaltrends.com/mobile/plext-app/

Done?
>>
>>56624314
"done"; there is no form validation and this could obviously be done more concisely, but I just wanted a quick break from what I was doing

<?php
// temperature converter
$temp;
$scale;
$newtemp;
$oldscale;

if(isset($_POST['temp'])) {
$temp = $_POST['temp'];
}
if(isset($_POST['scale'])) {
$scale = $_POST['scale'];
if($scale == 'F'){
$newtemp = ($temp * 1.8) + 32;
$oldscale = 'C';
}
else {
$newtemp = ($temp - 32)/1.8 ;
$oldscale = 'F';
}
}
?>

<!DOCTYPE html>
<html>
<head>
<title>Temperature Converter</title>
</head>
<body>

<?php
if(isset($oldscale)){
echo '<center><h1>' . $temp . ' ' . $oldscale . ' is equal to ' . $newtemp . ' ' . $scale . '</h1></center>';
}

?>

<form action="" method="post" />
<fieldset>

<label class="col-md-4 control-label" for="textinput">Convert</label>
<input id="textinput" name="temp" placeholder="(temperature)" type="text" >

<label class="col-md-4 control-label" for="selectbasic"> to</label>
<select id="selectbasic" name="scale" class="form-control">
<option value="F">Fahrenheit</option>
<option value="C">Celsius</option>
</select>
<button id="singlebutton" name="singlebutton" class="btn btn-primary">Convert</button>
</fieldset>
</form>

</body>
</html>
>>
>>56624359
yeah, it's not an original idea, just something to throw in my github. Launchcode is attempting to place me in a front end dev job and I need to show I can actually do anything
>>
>>56624612
already noticed a couple mistakes.
-left Bootstrap formatting in a few form fields
-$scale is always set because there is no null option

my bad guys i failed you
>>
revision A
<?php
// temperature converter
$temp;
$scale;
$newtemp;
$oldscale;

if(isset($_POST['temp'])) {
$temp = $_POST['temp'];
}
if(isset($_POST['scale'])) {
$scale = $_POST['scale'];
if($scale == 'F'){
$newtemp = ($temp * 1.8) + 32;
$oldscale = 'C';
}
else {
$newtemp = ($temp - 32)/1.8 ;
$oldscale = 'F';
}
}
?>

<!DOCTYPE html>
<html>
<head>
<title>Temperature Converter</title>
</head>
<body>

<?php
if($scale != '') {
echo '<center><h1>' . $temp . ' ' . $oldscale . ' is equal to ' . $newtemp . ' ' . $scale . '</h1></center>';
}
?>

<form action="" method="post" />
<fieldset>
<label>Convert</label>
<input name="temp" placeholder="(temperature)" type="text" />
<label> to</label>
<select name="scale" class="form-control">
<option value="">Select</option>
<option value="F">Fahrenheit</option>
<option value="C">Celsius</option>
</select>
<button id="singlebutton" name="singlebutton" class="btn btn-primary">Convert</button>
</fieldset>
</form>

</body>
</html>


I'll make it perfect next time I need a break
>>
File: Screenshot_20160916-082327.png (91KB, 720x1280px) Image search: [Google]
Screenshot_20160916-082327.png
91KB, 720x1280px
>name generator

alright then

name=$(shuf -n 1 /usr/share/dict/words)
echo $name | sed "s/'s\$//;"'s/^\(.\{'$(((RANDOM % (${#name}-1))+1))'\}\)./\1'$(tr -cd a-z < /dev/urandom | head -c$((1+RANDOM%4)) )/
>>
>>56626393
I like this one
>>
>>56626442
>>
>>56624270
Finished a project a couple of minutes ago.
Rolling for some more!
Thread posts: 12
Thread images: 3


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