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

/dpt/ - Daily Programming Thread

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: 329
Thread images: 36

File: 1328766980617.jpg (33KB, 540x370px) Image search: [Google]
1328766980617.jpg
33KB, 540x370px
Old thread: >>55733966

What are you working on, /g/?
>>
File: 1454034725166.jpg (42KB, 546x432px) Image search: [Google]
1454034725166.jpg
42KB, 546x432px
>>55738403
first for
>>55738339
>recursion is usually unneeded (and sometimes even dangerous)
>>
>>55738403
Ligatures
>>
File: hime ACNL.png (778KB, 400x720px) Image search: [Google]
hime ACNL.png
778KB, 400x720px
Keep overflowing the stack, hime!
>>
>>55738403
Explain the output of the following C program (No, the output is not 20).

#include <stdio.h>

int main()
{
int a = 1;
switch (a) {
int b = 20;
case 1:
printf("b is %d\n", b);
break;
default:
printf("b is %d\n", b);
break;
}
return 0;
}
>>
>that imperfect program in the OP
Horrible. What kind of asshole would desecrate a mans image like that?
>>
>>55738464
what's with the undergrad meme of doing everything you can to avoid if statements and being obsessed with break?
>>
>>55738472
>"i don't know who this man is and i don't know what this code does but i wanted some retweets on twitter :)"
>>
>>55738464

not sure, but never seen code not in one of the cases before. would b be undefined/garbage?
>>
>>55738464
undefined
maybe 1
>>
>>55738464
Knowing C I'd say that's UB.
>>
>>55738464
but it is 20 :3
>>
>>55738430
Yes, the reason MISRA C does not allow recursion is that it could in fact literally be dangerous. As in "Pushing the brake pedal causes your car to accelerate" dangerous.
>>
was running around trying to find out cause of glitch. was writing a ceasar cipher and learned that if you go out of bounds on in c on a char then it goes ape shit and gives negatives.

example

char c = "z" -> 122 in ascii
c += 10 -> goes over 127

c ended up being -100 or whatever. had to make temp int and cast it and it solved the problem.
>>
>>55738517
I thought the brake pedal on a car was connected directly to the brake hydraulics.
Why else does it feel hard to push when you pump the brakes?
>>
>>55738533
Ask Toyota
>>
>>55738472
>>55738489
Actually..
http://groups.engin.umd.umich.edu/CIS/course.des/cis400/c/hworld.html
>>
>>55738464
UB
>>
Trying to build my own website but I don't want to do it manually. What is the best open source alternative to Dreamweaver?
>>
>>55738557
>>>/g/wdg/
>>
>>55738464

Well it won't even compile using g++ / gcc.
>>
>>55738557
>trying to do it myself but i dont want to do it myself what's the best program to do it for me
>>
File: Capture1.jpg (146KB, 1023x767px) Image search: [Google]
Capture1.jpg
146KB, 1023x767px
Fucking around with image filters again, and trying to make sense of my implementation of that one guy's 'floodfill but not really' filter.
>>
>>55738464

you are pushing the syntax. Just don't push the syntax.
>>
>>55738464
With -O2 it's 0.
Without it's -13209 (for me)
So assuming gcc isn't broken it's UB.
>>
>>55738557
>Trying to build my own website
this is programming general
>>
>>55738403
Hello /dpt/, i have a question, i have a brilliant idea for a windows app, however i don't know which language i would have to code it with

It involves the webcamera scanning faces of people who turn on the computer. which language would i have to go with? i already know some c++, tried learning it a few months ago but quit because someone stole my laptop
>>
any tutorials on how to write a C compiler in C#?
>>
>>55738626

Changed it from a .cpp to a .c file.. Gcc compiled it's definitely undefined behaviour and should produce a compiler error like the c++ version.

I do not understand why allowing variable declaration within a switch statement would not be a error. Trying to handle scope in a switch statement is idiotic.
>>
File: compilers[1].jpg (55KB, 319x475px) Image search: [Google]
compilers[1].jpg
55KB, 319x475px
>>55738650
>>
>>55738699
>I do not understand why allowing variable declaration within a switch statement would not be a error
Not sure. But as I understand switch functions they're just a block where you have jumps to your cases.
So it's not that weird really.
The variable is declared in code though, because declaration isn't a runtime thing. The initialization doesn't happen though.

