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

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

Thread replies: 255
Thread images: 36
File: K&R himegoto waifux2.png (1 MB, 1000x1400) Image search: [Google]
K&R himegoto waifux2.png
1 MB, 1000x1400
old thread: >>52060042

What are you working on, /g/?
>>
first for my wife's son
>>
second for my husband's stepson
>>
>>52063934
C U C K
U
C
K
>>
How do I learn to program in windows? I'm trying to learn C#/F# but for some reason, programming in windows and not in vim feels wrong. Like, my brain has associated being in a terminal inside vim as 'real work' and windows with 'video games and shitposting'.
>>
File: memetriangle.jpg (68 KB, 979x511) Image search: [Google]
memetriangle.jpg
68 KB, 979x511
What's my meme level lads?
>>
>>52063962
You mean programming in Visual Studio?
>>
>>52063967
yea. I turned on the dark theme but it still feels wrong.
>>
>>52063966
novice/journeyman
>>
Ideally, how much math should I know in order to be competent?
Someone was was posting a solution earlier that made use of sine and cosine and it made me feel stupid that I didn't know what those do.
>>
>>52063979
How do I increase my meme level? Thought coding in the command line would increase it somewhat
>>
>>52063980
weren't you paying attention in high school?

math doesn't come up that often except for 3d programming or games.
>>
what's the consensus on python IDEs?

really liking pycharm, especially as I use clion and intellij

>>52063980
m8 at least get to year 13 level maths.

here's a book
http://www.amazon.com/Engineering-Mathematics-K-A-Stroud/dp/0831134704

finish it and you should be fine
>>
>>52063980
You can use some trigonometry to make stuff move in a form in the pattern of those shitty graphs you used to make at school.
>>
>>52063971
Don't worry, anon. Once you've programmed more and tried out different languages, frameworks and shit, you won't even care anymore what a tool looks like. The main point of a tool is that it supports you in developing good quality software.
>>
>>52063980
For CRUD programs, which are most applications people make in industry, you have to barely know any math, really.
>>
>>52064031
tbf some tools can make a program 30x the size of not using the tool and barely makes things easier, so knowing which tools to use and not use is still something to consider greatly, especially for projects that someone decides will probably grow from prototyping
>>
>>52064050
>>52064031

But visual studio is pretty good, right?
I've barely learned it and it seems to be just as good as my vim setup + shitload of plugins.
>>
>>52064040
they'll still ask you math/programming quizzes during the job interview
>>
>>52064071
It's meh tier imo. Too much overhead, typically runs slowly because it's packed with functionality, etc. The only bits I like about it is navigating around your directories, and intellisense
>>
Does Java have some sort of native dependency injection system or do I have to rely on frameworks like Spring?

I did see an @Inject annotation somewhere but I have no idea how I'm actually supposed to use it
>>
>>52064071
I quite like visual studio, I use it daily. When you start with is, it may seem like it has too make options, but I've pretty much use all functionalities and regularly add new. It's only a bit slow at the startup.
>>
>>52064122
I ran into the same problem once, ended up just using singletons.
>>
File: our_nige.jpg (71 KB, 650x774) Image search: [Google]
our_nige.jpg
71 KB, 650x774
>>52064141
What exactly is the big deal about dependency injection?

It's basically just working with an interface in the function/class and passing the specific implementation to be used in as a parameter at runtime. Why is this such a big deal and why do we need some fuckhuge framework like spring to implement this?
>>
>>52064091
No, they won't
>>
File: 14-03-pickupline.jpg (53 KB, 486x467) Image search: [Google]
14-03-pickupline.jpg
53 KB, 486x467
What's the purpose of Python's lambda (anonymous) functions?
>>
>>52064199
niche use cases, just like inline anonymous structs and unions.
>>
>>52064175
It's because you want to have control over the lifecycle of an object. Besides that it makes unit testing way easier as you can just inject a mock object instead of having to make a mock object out of the class you would otherwise inject in. It also helps with keeping a loose coupling.
>>
File: gdfv.png (97 KB, 710x761) Image search: [Google]
gdfv.png
97 KB, 710x761
>>52063966
Now do meme triangle hard mode.
>>
File: daily programming thread SICP.jpg (211 KB, 612x816) Image search: [Google]
daily programming thread SICP.jpg
211 KB, 612x816
How much math do I need to understand the Introduction to Algorithms?
I didn't understand SICP either.
>>
Anybody else think the best way to learn programming is to carefully analyze the code of better programmers?

