[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/dpt/ - Daily Programming Thread
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 255
Thread images: 27
File: 1455217692734.jpg (121 KB, 2032x820) Image search: [Google]
1455217692734.jpg
121 KB, 2032x820
fuck off python/haskell/lisp shitters

Previous thread: >>53772608

What are you working on, /g/?
>>
Python isn't bad. its just bad for large programs.
It's good for what it is meant to do
>>
>>53776398
First for D
>>
>>53776429
it's bad for large programs, at the very least

recommending it for large programs or as a beginner's first programming language is really cancerous
>>
>>53776429
Python+Django dev here. Python is fantastic even for large-scale websites

>inb4 webdev
Getting a job in C is harder
>>
File: walk into candy store.gif (662 KB, 623x466) Image search: [Google]
walk into candy store.gif
662 KB, 623x466
>>53776415
>Do lolis poop?

See >>53776410
>>
>>53776450
>as a beginner's first programming language is really cancerous

tell that to mit
>>
>>53776463
I mean for large scale desktop apps
>>
>>53776485
MIT are sellouts/murrican students are stupid and lazy as shit
>>
>>53776470
Time moves so fast. I like GTA time where 1min = 1sec
>>
>>53776470
Release when. What language is it in?
>>
>>53776398
hey guys, what is best language for making an epic 2d pixel art rpg video game, I just finished my codeacademy courses, and I want to make money on Steam.
>>
>>53776520
APL
>>
>>53776520
8/8
>>
>>53776429
it's good for testing... maybe
>>
>>53776520
Try perl or APL
>>
>>53776520
>I just finished my codeacademy courses

Well I guess you're ready to be a lead developer for a triple A game
>>
>>53776470
I'm equally as disgusted as much as I want to play this game
>>
File: 1357579942981.gif (575 KB, 300x161) Image search: [Google]
1357579942981.gif
575 KB, 300x161
my laptop just died and won't turn on : ^ ) I don't know jack shit about hardware so it's entirely possible it's too soon to be freaking out but I'm : ^ )
freaking : ^ )
out : ^ )
anyway : ^ )))
>>
File: SLEEPING.png (6 KB, 640x480) Image search: [Google]
SLEEPING.png
6 KB, 640x480
>>53776512

Well, the lolis follow a daily routine:

7:30 - wake up and walk to school
14:30 - go to park and play in park
19:30 - walk home and get in bed and sleep

which would be annoying as hell to test if it moved faster. I'm not sure how I should have time-passing mechanics though. Probably a "wait for x hours" like in TES games, if I do that.

>>53776515

Final release in 2023, probably. Also, C++
>>
>>53773991
>http://www.theverge.com/2016/3/30/11331014/microsoft-windows-linux-ubuntu-bash
EEE. Dumbasses at Canonical helping them...
>>
>>53776520
Unity/C#
>>
>>53776622
I don't think that will be good for 2d pixel
>>
>>53776642
You are a wise man.

Personally, you should try C and SDL2
>>
>>53776622
op here, I want to know a good language to make my amazing game idea come to life not cheat by using an engine. recommend me some good tutorials.
>>
>>53776699
I recommend using Haskell.
>>
>>53776672
>C
or C++
>>
fucking tards, opengl isn't hard and any decent game has shader effects these days, even pixel games, your SDL/SFML/pygame shit will look like it came straight out of mspaint

>>53776699
C++/java/C with opengl
>>
can anyone into kernel programming in here?
>>
just made c# endianness implementation and now I'll go sleep anons :3
>>
>>53776622
>>53776672
>>53776721

op here, suck my large futanari cock, you beta lord subservient doormats.
>>
>>53776721
>any decent game has shader effects these days
>your SDL/SFML/pygame shit will look like it came straight out of mspaint
so, if I'm reading this right,
>if it doesn't have cutting-edge graphics it's shit
>the kinds of graphics that people like to make and play are bad
>because they don't suck up huge amounts of dev time
lel
>>
>>53776520
You should probably use something among the lines of Perl or APL, these are powerful old and established languages and a nice fit for simple 2d games.
>>
>>53776520
Game Maker, because Toby Fox used it.
>>
>>53776744
I'm reading pic related, but I can't say I'm understanding too much
>>
For my target demographic and audience, the people who have iPhones are far more desirable than their peers with Android phones. When talking with teens and 20 year olds, having a big, gold iPhone 6 Plus is like carrying a Prada bag or driving a BMW. It signifies a social status, a place at the top of their social circle. You buy an iPhone because you want the best.

Young people I talk to with Android phones have them because it was cheap, or free, and their goal is to buy an iPhone a year or two from now when they have the money. They settled with an Android phone and now they’re settling with clunky implementations of the apps their friends had before them on their iPhones. I’m building for iOS because I want to target users with taste and buying power.
>>
File: platformines1.jpg (250 KB, 1280x720) Image search: [Google]
platformines1.jpg
250 KB, 1280x720
>>53776767
fuck off retard, stop trying to justify your sheer laziness