Weird shit. It's not really that much of an error to my eyes.
>>
>>55738699
Enclosing each case label in braces (i.e.
 case 1: { ... break; } case 2: { ...
usually works fine AFAIK.

Obviously putting a variable declaration outside of a case label entirely is idiot city
>>
>>55738464
Why would you even think that int b = 20 line would be executed? It's outside of any case within the switch statement. The value will be 0 or garbage.
>>
>>55738737

Switch statements are just a fancy wrapper around conditioned goto. You shouldn't be able to goto over the initialization / declaration of a variable.

>>55738744

Yeah that sets a specific scope for the variable and makes sense.
>>
>>55738704
it needs to compile to z80 assembly though
>>
>>55738555
>returns 13 on success
Horrible.
>>
Posted a question on the old thread because I'm a tard.
>>55738581
>>
>>55738826
https://en.wikipedia.org/wiki/Bounding_volume_hierarchy

Check out the see also section for more
>>
>>55738826
http://gamedevelopment.tutsplus.com/tutorials/quick-tip-use-quadtrees-to-detect-likely-collisions-in-2d-space--gamedev-374
>>
>>55738648
>>55738573
Sorry, I come from /pol/
>>
>>55738865
>>55738848
Thanks!
>>
>>55738900
Ok. well rightly fuck off now.
>>
>>55738900
>/pol/

Conservatives can't into IT.

kys
>>
>>55738939
>>55738951
See ya nerds.
>>
>>55738951
>Conservatives can't into IT.
Socially conservative people maybe.
>>
>>55738960
Right wingers and Trump supporters IQ is too low to program or even operate computers.
>>
Will I ever get good enough for high level programming positions if I start programming at 25? Am I too late?
>>
>>55738979
If you didn't start at 8, it's too l8, m8.
>>
>>55738979
No just learn to program right. Unlike 99% of people who learn OOP/meme languages.

But you asking this question isn't a good sign.
>>
>>55738951

IT directly serves the oligarchy that actually runs the world.

Unless you purely work on non paid free open source software and reject the monetary and false governing system you're a contributor.
>>
>>55738978
top kek
>>
>>55738978
Holy, how fucking stupid are you?
>>
>>55739043
Not stupid enough to vote for Trump or believe in the bible.
>>
>>55739100
>Not stupid enough to vote for Trump
what are your actual arguments against trump?

Go ahead. I'll wait.
>>
>>55739011
Will starting from C help me to learn to program right?
>>
>>55739119
Are you kidding me?
>>
>>55738532
unsigned char m8
>>
>>55739100

Apparently stupid enough to not realize one does not get in the running for president without the backing of our true leaders that rule the world the big banks an multinational corporations.
>>
>mfw unit-testing
>>
>>55738978

It's like I'm actually on Redditâ„¢.
>>
>>55739136
but who owns and runs the banks?
>>
>>55739119
It's 2016 we don't need another fucking WASP male president.
>>
File: dsf.png (5KB, 500x253px) Image search: [Google]
dsf.png
5KB, 500x253px
>>55739289
>>
>>55739401
So your argument is:

>its 2016 (current_year)
>we need a woman in the office because i am so tired of seeing men in that position

typical liberal
>>
>>55739489
How about you write a program that calculates the probability of having 44 presidencies in the US and 0 female presidents if it's purely random and there's no bias against women?
>>
>>55739519
presidencies aren't random.
>>
>>55739289
Last names:

Rothschild
Bruce
Cavendish
De Medici
Hanover
Hapsburg
Krupp
Rockefeller
Warburg
Windsor
Soros

I'm pretty sure there is more that can be traced.
>>
>>55739489
>typical liberal
Typical cynic
>>
>>55739698

Company wise most of our banks get their decisions from about 4 groups. Blackrock, State Street, Vanguard, and Fidelity. It is obscene how many financial institutions and corporations can be tied in with these 4.

If you're a employed programmer one of them has something to do with your paycheck.
>>
Programming: The Thread
>>
>>55739818

Technically it is still programming societal programming vs deprogramming.

Our field is naturally evolving towards biological computation.
>>
>>55739128
Yes, by learning to program in C, you'll have a more hands-on experience in type-casting, memory management, array formation/management, string management, memory addressing, convesion/type specifiers, function calls, static typing, compound typing, linking, and more.

Many modern languages do at least one (if not all) of the above for you, so you'll never see what's going on behind the scenes if you were to start with Python, Java, C#, etc., even though all programming languages perform type-casting, memory management, etc.

As to whether you should remain with C for your entire programming career is a different story.

I started programming with Python, but later moved to C. As I learned, Python really holds your hand. This doesn't make Python bad or useless, but learning C will help you become a better programmer AND a far better Python programmer.
>>
File: crunching.png (547KB, 521x515px) Image search: [Google]
crunching.png
547KB, 521x515px
Don't forget to crunch your code for maximum performance.
>>
im new to C, is it alright if i have multi-line arrays or is that bad practice?
>>
>>55740066
do whatever the fuck you want. no one cares
>>
>>55740066
Multi-line arrays are quite common and I can't imagine why they would be bad practice.
>>
What's the lowest level API for opening a window on Windows 10?
>>
>>55740066
Multi-dimensional arrays are fine.
>>
>>55740165
I use the window handle to open a window when using windows
>>
>>55740115
>>55740136
>>55740184
thank you all, just making sure i wasn't doing some stylistic sacrilege
>>
>>55739519

Men are just better at a lot of things.
>>
>>55740165
The same as for Windows 3.x.
>>
>>55738403
I fixed a bug in my taggable image viewer Ivy where if you searched for images by providing three or more tags, images that match the first two but not the third would appear as false positives.
>>
File: 2016-07-24-171802_1207x627_scrot.png (143KB, 1207x627px) Image search: [Google]
2016-07-24-171802_1207x627_scrot.png
143KB, 1207x627px
>>55740466
>>
>>55739384
Basically, I originally did it so that I could cut down on the number of operations the program did, and the

sum -= sqrtN


was to not add square roots twice...
Now that I removed the greentexted part of my program, I'm a lot closer to the answer (4178876 is what I'm getting now, and the answer is 4179871, off by 995, I'm not sure why)
>>
>>55738623
explain
>>
>>55740310
even works irl
>>
>>55740600

1. Select random pixel
2. Floodfill out with that color when neighboring pixel is less than threshold OR when random condition is met (this is what gives it the random walk pattern)

Fairly simple, but it took me about 2 hours to realize that recursion makes GDI+ explode catastrophically.
>>
>>55740838
>neighbouring pixel
So in many ways it seems like a situation where you could be using COMONADS
>>
>>55740871

Is a comonad just the inverse of a monoid in the category of endofunctors?
>>
>>55740918
*dual

it is indeed a comonoid in the category of endofunctors
>>
how do you write a unit test for a class that can have a practically infinite number of states
>>
Python is the language of numales, cucks, and bootcampers.

Don't be that guy.
>>
>>55740918
>co
Just flip the arrows brah
>>
>>55740963
Did you mean Ruby and JavaScript?
>>
>>55740924
Don't write a class that can have an infinite number of states
>>
>>55740977
not always that simple

monoid a where
plus :: a -> a -> a
zero :: a

comonoid a where
coplus :: a -> (a,a)
cozero :: a -> ()

because:

monoid a where
plus :: (a,a) -> a
zero :: () -> a
>>
>>55740979
Those too, but for some reason Python still has a large number of fanboys, whereas people are realizing that Ruby and JS are shit, even the cucks.

Also ridiculing JS fans is like whaling on a retarded kid.
>>
>>55741005
in this sense comonoids can embody resource semantics, e.g.

a -> (a,a)
duplication

a -> ()
destruction
>>
i need ideas for my thesis, now it's the chance to make your dreams come true
>>
>>55741005
Fair point.
>>
>>55741045
Procedural generation of memes
>>
>>55741048
Haskell implements a trivial comonoid for every object, because everything in Haskell can be copied and 'destroyed'
>>
>>55741063
that could go with AI, but i think that's already made
>>
>>55741045
create a non-meme language and prove interesting properties about it
>>
>>55741095
Procedural generation of dank memes
>>
I know Python but i'd like to get into lower level languages. Where should I start?
>>
>>55741122
C
>>
>>55741122
Absinthe

Seriously, why'd you learn Python?
>>
>>55741131
What's wrong with Python?
>>
>>55741122
C, it's just simple and logical
>>
>>55741122
FORTRAN
>>
>>55741101
define non-meme language
>>
Decided to start on a larger project, a roguelike engine. The biggest part, I think, is going to be level representation and generation. I can see two good representations ahead of me:
>A level is a 2-D vector or array, where each element represents a cell in the level.
>A level is a set of nodes, where each node represents a room in the level and contains a function representing its shape.

I can also see a pretty long list of pros and cons ahead of me as well.

2D array/vector:
>Con: Lots and lots of virtually blank cells representing walls between rooms
>C: Doesn't clearly mirror the structure of the level as a series of rooms connected by hallways/etc.
>C: More difficult to path and determine the validity of a generated level (a valid level, for now, is one which contains a clear path between 2 staircases)
>Pro: Easy to generate
>Pro: Easy to manipulate, just step through the data structure and update all items/beings in each cell of the level.

>Node:
>Pro: Easy to check the validity of a map, just check to see that there is at least one path between the two nodes containing the staircases.
>P: Accurately mirrors the structure of the map
>P: long-range path-finding can be easily checked at a reasonable accuracy
>Con: How do you represent the path a hallway must take to connect two rooms?
Maybe as a sequence of cells between 2+ nodes such that the function in each node applied to the cell is false when the node is not the beginning/end hallway node? That's more the vector/array representation though.
>C: Short-range (same-node/room) path-finding still has to be done on a cell-by-cell basis

And probably other pros and cons as well for both. What would you go with and why? I'm kind of leaning towards node-based, it seems like a really nice representation.
>>
What are some simple programming challenges I could complete pretty quickly?
>>
>>55741144
What's right with Python?
>>
>>55741188
>avoiding the question
>>
>>55741194
I can think of nothing good about Python. It has neither safety nor speed. It is no quicker to develop in than some statically typed languages.
>>
>>55741167
no irrelevant or pointless features such as significant whitespace or shoving a paradigm down your throat, as well as a proper standard that defines the language's behaviour properly without classifying everything as "idk idc the compiler decides what happens" or "this is the de facto implementation just do what it does"
>>
>>55741186
Project Euler
>>
>>55741194
Python-hate is a well-established /g/ meme. Move along, unless you want more vaguely-worded non-answers.
>>
Truthfully, I still cannot figure out what the fuck monads are.
>>
>>55741244
Same, I assume once I turn 30 and reach wizard status will I finally understand
>>
>>55741244
I think most people (even Haskell users) don't truly understand them, since I've only ever seen one good explanation about them. As they say, if you can't explain it to a five year old, then you don't understand it.
>>
>>55741244
>>55741253

In functional programming, monads are a way to build computer programs by joining simple components in predictable and robust ways. A monad is a structure that represents computations defined as sequences of steps: a type with a monad structure defines what it means to chain operations together, or nest functions of that type. This allows the programmer to build pipelines that process data in a series of steps (i.e. a series of actions applied to the data), in which each action is decorated with additional processing rules provided by the monad.[1]

Monads allow a programming style where programs are written by putting together highly composable parts, combining in flexible ways the possible actions that can work on a particular type of data. As such, monads have been described as "programmable semicolons"; a semicolon is the operator used to chain together individual statements in many imperative programming languages,[1] thus the expression implies that extra code will be executed between the actions in the pipeline. Monads have also been explained with a physical metaphor as assembly lines, where a conveyor belt transports data between functional units that transform it one step at a time.[2] They can also be seen as a functional design pattern to build generic types.[3]
>>
>>55741234
Python hate is not a meme, it is a response to the stultification, dumbing down, and general anti-intellectual culture it promotes. It and its adherents proudly ignore over thirty years of programming language research. The language cannot even do more than one thing at once. It is riven by a pointless split. It is the middle finger to the establishment, the bellowing hick who cannot write what he shouts, the child in the corner wearing a dunce cap. I suppose now i shall be accused of not being 'pythonic'. In Python it is said that there is one way to do something. I put it to its fanbase that that way is the wrong way.

Now, please leave, I and the others here tire of your fool act.
>>
>>55741275
Great, another copy-paste from Wikipedia. Thanks for bumping the thread.
>>
>>55741291
It's useful

>>55741234
>there are no possible problems with python
>all those problems mentioned? non-problems
>>
>>55741186
reverse a string
>>
>>55741172
use quadtrees
>>
>>55741275
90% of this could be used as is to describe functional programming in general and chaining curried functions.

Why is wikipedia so useless and full of bloat? Why can't they go straight to the point?
>>
OK I have aquired a laptop from 2004 to use as a home server-type thing

I need a (fast) OS that supports some sort of command line access on other machines. Mostly to run internet bots, host files, etc.

any recommended distros for this? I don't think windows will support virtualized command line access.
>>
>>55741244
Say you've got a value of type a inside some context m, so you have something of type m a.

You want to transform this a, using a function that takes an a and returns another value inside the same context, something of type m b.

If m is a monad, then you can perform this transformation. You can turn your m a into an m b using your function from a to m b.

That's a terrible explanation and I've missed out a big chunk of what monads are, but that's arguably the key operation they let you do.
>>
>>55741285
>vaguely-worded non-answer
right on the money. I'm not even a Python programmer.

>>55741303
There hasn't been a single concrete programming language problem pointed out. The real problem with Python is the stupid amount of zeal and butthurt it incites.
>>
>>55741308
I considered it, since I used them for my last project. I'm not sure how they'd be useful here though, since I want to generate and represent the level itself here, not the entities within it.
>>
>>55741309
A surprising amount of programming documentation is written this way. Why get to the point when I can indulge myself with how complicated I can make something seem just so that I can tip my fedora endlessly? said every programming technical writer ever
>>
>>55741310
Windows does support remote command line access on other Windows computers.
>>
Trying to make tic tac toe. It's going horribly because I'm fucking terrible at programming.
>>
>>55741304
import sys
if len(sys.argv) > 1:
print(sys.argv[1][::-1])
else:
word = raw_input("word to reverse")
print(word[::-1])
>>
>>55741320
What is a context?

What is a type m a?

What's special about being able to have values inside other values ("contexts")?

These are just some of the questions your text doesn't cover. I appreciate the effort, but, as usual in these matters, your explanation assumes prior knowledge of what's being explained.
>>
>>55741322
we don't have time to point it out every fucking time
again and again we've made it clear you snek faggots are NOT welcome here
but you continue to come here and complain that it's not far that we don't like you

here are some of the problems
1) The users are fucking cancerous
2) Python fags NEVER acknowledge faults with Python
3) Encourages you to just "use a library" for literally everything
4) No proper static typing
5) Often inconsistent
6) Shitty libraries, poorly thought out
7) Guido is a faggot
8) It's a terrible fucking language
>>
>>55741332
Racket documentation is probably the only docs I've seen that DOESN'T do this, stays understable and gets right to the point
>>
>>55741322
Lambdas are a joke
The GIL exists
Insane scoping
Dynamically typed
Explicit 'this' argument required
The version split
>>
>>55741347
I still would like something lighter than windows though, the laptop is pretty crappy
>>
>>55741332
Honestly, I think one of the next big revolutions in programming languages will be about documentation. Something like javadoc, automatically generated, but more descriptive. Perhaps a "standard documenting form"? I think it's one of the most crucial aspects of programming that is most often ignored.
>>
>>55741372
http://www.damnsmalllinux.org/
DSL even has SSH and FTP preinstalled.
>>
>>55741404
What the fuck is this website
>>
>>55741349