I've picked up a bunch of good habits and design patterns this way
>>
>>52064199
It's versatile and useful for treating functions like variables. Mostly this:
>>52064218


import re

data=open("Advent6.txt").read().split("\n")

lights=[]

for i in range(0,1000):
lights.append([])
for j in range(0,1000):
lights[i].append(0)

m=re.compile(r"(turn on|turn off|toggle) (\d+),(\d+).*?(\d+),(\d+)")

#top functions are part 1, bottom functions are part 2
#function=lambda x, ins: {"turn on":1,"turn off":0,"toggle":1-x}[ins]
function=lambda x,ins: {"turn on":x+1,"turn off":max(0,x-1),"toggle":x+2}[ins]

for i in data:
instruction,x1,y1,x2,y2=m.match(i).groups()

for x in range(int(x1),int(x2)+1):
for y in range(int(y1),int(y2)+1):
lights[x][y]=function(lights[x][y],instruction)

count=0
for i in lights:
for j in i:
count+=j
print count


This is my code for adventofcode day 6. Using lambdas, you can quickly change how you manipulate variables in different conditions
>>
>>52064230
ok that makes sense. still doesn't answer why we need to use something like spring for that. convenience?
>>
>>52064275
I've never read Introduction to Algorithms. Basic sorting and searching algorithms can be understood and implemented with very basic math knowledge. The most difficult thing there is the log in big O notations.
>>
>>52064301
Because you generally want to avoid writing boilerplate code and people like using frameworks. It just makes it faster and easier to develop a good quality product.
>>
>>52064275
calc 1, probability (which assumes calc 2), not much else.
>>
>>52064293
Those are literally enum types.
For day 6 part 2 I just changes the actions performed when the command is received.
typedef enum { toggle, turn_on, turn_off } P_MODE;
...
switch (mode)
{
case toggle:
(*arr)[i][j] += 2; break;
case turn_on:
(*arr)[i][j] += 1; break;
case turn_off:
{
(*arr)[i][j] -= 1;
if ((*arr)[i][j] < 0)
(*arr)[i][j] = 0;
break; /* brightness cannot be negative */
}
default: break;
}
>>
>>52064327
actually to append to this, I recall that book having a sort of self-contained situation where it had an appendix of math concepts all laid out for you in case you're retarded
>>
File: memetrianglehardmode.jpg (220 KB, 1366x768) Image search: [Google]
memetrianglehardmode.jpg
220 KB, 1366x768
>>52064266
easy senpai
>>
r8 my fizz buzz function

var fizzBuzz = function(n) {
var val = (n % 3 || "Fizz") + (n % 5 || "Buzz");

if (val.length > 1) {
return val.replace(/[0-9]/g, "");
}

return n;
}
>>
>>52064328
My implementation is enum types, yes, that's an example of its usage, and it saves writing huge blocks like yours where changing things takes more mouse movement
>>
>>52064328
what language is this?
>>
>>52064364
C
>>
File: huiyh.png (5 KB, 153x291) Image search: [Google]
huiyh.png
5 KB, 153x291
>>52064347
Now meme star.
>>
>>52064379
ah I thought it was javascript. Currently reading a book on C++ and I haven't encountered the typedef keyword yet so I wasn't sure.

Coming from Python/Java background.
>>
>>52064383
shit mate, I actually have to shopping in a few minutes, maybe later. Looks simple though, hopefully
>>
>>52063885
Alright /g/ help me out,I can't post coz trolls got my country/ip/isp banned.

In order to become an android app dev what do you need to learn, languages and all
I know basic C they teach at uni and that's it, complete noob otherwise. I was thinking:

>learn java
>learn to use android studio
>make live wallpapers and basic stuff
>make utilities apps
>make basic games
???

What am I missing and where to start?
Also programming in general, how to git good? I have some good faith in my learning capabilities so there's that too.
>>
>>52064357
>it saves writing huge blocks like yours
don't lie
you rewrote your program to be a self-contained solution for both part 1 and 2.
>>
File: sq.png (6 KB, 304x311) Image search: [Google]
sq.png
6 KB, 304x311
GPL is communism.
>>
/dpt/ can't meme triforce
>>
>>52064341
alright thanks
>>
>>52064431
$ ./memeforce
M
MEM
MEMEM
M M
MEM MEM
MEMEM MEMEM
>>
>>52064413
>>>/pol/
>>
>>52064431
>/dpt/ can't memememe
MM   MM EEEEEEE MM   MM EEEEEEE
M M M M E M M M M E
M M M EEEE M M M EEEE
M M E M M E
M M E M M E
M M EEEEEEE M M EEEEEEE
>>
>>52064411
>you rewrote your program to be a self-contained solution for both part 1 and 2.
No, it's a common theme in my adventofcode solution to use an index and a dict instead of long if blocks, and to make it short and succint for easy changing and debugging.
>>
What does /dpt/ think of Julia for scientific application?
I hate Matlab...
>>
>>52064324
alright, I understand now.

