[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: 327
Thread images: 29

File: davidguetta.webm (2MB, 1280x720px) Image search: [Google]
davidguetta.webm
2MB, 1280x720px
Previous thread: >>55967224

What are you working on, /g/?
>>
Going to write a language in Haskell
>>
nothing :<
>>
>>55973981
; chess.sat - chessboard in saturn
; alternate ' ' and '#' to make chess tiles
; board is a square of size SIZExSIZE

main:
int SIZE, 8

int r, 0
int c, 0
int mod_result
int check_result, 0

col_loop:
cmp c, SIZE
jeq exit

row_loop:
cmp r, SIZE
jeq nextline

mov mod_result, r
mod mod_result, 2
cmp mod_result, check_result
jeq print_space
out stdout, '#'
jmp after_space
print_space:
out stdout, ' '
after_space:
inc r
jmp row_loop
nextline:
inc c
out stdout, newline
mov r, 0
cmp check_result, 0
jeq set_cr_1
jne set_cr_0
set_cr_1:
mov check_result, 1
jmp col_loop
set_cr_0:
mov check_result, 0
jmp col_loop

exit:



Probably the hardest thing I've done with this.

Outputs for 8 and then 10:
 λ saturn chess.sat
# # # #
# # # #
# # # #
# # # #
# # # #
# # # #
# # # #
# # # #
λ vim chess.sat
λ saturn chess.sat
# # # # #
# # # # #
# # # # #
# # # # #
# # # # #
# # # # #
# # # # #
# # # # #
# # # # #
>>
File: 1467398868589.jpg (475KB, 852x973px) Image search: [Google]
1467398868589.jpg
475KB, 852x973px
Whoops!

Looks like you forgot to use an anime image in the OP!
In fact, the OP image you've chosen has little to do with programming or 4chan!

Don't worry, everyone makes mistakes on their first day.
I'll help you by providing you with your very own programming-related anime image.
Feel free to save it!
Don't forget to collect more!

- /dpt/
>>
>>55974197
nice, care to describe it in some more detail?
>>
>>55974241
Missed copying the last line on the output for 10, don't worry it works
>>
>>55974253
Haven't started yet
Will likely be pure and dependently typed but with primitives and without a proof checker
>>
>>55974241
this seems assembly tier
>>
>>55974278
almost, but not quite
could probably very easily be converted to assembly
>>
>>55974197
esoteric one?
>>
>>55974284
is the language fast though?
>>
>>55974241

Blimey.. Saturn is back!
>>
>>55974297
Hell no.
It's written in C but it's probably slower than Python for this.
>>
>>55974270
im still kind of scared of implementing dependent typing. i've cut back some features from my own languages to make type checking/type inference easier. have you ever tried implementing dependent types?
>>
what happened to julia guys
I wanted to learn it, but it seems like its faded into nothing these days
>>
>>55974316
I've only ever heard of it as "unnecessary" and "easily beat by competitors"
>>
>>55974306
no but there are a few tutorials out there
>>
>>55974336
nice, any good links for me to check out?
>>
>>55974316
It got squished between R, python and Jupyter. While data science is fascinating, it's not big enough to maintain 3 competing languages (not even counting the normie-tier SPSS and the like)
>>
>>55974343
Trying to link but 4chan keeps saying my post is spam

http://augustss.blog
spot.co.uk/2007/10/simpl
er-easier-in-recent-paper-sim
ply.html

http://math.andrej.com/2012/11/08/how-to-implement-dependent-type-theory-i/
>>
>>55973981
for (int i = 0; i < size; ++i) {
for (int j = 0; j < size; ++j) {
if ((i ^ j) & 1)
putchar('#');
else
putchar(' ');
}
putchar('\n');
}
>>
What's currently the best solution for making GUIs that aren't ugly as fuck in Java?
>>
>>55974349

>SPSS
Why do people use this garbage? R is easy enough even a normie could use it.
>>
>>55974374
oh wow that's pretty awesome, thanks anon. keep us updated on your language please
>>
>>55974381
int i = 0, j = 0;
while (++i <= size) {
while (++j <= size)
putchar((i ^ j) & 1 ? '#' : ' ');
putchar((j = 0) | '\n');
}


also check my current year captcha
>>
X-Posting sorry

>>55970116
It's
unique_ptr<Node<T>*>
>>
>>55974431
I'll X-post this for you then:

>different type of pattern matching, they don't refer to the same thing at all
It still is pattern matching. The answer to "guys, does javascript have pattern matching?" is yes. Think about what you write.

>are you trying to tell me that Go and Fortran are functional languages?
I'm trying to tell you they have functional programming features.
>>
I'm going to controversially agree with >>55974559

Regex IS a kind of pattern matching, and can (mostly) be generalised to all lists
>>
>>55974559
just saw it in the other thread.
the question was clearly asked in a specific context, I was answering based on that. that's like someone saying
>I really like functors in SML, does Haskell have functors?
and then answering yes because there's an entirely different concept called a functor, even though that's not what they mean in the question.

closures predate functional programming and come from imperative languages, hence I would not consider them a functional programming feature.
>>55974578
I guess so, but for that comparison to make sense you'd have to show that JavaScript can generalize regexes (which it can't afaik)
>>
>>55974605
It still pattern matches strings
>>
>>55974605
Someone gave a correct answer to the question and you corrected him with your meaningless "pattern matching ≠ regexes" remark.
>>
>>55974578
>>55974605
>>55974618

in fact this is exactly what Parsec does
(and Parser monads in general)

x* = many x
x+ = many1 x

capturing a group - >>=
not capturing: *>
>>
>>55974644
for instance,
x+ is x(x*)
-- do notation
do
a <- x
as <- many x
return (a:as)
-- liftM2
liftM2 (:) x (many x)
-- monad comprehension
[ a:as | a <- x, as <- many ]
-- applicative operators
(:) <$> x <*> (many x)
>>
>>55973981
size = take 8
board = iterate tail (cycle " #")
main = (mapM_ putStrLn . map size . size) board
>>
Clueless computer science major here

How late is it to start a portfolio? I'll be a junior this fall and I basically have no personal projects for an internship next summer. If I start now will recruiters be like "ha gotcha you lazy fuck" when I eventually apply a few months from now?
>>
>>55974241
>in saturn
Is this something you made yourself?
>>
>>55974863
Just upload it to GitHub at once, then tell them you previously had it stored locally
>>
File: QUICK.jpg (156KB, 837x837px) Image search: [Google]
QUICK.jpg
156KB, 837x837px
POST YOUR PREFERRED METHOD OF MULTI LINE COMMENTS OR THIS CROW WILL FUCK YOUR SHIT UP
>>
>>55974859
danm, this solution is very elegant
>>
>>55974874
yeah, finished it about a year ago
>>
>>55974911
/*
* Loonix
* Colonel
* Style
*/
>>
>>55974911
that's a kiwi u dum fuc