Here is a hint.

1 1 1
0 0 0
0 0 0

0 0 0
1 1 1
0 0 0
0 0 0
0 0 0
1 1 1

1 0 0
0 1 0
0 0 1

0 0 1
0 1 0
1 0 0
>>
>>55741372
http://hannahmontana.sourceforge.net/

this is the best linux distro out there
>>
>>55741358
You only listed one actual problem, and that's an opinion (no static typing), and the rest is (big surprise) vaguely-worded non-answers and opinions like "users are fags lol".

>you snek faggots
>you continue to com here
>we don't like you
see:
>>55741322
>I'm not even a Python programmer.

I don't really care for discussing Python, so I'm going to stop now. I suggest if it makes you angry enough, you stop as well.

>>55741367
Sure, but dynamic-typing and 'this' are opinions, and version split sucks but can't really be helped.
>>
>>55741404
>>55741422

The best linux without a doubt is
http://www.linuxfromscratch.org/

The only linux system that will truly fufill your needs.
>>
>>55741045
Automatic detection and reporting for cp in 4chan
>>
>>55741354

He's getting closer, though. It makes a decent amount of sense to me.
>>
what's a good way to compare if two strings are "similar"?

I'm going to write a script to find duplicate entries in a database and merge them,
but the values won't always be exactly the same - like one name (or both) might be slightly misspelled