cheers
>>
File: dwe.png (9 KB, 392x707) Image search: [Google]
dwe.png
9 KB, 392x707
>>52064475
I hope each meme letter isn't stored in an array, anon.

If so, you fail the meme test.
>>
what is a binary tree and how do I reverse one?
I'm trying to learn code and people keep saying this is important
>>
Enough. No more memes.
>>
>>52064383
what is the result of
star("ME");
>>
>>52064494
>What does /dpt/ think of Julia for scientific application?
still immature, use python + scipy stack
>>
>>52064577
What's the right way to draw ASCII text?
Are you supposed to generate it using math or something?
>>
>>52064612
probably either
MMM
MEM
MMM

or a crash, knowing /dpt/
>>
>>52064593
>what is a binary tree
a tree structure where each node has no more than 2 child nodes
>how do I reverse one
for each node, swap left and right child node
>>
__global__ void func1() {
n = 0;
}

__global__ int n;
__global__ void func2() {
n = 1;
funct<<<20, 1>>>
}

is this possible.
>>
I'm starting to lose my mind with this problem.

I've got a child window that has no owner (as such I can't directly pass things to my MainWindow) and I want to call a method on my mainwindow
LoadSongFromLibrary(Song tempsong)


I've been sat here for many hours now trying to figure out how events work but nobodies explanations make any sense or describe how you're meant to send objects to that method.

Maybe I'm a moron, maybe I'm bad at asking questions, maybe both.
>>
>>52064685
Post code in pastbin
>>
>>52064685
>maybe I'm bad at asking questions
This.
Show some code.
>>
>>52064676
__global__ void func1() {
n = 0;
}

__global__ int n;
__global__ void func2() {
n = 1;
func1<<<20, 1>>>();
}

fixed my code example
still, is this possible.
>>
>>52064700
>>52064697
http://pastebin.com/3ZzWwUNk
>>
>>52063885
Video games. I'm making an engine for a point and click, it's harder than I though...
>>
>>52064717
All of it senpai.
>>
>>52064729
It's about 2000 lines of code either side,

That's literally the only relevant parts.

The event on the Library window needs to in some way trigger a method on the MainWindow and give it the "currentObject"
>>
>>52064751
You could give the LibraryWindow a reference to MainWindow.
>>
File: MemeError.png (11 KB, 969x193) Image search: [Google]
MemeError.png
11 KB, 969x193
>>52064612
>>52064625
>>
>>52064676
If this is a C family language, no. func1 can't see n because you defined it below without a declaration above.
C++ can look forward for symbols, but only within classes, for free functions/variables you should put declarations in a header.

And what the hell is
funct<<<20, 1>>>
supposed to be?
>>
>>52064767
That doesn't work, because the LibraryWindow isn't owned by the MainWindow, if I set it as owner the window behaviour is entirely not what I want.

I'm trying to work out how events work, but the explanations are terrible.

If I could in some way have an event trigger on my MainWindow when the event on my LibraryWindow fires, then I could call a method on my MainWindow to get the current song from the library itself instead.

But events make no sense to me an the explanations I've seen are utter trash.
>>
>>52064624
I don't know, anon, but storing each letter in an array seems like cheating.
>>
>>52064413
this

fuck "free" software
>>
>>52064863
Good points made.
>>
Does anyone use sites like treehouse?

I torrented their Java course for a taster but I really want one for either Haskell, *ML, Erlang or Scala.

Are there any online video courses with an emphasis on functional programming that teach by making increasingly large projects ?


Also I'm currently trying to use Hadoop for a game engine.
>>
File: s908476496241381410_p4_i1_w448.png (141 KB, 448x539) Image search: [Google]
s908476496241381410_p4_i1_w448.png
141 KB, 448x539
>>52064874
>puts a restrictive license on his software
>calls it "free" software
>>
>>52064863
Free software is fine, it's just that preventing developers from reusing your code in proprietary software is a shitty thing to do.

BSD/MIT > GPL
>>
>>52064882
>>52064881
>I think it's A-ok for companies to use software and not give any credit to the creator who spent hundreds of unpaid hours making it