pic related uses shader effects and it's just one random example i pulled off google image search
>>
people l i t e r a l l y don't like it when film is high framerate outside the documentary/reality genres because they associate high framerates with documentaries and reality TV and the culturally-determined genre dissonance heavily outweighs the "objective" graphics quality
but no, please tell me more about how it's bad to work in well-established visual genres and Everything Must Be Visually Cutting-Edge
>>
>>53776810
>>53776840
nice strawman fucking retard and at least make your bait programming related
>>
>>53776810
Could you refine that post a little bit so I can use it as copypasta?
>>
>>53776828
What shader effects exactly? I don't see any. All I see is a translucent foreground layered on top.
>>
>>53776890
fucking retard lmfao
>>
p l e a s e tell me more about how people with strong storytelling skills and a knack for game design, but not a background in graphics, should sink all their efforts in a no-budget indie game into visual effects that may well make their games unplayable on many systems or just because they misimplement something completely extraneous to the piece of media they're trying to create

P L E A S E tell me more about how arbitrarily high barriers of entry based on things that make for pretty games without adding value as entertainment or narratives are good for the genre
>>
>>53776922
KILL YOURSELF AND FUCK OFF TO AGDG FUCKING RETARD

JOIN A TEAM IF YOU CANNOT INTO GRAPHICS AND YOU WANT TO MAKE A GAME THAT ISN'T COMPLETE HORSESHIT
>>
>>53776939
or: get off the graphics bubble before exponential hardware improvement becomes logistical and the novelty wears off. make something fun to play instead. treat the genre like an art form instead of a test of hardware capabilities and an optimization dick-measuring contest.
>>
>>53776917
sick debating skills lmafo

That one almost certainly uses shaders but I'm still 99% certain the first doesn't.
>>
File: lit.png (662 KB, 1280x720) Image search: [Google]
lit.png
662 KB, 1280x720
>>53776967
ok retard keep believing your game isn't shit

>>53776981
ok retard
>>
who, outside of graphics nerds, cares about games that break graphics ground
visually interesting games often- hell, I'll say it, usually- don't stretch the physical capabilities of their systems because they're too busy being good art
>>
>>53776997
your butthurt has reached astronomical levels
>>
can't wait for VR to do to game development what photography did to painting and FREE THE GENRE TO DO SOMETHING LESS TECHNICALLY-PERFECT AND MORE INTERESTING BY RENDERING TECHNICAL PERFECTION OBSOLETE
>>
>>53777029
keep posting, butthurt kid
>>
>>53777042
I'm literally posting in all-caps, do you think I'm invested in appearing calm and disinterested
"it's good because it's hard to do" is a shit design philosophy and you're shit for endorsing it
>>
Fancy graphics and shader effects are all good and well, but your game should be compelling, too. Anybody can go back and play a Sierra game and love the experience.

Make something worth playing.
>>
>>53777080
Fucking tripfag scum
>>
>>53777071
"your game not looking like shit is good because it doesn't make your game look like shit" is a perfectly reasonable design philosphy
>>
>>53777080
its all about crafting an emotional experience.
make the player feel like they are really kidnapping, torturing, and sexually abusing the loli's.
>>
>>53777106
zork is better than your shit graphics waifu
>>
>>53776504
wew
>>
>>53777080
my main point was that opengl isn't hard and you're going to need it anyway to implement shader effects, and almost any reasonable modern game should want to have some shader effects in it
>>
>>53777111

Sure thing, buddy. If that's what you want.

>>53777105

No u.

>>53777138
>almost any reasonable modern game should want to have some shader effects in it

Meh
>>
>>53777138
So all those good looking shaderless games now no longer exist huh? Pretty interesting contentions.
>>
>>53777171
most modern shaderless agdg games look like complete ass, retard
>>
whats the best stuff to get into if you want to freelance at night and on the weekends?

would a ton of html5/js/MEAN/etc be good to get into? i'm just looking into making a little extra money after work to help pay some student loans.
>>
File: gfs_29885_2_38.jpg (69 KB, 641x476) Image search: [Google]
gfs_29885_2_38.jpg
69 KB, 641x476
>Bro this is gay where's the shaders?
>>
>>53777228
the shading is in the art

the 2d pixel games we're talking about typically have shit art
>>
>>53776753
>suck my large futanari cock
only if you hug me after
>>
File: weneedshaders.png (12 KB, 512x416) Image search: [Google]
weneedshaders.png
12 KB, 512x416
>>53777187
>most modern shaderless agdg games look like complete ass
Ah so the secret sauce for good looking shaderless games has been lost and rather than rediscovering the art, we need shaders to magically solve the problems.
>>>/v/
>>
>>53777256
nice strawman argument bud
>>
>>53777228
>point n click
>a game

Pick none
>>
>>53777267