I imagine some smart people have already developed heuristic type algorithms for this that preferably return % similarity
>>
>>55741372
Download the net-install version of any Linux distro you are already comfortable with and it will be exactly what you're looking for. Then you can just download the packages for whatever else you need on top of it.

This is probably going to be one of the only serious answers you get.
>>
>>55741380
You mean like doxygen?

I can't see generated code documentation being good at all, though.
>>
Anyone know a C# library capable of decoding mp3 (vbr/cbr,) m4a, and wav files into PCM data? cscore looks promising but I figured I'd ask before I went in on learning that one since it seems fairly big. Or I'd just take some pointers towards the right classes to look into - I'm just now transitioning over to C#.
>>
>>55741459
https://en.wikipedia.org/wiki/Levenshtein_distance
>>
>>55741380
>I think one of the next big revolutions in programming languages will be about documentation.
It was called Literate Programming, and it was too big of a revolution.
>>
>>55741367
I think the worst offender here is the scoping. It's so weird and error-prone I'm amazed as to how anyone could think it was a good idea.

The version split was good IMO.
>>
>>55741354
I'm using context to refer to type constructors, things like List in Java. You can't instantiate something of type List, you need to apply a type to List, say Int, to get List<Int>, which you can make an instance of. A value of type m b is like a value of type List<Int>, we've used the type b with the type constructor m to get the type m b.

Let's take a different context: IO. Suppose you have something of type IO String, say the result of reading a line from stdin, call it getStr. Suppose you want to write a line to stdout, this takes a String and returns an IO Unit, call it putStr. You can't get a String from your IO String, No, it's a bomb waiting to explode. You can do rapid prototyping in statically typed languages, and then not have to rewrite it all, because you choose a sane language to prototype in.

Most languages sacrifice safety for sure, or vice versa. Python sacrifices both and gains nothing. You can't get a String from getStr, it's impossible. But because IO is a monad, you can combine it with putStr using the monadic bind function >>= to write it to stdout:

getStr :: IO String
putStr :: String -> IO Unit
getStr >>= putStr :: IO Unit


This is NOT only useful for IO. You can use monads to express stateful computations, error handling, and many other things.
>>
>>55741353
>import sys

python easy mode...
use a real language?
>>
>>55741419
hmmm...really makes you think
>>
>>55741495
like lolcode
>>
>>55741477
excellent
thanks, anon
>>
>>55741354
As for having values inside contexts, sometimes you can't avoid it, like with IO.

Other times, it lets you combine values inside contexts (e.g. error handling, computations with state) much, much more concisely than putting them together by hand.
>>
>>55741349
>>55741419
wouldn't it be easiest to make a learning algorithm
>>
>>55741495
Python is based.
>>
Haskell seems like a good language for doing math things, would I be wrong in saying that?
>>
>>55741536
learning algorithm?
>>
>>55741536

Why would anyone make a learning algorithm for tic tac toe? There are literally only 10 conditions that determine a winner, anything else is a draw.
>>
Probably a really dumb question, but can I compile C/C++ for OS X from Linux?
>>
>>55741454
A monad describes a kind of computation producing a 'lifted value', and how to compose/chain such computations

A comonad describes a kind of computation consuming a 'lifted value', and how to compose/chain such computations

>>55741558
Performance is one of the very few downsides to Haskell
>>
>>55741514
pure coincidence?
>>
>>55741558
Yes, you would be. I think Haskell's operator-heavy syntax leads people to think it's "math-y" or "good for math", but it really isn't particularly good for that.
>>
>>55741558
no just use numpy
>>
>>55741604
It's also full of holes, like seq and unsafePerformIO, and the standard library is a complete mess (Monad has fail, wtf)
>>
File: haskell on suicide watch.png (7KB, 234x119px) Image search: [Google]
haskell on suicide watch.png
7KB, 234x119px
>>55741633
Prelude is fucked up but Haskell's nice
>>
>>55741648
Please remove that image, it triggers me.

I wish it had a way to check/guarantee/enforce totality when desired. But it's type system is easily one of the best. There's a reason you don't see libraries like free, lens, and semigroupoids in most other languages.
>>
>>55741648

Do people still believe they ever intend to fix up the mess that is prelude?
>>
>>55741349
https://www.youtube.com/watch?v=zcev82OMW1E
>>
>>55741580