also
{-
- comments here
-}
>>
>>55974911
/* This is a multi-line comment.
* As you can see, it spans multiple lines.
* It is useful for writing detailed comments.
* Poo in loo.
*/
>>
does smaller binary size mean more efficient?
>>
>>55974964
Of course not.
>>
>>55974964
Not in all cases but smaller binary size for Linux kernel for example almost always means more efficient because more code fits into cache. Or at least so Linus claims.
>>
>>55974964
No.
If it does the same exact thing, still no.
I'm a noob when it comes to hardware, but I'm 99% sure that something with a slightly larger binary could still be more efficient with something slightly smaller because of pipelining. (read: order matters)
>>
>>55974911
/**
* This is example for style of commenting to be favored.
* It will be used for converting to javadoc files for the purpose of documenting as needful.
*
* @author Abhay Rajesh Patel
* @version 1.0.0.10.2
*/
>>
>>55975012
>Rajesh
kekd
>>
>>55974411
Switch to c#
>>
>>55974911
none at all
>>
>>55975118
#if 0
#yolo
#endif
>>
>>55974911
    /*
* This is a detailed multi-line comment about an algorithm or someshit.
*
* Kill yourself.
*/
>>
>>55974911
/*
//stay
//mad
//fagets
*/
>>
>>55974964
No more efficient means cpu usage and ram usage
>>
>>55973981
damn, reposting my lame K code from dead thread