Just leave.
>>
>>52064882
yes that's why i put "free" in quotes. GPL isn't truly free in my opinion.
>>
>>52063980
Outside of specific fields, the only math you really need is basic algebra and the ability to re-arrange linear equations. E.g. if y=a*x+b, then x=(y-b)/a.
>>
>>52064888
the creator can put whatever license he wants on his software. but it's disingenuous to say that GPL'd software is free as in freedom.
>>
>>52064899
How is it not?
>>
>>52064882

I don't see why dev's can't use the unix philosophy and compose their programs out of smaller stackable modules all with separate licenses.

I work for a major finance company and we literally have a free software stack - from the metal to the customer everything we use is gnu/apache/bsd. It's also all 'proprietary' when we use it.
>>
>>52064902
Because it prevents developers from putting it in the proprietary software.

Even if 99.99% of your code is your own and 0.01% is GPL code, you have to release your program under a GPL licence.

How is that fair, free, or moral?

BSD/MIT > GPL
>>
>>52064893
GPL doesn't aim to be "truly free". The GPL's goal is to ensure that users are free to practise four specific freedoms. Users will always be free using GPL software because all users permitted to practise all four freedoms,
>>
>>52064926
>Because it prevents developers from putting it in the proprietary software.
This is exactly why I prefer the GPL.
>>
>>52064926
>>52064926
That is false. The GPL does not require this.
>>
>>52064926
>Because it prevents developers from putting it in the proprietary software.

Very good thing.
>>
>>52064935
>>52064949
literally communism
>>
>>52064963
It's theft prevention
>>
>>52064963
It might be, but I don't like leeches.
>>
>>52064775
It's CUDA, senpai

__global__ int n;
__global__ void func2() {
n = 1;
func1<<<20, 1>>>();
}

__global__ void func1() {
n = 0;
}

so this could work?
>>
>>52064963
No. Communism doesn't work that way. The GPL is not a system of a means of production.
>>
>>52064939
http://www.infoworld.com/article/2608340/open-source-software/why-gpl-still-gives-enterprises-the-jitters.html
>Typically, the problem with the GPL software license is its reciprocity. Any software that's derived from software licensed under the GPL and released for public consumption must also be GPL-licensed, and it must have the source code readily available.
>>
File: 1315907201.92635185.jpg (105 KB, 1280x720) Image search: [Google]
1315907201.92635185.jpg
105 KB, 1280x720
>>52064935
>>52064949
But anons, we should be encouraging enterprise not restricting it.

At the end of the day, the user decides to use proprietary software.

Attempting to protect people from their own retardation is never a good idea, that's how you get silly things like the sugar tax, drug laws, etc.
>>
>>52064977
>Any software that's derived from software licensed under the GPL and released for public consumption must also be GPL-licensed, and it must have the source code readily available.
This is actually wrong. Please ask your lawyer to read the GPL and get him to explain to you why this interpretation is wrong.
>>
>>52064983
>But anons, we should be encouraging enterprise not restricting it.

Damn dude

Where did it all go wrong?
>>
>>52064993
When traps got programming related.
>>
            MusickLibrary objectToSubscribeTo = new MusickLibrary();
objectToSubscribeTo.songSelected += songDoubleClicked;
}

public void songDoubleClicked(object sender, EventArgs e)
{
}


Why isn't this.

        public event EventHandler songSelected;
public void dtgLibrary_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
if (songSelected != null)
songSelected(this, null);
}

Being fired by this?

Events are starting to drive me up the fucking wall at this stage.
>>
File: 22645707.jpg (2 MB, 1998x2048) Image search: [Google]
22645707.jpg
2 MB, 1998x2048
>>52064992
so what are the requirements then? if i use GPL'd code as part of proprietary software, do i need to give credit or what?
>>
>>52064993
>having an entrepreneurial spirit is bad
>being a productive, innovative member of society is bad
literally communism
>>
>>52064983
>At the end of the day, the user decides to use proprietary software.
Wrong. At the end of the day the user is forced to use proprietary software because there's no (decent) alternative.
Cut off proprietary software at the root by using a license like the GPL.
>>
>>52065032
so since there is no decent free software we should destroy the only decent remaining alternative.

this is why we can't have nice things.
>>
>>52065039
You might legit have aspergers if that's how you interpreted that.
>>
>>52065051
i don't know about you but i live in the real world. a super perfect free alternative won't magically appear if you kill off proprietary software.
>>
>>52065068
Definite sperg.
>>
>>52065039
That's not exactly what I meant...
But, yes. Destroy the only closed source application and that gives room for other GPL like alternatives to grow.
>>
>>52065032
Yeah, they literally have a gun to their head.