Maybe one day I'll be smart enough to understand it.
>>
>>55741698
>cSquare1, cSquare2, cSquare3 ...
>>
Does anyone know a good intro to UWP & XAML book? Or any resource that explain the clusterfuck that is XAML.
>>
>>55741680
Haha no. It was hard enough to get Traversable and Foldable in there. All based on the same misguided notion that got us the monomorphism restriction.

>but confusing for muh poor confused learners! I can't use a special training prelude instead for my course, for some nebulous, spurious, invalid reason!
>>
>>55741452
You mean automatic detection and downloading of cp in 4chan
>>
>>55741712
yeah it's spaghetti but it's a lesson after introducing a novice to the basics like variable declaration and conditionals.
>>
>>55741711
YMMV, but I sometimes find the scalaz implementations of Haskell code easier to follow and understand.
>>
>>55741711
Also, don't give up SharpShill. We're all rooting for you! Someday you'll achieve transcendence!
>>
>>55741754

I've been meaning to look into Scala (and by extension, the community provided extensions) but I'm a lazy piece of shit.

>>55741770

Thanks, mang.
>>
>>55741836
You should toy around with Haskell a bit
>>
>>55741886

Probably. Any good intro material?
>>
File: monads.png (13KB, 300x225px) Image search: [Google]
monads.png
13KB, 300x225px
>>55741986
https://wiki.haskell.org/Tutorials
>>
>>55738439
You seriously use an IDE with a wallpaper or it's just to take pictures?
>>
File: icon-ruby.png (89KB, 959x833px) Image search: [Google]
icon-ruby.png
89KB, 959x833px
I've been fucking around with creating async/await using Ruby threads.

https://github.com/AnthonySuper/Async-Ruby-Sockets-Test

This is currently mostly an experiment, but I'm really liking how it's turning out.
>>
>>55741285
>I don't need to answer the question if I use big words
>>
Trying to get this working: http://gafferongames.com/game-physics/fix-your-timestep/
This is my code: http://hastebin.com/oxukapiyaf.coffee
This makes my game run horribly; it takes up a lot of CPU power and there are some framerate drops here and there. Am I doing something wrong? Should I just forget about it, and use a more basic timestep?
>>
Best way to write a simple chat that multiple people can be connected to?
>>
>>55741437
>vaguely worded non answers

Nice vaguely worded non answer
>>
>>55742137
irc
webrtc or websockets
>>
>>55739681
>presidencies aren't random
/thread

>>55739519
Consider how many have actually ran for office now, see how your stats pan out
>>
File: 1468566538535.jpg (295KB, 1280x2880px) Image search: [Google]
1468566538535.jpg
295KB, 1280x2880px
>>55738403
Do you guys know some good book about "Artificial neural network" for MATLAB language?
>>
File: anime.png (201KB, 335x365px) Image search: [Google]
anime.png
201KB, 335x365px
>>55742558
do ai go to heaven?
>>
Where to download books now that it-ebooks is dead?
>>
>>55742625
No, but they do dream of electric sheep
>>
>>55740040
I remember in TI-BASIC you could leave parentheses off and they would be automatically closed at the end of the line, so you could save program size by not closing your parens
>>
>>55742625
no
>>
What is the best practice for caching SQL query results that doesn't change very often (only a few times a day)?

Do I dump it in memory-based Redis or Memcached and only redo SQL query if the last update time is greater than a pre-set limit?
>>
>>55742135
Anyone?
stateHandler->update() is where I'm actually updating all the game objects.
>>
>>55742861
Why are you getting the time in both the update and main?
>>
>>55742861

Use a variable timestep for most of the game and a fixed timestep for your physics.

Try to keep physics updating at around twice your frame rate target.
>>
>>55742923
In the main function, it's to limit the framerate to my FPS value. I guess I probably don't need it, I can probably do the same thing in the game.update().
>>55742928
I'm using a fixed timestep for moving all of my objects. The biggest problem is my timers. I have lots of variables that start at some number, then decrease by 1 every frame, and then call a function when they hit zero. With this code, the whole system is totally fucked.
>>
>>55742861
What the fuck nigger why do you even bother with that if you're not passing the delta to the update function? It seems like you have no need for it.
>>
>>55742999

Well that is kind of a big problem. You should be using delta time for your logic / movement in the game.
>>
>>55743027
>>55743051
All the game objects call a getDeltaTime() function for their movement, I'm also decreasing the timers with the getDeltaTime() function. They're getting the fixed time, it's currently equal to .017.
I guess I don't understand, what do I use the fixed time for and what do I use the delta time (the one that changes) for?
>>
>>55743101

You use delta time to interpolate or extrapolate to get where the location where the object should be rendered.

This page describes it decently
http://gamedev.stackexchange.com/questions/12754/how-to-interpolate-between-two-game-states
>>
>>55743167
If you look at the article I linked earlier, the writer doesn't use the variable delta time for any of his logic. He uses the fixed time (dt).
His program is a dot that moves across the screen.
>>
File: code.png (1MB, 635x803px) Image search: [Google]
code.png
1MB, 635x803px
Can /g/ even handle a real programming language or are you all like little babies coddled by your modern girl languages?
>>
>>55743234

Well I'm just pointing out how it is generally implemented.

On your logic update when you're setting the positions you calculate where they should be on the next frame update. If you don't do this then a lot of stuttering happens.

You can either keep the position one frame behind the game logic by using a previous and current position to determine the position to render at or you can guess the location the object should be in the next frame and have a bunch of potential nastiness / complexity to take care of.
>>
>>55743244
>he doesn't program in Finnish
>>
File: 20080214_punch-cards.jpg (28KB, 355x268px) Image search: [Google]
20080214_punch-cards.jpg
28KB, 355x268px
>>55743244
>not punch cards

you babies these days can't even pretend to know real shit
>>
>>55743101
I'm also going to guess that this
http://gafferongames.com/game-physics/fix-your-timestep/

Was intended to be a follow up on the author's previous post

http://gafferongames.com/game-physics/integration-basics/

Which is doing exactly what I've been talking about.
>>
>>55743260
>>55743319
Bah, I don't understand any of this. I'll probably just use a much simpler, less accurate timestep method. My game's framerate is locked and it runs on toasters, so it should probably be alright.
What I've been doing up until now is:
float frameTime = SDL_GetTicks() - lastFrame;
lastFrame += frameTime;
deltaTime = frameTime / 1000.0;

if (deltaTime >= .25){
deltaTime = .25;
}
stateHandler->update();


It's not perfect but it gets the job done.
>>
>>55743364

Yeah the time step method he talks about does require a bit of math knowledge to understand.