Wow my man
>>
>>53777256
looks like ass
>>
I'm just
I don't give a shit about graphics qua graphics
is the game visually appealing? nice, not necessary but nice
does it have fancy, high-powered graphics? I already have a sense of foreboding desu, it gives me the sense that the devs have their priorities in the wrong place
plus, expensive graphics often look fucking samey. there are all these stupid fads. remember when everything was brown? like in the VG Cats comic? ugly.
high barriers to entry in a genre, and restrictive ideas about what makes art good, lead to shit art, and that extends beyond the visual arts. this "every geek must be a clone of every other geek" and "every game must be the same as every other game" is incredibly dull. let people make art.
>>
>>53777306
ok keep justifying your literal garbage bland libgdx/pygame/unity 2d pixel gaym that will sell no copies
>>
>>53777306
>high barriers to entry in a genre

u n i t y
>>
>>53777266
>nice strawman argument
Ok if it's a strawman, point out what false characterization of your position I'm making. Quote the false characterization and offer a superior characterization.
>>
>>53777335
ok keep justifying every AAA game

>>53777344
bite me, the next fucking clause is "restrictive ideas about what makes art good." "established genres are bad" and "low-tech is bad" qualify nicely
>>
>>53776699
>using an engine
>cheating
There is literally no point in writing your own game engine. It'll just make your project take 10 times longer and have 100 times more bugs.
>>
>>53777335
unity is not 2d, you can make https://www.youtube.com/watch?v=K78OPRHw0P4&feature=youtu.be&t=210

I'm not a fan of 2d pixelgames too, anon
>>
>>53777359
i didn't say there are no good-looking shaderless games or that shaders magically solve all problems

and i'm not going to bother with your meaningless bikeshedding so have the last word fucking sperg and please kill yourself idiot
>>
lmao did you hear?? anon still makes pottery. uh, it's 2016!!
>>
>>53777392
people make 2d games in unity

it's absolutely ridiculous, but it's a thing

>>53777378
for you

>>53777408
>still this butthurt
>>
>>53777406
So why do modern games need shaders?
>>
>>53777423
>still resorting to "this angry person is angry"
no shit sherlock!
>>
>>53777430
fuck off sperg and i'm not biting
>>
>>53777449
>I am right and I won't say why
>take that sperg
Anon if you wanna assert your authority you're going to need a tripcode and a reputation.
>>
>>53777469
shaders can improve realism, immersion, convey a mood, stimulate ADHD kids with colorful lights etc etc
>>
>>53777430
because they look good. No I'm not reading back the rest of the thread.
>>
>>53777478
realism is often a barrier to immersion, it is entirely possible to create aesthetic distance by mishandling "realistic" features, read a fucking book nerd
>>
>>53777516
it's not black and white, shaders can be made to look like shit and ruin a game too, fucking sperg
>>
>>53777516
>realism is often a barrier to immersion
and sometimes it's not. Not every games needs to use shaders.
>>
>>53777478
>>53777487
That doesn't entail necessity. This whole thing started because hostile faggot >>53776721 asserted that modern games NEED to be written in something with shader support. Games that aren't improved by shaders exist.
>>
>>53777563
>any decent game has shader effects these days
FUCKING sperg, i didn't literally mean that ALL games NEED it, i said that most games should have them. there are plenty of examples even for 2d pixel games like hotline miami

FUCKING RETARD KILL YOURSELF
>>
>>53777563
He's dumb.
>>
>>53777592
nice samefag

i truly despise you and i hope you die a slow, painful death
>>
>>53776601
>2023
7 years from now
Why?
>>
>>53777589
>i didn't literally mean that ALL games NEED it
In fairness anon, that is indeed what you said.
>>
>>53777604
keep believing that, sperg

i'm out
>>
>>53777589
>any decent game has shader effects
>your SDL/SFML/pygame shit will look like it came straight out of mspaint
>i didn't literally mean that ALL games NEED it
Guess I got owned.
>>
>>53777616
okay. laters
>>
File: 5 skin genes 5x size.png (36 KB, 1320x960) Image search: [Google]
5 skin genes 5x size.png
36 KB, 1320x960
>>53777602

Detailed loli simulation takes time.
>>
>>53777516
While I agree with your point, anon, personally I'm much more interested in physics, simulation and realism than in games/stories.

For me the coolest thing about a game is that its a self-contained world, full of reactive, open-ended, simulated complexity. I liked minecraft and skyrim, and s.t.a.l.k.e.r for these reasons.
>>
>>53777633
I want the source code for this shit lmao
>>
>>53777687

Why? Are you some kind of pedophile?
>>
>>53777633
you could at least make a general human simulator and subclass loli sim from it..

Also, you could take Urho3d and go 3d.
>>
>>53777700
No because he's been advertising the source on here for like 5 threads straight and has yet to link to it
>>
File: miims.jpg (23 KB, 1161x57) Image search: [Google]
miims.jpg
23 KB, 1161x57
what is your stance on ebbin memes in your code?
>>
>>53777700
>>53777704
that loli sim guy is from agdg and I think he should fuck off back there right now
>>
4chan getter bot test
>>
>>53777739
Java is indeed an ebbin meme
>>
File: baxterx910_0_0.jpg (222 KB, 910x1259) Image search: [Google]
baxterx910_0_0.jpg
222 KB, 910x1259
Am I the only one who finds it stupid?