There's a reason proprietary software generally outperforms open source. Incentive.
>>
>>52065020
Whenever you wish to convey GPL3 software, the software you have conveyed must be GPL3 compatible. If the software you convey is programmatically linked with the GPL3 software, that linked software must be *GPL3 compatible*. The easiest way to do this is to license your linked software under GPL3, but it is not the only GPL3 compatible license for your linked software.
>>
>>52065080
>proprietary software generally outperforms open source

This isn't even true.
>>
File: CPm_mDXWwAAdXPu.png (280 KB, 466x405) Image search: [Google]
CPm_mDXWwAAdXPu.png
280 KB, 466x405
>>52065074
definite manchild commie retard
>>
>>52064971
>It's CUDA
Sorry, I have no idea.
>>
>>52065080
>There's a reason proprietary software generally outperforms open source.
Give examples.
GCC and the Linux kernel are still king of the hill.
>>
>>52065019
public class MediaPlayer : UserControl {
public List<Song> songs;
public Song current;

public MediaPlayer() {
inititalizeComponent();
}

public void Library_SelectSong(object sender, MouseButtonEventArgs e) {
current = (Song) library.getSelectedItem();
}
}

I don't see any problems.
>>
>>52065086
for any non-trivial application it's true.
>>
>>52065103
Database systems that literally power the entire technology world sure are trivial :')
>>
>>52065086
>this is what freetards believe
>>
>>52065100
adobe photoshop
sony vegas
autodesk autocad
microsoft word
microsoft excel
wolfram mathematica
>>
>>52065032
The purpose of the GPL isn't to prevent proprietary software. The purpose of the GPL is to prevent people from forking GPL software into proprietary software.
>>
>>52065101
I've done this so poorly, I was doing things with a certain idea in mind, then I changed something and it all fell apart, now I've just about managed to glue it back together.

Clearly I need to take all my code and start nuking it until I'm left with only a couple of methods.

Especially seeing as I'm supposed to be implementing a new audio lib soon.

Programming is hard.
>>
>>52065109
This is a fraction of software when compared to Linux, Android kernel, databases etc
>>
>>52065103
It's obvious that Linux underperforms whatever proprietary kernel there is. It only runs on a few billions of little devices all around the world and also controls high performance computing such as the London Stock Exchange.
>>
>>52065110
I know, anon replied to me what that statement.
>>52065109
I can make up lists to of 'open source' software better than closed source alternatives.
>>
>>52065107
webtard normie detected

database systems aren't that complex and the reason why servers use linux and free database systems is for cost reasons. for things that are more complex where you can afford to spend money on individual software licenses you get things like >>52065109
>>
>>52065118
You have a hard time getting a hang of databinding and you're constantly trying to break encapsulation. It's fine, anon. You're learning.
>>
>>52065132
Who said anything about complexity? Open source DBs are the best performing. It has nothing to do with price.
>>
>>52065109
>word
>great performance
I never knew that lag when I typed was only a feature.
>>
>>52065120
>>52065124
microsoft windows
apple iOS
>lol lagdroid

>>52065129
>I can make up lists to of 'open source' software better than closed source alternatives.
then do it
>>
>>52065137
>non-trivial
>>
>>52065140
word doesn't lag, not even on 10 year old systems, tard

and it fucking wrecks openoffice, libreoffice, google docs (not that google docs is even free but it's probably built on free software and it's made by lazy pieces of shit at google)
>>
Thanks to proprietary software, Bill and Melinda Gates are helping to eliminate malaria and have provided tens of thousands of jobs, what good has Stallman done for the world?
>>
>>52065175
Free software, which is more important than a bunch of dying Africans.
>>
>>52065175
Teach the world that proprietary software harms their freedom.
>>
>>52065175
If Bill got his money elsewhere I'm sure he would be doing the same
>>
>>52065141
We're speaking open source here, not GPL right?

Compiler (related):
GCC
GDB
Clang
LLVM

Kernel:
Linux
BSD

Database:
MariaDB
PostgreSQL

Programming:
Basically any programming language runtime
>>
File: Capture.png (7 KB, 439x246) Image search: [Google]
Capture.png
7 KB, 439x246
>>52065163
Yes it does, or at least the latest one. You should have at least had this screen.
>>
>>52065209
>windows 8/10