Just use whatever works for you and gets the desired results at this point.
>>
>>55743310
>not poking pits in your hard drive with a tiny pin
>>
Would making emulators be a good way to learn after the basics?
>>
>>55743669
yes
>>
>>55741122
Go. Python programmers often migrate to Go, when they need type safety or performance. Most Go programmers are actually from Python/Go/JS background.
>>
When did you realize that developing video games is the purest form of programming?
>>
File: 1469208415736.png (24KB, 259x224px) Image search: [Google]
1469208415736.png
24KB, 259x224px
>>55742558
guys...
>>
>>55743965
nice b8 m8
>>
>>55743972

No books only seen things like

http://www.mathworks.com/products/neural-network/?requestedDomain=www.mathworks.com

https://www.youtube.com/watch?v=QU-dnb12eRg&list=PLipP1S0JXRS4Y8_vtaylwl5Y_A839hTu_

I'd say information on matlab would be much more prevalent on sci. General programmers generally don't use matlab much or at all.
>>
>>55739420
Full Deb
>>
>>55741648
>pic
you absolute madman
>>
File: IMG_20160721_035759.jpg (2MB, 1944x2592px) Image search: [Google]
IMG_20160721_035759.jpg
2MB, 1944x2592px
>>55741648
>pic
Was that really necessary?
>>
>>55744392
what in the fuck
>>
>>55739100
And who do you vote for?
>>
trying to make a fizznuzz in javascript,
 var num = _.range(1, 21)

for (var x in num) {
if (x % 15 === 0) {
console.log("FizzBuzz")
}
else if (x % 5 === 0) {
console.log("Buzz")
}
else if (x % 3 === 0) {
console.log("Fizz")
}
else {
console.log(x)
}
}