There are hundreds of thousands of programmers that are employed in game industry. They are smart (aaa games require 3d math, its not easy), overworked, underpaid.

Why do we, as a society, waste so much effort on creating fancy entertainment when we could put the same effort into automating all forms of labor? We could live in paradise by now, with all our needs being taken car of by robots.
Instead we create more and more stupid games.

Why?
>>
>>53777759
this

it's a bit much with 10+ posts per day and what if we all get raided because we're posting in a thread together with a pedo poster
>>
>>53777759
I think he is more of a programmer than 95% of /dpt/ programmers. You guys are just insulted by his skill.
>>
Okay, here's an odd question I don't know if anyone has an answer to, but might as well ask anyways...

Are C++ constant expressions and template arithmetic calculated with the byte ordering of the host or target where cross compilation is concerned? Or is it undefined behavior? Could one reasonably use either to generate portable code whose behavior depends on the byte ordering of the target?
>>
>>53777797
Games are not Stupid. They are fun. People who make them do so because they love games more than they want a shitty well paid job optimising a database.
>>
File: dpt programming advice.png (6 KB, 433x91) Image search: [Google]
dpt programming advice.png
6 KB, 433x91
When did it all go downhill for /dpt/?
>>
>>53777797
we ARE automating labor and it's more a matter of robotics and machinery than programming, except for personal interaction AI stuff which we don't have yet and which games would actually help us accomplish (like how the space race and wars fueled technological progress in other areas)
>>
>>53777839
2007
>>
>>53777824
>I think he is more of a programmer than 95% of /dpt/ programmers.
well that's easy. if you can write more than a fizzbutt you belong to the 5%

> You guys are just insulted by his skill.
nice try, lolisimfaggot. now back to your board.
>>
>>53777828
It shouldn't make a difference whether it's constexpr or templates or not, probably the target, what are you doing that depends on byte order?
>>
>>53777824
not really, he just attention whores a lot

/dpt/ has a lot of newfags, web/scripting shitters and other non-programmers but we have real programmers too
>>
>>53777861
>MFW SpaceX actively headhunts programmers from the games industry, because they find that industry has the most talented programmers.
>>
>>53777739
Keep it to the comments, having an object named something meaningless like achmed for the sake of a joke is dumb.
>>
>>53777893
obviously, video games incorporate literally every other field and have high performance demands
>>
>>53777828
Well it should be calculated with the target's endianness in mind. Besides, it wouldn't really be cross compilation otherwise.

What evil code are you writing that involves templates depending on endianness? I'm curious about but also dreading what you might be doing.
>>
>>53777893
yes, game programming actually has a lot of depth to it and a lot of things can be applied to the real world, not just virtual worlds.
>>
>>53777893
game engine developers

probably not your typical codemonkey
>>
>>53777900
>not writing self-meming code
>>
File: demo day gif.gif (815 KB, 303x241) Image search: [Google]
demo day gif.gif
815 KB, 303x241
>>53777704

Fun fact: the cops are lolis too. They have vaginas and can get pregnant, so can the player.

Well, they have XY chromosome, but still have wombs and stuff.

>>53777735

When I mentioned it before I mnentioned /agdg/ which had the source up until yesterday when the thread 404'd from old age.

Here's the code as-is as I'm working on it: http://pastebin.com/XuxrsQ2Y
>>
>>53777931
not unity engine babbies and shaderless pygame steam greenlight youtube bait shitters
>>
>>53777939
this is fucked up

at least write the ai properly
use boids for flocking behaviour so they move in groups
>>
I can program fizzbutt and more in python, js, java, and C# and understand loops, oop, functions, and all that pretty decently. Have a basic handle on recursion, well enough to explain how it works to a non programmer.

What do I seriously need to work towards to get a job? I currently work as a consultant for one of Canada's largest companies but it's unfulfilling work and doesn't pay well. I love coding and the problem solving aspect of it and I'm looking to make a career change asap.
>>
>>53777950
since when do random strangers do flocking behavior
>>
>>53777966
>Canadian
Just give up
>>
>>53777916
That's why its a shame that gamedevs are overworked, underpaid, and make no practical contribution to material wellbeing of other people. Games are just fancy illusions, and we already have 40 years of game legacy. There is no need in new games.
>>
>>53776699
if you're going to write your own engine completely from scratch c++ is the way to go.

If it's a simple game and performance won't matter that much, c#/monogame will give you a basic game loop and pretty much leave the rest up to you.
>>
>>53777971
are you saying there are no groups of friends or colleagues in your game

are they all tsundere or something
>>
>>53777978
retard
>>
>>53777966
>What do I seriously need to work towards to get a job?
Make an app.
>>
>>53777972
No shit, trying to make the best of a bad situation
>>
>>53777872