kill yourself
>>
>>52065201
>Basically any programming language runtime
I'm retarded. I meant 'any runtime'.
>>
>>52065222
>windows
>but not any recent releases
How old are you?
>>
File: 1386094988354.jpg (32 KB, 312x342) Image search: [Google]
1386094988354.jpg
32 KB, 312x342
>>52065240
windows 7 still works just fine
>>
>>52065253
Knew it

>>>/pol/
>>
File: 8u.jpg (50 KB, 640x360) Image search: [Google]
8u.jpg
50 KB, 640x360
>>52065184
>>52065190
>>52065192
Proprietary software has done more good for the world than GPL ever will.

BSD/MIT is good because it helps businesses succeed.
>>
Whats a good resource to start learning F#?

I write C for my day job. Been experimenting with Rust. Looking for a deeper dive into ML/Functional Languages.

I installed mono so I have the REPL, and been writing small things I guess I need visual studio?
>>
>>52065264
>Republicans
>>
>>52065264
>red hat
>android
>>
>>52065253
10 is free so that meme is irrelevant, and I hope you enjoy those vulnerabilities and lag.
>>
>if i can't get a job, no one else should! fuck corporations xD
>>
>>52065264
I'm not saying that proprietary software has no use. It's obvious that people use proprietary software for its utility. We say proprietary software is immoral/unethical/evil for a reason and the utility of the software isn't the reason why it's evil.
>>
>>52065281
>10 is free
good goy
>lag
just a minute ago you were complaining about lag in the latest word lmfao
>>
>>52065281
10 is as free as the Google search engine.
>>
>>52065290
>We say proprietary software is immoral/unethical/evil for a reason
because you're filthy communist manchild plebs
>>
>>52065295
You knew what I meant, and why do you assume windows is free as in freedom?
>>
>>52065305
Communism is only letting one entity control and decide what's best for you regarding the tools you use.
>>
>>52065312
communism is the ideology that everyone should be equally poor, that no one should make more money than someone else.
>>
>>52065305
GPL is communism. But its proper communism that can work. Communism works when the means of production become effectively free. GPL means 4-5 people can do a single job and 1bil+ people can use their work.

Computers allow for this. Why not embrace it? Are you that brainwashed by the wageslave mentality?
>>
>>52065310
You misunderstood. You pay with your data.
>>
>>52065259
A common traits of a cuck is they tell people he disagrees with to go to >>>/pol/.

Watch out for cucks, /dpt/. They're everywhere.

>>52065290
But it's not immoral, unethical or evil. Proprietary software succeeds because most of the profits gets reinvested back into the software.
>>
>>52065322
Implying you also don't do that with windows
>>
>>52065305
I don't think you understand what is communism. Communism is a socioeconomic order structured upon the common ownership of the means of production and the absence of social classes, money, and the state.

Free software is not a means of production, does not reject the idea of social classes and does not reject the idea of removing the state.
>>
>>52065320
so are you going to be one of those 4-5 people, dedicating your life for "the greater good"? no you wouldn't. even if you would, you probably lack the competence and/or means to do it.
>>
>>52065333
They're both spyware.
>>
>>52065136
Databinding is still a foreign concept to me, I always lose track of what syntax does what, and which instance of the thing I'm supposed to hook onto.

I'll get there in the end I'm sure.
>>
>>52065337
I don't do it for the greater good. I do it as a hobby outside of my day job. Not so other people can benefit but mainly for my resume. When you have accepted contributions to software that company X uses daily, it really makes your resume stand out.
>>
>>52065354
yeah nice "communism that can work" there champ
>>
Right, it's settled.

BSD/MIT > GPL

Can we go back to shitposting about actual programming now?

What meme programs are you working on, /g/?
>>
>>52065330
This is the reason why we believe proprietary software is evil.
>I consider that the Golden Rule requires that if I like a program I must share it with other people who like it. Software sellers want to divide the users and conquer them, making each user agree not to share with others. I refuse to break solidarity with other users in this way. I cannot in good conscience sign a nondisclosure agreement or a software license agreement.
>>
>>52065369
>the Golden Rule
>uinironically being a christian extremist
>>
>>52065364
Working on my aubio binding in Go.
I really really like the language :3
>>
>>52065320
GPL cannot be communism. See >>52065335
>>
>>52065364
You lost kid
>>
>>52065383
that's just one, narrow definition of communism