I'm retarded, but I don't know why I'm retarded
pls help /g/
>>
>>55744422
>
for (var x of num) {

FTFY. "in" is for objects, "of" is for iterables.
>>
File: IMG_2016-07-25-00072746.png (2MB, 1080x1776px) Image search: [Google]
IMG_2016-07-25-00072746.png
2MB, 1080x1776px
There's a bug in my code!
>>
Anyone else looking for jobs?
>>
>>55744513
honestly, i have plenty of valid excuses to hate you at this point ruby
>>
>>55744513
....
why did you watermark that
>>
>>55744539

Anon, if you didn't hate me, I wouldn't be very good at my job, now would I?
>>
File: anime thumbs up.jpg (24KB, 301x267px) Image search: [Google]
anime thumbs up.jpg
24KB, 301x267px
>>55744450
ahh thank you
have an anime
>>
>>55744561

I took the snapshot in Pokemon Go. It automatically adds your username to the lower right corner... unless there's some bullshit in the settings that I need to fix.
>>
>>55744513
Make sure to post on reddit for all those upboats
>>
>>55744576

I don't have a Reddit account, Anon!
>>
File: 019.jpg (50KB, 804x317px) Image search: [Google]
019.jpg
50KB, 804x317px
Do you ever feel good about your programming skill or will you always feel like a retard? I've been programming for nearly 3 years and feel like I suck a lot more than I should after that amount of time. I've improved from where I was when I started but not very much I feel. I still haven't been able to create any kind of personal software project at all. Maybe this just isn't for me.
>>
>>55744687
which language?

in 3 years you can be a python, java or c# pro but no one will take you seriously in c++ and you'll still get confused
>>
>>55744687
I do. Personally, my code and confidence got a lot better, when I switched to using almost only statically typed languages.

Which languages?
>>
File: AndLilyQuestion.jpg (93KB, 560x560px) Image search: [Google]
AndLilyQuestion.jpg
93KB, 560x560px
Can anyone help me with this one?
>>55744720

like, just off the bat, it'd need to bind click and submit to any and all named classes I might come up with
>>
>>55744713
>>55744738
Python (which I don't much like)
C# (liked it t.b.h.)
C++ (want to git gud at, but is still really over my head)

Most of what I've learned has been through school so far and I've tried to apply what I've learned in school to making something of my own, but I usually run into problems pretty fast. It doesn't necessarily discourage me, but when I see other students solving similar problems on assignments no problem I feel like an idiot. If I'm honest I can't say I've focused on any of those languages, or any language at all, for 3 years, so maybe if I just decide to specialize in one I won't feel so dumb.

I'm drunk btw so you don't have to reply if you don't want to. Just having a sad time here.
>>
>>55744796
Ditch Python, leave C++ for later and git gud at C#.

Alternatively learn Go. It's a retardedly simple language and easy to learn, read, write. Good libraries, tooling and standardised code formating. Great for personal projects, but don't expect it to land you a lot of jobs just yet.
>>
qb.AddParams
(
new KeyValuePair<string, object>[]
{
new KeyValuePair<string, object>("query", query),
new KeyValuePair<string, object>("type", type),
new KeyValuePair<string, object>("rank", rank),
new KeyValuePair<string, object>("limit", limit),
new KeyValuePair<string, object>("minArticleQuality", minArticleQuality),
new KeyValuePair<string, object>("batch", batch),
new KeyValuePair<string, object>("namespaces", namespaces)
}
);


Sometimes I hate C#. I can't think of a nicer way of doing this so I just sorta put up with how hideous and inefficient it is.
>>
>>55738403

How much time should I dedicate to anything programming related? Whats your avarage?

I need to schedule my days, halp
>>
>>55744880
18 hours a day for 6 months
>>
>>55744838
Is Go still being developed and changed a lot ?
>>
whats a cool cg effect/filter i could program

nothing too complicated some some neural network style-matching bullshit just something fun
>>
>>55744880
4-6 hours a day.
>>
>>55744900
Honestly I would do that if it was the only thing I should worry about
>>
>>55744880

Around 1 - 6 hours a day. The more you can spare the better.

Most of it won't be writing code though. It'll be research and learning.
>>
>>55738464

Who cares? Anyone who writes shit like that is a pajeet.
>>
>>55741244
'learn you a haskell' is a good way to pick it up.
>>
>>55744948

It would appear you don't have a gpu that supports vulkan.
>>
Fucking Windows 10
Ruined my fucking day
>>
>>55745037

Nvm I'm tired and a a idiot.

your problem is simple

if (m_vkPhysicalDevice = VK_NULL_HANDLE)


You're doing a assignment operation instead of a comparison.
>>
>>55744687
I sucked for the first 3 years too then suddenly got a lot better after going through SICP
>>
File: 1397058749906.jpg (448KB, 3840x2160px) Image search: [Google]
1397058749906.jpg
448KB, 3840x2160px
>>55745053
>>
>>55745063

Well anon it is 4 am here..
>>
>>55744924
It's been locked for backwards compatibility for years now. See https://golang.org/doc/go1compat . While there are occasional backwards-compatible changes to the spec, most of the work is in the stdlib, GC and compilers these days.
>>
>>55745060
:^)
>>
probably going to need to reinstall Windows fucking 8 in order to reinstall Windows fucking 10 because it fucking murder suicided my pc
>>
being unable to operate a simple operating system while posting on a technology board
>>
I feel so dumb when I fail to develop an algorithm for a problem that I feel like I should be able to solve :<
>>
>>55745094
Windows 10 is a virus
>>
>>55745105

Needs more emphasis.

Windows 10 is Spyware.
>>
>>55745114
It's also adware bloat ware, spyware and right now ransoms ware
>>
>>55745094
>>
>>55743364
Don't use floats for absolute time, you lose millisecond precision after only an hour or so.
>>
I only enjoy writing wrappers for existing API's.

What's wrong with me? Am I mentally handicapped? Do I need to see someone?
>>
I developed a GTK url-player frontend in Zenity

#!/usr/bin/env bash

# mpv URL selector
# Copyright (c) 2016 Me
#
# mpv URL selector is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# mpv URL selector is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with mpv URL selector. If not, see <http://www.gnu.org/licenses/>.

url=$(zenity --entry --text="Enter URL here" --title="mpv URL selector-0.1")

mpv "$url"
>>
>>55745257
> one line with OK button
what's the point ?
>>
>>55738557
HFS and FrontPage 98 are what I used, though Google Sites could probably help you more nowadays.

>Dammit I feel old
>>
>pick c# because it's apparently popular language for beginner for developing game
w-where do i start?
>>
>>55743998
thanks bro
>>
>>55745522
You start by actually spending some time with C# and gaining some profficiency with the language.

People pick up Unity and think "Yeah I'll just learn C# as I go how hard can it be"

The answer to that is very when you're working with a very particular framework and being pidgeon-holed into specific ways of making things work.

Pick up a crash course, a book, some tutorials, whatever you like. Learn to make things competently before you pick up Unity because you'll get frustrated and very lost, make very little progress before throwing in the towel.
>>
>>55743310
8088 Assembly.

That is all.
>>
File: 1430872326149.jpg (62KB, 413x423px) Image search: [Google]
1430872326149.jpg
62KB, 413x423px
/dpt/ what do I need to read to understand portable build systems for C, I know C itself but don't understand the meta behind building C programs that utilize libraries. I don't understand how they're named and linked, etc. what determines these things, how do I know the name to pass to the linker/compiler for each library? Are these things system specific?

I'm having a hard time finding resources on this because everything related to C either assumes I understand `make` or just specifies the full command for compilation.

I really want to understand every step in going from source code to binary but only the build parts, not as deep as say understanding how the compiler itself translates into machine code.

At the end of the day I just want to be able to write a C program that uses some portable libraries and have it compile with `make` on whatever platform. I'd rather understand this stuff myself than use something that generates it.

I'll repost this in the next thread if we die to fast.
>>
File: i_return.png (137KB, 1280x1024px) Image search: [Google]
i_return.png
137KB, 1280x1024px
I have returned, the BATCH masochist!

Making a sequel to me previous game now, currently at 1530 lines, previous game ended at 3748 lines total, and I'm gonna break that record - I'm gonna add 2D movement (snickering from people that know what they're doing).

Keep in mind I'm using GOTO and other such hated methods of programming, despite knowing better languages and methods!
>>
>>55745552
i was thinking of picking up monogame later on after i git gud.
>>
>>55745615
I did a project where I was a similar text-based game to 4chan posts for /qst/

abandoned it a while ago but here's the code

http://pastebin.com/R8Enz1NM

if you, like, wanted to make it playable over omegle it wouldn't be a bad place to start
>>
>>55745627
I wouldn't bother, XNA is dead and there's no point trying to limp on with it.

Unity is far superior in more or less every conceivable way so I'd recommend it over Monogame any day of the week.
>>
http://www.fistfulofsquid.com/blog/how_to_write_48_hour_game_in_2_years.html

(Article focuses on games but it applies to any project imo.)
Anyone fall into this cycle as well? Any advice on how to break out of it? It probably doesn't help that I'm depressed as well. I would definitely like to think I have the skills to complete something usable, or even a marketable product, but I'm finding it really difficult because of reasons like the ones mentioned in the post. Fleeting motivation, distractions, getting "stuck" by striving for perfection.
>>
>tfw Something Happened
>>
File: 1446921554552.jpg (63KB, 800x800px) Image search: [Google]
1446921554552.jpg
63KB, 800x800px
>>55745615
>Keep in mind I'm using GOTO

REEEEEEEE
>>
>>55745765
>people bitch at goto while unironically using for loops, while loops, function calls
>>
File: fast.jpg (182KB, 1280x1024px) Image search: [Google]
fast.jpg
182KB, 1280x1024px
>>55745695
Journey was actually a text-based RPG I made for the sole purpose of demonstrating the usefulness of Batch when used properly, and while it's not the best thing in the world, for a Windows terminal language, it can do things that C++ and Java can't do to the default terminal, and without any external dependencies other than the NT command shell.

For having been made over the span of about 3 months and 3748 lines, I'd say that a one-dimensional RPG is a pretty good start to what I hope to one day be a series that is used to show off new technologies and abilities, kind of like Gran Turismo, but an RPG instead.

>>55745765
heehee, I knew somebody would catch that.

It's difficult to use the "good" commands like WHILE and FOR in Batch scripts.

>see how nice and organized it is without all those brackets everywhere?

>>55745780
Exactly my point.
>>
>>55745765
There is literally nothing wrong with goto.
>>
>>55745590
>how do I know the name to pass to the linker/compiler for each library
It depends on where and how the libraries are packaged on your system, so yes it will be system specific. For gcc, when you say -l <libname> you're literally just asking it to link a library named libname, and it will use whatever your default library location(s) are to look for that. You can also pass -L<path-to-lib> to use a different path.

Tools like pkg-config which can be used to find proper flags and paths depending on what system you're on. Then there are build systems like autotools that abstract one step further and autogenerate makefiles. A simple makefile however can basically be a single line saying gcc source.c and some pkg-config stuff.
>>
File: graphics.jpg (282KB, 1280x1024px) Image search: [Google]
graphics.jpg
282KB, 1280x1024px
>>55745787
Just thought I'd mention quick, that CALL :C command allows me to change the color of a single character in the terminal as pictured, and all the IF statements allow me to make the screens more dynamic and allow for a nicer looking screen, as well as give more detail.

>>55745801
Except it's "slow," though I don't really see it.
I've run these games on a Pentium 75MHz before, I've had literally no issues whatsoever with speed.
>>
>>55745811
ignore that which on the 2nd paragraph pls
>>
>>55745811
Good to know, thanks.

I'm going to look into writing a library and utilizing pkg-config and make to try and get a handle on this. I really want to be able to make something useful, I feel like I'd be wasting my time writing software if other people can't compile it easily.
>>
File: RNG.png (149KB, 1280x1024px) Image search: [Google]
RNG.png
149KB, 1280x1024px
>>55745813
I will say this much, though, RNGs are an absolute fucking pain in the ass in Batch!
>>
Does anyone here know of anything like iterated prisoner's dilemma?
I find the topic really amusing for some reason.
>>
>>55745946
I think it's bullshit that models stuff that doesn't really exist in the real world
>>
what's the most standard Python3 GUI, if there's such a thing?
>>
>>55744867
If you have to do something like that, you've probably done something horribly wrong elsewhere in your design.
>>
>>55746047
I think I've seen Qt used the most.
>>
>>55746073
I was having a moment.

qb.AddParams
(
new Dictionary<string, object>
{
{ "query", query },
{ "type", type },
{ "rank", rank },
{ "limit", limit },
{ "minArticleQuality", minArticleQuality },
{ "batch", page },
{ "namespaces", namespaces }
}
);


It's purely for building query strings for yet another API I'm writing a wrapper for. It seemed easier to feed them in like this than write the same bit of pain in the arse boilerplate each time I wanted it to be done.
>>
>>55745850
Anon, that's autism.

Kinda cool, I guess. I've never seen something 1000+ lines in a batch file.
>>
>>55746088
isn't there some half assed native thing ?

I just want something that needs minimal installation
>>
>>55746073
Yeah if it ever gets to the point where you are passing so many dictionary entries into a method as arguments that you have to put them into an array (probably in the right order too, depending on the code on the other side)... Then for the love of Stallman please stop for a moment and think about what you are doing.
>>
>>55746101
Or you could do an object with a constructor and do it like:

qb.AddParams(new Article(query, type, rank, limit, minArticleQuality, namespaces));
>>
>>55746103
Batch scripts don't have much in the way of functionality, but they can do some pretty neat things should you look into them.

Not autism, but a lack of initiative in finding a better way to do an RNG in Batch scripts. this was the first way I thought of doing it, and it's better than just having the program wait for a valid number to pop up out of 32769 possible numbers.

Should you have a better way, please, I beg of you... TELL ME!

These things take so long to do...
>>
>>55746131
I'm actually pretty familiar with batch, because I've done some sysadmin.

I prefer to push out C# executables these days. C# would be a hell of a lot easier to make an RPG with, but I'm assuming you did it in batch just to prove a point or something.
>>
>>55746101

>>55746106
>>55746073

And yes I genuinely did write my own Dictionary as an array first time around, I still have no idea why. KVP was on my mind I guess so I skipped over the fact that's what a Dictionary actually is.

>>55746119
I guess I could just use
AddParams(params object[] someObjects)
and then use
nameof(someObject)
to make my life easier.
>>
>>55746131

Anything Batch can do, Powershell can do better. Why the fuck are you using Batch?
>>
>>55746165
Post your AddParams method.
>>
public void AddParams(Dictionary<string,object> parameters)
{
var builder = new StringBuilder($"{Query}?");
var separator = "";
foreach (var kvp in parameters)
{
builder.AppendFormat("{0}{1}={2}", separator, WebUtility.UrlEncode(kvp.Key), WebUtility.UrlEncode(kvp.Value.ToString()));
separator = "&";
}
Query = builder.ToString();
}
>>
File: jvj2.png (196KB, 681x692px) Image search: [Google]
jvj2.png
196KB, 681x692px
>>55746157
>>55746172
Someone once told me that Batch was the worst language out there.

About a year later I began researching and looking more into how it actually worked and what made it so bad.

About 2 years or so after that, in November of 2015, I began developing a game. A big project called Journey. It was going to be a simple little RPG with the sole purpose of showing just how much power Batch truly had. In April of 2016, I finally finished Journey.

However, now that I've got nothing but free time and a bit more experience, I'm making a sequel to Journey, with even more advancements than it's predecessor was ever planned to have from the start.

This new game... this beast... is Journey 2. I plan on releasing it before the end of this year.

Pic related, Journey on the top, Journey 2 beta on the bottom.

These posts I am making are the first official statements about Journey 2 since it's announcement.

>can Powershell change the colors of an individual character in the terminal? See image for proof of concept, all written in Batch.
>>
>>55746242
-foregroundcolor "magenta"
>>
File: VlAo2IU.png (2KB, 511x39px) Image search: [Google]
VlAo2IU.png
2KB, 511x39px
>>55746242
>>55746257
>>
>>55746242
With that kinda autism you should pick up C/C++ and make a full scale roguelike. I bet you would enjoy that kind of stuff.
>>
>>55746257
>>55746265
He was asking about multiple colors on one line.

>>55746242
Here: http://stackoverflow.com/questions/2688547/muliple-foreground-colors-in-powershell-in-one-command
>>
new thread

>>55741287
>>
File: 1293107934026.jpg (18KB, 366x380px) Image search: [Google]
1293107934026.jpg
18KB, 366x380px
>>55746307
>>
>>55746307
That's not a /dpt/.

New Thread:
>>55746223
>>55746223
>>55746223
>>
File: keep_in_mind.jpg (22KB, 620x305px) Image search: [Google]
keep_in_mind.jpg
22KB, 620x305px
>>55746257
>>55746265
You're missing the point here, it was to create something great with a "bad" programming language.

If I wanted to do it the easy way, I'd use C++ or Java or something instead.

>>55746276
See above.

>>55746278
Thank you for at least getting my point on the colors, but the point of these projects is to prove you don't have to have a modern programming language to make a decent game, and that sometimes programming doesn't have to be hard to learn.

Also keep in mind that most Batch programs look something like pic related.

>Jesus, I sound like a frickin' liberal over here, or maybe a commercial on American television

>posted on both threads for redundancy
Thread posts: 329
Thread images: 36


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