It's just a theoretical. But I mean, say I wanted to implement an htons function that worked everywhere. It would need to swap bytes on little endian machines, and do nothing on big endian machines. Conditional compilation could be done with a macro, but there isn't a standard defined macro for this that must be implemented on all compliant compilers.

>>53777909

I'm not making anything, the question just came across my mind. Although a real world example might be regarding parsing binary file formats. If I had a giant .DAT file, and I wanted a C program to work with it, I might need to make sure the integers were read in the correct byte order.
>>
>>53777828
I don't think the calculation process matters, only the result. As for the result, it must be for the target machine for anything to make any sense. You can check this, but could you imagine having an array of a size specified by an integer literal, and it doing something wacky because the compiler interpreted it incorrectly?
>>
#include <stdio.h>
#include <math.h>
#include <unistd.h>

#define FLOAT_INCREMENT 0.16f
#define TIME_TO_SLEEP_IN_MS 160
#define S_CHAR ' '
#define S_MSG argv[1]
#define S_CRESET "\033[0m"

const char *S_COLORS[8] = {
"\033[0;31m", //red
"\033[0;32m", //green
"\033[0;33m", //yellow
"\033[0;34m", //blue
"\033[0;35m", //purple
"\033[0;36m", //cyan
"\033[0;97m" //white

};

char *next_color(void) {
static int use = 0;

if (use >= 6) {
use = 0;
} else {
use++;
}
return (char*)(S_COLORS[use]);

}

int main(int argc, char *argv[]) {

if (argc != 2) {
printf("\nUsage %s <phrase>\n", argv[0]);
return 1;
}

float f = 0.0f;
float amt = 0.0f;
int i;

while(1) {

f += FLOAT_INCREMENT;
amt += sin(f);

for(i=0; i<=amt; i++) {
putchar(S_CHAR);
}
printf("%s%s%s\n", next_color(), S_MSG, S_CRESET);
usleep(TIME_TO_SLEEP_IN_MS * 1000);
}

return 0;
}


rate my text thing

t. bought K&R 2 weeks ago
>>
>>53776398
somebody rate my simple json lib
>>
>>53777946
duh
>>
>>53777999
nice digits
from stackoverflow: use a union
>>
>>53777966
You need to work on marketing yourself. It doesn't matter what you know.

If you're a consultant, you probably wanna write a book. Open up that word processor and get typing.

Also how the fuck are you a consultant and making only a little money? Consultants, at least in the states, get huge hourly pay, but that's partially because employment is very uncertain and often there are long periods of no employment.
>>
File: 1437663010095.jpg (93 KB, 679x453) Image search: [Google]
1437663010095.jpg
93 KB, 679x453
>>53777982
>performance won't matter
performance always matters. if you start writing an engine or any code without that in mind you should end yourself
>>
>>53777939
I feel like transmitting this data over state lines is violating many federal laws lel
>>
>>53777999
or cast
>>
>>53778038
Because I live in the greater Toronto area and our dollar has almost negative buying power. A 400 square foot apartment is well over 200k at this point and I have a wife and child I need to support
>>
File: priestess.png (154 KB, 640x480) Image search: [Google]
priestess.png
154 KB, 640x480
>>53778056

It's only the code, not the graphics.
>>
>>53778052
this. even for 2d it matters, especially for mobile games
>>
>>53778031
looks cool, but why are you parsing by hand instead of using (Atto)parsec or another parsing library? performance/learning reasons?
>>
>>53778061
well i hope your wife and your wife's child are alright
>>
>>53778061
Move to Texas then. I'm not joking. Lots of opportunity in the tech industry and cheap cost of living.

Easiest way to get in is to sign up for a degree. The cost of living + cost of another degree will be less than the cost of living in Toronto.
>>
>>53778037
>>53778057

That tells me nothing I don't already know. I asked a question about standards, not how to do byte swapping.
>>
>>53778099
>tfw you'll never live in Texas
>>
>>53778104
look mate

have an array of sizeof(ushort) uchars
set the bytes manually
cast it to a ushort
test the value
>>
>>53778099
I would love to, South Padre Island is beautiful and the country/state is not being run into the group by liberal cucks.
>>
>>53778123
dunno if you can get that constexpr since it's probably a pointer cast
maybe if your test is static const
>>
>>53778052
>>53778081

Poorly worded on my part. What I mean to say is that monogame is pretty good for games which aren't too graphically intensive.
>>
>>53778099
Yeah but then you have to live in Texas.
>>
>>53778023
slow and inefficient
kill yourself
>>
>>53778084
by hand because the other json libs didn't work for me
I barely know about parsec and other libs