>>52065369
literally retarded
>>
File: 1438390619840.jpg (129 KB, 737x517) Image search: [Google]
1438390619840.jpg
129 KB, 737x517
>>52065377
Now that's what I call shitposting!
>>
>>52065393
>if I like a program I must share it with other people who like it
>if i like the program i must steal it from its creator and make copies for other people who like it
thou shall not steal
>>
>>52065383
>Using the political not economic defination of communism.
That's Lenin's propaganda not Marxist Truth.

Open Source does do away with the status quo. No standard, no committees, absolute anarchy. Write, modify, change what every you want. The Mob decides whats worth keeping.
>>
File: io.png (404 KB, 640x360) Image search: [Google]
io.png
404 KB, 640x360
The reddit mindset is GPL > BSD/MIT.

So it only makes sense for us to have a BSD/MIT > GPL mindset.
>>
What happened to the eggplant issue on nodejs? Did they remove the emoji?
>>
>>52065349
We're all gonna make it, anon
>>
>>52065414
>nodesjw

Why are you even using that, anon?
>>
>>52065422
I don't. I'm just curious how it ended.
>>
>>52065390
Communism says the production of goods and the ownership of capital must be collectively shared among the people. The GPL does not say anything of this nature. The GPL is concerned with preventing people from forking GPL software into proprietary software. Everybody is allowed to have private GPL software and everybody decides whether they choose to share GPL software or not. Communism says that all the software belongs to the public and it should not be private.
>>
>BSD/MIT or GPL
http://strawpoll.me/6366543
http://strawpoll.me/6366543
http://strawpoll.me/6366543
http://strawpoll.me/6366543

Lets settle this once and for all, /dpt/.

No cheating with proxies.
>>
>>52063885
Please stop this programming trap meme.
Thanks.
>>
>>52065417
I've changed my mind, I'm most certainly not going to make it.

I just installed the CSCore lib and immediately lost all hope.

Where as with .NET's built in Library I can just do "MediaPlayer.Play()" I have to do so much other shit just to play any old file in CSCore.

Just fuck my shit up.
>>
>>52065457
It's ok if it's anime, I draw the line and 3D traps/trannies.
>>
>>52065333
I know. Thanks for confirming what I said.
>>
File: eggplant.png (288 KB, 1639x1080) Image search: [Google]
eggplant.png
288 KB, 1639x1080
>>
>>52065466
reposting a thread before the bump limit is not ok though.
>>
>>52065469
>>52065469
>>
>>52065461
Why even bother with CSCore?
>>
>>52065471
hitler was right
>>
>>52065491
The built in mediaplayer is utter trash as far as I can tell, random skipping and generally shit quality.
>>
>>52065484
I can tolerate it if it's close to the bump limit, but yeah, they should wait tbqh.
>>
>>52065471
This is just hilarious
>>
>>52065490
Clover needs to fix that reply button.
>>
>>52065412
Why do you believe that communism must be divorced from its politics? Marxism distinguishes between the classes and identifies that these classes would be abolished for the political system of socialism and would eventuate into communism.
>>
>>52065499
Your codecs might be causing the issue.
>>
>>52065446
GPL wins.

BSD/MIT fags can leave.
>>
>>52065511
What codecs? I haven't set any in my program (I didn't even know you could).
>>
>>52063966
def triangle(n):
for i in range(n):
print((n-i-1)*" "+(2*i+1)*"*")
>>
>>52065471
Thank you.
>>
>>52065446
What a slaughter
>>
>>52065508
if you boil it down it comes to the proletariat (freetards) vs the capitalist class (software companies). freetards are devious little fuckers that want to sabotage the livelihood of software companies with the idea that if you kill off proprietary software, everyone (freetards included) can become rich and prosperous. in practise, it doesn't work very well, and people should be allowed to own property and get paid for their work.
>>
>>52065446
/dpt/ confirmed for freetard NEETs

not a surprising result considering two thirds of /dpt/ uses linux as their primary operating system
>>
>>52065527
I'm sure the MediaPlayer just uses the DirectShow API for audio playback. Look up the codecs you've installed and Google for any issues.
>>
This thread desperately lacks in OCaml. Why aren't you using God's own language yet, /dpt/?
>>
>>52065532
Looks similar to my function desu senpai.

var triangle = function(str, n) {
var val = "\n";

for(var i = 1; i <= n; i++){
val += " ".repeat(n-i) + str.repeat(i * 2 - 1).substring(0, i * 2 - 1) + "\n";
}

return val;
}
>>
>>52065548
This is where you're confused: you believe that people cannot earn a profit when selling GPL software and you also believe that the purpose of the GPL is to get people to stop paying for software.