chess:{`0:,/x#((x#" #"),"\n";(x#"# "),"\n")}
chess@5
chess@7



https://github.com/kevinlawler/kona
>>
>>55974964
it depends, it doesn't necessarily mean it's more efficient but it's very possible for it to be more efficient, like on older smartphone cpus you could even compile with -Os instead of -O3 and get both a smaller size and faster run time
>>
>>55973981
>>55975372
one more:

: line ( f i -- ) 0 DO DUP I 1 AND = IF ."  " ELSE ." #" THEN LOOP DROP 13 EMIT ;
: board ( x -- ) DUP 0 DO I 1 AND OVER line LOOP DROP ;

5 board
7 board


https://repl.it/languages/forth
>>
the entirety of 4chan is so fucking shitty, retarded and autistic

look at this shit, they don't even have any rational arguments for why corsair keyboards are shit, it's all emotional delusions >>55957829. i'd sure as hell appreciate a better suggestion for a keyboard as long as it fits my programming needs, i don't want some gimped """"connoisseur"""" keyboard
>>
>>55975521
You're always welcome to leave, fag.
>>
>>55975521
>>>/q/
>>
>>55974270
>dependently typed without a proof checker
What does that even mean? A proof checker is simply a type checker. What use is a typed language without a type checker?
>>
>>55975554
i've only been here for a few days after leaving for weeks at a time, i may very well leave again

/g/ in various threads and /biz/ and probably all boards have really dense and vapid sperg shits

kill yourself
>>
>>55975573
Nobody cares, fuckface.
How is whining in the programming thread going to fix anything?
>>
>>55973981

def chess(size):
for j in range(size):
for i in range(size):
if i%2==j%2:
print(" ",end="")
else:
print("#",end="")
print("")
>>
>>55975372
lmao wtf is this kona shit
seems cryptic
>>
>>55975012
>5 section version string
For what purpose? I can only a use for three sections to indicate API breaking changes, feature additions and bug fixes.
>>
File: no surprises it's a black woman.png (60KB, 600x665px) Image search: [Google]
no surprises it's a black woman.png
60KB, 600x665px
It's more """art""".
>>
>>55975729
open source version of K language:
https://en.wikipedia.org/wiki/K_(programming_language)

modern descendant of APL
>>
>>55974911
#Don't drop that Pickle-Pee
#Heeeeyyy
#Don't drop that Pump-a-Rum
>>
>>55975744
?????
>>55975786
I see.
seems like a niche lang too
>>
File: asm.png (113KB, 634x768px) Image search: [Google]
asm.png
113KB, 634x768px
So I decided to learn x86 assembly by writing my own """kernel""".

I haven't felt this lost in a long time.
>>
>>55975849

Been writing filters for a while now.
>>
>>55975849
>niche
good paying niche tho unlike

shit's apparently hot among Wall Street folks who need to wrassle billions of data stat
>>
>>55975858
what lang?
how do I get into images?
>>55975874
I think you're making this up
>>
>>55975887
nope:
http://kxcommunity.com/jobs.php

It's pretty cash if you can get in, just to clue in what kind of money we're talking about here: official developer license for K from Kx systems costs ~100 000$

the system itself that you buy for that heap of money is 26 Kb exe with text files and *.lic file
>>
>>55975887
>what lang?

C#

>how do I get into images?

Well, I didn't exactly read much. Just sort of did it. The "grip it and rip it" approach, if you will.
>>
What's a good 2d array like data structure in C++? I'm playing around writing a little game using ascii output, and I'm trying to work out what I should use to store the map.

At the moment I'm using
std::vector<std::vector<Tile>> tiles;
, and then using
tiles.push_back(std::vector<Tile>());
to add each Tile after I've set it's values.

But I'm a pretty terrible C++ programmer, is there a better way to be doing this?
>>
>>55975918
>100,000
danm

do you have such a job

tell me more
>>
>>55975939
That vector will be HUGE. Use pointers to Tile (Tile*, std::shared_ptr<Tile> or std::unique_ptr<Tile>).
>>
>>55975984
Yeah that's what I was really worried about. But what kind of size do you think that it would actually start being an issue at?
>>
Why do people use IDE's? I believe they make people less meticulous. The same goes for most debuggers. Most languages and editors already include features for debugging. Vim is a hell of a lot better than any IDE I've used.
>>
File: 2016-08-08-051420_836x121_scrot.png (24KB, 836x121px) Image search: [Google]
2016-08-08-051420_836x121_scrot.png
24KB, 836x121px
guys, I have no idea how to do this
>>
>>55975997
It depends on sizeof(Tile). For example, in an old project I did, I used the same structure, for a roughly 500x500 map. My tiles take 64 bytes of memory (a pointer takes 8 on 64-bit). The 400th cell of the 400th row will be at an offset of ~10 MB, if I store raw pointers it will be at ~1 MB.

Actually, that's not so huge. Seeks through the vector will still be much faster.
>>
File: 2016-08-08-051714_600x237_scrot.png (35KB, 600x237px) Image search: [Google]
2016-08-08-051714_600x237_scrot.png
35KB, 600x237px
anyone know what the font of this is?
>>
What languages can you reliably access the source code of a program for and it isn't mangled by a compiler? I've heard virtual machine interpreted stuff like Java and C# it is possible, but is that it?
>>
>>55976014
Why do people use """"text editors""""? I believe they make people less meticulous. The same goes for most terminals. Most languages and editors already include features for neckbearding. Notepad is a hell of a lot better than any """"text editors"""" I've used.
>>
>>55975560
There are cases where you may want to lie
>>
>>55976131
java and C# can still be optimized and obfuscated by e.g. proguard, and you can still decompile C/C++, just without most meaningful variable/function names and with things being rewritten (but functionally identical) compared to the original source code.
>>
>>55976138
3/10 for making me respond
git gud
>>
>>55976173
>you can still decompile C/C++, just without most meaningful variable/function names and with things being rewritten (but functionally identical) compared to the original source code.
Not if you program functionally and inline a lit
>>
>>55976196
a lot*
>>
>>55976196
anything the program does at run time, you can reverse engineer if you have it running on your system.
>>
>>55976213
the program does everything at run time
>>
>>55976243
anon was talking about using pure functions and inlining things, but all that does is obscure how you generated some magic numbers and you can do it in java and C# as well, you can still reverse engineer what the program actually does with the magic numbers
>>
Writing an exokernel for ARM64
anyone else addicted to assembly?
>>
>>55976095
My Tile struct is very small, only 8 bytes, so it's not all that huuge. Just tested changing to pointers, and the code that generates the map went from 180ms to 124ms, so not really enough to bother about anyway, as it's only running once per load.

And even on a massive map, the rendering code was still fast enough for the sizes that it runs at anyway. Bigger problem is that I haven't implemented any kind of viewport yet, if I do that even a ridiculous map will render in a snap I think.
>>
File: slow and steady snek.png (31KB, 778x219px) Image search: [Google]
slow and steady snek.png
31KB, 778x219px
http://www.strawpoll.me/10939705
>>
>>55976346
Yeah, in that case don't even bother. Rendering won't be bottlenecked by that vector ever.

As the old mantra goes: Never listen to /dpt/, and if you do, test the changes yourself.
>>
>>55976398
>ruby beating python lmao
also
>being this obsessed with tripfags
just put on girl clothes and suck them off already
>>
Say I have 2 arrays with values and I want to find the common elements of the 2 arrays, what's the fastest way to find these? Preferably in PHP. I was wondering about it today.
>>
>>55976441
If they aren't sorted/ordered in any way, you just have to check them all. No faster way for unsorted data in an array.
>>
>>55975857
Writing a kernel is a terrible way to learn x86.
Start with userspace programs first.
>>
I've grown quite adept at Python scripting.

There's just one aspect of it that continuously pisses me off. I'll add something to a script and it'll give me a bullshit "indentation error" message when it looks completely fucking fine and all this means is that I have to press select all and then "convert whitespace to tabs" and then it'll work fine. I have to do this so goddamn often that it's driving me crazy.
>>
File: Untitled.png (1KB, 135x130px) Image search: [Google]
Untitled.png
1KB, 135x130px
>>55974194
Making randomly generated pacman maps. Though they do look a bit weird and my code can't handle more than 36x36 boxes.
>>
Haskell sucks.

- Lazy evaluation by default was a mistake
- Functions that cannot take a variable number of parameters are crippled
- Order of evaluation is incredibly ambiguous compared to Lisp s-expressions
- The overly symbolic syntax in general makes DuckDuckGo'ing certain questions impossible and even referring to certain constructs in English a chore

If you want to learn functional programming, you should really, really ignore memesters and learn Lisp.

If you insist on using a ML-type, then standard ML or ocaml or basically anything that isn't Haskell will serve you better, since they suffer from some but not all of the flaws listed above

Thanks for reading
>>
>>55976670
Configure your editor properly. No one uses tabs anymore, be it in modern python or in general. If it's not possible to make it so that pressing tab inserts 4 spaces, pick another editor, this one must bs garbage.
>>
>>55976834
Found the lisp weenie from yesternight
>>
>>55974194
>using a high-level language with libraries.webm
>>
>>55976843
I had the same problem, and it wasn't editor-related, it was my keyboard. It inserts a non-space character on AltGr + spacebar.
>>
>>55973981
#include <iostream>
int main(int argc, char* argv[])
{
for (int i = 0; i < std::atoi(argv[1]); i++) {
for (int j = 0; j < std::atoi(argv[1]); j++) {
if ((i % 2 == 0 && j % 2 != 0) ||
(i % 2 != 0 && j % 2 == 0))
std::cout << "#";
else
std::cout << " ";
}
std::cout << std::endl;
}
}
>>
>>55976398
>C#
But I thought memes something something microsoft meme
>>
>>55976834
Agreed, it sucks, and the biggest problem with it is actually the Glasgow Haskell Compiler. Its installation is bigger than 1 GiB and compilation is still slow as fuck.
>>
So I started working as a software developer about half a year ago and am now trying to think of fun shit to do in my own time. Any ideas?
>>
>>55976834
but dude, haskell is goat
plus, list has that parenthesis stuff going on
>>
>>55976904
Anything suggested here would be a waste, because it's likely you won't be completely motivated to do it.

The best kind of program to write is something that you yourself would actually use for something.

A masturbation/sex calendar that uses known research to estimate your average level of testosterone based on diet, prior masturbations, and planned future masturbations. Bonus points for somehow integrating a blood sample machine to automatically upload relevant information into the application's database.
>>
>>55974194

Just more Compute Shader fun in OpenGL. Now the particles are coloured according to the magnitude of their velocity.
>>
File: OpenGL_Testing (1).webm (1MB, 1364x768px) Image search: [Google]
OpenGL_Testing (1).webm
1MB, 1364x768px
>>55976967
>>
>>55976985
What's being simulated?
>>
>>55977003

Just a lame bit of gravity.
>>
>>55977012
Why do they get sent outwards?
>>
>>55977015
Is it just velocity + lack of collision?

You should add some kind of resistance based on particle proximity, then you could get stars
>>
>>55977015

The acceleration increases as they get closer to the centre of mass causing the gravitational attraction. Since I'm too lazy to make them collide at the centre, their velocity persists, sending them flying out the other direction.
>>
How the fuck does flex + bison work what the fuck, I can't figure this shit out.
It's such a fucking mess of a clusterfuck.
>>
>>55976985
Add color/velocity "bumps" and sync with audio output of machine.

Could be neat.
>>
>>55977043

Both produce a handy set of c files (I think?), based on a simple file you give them defining your language's tokens and syntax.You can then just include these c files in your compiler project.
>>
>>55977015
cause the gravity vector changes
>>
>>55976416
>>being this obsessed with tripfags
I just made a strawpoll man, calm down.
Some of us aren't from Reddit and don't want everyone to have a tripcode because we appreciate 4chan for what it was.
>>
>>55977047

Good idea - that was actually close to what I wanted to try next! It could end up being an accidental PC Demo.
>>
>>55977066
I know that. I can't fucking figure out how to use it properly with C++ to make a compiler.
>>
>>55976834
Haskell's type system is what makes it great for me

dynamic typing a shit
>>
File: Maat.png (179KB, 400x400px) Image search: [Google]
Maat.png
179KB, 400x400px
>>55976086
for comparing x and y, have the base case return true if x = y (duh)
then have a predicate for checking if *both* x and y are objects. if not, then return false
If they are both objects, then map over the parameters of each one, recursively calling deepEqual over x1 and y1, x2 and y2, etc.
if those objects are objects, then deepEqual is mapped over their parameters as well, etc
whenever you eventually recurse down to the atomic level, you'll be comparing x vs y and returning a simple true or false value

back under the predicate that checks if x and y are both objects, have a foldl/foldr function that iterates over the lists of trues and falses returned by your maps. have its function be something that returns the accumulator value if the list item is true, or a false if there is any false value. then set the initial accumulator to true

basically you will return a big pile of nested lists containing atomic truth values, and the folds called on each one will spot any false and return false all the way back

I wrote code for this but I'm not posting it since this is obviously homework

good luck nerd
>>
>>55977077
>he doesn't know 4chan was overdone by tripfags back then
welcome newfriend
>>
>>55976917
>plus, list has that parenthesis stuff going on
That's a feature not a bug.
Lisp's syntax is precisely why it has outlasted all of its contemporaries except Fortran
desu I don't understand how people program without parenthesis
>>
>>55976398

Just voted for meself.
>>
>>55976086
Use your brain. What lang ffs?
>>55977107
You sound like your brain has been poisoned with Haskell.
>>
File: 1468450868304.jpg (52KB, 500x1000px) Image search: [Google]
1468450868304.jpg
52KB, 500x1000px
>>
>>55976086
This could easily be 100+ lines of code for a proper solution.

Personally, I'd serialize the objects and compare that, after checking if the objects are the same type.
>>
>>55977175
I wrote the solution in Scheme.
Is there something wrong with my suggestion? Surely describing anything recursive risks the speaker sounding like a functional programming nerd.
>>
>>55977185
noice. Proves that Windoze isn't developer friendly imho
>>
>>55976086
it just means to make a equals override for your class then use that
>>
>>55977200
>but see here I have a MS Paint comic haha tough luck kid
>>
>>55977185
>Please look at this comic which signifies a lack of understanding regarding Windows Operating systems
>Aren't I hilarious?

It's like 2009 all over again. It's even using Firefox as an example, which is no longer relevant.
>>
>>55977200
If a program doesn't exit on SIGTERM, it doesn't deserve the disk space it uses desu
>>
>>55974194
Not been working, but studying C++ syntax, features and common conventions, to refresh my memory. Might start a project next week.
>>
>>55977221
>>55977226
>>55977234
Wait, I thought we were supposed to blindly hate Windows and Microsoft, regardless of those pesky facts and the fact that they're more open-source-friendly than ever?
>>
>>55977191
Since this could become a fun game of code golf here is what I wrote:

Scheme isn't OOP and I don't know if the problem calls for comparing literal objects, but wherever you see a list, just insert whatever function returns a list of an object's parameters.

There would have to be more cases for vectors, etc, but it's the fundamental problem I'm interested in

(define (deep-equal? x y)
(cond ((and (list? x) (list? y))
(if (= (length x) (length y))
(foldr (lambda (a acc) (if a acc #f)) #t
(map (lambda (j k) (deep-equal? j k)) x y))
#f))
((and (atom? x) (atom? y))
(if (eq? x y)
#t
#f))
(else #f)))
>>
>>55977245
No, I still do hate it.
I hate Linux too.
All operating systems suck.
>>
>>55977197
>Surely describing anything recursive risks the speaker sounding like a functional programming nerd.
Exactly, but if you're writing in scheme I have nothing against you. Your reasoning is correct, just seems like this simpleton cant wrap its head around a recursive problem. You should probably short circuit instead of reducing tho, unless you have lazy evaluation macroed in.
>>
>>55977245
>more open-source-friendly than ever?
Better doesn't mean good. Try again.
>>
File: dice60fps2.gif (2MB, 285x316px) Image search: [Google]
dice60fps2.gif
2MB, 285x316px
>>55977200
>>55977226
>>55977221
>people actually responding to my random post.
>>
>>55977264

FreeBSD is the only way.
>>
>>55977235

Sounds cool anon. If it has been a while, check out some of the newer C++11/14 features too!
>>
>>55977257
>and I don't know if the problem calls for comparing literal objects
Of course the problem calls for comparing literal fucking objects, you mouthbreathing retard.

It's clearly a Java/C#/other OOP language assignment.

Thanks for proving that Lisp/Scheme/whatever programmers are continually the biggest faggots.
>>
>>55977257
>no call/cc
Could be done way better. I cant scheme rn tho
>>
>>55977289
objects is a really ambiguous term. it doesn't always mean an OOP object
sometimes it's just a thing

in any case
>wherever you see a list, just insert whatever function returns a list of an object's parameters.
>>
>>55977296
bump the thread when you can
I'm familiar with call/cc but none of the tutorials I've read about it offer truly practical solutions. they're more like weird party tricks
I'd like to see a real world example
>>
In Java, how can I let the user input a function that the program can use?

For instance, I might want to write a program where the user inputs a function and the program calculates turning point(s) and root(s) of the function.
>>
>>55977322
call/cc _is_ a weird party trick.
>>
>>55977325
Also I know Dijkstra's algorithm for expression evaluation but I was hoping that there's a simpler way.
>>
>>55977185
this is bullshit
I've had cases where my browser (qutebrowser), still ran even though I specifically pkilled it.
>>
>>55977325
Append/prepend class definition text to user's function text so it's a valid .java file, use javac to compile it to bytecode, load it into memory dynamcally, create the class and then you can call the function.
>>
>>55977300
But that would be really really fucking slow to iterate through all the potential properties that a massive object could have.

>>55976086
Obviously, this wouldn't fit your homework, but I'd serialize to bytes arrays and compare.

You can do this blazing fast in C# if you do it unsafely, and still really fast with P/Invoke and
msvcrt.dll + memcmp()
.
>>
>>55977347
>>55977325
Alternatively, use something like a javascript interpreter and have user write the function in Javascript instead of Java.

https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino
>>
>>55977152
>Lisp
>outlasted
It was never alive.
>>
>>55977325
just write a small interpret senpai
>>
>>55976398
ruby (the tripfag) isn't that bad imo, !nv.0k6WoTc is the real annoying one, smug FP fedora tipper
>>
calling out those proficient in Rust:

why the hell can't I have a reference to a resource that is borrowed already? (mutable reference) I don't see how this could possibly lead to any race conditions. I can easily understand why they wouldn't allow for more than one mutable reference, but I don't get this.

let mut x = 3;

let y = &mut x;
*y += 1;

println!("{}", x);
>>
>>55977435
Mentioning them is the biggest reward they could hope for. If you think some tripfag is annoying, pretending he does not exist is the best thing you can do.
>>
git down uses 4chan as a cum analyzer to moderate commits based on masturbation level

https://www.reddit.com/r/programming/comments/4woznl/git_down_uses_arduino_as_a_breath_analyzer_to/
>>
>>55977461
>if we ignore it, it will go away
that's not how cancer works
>>
>>55977487
if i wanted to reddit threads i would go to reddit
>>
>>55977492
Well, it enjoys when you don't ignore it. Any mention is good. I am speaking from experience. I was tripfagging hard somewhere around 2007-2009.
>>
#include <stdio.h>

int test_prime(int n)
{
int x;

if(n < 2){
x = 0;
}
else if(n == 2 || n == 3 || n == 5){
x = 1;
}
else if(n % 2 == 0 || n % 3 == 0 || n % 5 == 0){
x = 0;
}
else{
x = 1;
}

return x;
}

int main(void)
{
int n;

for (n = 0; n <= 100; n++)
{
int x = test_prime(n);

if (x != 0){
printf("%d is prime.\n", n);
}
}

return 0;
}
>>
>>55977512
>I was tripfagging
advice ignored

>>55977552
is it time for another episode of prime fizzbuzz?
>>
>>55977444
>I don't see how this could possibly lead to any race conditions.
Dummass. Can't mutate the object with someone simultaneously reading from it, it's undefined what they will see, depending how it gets scheduled. That's not apparent in your example, but it's the strict, safe, general rule that they follow at RuSJW. So that means the y borrowing must expire before you're able to lend again. put it inside a block or something I guess.
>>
>>55977560
>advice ignored
Your loss.
>>
>>55977444
I just don't get it. no writing is going to happen while println has a reference to x. why can't this happen? why can y have it's mutable reference, x borrows it to read, and then y gets it back?
>>
>>55977563
see
>>55977572

I'm half asleep at the moment, so there's the possibility that I am, in fact, a dumbass.
>>
>>55977552
#include <stdio.h>

int test_prime(int n)
{
if (n < 2) {
return 0;
}
else if (n == 2 || n == 3 || n == 5) {
return 1;
}
else if (!(n % 2)|| !(n % 3) || !(n % 5)) {
return 0;
}
else {
return 1;
}
}

int main()
{
int n;

for (n = 0; n <= 100; n++)
{
int x = test_prime(n);

if (x != 0) {
printf("%d is prime.\n", n);
}
}

return 0;
}
>>
>>55977492
You're cancer if you think that.
>>
>>55977511
If I wanted a (YOU) from you I would cucking tell you.
>>
>>55977603
how can i be cancer, cancer isnt even a single entity...
>>
>>55977603
>>55977567
Which is it? Am I loss or cancer?
>>
>>55977653
Oh my god...
Your'e right.....
My entire life was a lie!
Like the cake :D
>>
>>55977703
but the cake is a lie
>>
>>55977695
And idiot.
>>
>>55977703
>no xd
shiggy
>>
>>55977722
>shiggy
xd
>>
>>55977728
"greentext"
rofl
>>
File: anonymize.png (3KB, 294x58px) Image search: [Google]
anonymize.png
3KB, 294x58px
Ironic that using this option has made anonymous posters who mention tripfags more annoying than the tripfags ever were.

SHUT THE FUCK UP.
>>
type hell in haskell atm

>>55977734
This. All they had to do was accept the well known fact that tripfags are cancer.

Further proof that not only are tripfags cancer, but people who deny that tripfags are cancer are cancer. And even discussions about tripfags can become cancerous.
Tripfags spread cancer everywhere they go.
>>
>>55977734
Yeah guys, shut the fuck up tbqh famalamadingdong
>>
File: 1349933092760.jpg (35KB, 193x230px) Image search: [Google]
1349933092760.jpg
35KB, 193x230px
>>55975857
Had to learn a lot of assembly for my Computer Architecture class several years ago, was pretty fun.
>mfw most of the class bitched and moaned saying they'd never use the stuff we learned
>>
>>55977592

#include <stdio.h>

int test_prime(int n)
{
if (n < 2) {return 0;}

for (int x = 2; x * x <= n; x++)
{
if (n % x == 0){return 0;}
}
}

int main(void)
{
int n;

for (n = 0; n <= 100; n++)
{
int x = test_prime(n);

if (x != 0){
printf("%d is prime.\n", n);
}
}

return 0;
}
>>
>>55977722
>shiggying
>not even diggying
wtf is your problem man
>>
>>55977461
i didn't mention all the tripfags in the poll :^)
>>
>>55977771
What the FUCK are you doing
This:
if (x != 0)

Can be simplified by this:
if (x)

Or, if you don't want to be fucking retarded:
if (test_prime(n))

Get fucking good.
>>
File: 1462617258058.jpg (9KB, 250x250px) Image search: [Google]
1462617258058.jpg
9KB, 250x250px
>>55977790
>>
>>55977790
What the FUCK are you doing
This:
 if (n % x == 0) 

Can be simplified by this:
 if !(n % x) 


Get fucking good.
>>
>>55977572
>>55977585
>no writing is going to happen while println has a reference to x.
that's what you must prove to the borrow checker
>why can't this happen? why can y have it's mutable reference, x borrows it to read, and then y gets it back?
x doesn't borrow from y, y borrows from x. Reread it. Note that you could write this program simply as:
let mut x = 3;
x += 1;
println!("{}", x);

Because here you borrow from yourself, which probably confuses you a lot.
>>
Actually if you read the code you'd know the if statement could be removed entirely

>>55977803
I was going to tell him he was being rude but then you posted a frog
>>
>>55977790
>That one autistic guy who changes a bunch of minor details in the codebase that have zero effect on performance or understandability

Code monkeys worry about code, computer scientists worry about algorithms
>>
>>55977783
You have no mention none.
>>
>>55974476
checked
>>
>>55977816
you have to do
if (!(n % x))
>>
>>55977322

(define (deep-equal? x y)
(let/cc (escape)
(let rec ((x x) (y y))
(cond ((and (list? x) (list? y))
(if (= (length x) (length y))
(begin
(map (lambda (x y) (or (rec x y) (escape #f))) x y)
#t)
#f))
(else (eq? x y))))))


Here, tested with gauche, and gauche doesn't have atom? so I dropped it. call/cc used to short circuit, because if we found a difference, we don't have to continue looking for another. That's the rule (and #f <whatever>) -> #f. Lazy evaluation would do it automatically also. call/cc is based, and call/comp too. maybe try reading some racket documentation? They explain continuations and everything in a nice, step-by-step, all-in-one way IMHO.
>>
>>55977825
>If you come up with good algorithms, your code looks ugly
>If your code looks beautiful, your algorithms are bad
Not everything is binary you retarded bassoon
Get the fuck out
>>
>>55974244
the autism is tangible
>>
>>55977858
Oh ok, I see what you mean by short circuiting.
I've seen breaking done with call/cc before.
That makes sense in this case.
>>
>>55977865
>>If you come up with good algorithms, your code looks ugly
>>If your code looks beautiful, your algorithms are bad

I don't remember saying either of these things.
>>
>>55977790
>This:
>if (x != 0)
>Can be simplified by this:
>if (x)
FOR
WHAT
PURPOSE
>>
>>55977901
see >>55977821 and >>55977771
>int x = test_prime(n); // can only return 0
>if (x != 0) // ...
>>
>>55977901
Because it's totally 1337 d00d!!!
>>
>>55977901
Well, of course, so that you can brag on an anonymous image board about having a basic understanding of how the language works.
>>
>>55977892
I guess you really are retarded then.
You essentially said worrying about code is stupid because algorithms are more important, but you can worry about both.

>>55977901
Saves you 20 bytes. If you keep making these stupid mistakes, you'll waste a lot of memory.
>>
>>55977922
>saves you 20 bytes
not necessarily
in what context would it save 20 bytes?
>>
>>55977922
>Saves you 20 bytes. If you keep making these stupid mistakes, you'll waste a lot of memory.
are you making a joke
>>
Guys look at his name
I know programmers are largely autistic but even you should know he's just having a laugh
>>
>>55977937
In a context where you use UTF-32, aka the only relevant context.

>>55977939
No.
>>
>>55977957
How does changing
x != 0
to
x
save 20 bytes?
It doesn't, it's still a jnz
>>
>>55974194
Where`s the girl with a programming book ??????????????????????
>>
>>55977983
He's just pretending to be an idiot.
>>
>>55977922
Make pull requests on any major project written in C/C++ with those kinds of "fixes" and see what happens. I dare you.
>>
>>55977910
well i didn't look at the code at first, but test_prime is missing a return 1, but ok, if you're using the int as a bool then if (x) is the way to go, but then i think it's better to use an actual bool or at least an unsigned char or unsigned int instead of a signed int
>>
>>55977983
Do you save your code on your computer?
Then you're saving 20 additional bytes if you leave x != 0.
If you close your file and later open it again, it will say x != 0 again. This means your retarded code got saved, the computer didn't just turn it into x instead.
>>
>>55974911
OR THIS BIRD WILL STAB YOU
get the fucking meme right dammmn
>>
>>55978018
kek
>>
>>55978018
Source code size?
Is this your way of dodging the fact that you're retarded?

Nobody's fucking writing C compilers for embedded systems
>>
>>55978045
He is intentionally making retarded posts and he is happy when you respond to him.
>>
Is this a valid use of applicative?

instance Applicative Variable where
pure s = Variable s 0
Variable s0 i0 <*> Variable s1 i1 =
Variable (s0 s1) (max i0 i1 + 1)


A (Variable s) is an (s, Integer) pair
*> will take the maximum value and add 1
the intention is to create fresh symbols when working with variables, e.g.

x = 5
y = \x -> ...

->
x#0 = 5
y = \x#1 -> ...

x *> x
will make a new symbol

I thought I might use applicative because it seems to make sense of sequencing, and you could use applicative do, or do a fold to get a new symbol over a list
>>
>x != 0 vs just x
While it means less typing to just use if(x), in the end, it doesn't fucking matter because the compiler will generate the same code. Honestly, if you want a legitimate criticism of >>55977771, it's the fact that it's not using a sieve, where a sieve would be much more appropriate for the problem.

https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes

It's not that difficult to implement, and better for finding large numbers of primes.
>>
>>55978007
Actually wasn't there someone on /dpt/ that did this and got severely butthurt when the developers called him out on being an idiot? I'll try to find the post in the archive.
>>
>>55978120
How about the criticism that he's checking if a function that CAN ONLY RETURN 0 isn't a fucking 0

Am I the only one seeing this?
Am I going crazy?
>>
>>55978120
I even write x != '\0', to demonstrate intent, that I'm looking for an end-of-line character. Source code is not just a bunch of characters that only exist to be translated to machine code. People will read your source code, and if two pieces of code translate to same machine code but one is easier to read, it's a better piece of code.
>>
>>55978144
int test_prime(int n)
{
if (n < 2) {return 0;}

for (int x = 2; x * x <= n; x++)
{
if (n % x == 0){return 0;}
}

return 1;
}
>>
>>55978144
It's because it's the same int main as >>55977592 which could return 1.
>>
Guys I wanna become employable, what languages/frameworks should I learn?
>>
>>55978160
Are you telling me C implicitly returns 1?
How many fucking drugs did they take when they decided that?
>>
>>55978120
>Honestly, if you want a legitimate criticism of >>55977771, it's the fact that it's not using a sieve, where a sieve would be much more appropriate for the problem.
No one here cares about that boring crap. All that matters is that the code looks pretty.
>>
>>55978144
It's just a mistake. It's supposed to have return 1 after the loop. most posters here are sane enough to ignore the mistake.
>>
>>55978177
Sane enough to ignore the mistake that makes his code not fucking work and then criticise it for adding a redundant != 0?
>>
File: 1470000499748.png (17KB, 374x208px) Image search: [Google]
1470000499748.png
17KB, 374x208px
Why the fuck does Code Blocks keep giving me a blank sigtrap when I'm in debug mode? It's so fucking annoying.
>>
>>55974194
Halp
public static int muhdick(int num1,int num2){

If(num2==0) return num1

int sum= num1 ^ num2;
int carry= (num1 ^ num2) <<1;

return muhdick(sum,carry);
>>
>>55978185
One is mistake. The other is decision. I'm not criticizing !=0, by the way, it's just the retarded tripfag that does that for the sake of appearing retarded. A valid criticism is posted in >>55978120.
>>
>>55978197
>If
if
>>
>>55978171
the return value is undefined
>>
How can I decide which UML diagrams makes sense to make to muh project?

It's a memory card game with bunch of monitoring shit.

Class diagrams and Seq diagrams are what I can think about.
>>
>>55978221
You don't need any UML at all.
>>
>>55978221
>>55978231
UML is cancer
>>
File: OOP.png (69KB, 1210x467px) Image search: [Google]
OOP.png
69KB, 1210x467px
>>55978221
If you need to draw diagrams you've done something wrong

Rethink how you plan ahead, you can start by drawing a diagram of your planning strategy
>>
>>55978167
First, English.
Second, get better at your mother tongue and in logic.
Also, the "friendships" framework can give you plenty of unexpected opportunities.

The rest (aka "technical background") will follow.
>>
>>55978231
>>55978237

I don't what /g/ hates about it, it really helps if you do relatively large projects.
>>
>>55978278
How does it help? I could understand people drawing diagrams to communicate. But even so there's no need to standardize it and rigorously follow the standard. But drawing diagrams for yourself, that just seems like spent working without achieving anything.
>>
>>55978297
>seems like TIME* spent working without achieving anything.
>>
>>55978278
One acronym. OMG. The same fucks who made CORBA and all the things that create major bloat in the industry for the sake of pushing OOP everywhere. UML is the same vein. Too complex, unintelligible, no two persons will ever use the same subset of UML.
>>
>>55978278
No, it doesn't. It is snake oil created around more snake oil.

>>55978297
Extremely high level diagrams can sometimes help.
>>
>>55978325
>Extremely high level diagrams can sometimes help.
But those are just scribbles to help you collect your thoughts. Not anywhere near UML.
>>
File: 1470169908646.gif (1MB, 232x201px) Image search: [Google]
1470169908646.gif
1MB, 232x201px
>>55978318
Isn't that what meetings are for, agreeing how and which things will be used?

Also according to my experience creating those diagrams and other "blueprints" really speeds up the whole coding process and if everyone follows what the team has came up with then there is a small chance that a misunderstanding happens..
>>
>>55974225
me irl
>>
>>55978339
Yes, exactly. That is why I stated that such diagrams can be helpful, but that UML is snake oil.
>>
>>55978348
In my experience, requirements change so quickly and unpredictably (in other words, you will never be able to design in all the extensibility that you will actually need) that such exhaustive planning is a waste of time, because the results are out of date the moment they are produced.
>>
>>55975939
quadtree
>>
>>55978348
>Isn't that what meetings are for, agreeing how and which things will be used?
Exactly.

But certainly not with UML Everyone in the meeting room would have to be a UML wizard to understand what the fuck the diagrams are about and express them in terms of requirements. UML wizards cost too much and doesn't help getting the things done concisely. Seriously, there are simpler ways to design software.
>>
>>55977346
>browser runs multiple processes
>kill one
>complain it's still running

hmmm, next time kill the master process or kill them all
>>
>>55978419
One can use types.
>>
Learning python, how important is it to memorize all of the excess string and function methods? IE startswith, rstrip, split, etc. I own a Python reference book so it seems to me that it'd be time efficient to just move on to the important bits and refer to the book as needed.
>>
>>55978472
You could learn a different language, one that doesn't fight against user, implementor, and toolsmith.
>>
>>55978472
>៛៛>>៛៛ Derek Banas programming with python

He tells everything.
>>
>>55976889
((i % 2 == 0 && j % 2 != 0) || (i % 2 != 0 && j % 2 == 0))
can be simplified to
(i % 2 != j % 2)
>>
What C++ unit testing suite should I use, /dpt/?
>>
>>55978573
cppunit
>>
>>55978573
No one, learn C that's a better cuck language.
>>
Hey guys, I am trying to learn java, but i have some problems with the IntelliJ IDE, I think,

Source root "C:\Users\Serdar\IdeaProjects\Aufagben\src"
cannot be defined in module "Aufagben" because it belongs to content of nested module "Aufagben1"

What could this IDE mean by this?
>>
>>55978573
None
>>
>>55978573
Don't use unit testing, it is for cucks and babby-tier programmers.
>>
File: 1470440742767.jpg (66KB, 250x250px) Image search: [Google]
1470440742767.jpg
66KB, 250x250px
I want to create a file manager for my own personal use, but I only know Java. Is that sufficient?

Basically, every file manager I find has a missing feature that I need. The ability to right click a folder and select "copy contents" along side "copy". So when I paste it, it pastes the contents inside and not the folder itself.

Besides basic file manager features and bookmark sidebar, that is all I need. Can I do it in Java without it consuming more than 50mb memory?
>>
>>55978586
>>55978632
Dear Anons, I know you're bitter for being unemployed, but you don't need to take it out on others.
>>
>>55978573
google's
>>
>>55978644
>Is that sufficient?
yes

>Can I do it in Java
yes

>without it consuming more than 50mb memory?
unlikely
>>
>>55974194
How safe is it to share my dotfiles on github? currently have them in a private repo but a friend wanted me to share my config
>>
>>55978560
i knew something was off. thanks.
>>
>>55978712
As long as you do not have anything private there then it's safe (private as in exported variables such as authorization tokens etc).
>>
Are modern libraries just really bloated?

My program should in theory only use about 20KB of memory but actually uses 300KB.
>>
>>55978711

I'm currently using PCmanFM and it's using 59.7mb with 3 tabs open. It's written in C++ afaik. So Java can't do that?
>>
>>55978731
your mom is really bloated
>>
>>55978747
She does take Lasix, what of it?
>>
>>55978573
Just don't make mistakes :^)

googletest
>>
>>55978652
Guess again, cuck
>>
someone help me with Laravel please.
I installed it with composer but it dosnt work
when i try to create new app i get
bash: laravel: command not found


Arch Linux OS
>>
>>55978783
Maybe it's not in your $PATH.
>>
File: 2016-08-04-183931.jpg (125KB, 960x544px) Image search: [Google]
2016-08-04-183931.jpg
125KB, 960x544px
>>55978513
I don't see how Python 'fights against the user, implementor, and toolsmith'. It's the cleanest looking language there is. I do, however, plan to move on to C and C++ after feeling like I've "completed" my Python journey. Might even dabble in WebDev at some point.

>>55978515
I've actually been watching the "Automate The Boring Stuff With Python" series and I found it to be very informative. Honestly, though, at some point you have to break away from the video as you'll form a dependency and code around the examples instead of learning from trial and error.
>>
>>55978764
>>55978694
>>55978584
Thanks, I'll probably go with Google test since it seems to have more features
>>
>>55978795
>It's the cleanest looking language there is
2/10 made me smile
>>
>>55978644
>click into folder
>ctrl + A
>ctrl + C

Yeah, it's not two clicks, but it's trivial.
>>
>>55978724
the one thing I'm worried about is this alias
alias ssh-pi='ssh -p 2122 [email protected]'

what do you think?
>>
>>55978795
Simple things look really simple in Python.

Complex things are a clusterfuck in Python.

Complex things are less of a clusterfuck in C#/Java.
>>
What are some things you guys actually use private repos for? I use mine when I'm making whatever then when it's good enough I make it public
>>
>>55978795
I found my self learning very quickly through watching videos about how an individual programs, like if I am the one who does the whole thing.

For example when I watched his Binary Tree video in Java.
>>
>>55978841
Safe. The internal address of your pi does not give anyone a way to get into your system. And someone who's already inside can find that out with little effort.
>>
>>55978841
While we're at it, you may as well share your .ssh directory with your private key inside.
>>
>>55978857
Care to provide an example for your claims?
>C#
I've actually seen a lot of people on /g/ denounce C#, so it's quite funny that you'd recommend it over Python.

>>55978882
Did you take notes as well? I would, usually. After that I'd pause the lesson and try and code something using what was just taught.
>>
>>55978873
I use them for whatever.
>>
>>55978793
i added in bash_profile
export PATH=~/.composer/vendor/bin:$PATH

aint working
>>
>>55978795
But seriously, by its very nature Python is a pain to optimize (because the compiler has to allow the code to be more flexible than is usually ultimately necessary), a pain to write tooling for (think things like autocomplete and automated refactoring), and a pain to write and maintain code in, mostly because of its type system. It also has stupid scoping.
>>
File: le 'gypshun sheeeeiiiittt.jpg (52KB, 604x402px) Image search: [Google]
le 'gypshun sheeeeiiiittt.jpg
52KB, 604x402px
>>55975744
WE WUZ ART
>>
>>55978837

But when I have to do that over 100 times, it becomes tedious.

Would rather just select all folders, ctrl+shift+c, then paste.
>>
File: yts.png (27KB, 630x566px) Image search: [Google]
yts.png
27KB, 630x566px
>inb4 yts
>>
>>55978644
cp folder/* destination
>>
File: 20160722_210153.jpg (1MB, 2560x1920px) Image search: [Google]
20160722_210153.jpg
1MB, 2560x1920px
>>55978893
I don't take notes, I don't find it necessary. I usually rewatch the videos, this way it stays in my head.

I also do programs like you after I learn something.

For example,now I am making a memory card game with animations in WPF.

First I Iearn a few things then I combine them into a project, this way is better for me.
>>
>>55978948
You can grab those files and moved them somewhere really fucking easily.

Would take 5 minutes in powershell, if that.
>>
File: 2016-06-10-180424.jpg (155KB, 960x544px) Image search: [Google]
2016-06-10-180424.jpg
155KB, 960x544px
>>55979007
>tfw taking notes but don't really go back and look at them
really makes me think
>>
>>55978644
Just write a shell script to fulfill your needs.
>>
>>55979031
Just the act of writing notes helps your memory.
>>
File: Linfuren-profileshot.png (235KB, 462x572px) Image search: [Google]
Linfuren-profileshot.png
235KB, 462x572px
>>55978644
Look on computer and see for yourself!
>>
>>55979062
This is true.

I generally take notes on things and never look at them ever again, and there's a noticeable difference when I'm not actively trying to record my thoughts.
>>
>>55979062
Is the typing method matters?

I usually write notes into muh comfy laptop(asus k501ux) and not wirt pen and paper.

I found the "results" similiar but I write faster with my laptop.
>>
New thread: >>55979151
>>
>>55979138
I think physically writing (pen(cil) and paper) has a greater effect than typing, at least for me.
>>
>>55978893
>I've actually seen a lot of people on /g/ denounce C#, so it's quite funny that you'd recommend it over Python.
That's because of memes.

It's become one of the most comfy hobby languages (like Python), while still being widely used in the enterprise (like Java).

It's open source and cross-platform, too.

Depending on your career/personal goals, I'd say the best 3 starter languages are C#, Python, and Javascript (JS only if you know you're going to do webdev).

As far as clusterfucks go, it's really a matter of visual preference.

I find the forced indentation cumbersome and difficult to read, while brackets generally offer more clear at-a-glace information on scope.

Also, dynamic typing can be a huge pain in the ass, depending on what you're doing. More runtime errors, less compile-time errors (which is generally accepted as a bad thing).

In the end, it's mostly preference though. Python and C# can accomplish the same tasks on the same platforms, depending on which you're more familiar with.
>>
>>55978948
>But when I have to do that over 100 times, it becomes tedious.
If you're doing something like that 100 times you should be using the command line.
>>
>>55974244
the faggotery is tangible
>>
>>55979619
>replying to him
you're the real loser here
>>
>>55979695
>replying to me

No John, you are the demons.
>>
File: IMG_20160808_174231.jpg (2MB, 2448x3264px) Image search: [Google]
IMG_20160808_174231.jpg
2MB, 2448x3264px
>>55976398
>ruby tripfag not calling himself mr rubyt

it's like you aren't even trying...
>>
>>55974374
OT: Never expected to see a blog (second link) from the person I know on 4chan. Cool guy, but I only know him from Aikido classes I took.
Thread posts: 327
Thread images: 29


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