anyways, im mainly concerned with program design, because I really suck at it
i was lucky with jsonlib
see pic related, its a clusterfuck that tried to use my json lib for 4chan image downloading
>>
>>53777828
i would assume that it would be calculated like on the target machine, like how sizeof(int) depends on the target
>>
What's the benefit of using a text editor over an IDE?
>>
>>53778214
Shitpost on /g/ about how much of a gentoo wizard you are for being able to use keyboard shortcuts
>>
>>53778214
You can claim to have autism.
>>
>>53778214
less bloat, usually not worth it unless you program completely to build your ego.
>>
>>53778214
the only sensible reason to use a text editor over an IDE is if you're running a linux toaster from another millennium
>muh ""bloat""
>>
>>53778231
>>53778234
>>53778235

my rpi cant handle ide's when ssh -X'd
am i autistic? rude
>>
>>53778214
Outside of being lightweight and simple, there is none if the IDE has all the features of the text editor, which may or may not be true.
>>
File: 1457508696423_0.webm (823 KB, 720x720) Image search: [Google]
1457508696423_0.webm
823 KB, 720x720
Not sure if this is the place for asking or I should open a new thread... But...

I'm gonna start learning Android and also python for some repetitive tasks... I'm on Linux.

What IDE do you recommend me? Tested vim, light table and sublime text for python.

Gonna try android studio in linux in some days when I finish what I'm doing atm.

Anyhing else worth trying, or things I should know before I get used to something? Complete autistic noobfag soz.
>>
>>53778214
>not coding assembly in excel.
why even try?
>>
>>53778275
>python
>android
>linux
don't you dare post trump again
>>
>>53778251
>rpi
>am i autistic?
yes
>>
>>53778275
>Gonna try android studio
use eclipse with android plugin. the android studio is some old version of eclipse with the plugin anyway

do you want to write apps or games?
>>
>>53778286
Well gonna start with some apps but will try basic games aswell, just for the shake of learning and time will tell
>>
hey /g/, how do you what you need from a program? (other than obvs purpose)
e.g. how do I implement the details of the abstractions
this shit is hard
how am I supposed to know how many funcs to have
, how to structure it so as to make the code clean and not boilerplate
do you just think of the feature it should have?
how do you make it modular enough to not have conflct when you try to add a new feature?
>>
any have that info graphic of beginner program exercises?
>>
>>53777995
Further to this, think web or mobile would be easier to get going. I'm currently most comfortable with python but I know a decent amount of JS and html/css but who doesn't.
>>
>>53778275
I use geany. Vim & emacs are for neckbeard autists.
>>
>>53778319
just be yourself.
>>
>>53778320
better-dpt-roll.github.io
>>
File: programming challenges.png (1 MB, 3840x2160) Image search: [Google]
programming challenges.png
1 MB, 3840x2160
>>53778320
>>
>>53778319
functions should not be larger than a screen etc
>>
>>53778331
Gotta admit that i3 + vim is something very efficient once you get used to it, anyway I'm just testing before I end up choosing sth
>>
>>53778214
Having just a text editor allows you to build your own workflow at your own pace, adding features as needed.

No need to adapt to a bloated IDE program from the start.
btw, makefiles >>>> .sln
>>
>>53778348
maybe not for fizzbuzzes but in the real world thats not true
>>
>>53778337
>>53778333
I can't do any of these. They are to hard.
>>
>>53778332
literally this

just do shit and you'll naturally get a feel for it as times goes on and you get more experience
>>
>>53778348
Fuck, some of mine are several screens in length
>>
>>53778395
don't worry about it

don't make one-time-use-only functions for no reason, just turns it into spaghetti code
>>
>>53778395
I would go with the one-trick-pony function/ class. that way you can keep your functions lean.
>>
very new to c++ and im trying to create n objects based on how many objects are in a config file

        for (int i = 0; i < length; i++){
m_objects.push_back(new Body(m_objectMass.at(i), m_objectPositionX.at(i), m_objectPositionY.at(i), m_objectVelocityX.at(i), m_objectVelocityY.at(i)));
}


this is me trying to create and append a new body object to a vector -- how would i test this to see if this is actually creating the objects?
>>
>>53778423
i fucking hate this

especially if you keep fragmented tiny little shit classes scattered in literally hundreds of different files
>>
>>53778371
then you're retarded

fizzbuzz is the industry standard retard filter
even if you've never heard of it before, if you cant come up with a working solution in 20 minutes, you are mentally retarded or you lied on your resume
>>
>>53778442
through a cout << "Object Created" statement in the body constructor, or after this loop finishes, cout << m_objects.size();
>>
>>53778459
thanks
>>
>>53778459
quick, give me a provlem that isn't fizzbuzz of averaging to ints and wel'll se if iM 'retarded or not
>>
>>53778442
You can place a breakpoint on that line in the loop or you can loop over the vector with something like

for (std::vector<T>::iterator it = myvector.begin() ; it != myvector.end(); ++it)
>>
Starting another big project but I am sick of writing in C#/Java like languages. What are other options? Should I go for a scripting language like Ruby/Python or try to learn functional languages like Haskell/Scheme
>>
>>53778499
haskell or maybe ocaml
>>
>>53778487
no, do fizzbuzz