As long as you believe this, you will always believe that the GPL is communism. protip: selling free software for a profit is a good thing
>>
>>52065446
MITfags BTFO.

Communism FTW.
>>
>>52065446
This poll is strongly skewed in favor of BSD/MIT because
>captcha
And yet GPL is still winning. Bravo!
>>
>>52065578
I don't know that I have any installed.

The audio just generally seems to be trash coming from it.
>>
>>52065587
Gods language is HolyC.
>>
>>52065592
outside of fantasy land, people who sell software get strongly discouraged from using/selling GPL software.
>>
>>52065601
Trash as in what? What audio are you playing?
>>
>>52065603
God did not endow you with the ability to type correct English, I see.
HolyC is the peasant's language. God conferred it unto his most incompetent servants to alleviate their burden. God Himself, though, obviously uses OCaml.
>>
>>52065446
/pol/ on suicide watch
>>
>>52065614
Meanwhile in reality, many companies make a killing by selling GPL software.
>>
What the fuck is an indentation error?
>>
>>52065622
>God did not endow you with the ability to type correct English, I see.
Correct, I'm pagan :^)
>>
>>52065619
320kb MP3's

It somehow sounds worse coming out of my program than it does winamp, maybe I'm just hearing things.
>>
>>52065587
I've been trying to get into Ocaml/f# but still can't wrap my head around thinking functionality. Do you know any resources for beginners senpai?
>>
>>52065643
Play it with with windows media player.
>>
>>52065654
>Having WMP installed
>>
>>52065587
it's shit compared to any lisp.
>>
File: sds.png (210 KB, 640x360) Image search: [Google]
sds.png
210 KB, 640x360
>>52065446
We have a good foundation to work on, we can undo the Stallman/GPL/Communism meme and make /g/ great again.

We just need to be vocal.
>>
>>52065614
>people who sell software get strongly discouraged from using/selling GPL software.
This is because most of these people are ignorant and understand a few business models regarding the sale of software. There aren't many people who would do something that they don't quite understand.
>>
>>52065675
I'm sure posting anime pics on an anonymous imageboard raises awareness.
>>
File: testover.webm (3 MB, 684x385) Image search: [Google]
testover.webm
3 MB, 684x385
Ask your beloved programming literate anything.
>>
>>52065672
That would be true if any lisp didn't leak memory like crazy while also being statically typed with high-quality inference and also was extremely fast.

So as it turns out it's not even remotely true.
>>
>>52065692
Trump or Bernie?
>>
>>52065622
OCaml's implementation language is C.
>>
>>52065644
https://www.edx.org/course/introduction-functional-programming-delftx-fp101x-0
>>
>>52065698
Anyone but Hilary.
>>
>>52065692
Who is you're waifu?
>>
>>52065700
No, it's OCaml.
>>
File: GBzPEMQ.jpg (105 KB, 640x640) Image search: [Google]
GBzPEMQ.jpg
105 KB, 640x640
>>52065698
>trump
hilary
>>
>>52065692
Any financial programming advice/books?

I'm messing around with some stock market APIs.
>>
>>52065697
typed lisp is a thing, lel. any lisper can implement his own type system if he want. that's the power of lisp, a programmable programming language.
>>
>>52065741
>mfw nfw he believes this
>>
>>52065721
Read the code to GNUCash.
>>
>>52065709
umaru chan
>>
>>52065755
I lol'd.
>>
>>52065753
Do you believe that it is impossible to write a Lisp language (or otherwise modify one) to deal with typed data?
>>
>>52065720
That's just a caricature.

I bet the states with the least illegal immigrants/immigrants/ethnic minorities have the highest GDP and the least crime rates.
>>
>>52065753
http://docs.racket-lang.org/ts-guide/
>>
File: muricaa.jpg (622 KB, 1024x1372) Image search: [Google]
muricaa.jpg
622 KB, 1024x1372
>>52065775
if you say so...
>>
>>52065773
>lisp is the best, you just have to write a lisp language that's not shit!!
By this token, any language is "the best", you just have to rewrite it with $feature and without $stink
>>52065789
Typed racket is beyond a joke, it's literally worse than if it didn't exist. That's even beyond the fact that it doesn't respond to the specs in >>52065697
>>
>>52065720
>>52065804
>I AM SILLY!
>>
>>52065804
>Democrats
>>
>>52065720
>libcucks are so deluded they unironically believe this
Thread replies: 255
Thread images: 36

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

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.