right now
>>
>>53776398
I
CANT
FUCKING
MAKE
GIT
WORK
>>
>>53778495
yeah thanks i've used that for loop before to print out a vector

why is c++ so convoluted? i did a C class in 2nd year and i swear C was nowhere near as complicated as it
>>
>>53776463
>slow as fuck interpreted language
>"good for large projects"

You are cancer and the reason why I have to have 16GB of RAM. You should fuck off to some other field like graphic design.
>>
>>53778526
GIT gud

haha

ha

hm
>>
>>53778499
Use javascript. Its dynamic, functional and fast.
>>
thoughts on php? doesn't exactly belong in /dpt/ but still i'd like to know your thoughts on it desu
>>
>>53778487
you're given an array of integers which represent stock prices, sorted in chronological order

find the maximum profit (max non-negative difference) you could have made by buying once and selling once
>>
>>53778544
>>
>>53778515
k
fizzbuzz n  
= case (n `mod` 3, n `mod`5) of
(0,0) -> "Fizzbuzz"
(0,_) -> "Fizz"
(_,0) -> "Buzz"
(_,_) -> show n

main = mapM_ (putStrLn . fizzbuzz) [1..100]
>>
>>53778557
If it brings in cash, do it.
>>
>>53778563
>buying once and selling once
you buy first and then sell, don't sell before you buy
>>
>>53778579
pajeet pls go
>>
>>53778579
if sucking dick brings in cash, do it
>>
>>53778587
I'm Ivan (^:
>>
Please /g/ i've been working on this for a week and i'm too damn autistic to resolve it. I need to take this text file with this

Doe, John K.
93.2
Andrews, Susan S.
84.7
Monroe, Marylin
75.1
Gaston, Arthur C.
62.8


and change it into this
Doe, John K. 93.2 A
Andrews, Susan S. 84.7 B
Monroe, Marylin 75.1 C
Gaston, Arthur C. 62.8 D


What i'm most stuck on is how to, for every other line, to print it along the first line all while relating it to the value so I can attach it to a letter grade for interpretation.

this is the shitty code I have so far.
using namespace std;

const int max_chars_per_line = 512;
const int max_tokens_per_line = 20;
const char* const delimiter = " ";

enum letter_grade { A, B, C, D, F };

int main()
{
string lastName, firstName, middleName, fullName, line;
char line1;
int i = 0, line_number = 0;
string total;
int dicks = 1;

int n = 0;

ifstream input("student_status.txt");

while (input.good())
{
getline(input, line);

if (dicks % 2 == 0)
{
getline(input, fullName);
}

cout << line << endl;
cout << fullName;
dicks++;
}
input.close();
return 0;
}


i'm absolutely begging you /g/, if someone walks me through this enough where I can get it fully running to my standards i'll send 5$ via paypal
>>
>>53778597
Nah, programming is much more comfy & pays more
>>
can someone explain THREADING to me. i seens it in a python program and i dont gets it massa
>>
>>53778499
Never Haskell. Pure functional programming is the OOP of today. Haskellfags only exist to feel smart about themselves for using Haskell.

Also Scheme can be used for scripting and is multi-paradigm. I recommend Scheme though. It's a lot of fun and is designed so that you can do anything you want.
>>
>>53778070
Please include graphics

I wish to compile this monstrosity. Where can you be found? please set up a git page somewhere.
>>
>>53778608
have you been programming for 7 days?

The fact that you have named a variable dicks really puts an age on you, coder dude :^)
>>
File: 1423191781848.png (94 KB, 1046x867) Image search: [Google]
1423191781848.png
94 KB, 1046x867
>>53778608
>>
>>53778487
Easy mode: Fibonacci sequence
>>
void draw () {
background (0);
loop();
textFont (f);
fill (255);
l0 = "F";
l1 = "E";
l2 = "A";
l3 = "R";
String[] l={l0, l1, l2, l3};
int i1 = int(random(l.length));
int i2 = int(random(l.length));
int i3 = int(random(l.length));
int i4 = int(random(l.length));
text (l[i1], 200, 250);
text (l[i2], 300, 250);
text (l[i3], 400, 250);
text (l[i4], 500, 250);
}



Processing-fag reporting in again. So I was told to create a set out of my array, but I can't find any information on how to do that. Anyone willing to help me out?
The goal is to rule out a letter as soon as it's used during the randomization.
>>
>>53778574
What's that written in?
>>
>>53778658
Where can I find more pictures like this one? Is there a subreddit for it or something?
>>
>>53778629
where do I learn pure functional? Whats the meme book
>>
>>53778684
/r/shittyprogramming
>>
>>53778608
Just take two lines and concatenate them with a space.

string line2nd;
[... Inside the while loop]
getline(input, line);
getline(input, line2nd);
line = line + " " + line2nd + [the letter you want to put];
std::cout << line;
dicks++
>>
can someone explain THREADING
>>
>>53778563
i don't understand the question
the stocks of one company?
they're in chronological order because they changed prices throughout time?
if so, then the maximum you could of made was when you bought the lowest stocks prior to the highes stocks (and then sold at highes)
>>53778608
its easy, keep a counter of newlines, if the counter is odd, remove the newlines, it its even, keep the newlines, etc
>>
>>53778696
Perfect, thanks
>>
>>53778370
>>53778395
>>53778407

From the JPL (Jet Propulsion Laboratory) Institutional Coding Standard:
"Rule 25 Functions should be no longer than 60 lines of text and define no more than 6 parameters. [Power of Ten Rule 4]

A function should not be longer than what can be printed on a single sheet of paper in a standard reference format with one line per statement and one line per declaration. Typically, this means no more than about 60 lines of code per function. Long lists of function parameters similarly compromise code clarity and should be avoided. Each function should be a logical unit in the code that is understandable and verifiable as a unit. It is much harder to understand a logical unit that spans multiple screens on a computer display or multiple pages when printed. Excessively long functions are often a sign of poorly structured code."

To be fair these coding standards are for writing the safest possible embedded code in C. However, excessively long functions ARE spaghetti code by nature and are a risk in any project. I would rather have a set of "one use" functions because it's self documenting. The caller becomes a compact outline of the full process, and each step (one use function) is much easier to verify.

60 lines is a little low for non-embedded functions. I've got functions that exceed a page.

But I will hammer someone for pages and pages of code in a single function. It's absolute shit and the sign of a code monkey / pajeet. Structure your code appropriately.
>>
>>53778659
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)

>>53778676
haskell
>>53778629
why do you hate haskell?
>>
>>53778699
You start the application
It goes line by line according to each lines logic

When you start a new thread, it will go line by line according to each lines logic
But it will also continue on with the original line path.

That is to say you could start a new thread for a method and continue on with the rest of the program without having to wait for that method to finish.
It's vaguely analogous to "trains of thought".
>>
>>53778704
you're retarded

yes, the stock of one company

they're in chronological order because the price changed over time

>if so, then the maximum you could of made was when you bought the lowest stocks prior to the highes stocks (and then sold at highes)
yes, now find this out programmatically, and keep in mind that it can go like a zig zag so for example if it starts out high then it can go down a lot and then go up again so that it's still lower but the difference is bigger
>>
>>53778719
it's a sign that it's shit but so is an excessive use of one-use functions
>>
>>53778719
>>53778770
see http://number-none.com/blow/john_carmack_on_inlined_code.html

>If a function is only called from a single place, consider inlining it.
>>
>>53778734
2 (you)'s
WEW la
>>
>>53778698
thank you so much, gonna work on implementing some functions for different point scales for the grades. Now how do I convert from a string to a float?
>>
>>53778738
holy fucking shit negro i didn't know it was that ez i understand now

thank you, i love you
>>
>>53777423
Why? Monogame is Gay, xna is ded, c++ is 2hard4me, Unreal is Overkill...

Why THE fuck not choose THE most economical option?
>>
>>53778801
It's that easy conceptually
Implementing it effectively without tripping over your own fucking feet is another matter
Godspeed
>>
>>53778804
the unity engine is made for 3d, it's why it was called unity3d. it has very little to offer for 2d. 2d is easy as fuck mate and you're not necessarily completely on your own because you can use e.g. a stand-alone physics engine like box2d and a tile editor like tiled
>>
>>53778804
Because unity is an absolute clusterfuck in terms of resource usage. Using it for a 2d game is retarded.
>>
>>53778734
I dislike its pure functionality and its lazy initialization.

People claim pure functionality as a strength when it is clearly a weakness. Their exercises in writing obtuse code that clearly does side effects without "doing side effects" is like a schemer using only pure lambda calculus and Y combinators and claiming that recursion is the devil and that they write without recursion. It's unnecessary and mental masturbation.

I dislike how flavor of the month it is.
>>
>>53778885
this

just because you put the entire program's state as an explicit function parameter doesn't mean it's "pure" or "good", just makes it more cluttered and verbose
>>
>>53778630
>Please include graphics

You must be a pedophile then
>>
>>53778298
Don't listen to this mong, Android Studio hasn't used eclipse for years.

It's now IntelliJ, and actually the best thing for android development.
>>
>>53778751
this shit is hard, give me more time
>>
>>53778991
>It's now IntelliJ, and actually the best thing for android development.
shill harder
>>
>>53776398
learn Go
Go > *
>>
>>53778442
alright part 2 to this question

if i'm creating these objects in a loop while pushing them to the back of this m_objects vector, how do i then call the member methods, member variables, etc for these objects that i have created?

        Body *temp = m_objects.at(1);
cout << temp->getColour();


works if i choose some arbitrary object that i've created and initialise a new Body object to it but it isn't much use to be able to do that -- i essentially want to osmehow be able to go
m_objects.at(i)->getColour()
Thread replies: 255
Thread images: 27

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.