[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: 313
Thread images: 26

File: daily programming thread2.webm (2MB, 600x338px) Image search: [Google]
daily programming thread2.webm
2MB, 600x338px
old thread: >>59835676

What are you working on, /g/?
>>
what does dpt think of computational sciences?
>>
C# is cute.
>>
>>59843383
Not you, dipshit.

You're a cock that can barely program, and you make C# programmers look bad.
>>
nth for re-implementing pascal in haskell
>>
>>59843383
>>>/global/rules/2
>>
>>59843401
age 36
but thanks for being an ass
>>
>>59843429
hmm
not sure how you see anything i've done as breaking any of these rules.
maybe your thinker is broken...?
>>
>>59843429
Number 6 anyways made me laugh
>>
>>59843315
Making a website for shitty College assignment
>>
>>59843327
Trash.
>>
>>59843315
I'm trying to learn python but I don't really know the best way to go about it. Currently I'm only following learnpythonthehardway, but I don't know exactly if it's the best way to go about it. Any advice?
>>
>>59843719
can't use just type english sentences in and python just makes it happen?

that's the way meme snek lovers make it seem
>>
>>59843767
no I fucking wish
>>
>>59843719
>Reading anything by Zed Shaw
Grab yourself a copy of Automate the Boring Stuff by Al Sweigart and/or an actual CompSci textbook. Just the former is fine if you're not thinking about programming for a living, you'll find your way to a CS textbook eventually. The things Al goes over are pretty real-world and will generally help you in one way or another.
>>
>>59843719
there's coding games that use python
youtube videos, free books, etc...
google a bit, practice a lot
>>
So, I have to write an sdl2 C++ application for uni.
I wrote it with on linux with g++ and a makefile, but now my professors want me to deliver it to them as an eclipse project on Windows

What's an efficient way to port it?
I have Windows running in a VM
>>
>>59843719
python, ruby, php, javascript
these are the most ubiquitously taught languages
so many resources...
>>
>>59843947
Just telling me that there are resources doesn't help. It would be useful to list actual resources though :)

>>59843900
I'll grab the Sweigart book, but can I ask what's wrong with Shaw?

>>59843907
Can you list any games for python?
>>
>>59843979
i'll pretend to be google; just his once
https://medium.mybridge.co/12-free-resources-learn-to-code-while-playing-games-f7333043de11
>>
>>59844013
Thank you very much
>>
>>59843315
Lisp General
>>>59843997
>>
File: 1469297643283.png (146KB, 1919x1053px) Image search: [Google]
1469297643283.png
146KB, 1919x1053px
>>59843315
>What are you working on, /g/?- 23 posts shown.
A cryptocurrency trading platform.

Sadly, since the modules it imports are GPL it will never be released because I'd likely have to GPL the whole fucking thing.
>>
>>59844169
Don't be a faggot.
GPL that shit and pay it forward.
>>
>>59844190
No, fuck you and fuck that commie kike stallman too
This is the price of your freedom.
>>
Can you help me with doing a python program that generates random integers between 0 and 9, prints them and stops only when three consecutives 5 come out? Thanks
>>
>>59844227
store the last 3 integers in a buffer and if the buffer holds the same number exit the loop
>>
>>59843979
Zed Shaw is an incredible moron who has no business trying to sell himself as a teacher. You'll get to a part in his book where he starts talking about things called classes and objects. The way he describes them and demonstrates them is completely ineffective and an actual CS textbook will have a much clearer explanation.

Notice that the only thing he has you do is utilize print statements to "see" your results. Any other book will give you some kind of actual exercise to utilize what you've learned; Al's book is kind of special in that if you follow along, you'll have some basic tools and general understanding of them, but you'll need to do something on your own to reinforce it. That's generally why whenever someone asks about learning python, I'll tell them to pick up Automate the Boring Stuff AND an actual CS textbook because you need questions to answer if you don't have any pressing problems to solve.
>>
>>59843927
Cmake?
>>
>>59844227
???
int buf[3] = { 0 };
int i, iters = 0;
while (1)
{
buf[iters++ % 3] = (rand() % 9) + 1;
for (i = 1; i < 3; i++)
if (buf[i - 1] != buf[i])
break;
if (i == 3)
break;
}
>>
>>59843927
>eclipse project on Windows
There are universities that use Windows?
>>
>>59844190
>GPL that shit and pay it forward.
I agree with paying it forward, but I do not agree with someone forcing me to pay it forward.

GPL is anti-freedom.
>>
https://www.manning.com/books/type-driven-development-with-idris

i need it senpai
>>
>>59844480
>there are universities that use actual desktop OS
hmmmmmm
>>
>>59844480
Is this bait?

The vast majority of universities have Windows on the vast majority of their machines.
>>
>>59844365
Made a regular make file, wanted to learn about it.
>>59844480
see >>59844517
I'm the fucking outcast running Linux. Every program I need to use works fine on it, but I have to make sure every big programming project is Windows/Eclipse
>>
>>59844499
>I agree with paying it forward, but I do not agree with someone forcing me to pay it forward.
This echoes my thoughts.
Also I would be forced to force others who wish to use my work to pay it forward also, even if I don't wish to impose that on them. Now I am the tyrant, against my will.
>>
>>59844531
Guess making a Eclipse project with "Custom makefile" wouldn't cut it for your guy

What I meant was

>create a cmake conf
>generate shit for whatever ide

That's what my outcast linux buddy was doing iirc
>>
>>59843927
>eclipse
John, delete them all.
>>
>>59844517
>>59844531
I guess I thought every school had a Linux server for the students. I only had to use Windows once for a coldfire board ide.
>>
>>59844499
If you think "freedom" is doing whatever you please, then you don't understand freedom.
GPL is freedom.
>>
>>59844599
>I guess I thought every school had a Linux server for the students.
This doesn't mirror your previous implications at all.

Of course nearly every university has Linux boxes for testing and dev. In many cases, you will run Linux VMs on a Windows machine for doing simple testing with things like Red Hat.

However, the majority of professors, and students in any department, including CS, are going to be using Windows or macOS.
>>
i felt this question wasn't worth a new thread.
> What kind of application is there for queap data structure?
google hasn't helped too much and from my understanding, it's useful for fetching small elements that are needed often.
I would really appreciate any help
>>
>>59844585
Hell for it, I'll make a cmake shit if it'll make portability easier.
I prefer spending several hours learning how cmake works than wasting several hours on getting fucking eclipse to work.

Thanks famalam, it's a good bet
>>
>>59844636
>If you think "freedom" is doing whatever you please
Kek, I think it is you who does not understand the word :')

>>59844638
>However, the majority of professors, and students in any department, including CS
During my (admittedly brief) stint at uni I had to upload my CS projects to a linux server
There was no other option for turning them in. Maybe my uni's CS program just isn't run by plebs
>>
>>59844638
Crazy stuff. My University must be in bed with red hat. Every computer is dual booted save for a few Linux workstations for some labs.
>>
File: x.png (52KB, 268x340px) Image search: [Google]
x.png
52KB, 268x340px
>waterfall model
>SCRUM
>FURPS
>UML
>>
File: inference meme.png (339KB, 404x567px) Image search: [Google]
inference meme.png
339KB, 404x567px
>>
>>59844677
The only time they touch Linux here is when they have to set up a samba server for Windows, or gpio shit on a raspi
>>
>>59844720
Why is the first and fourth one the same?

That doesn't make sense.
>>
>>59844636
>If you think "freedom" is doing whatever you please, then you don't understand freedom.

That is what freedom is, you fucking commie.
>>
>>59844747
you'll understand one day
>>
>>59844747
damn, this route to work sucks
i'll just take the freeway
freeway sucks
i'll take the bus
omg! never ride the public bus!
this route to work is better than i thought it was
>>
>>59844780
Then murder is part of your freedom.
>>
>>59844821
If one cannot murder, is he truly free?
>>
>>59844804
No, the chart immediately implies that the second and third are better than their previous counterparts; in no way does it imply that the agent only "believes" them to be better.
>>
>>59844852
If you can murder, then there are laws prohibiting you from doing something.

Therefore, only by being unable to murder can you truly be free
>>
>>59844861 have a very small mind
>>
>>59844866
>If you can murder, then there are laws prohibiting you from doing something.
>Therefore, only by being unable to murder can you truly be free
Wut?
>>
>>59844821
Murdering immediately harms someone.

You would need to argue that non-GPL software actively harms someone, rather than the more reasonable stance that it is intended to help someone.

In this case, we have a false equivalence, and your implied argument is terrible.
>>
>>59844861
the obvious denotation would be that both the stupid person and the genius agree

i'll leave the rest to you
>>
>>59844891
>have a very small mind
What did she mean by this?

Are you offering a mind to me?
>>
>>59844896
>Murdering immediately harms someone.
What does harm have to do with freedom?
Rhetorical question, the answer is nothing.
You don't believe in ultimate freedom, nor does anyone else. It would be ridiculous.
>>
>>59844861
>in no way does it imply that the agent only "believes" them to be better.
The tiers are meant to signify levels of enlightenment. This specific instance of the meme is stating that sometimes, those of plebeian tastes in fact share a preference with those of superior taste, probably for the wrong reasons.
>>
I sense libertarians in my /dpt/
>>
>>59844908
case in point.
you didn't get it.
the you at the end of >>59844861
is already there so i didn't have to write the you in you have a very small mind, thus the whole sentence was meant just for YOU and you alone. it was not directed to anyone else therefore they never saw a you in their versions of the post.
>>
File: 1491276016896.png (434KB, 696x748px) Image search: [Google]
1491276016896.png
434KB, 696x748px
>>59844944
Liberty is completely at odds with libertarianism

>>59844939
Here is a similar meme image, from /pol/
>>
>>59844896
We develop X11 software under MIT license.
We improve X11.
Apple takes X11's source code, modifies it and makes money with it, without improving X11.
People everyday use X11 on Mac without knowing it, saying "Mac is awsome!" (it's not).
We've worked for Apple without getting any credit, nor benefit.

Is MIT freedom?
>>
>>59844995
Yes.
>>
>>59844720
>>59844953
>>59844747
the freshman knows nothing (small brain)
the sophomore (wise fool) has a little knowledge and thinks he knows better
the graduate knows much more
the masters are enlightened
>>
>>59844995
Yes.
>>
>>59844995
lessons from apple:
create fans
hire lawyers
steal shit, claim as own
profit
goto start
>>
>>59845019
it's not directly related with education
>>
>>59845053
>it's not directly related with academia
ftfy
>it is all about education
>>
>>59845076
education and knowledge are completely different
>>
>>59844995
there's shit in unity / gnome 3 / kde that was taken directly from OSX. mostly GUI concepts.

X11 is open source, it may be a shitty move to use it but not contribute, but it's within the intended use of the licence. what can you do. and i feel like if anything, copying should be more common and copyright should be less stringent. it only keeps development back if everyone has to reinvent the wheel because the wheel is copyrighted

the best company/devs will always have the best product because they're actually talented devs and GUI creators who know how shit should work and look to be usable and intuitive. if you just steal stuff with no concept of what you're doing it'll end up looking like one of those gaudy apple themed ubuntu mods
>>
Gui framework and language for Windows and Linux, easy to quickly prototype, easy sql interface for the server side, speed doesn't matter, simple to use network packages. Suggestions? Anything new for me is absolutely OK so no restrictions at all on the language.
>>
>>59844821

Violating someone's natural rights isn't freedom, though.

Shooting someone who is trying to violate your natural rights is freedom.
>>
>>59845171
Make it GPL so it never gets widely adopted :')
>>
>>59845171
The only GUI that is going to look good on Windows and Linux is basically going to be a web application running on v8, like Atom/Discord/etc.
>>
>>59845184
>Violating someone's natural rights isn't freedom
Who asked you, sheep?
>>
>>59845171
Electron?
>>
>>59845199
>look good
>web application
choose one.
>>
File: windows-8-start-menu.png (272KB, 1280x800px) Image search: [Google]
windows-8-start-menu.png
272KB, 1280x800px
>>59845156
>>
Somebody give me a list of programming challenges or something I need to learn Common Lisp.

No FizzBuzz or sum primes under 2 million or sum FizzBuzzes under 2 million or anything like that. I want something that actually requires problem solving, not just busywork.
>>
>>59845171
Prototypes don't have to be cross platforms. Sorry but I think it's not a good idea as long as prototyping is your main goal.
>>
>>59845313
https://duckduckgo.com/?q=dpt+roll
>>
>>59845313
FizzBuzz the sum of 2 million primes
>>
>>59845289
?
>>
>>59845313
>give me a list of programming challenges
>I want something that actually requires problem solving, not just busywork
Doesn't compute.
>>
>>59845313
AI for tic-tac-toe.
>>
>>59845361
>>59845156
>the best company/devs will always have the best product because they're actually talented devs and GUI creators who know how shit should work and look to be usable and intuitive

>>59845289
>>
>>59845313
rewrite the unreal engine in javascript
>>
>Somebody give me a list of programming challenges or something I need to learn Common Lisp
>to learn Common Lisp

>>59845406
>rewrite the unreal engine in javascript
>>
>>59845313
you can try project euler; most of the first 100 problems are solvable, but then it gets difficult as fuck;
>>
>>59845313
Write a bootstrap compiler for a systems language and then write an interpreter in that language that can run the compiler.
>>
>>59845430
Oh. Right. Well write a something in lisp that will run the javascript unreal engine.
>>
>>59845430
rewrite the unreal engine in javascript in a javascript vm in common lisp.
>>
>>59845216
>I don't know what words mean! Freedom is anarchy! wew!

You sure are stupid.
>>
>>59845471
Freedom IS anarchy
>>
>>59845387
nope, still dont get it

sorry sempai
>>
>>59845474

t. Crockpotkin
>>
File: mio_despair.png (82KB, 400x363px) Image search: [Google]
mio_despair.png
82KB, 400x363px
>found a better and faster implementation of a numerical scheme
>gotta edit 1000 lines of code so that all functions that use such scheme uses that implementation
>>
File: It's a bomb.gif (79KB, 645x231px) Image search: [Google]
It's a bomb.gif
79KB, 645x231px
While waiting for the dot matrix displays to be delivered I made a simulator for the clock I'm going to build so I can play around with different designs.
>>
File: bowden 1.png (8KB, 589x87px) Image search: [Google]
bowden 1.png
8KB, 589x87px
>>59845523
You'll understand one day
>>
>>59845548
Make an inline function, when u patch it up again you need to fix only 1 spot.
>>
File: dt170411.gif (127KB, 900x280px) Image search: [Google]
dt170411.gif
127KB, 900x280px
kek
>>
>>59845561
What language?
Make an odometer style.
>>
>>59845568
>it's another bowdenfag

w. o. w.
>>
>>59845646
Just quickly cobbled together in C++ with SFML.
Nice idea about the odometer style, I'll try that out.
>>
>>59845189
META
E
T
A
>>
File: 1484165528965.jpg (32KB, 372x434px) Image search: [Google]
1484165528965.jpg
32KB, 372x434px
>>59845663
don't apologise
>>
File: 2017-04-11-202531_650x560_scrot.png (61KB, 650x560px) Image search: [Google]
2017-04-11-202531_650x560_scrot.png
61KB, 650x560px
I wrote some scripts that convert images into a dithered low resolution form, and a program for the BBC micro that displays them
>>
I want to start learning a programming language in the next 3 months. Python seems like as good a place for me to start as any
Should I invest in books? https://www.humblebundle.com/books/python-book-bundle
>>
>>59845718
get physical books lad, theyre much comfier.
if not, just pirate and save your money
>>
>>59845779
ok sempai
>>
>>59845716
>thumbnail makes more sense than full image
halp
>>
>>59845779
Speaking about which, is there any place I can find a torrent for old humble book bundles?
>>
>>59845826
You're probably better off just looking them up 1 by 1.
>>
File: Untitled.png (194KB, 693x320px) Image search: [Google]
Untitled.png
194KB, 693x320px
>>59845718
>>
>>59845866
>semi-transparent windows
Disgusting
>>
>>59845561
>clock I'm going to build
Hello Mohamed
>>
File: x230 vs x220.jpg (719KB, 800x1200px) Image search: [Google]
x230 vs x220.jpg
719KB, 800x1200px
What is the best software license and why?
>>
>>59845866
>code::blocks
i dont understand this meme
what's wrong with a command-line compiler and a decent text editor
>>
>>59844517
My university's machines dual boot Windows 7 and OS X but in computer science you do most of your work on a Linux server or virtual machine.
>>
>>59844720
I'm of the opinion nowadays that we should strive for a lot of inference so that we get the most general type possible. Annotations are comments that are automatically verified to match the code or in some cases ways of resolving ambiguity (such as with dependent types).
>>
>>59845932
Terry wrote a fucking compiler and an operating system, I think he knows what he's talking about
>>
>>59845548
This is why you DRY.
>>
>>59845931
New BSD
>>
>>59845932
It's kind of nice to have a program that:
A. Highlights mistakes you don't notice(though an editor can do this too)
B. Provides easy shortcuts to build, debug, etc.(could do this with a text editor)
C. Provides a way to organize code into projects and makes it easy build programs(what a text editor won't do)
>>
> Also, the animation shows the array stored in memory starting at location 91; that location is arbitrary and is irrelevant to a programmer, but being conscious of memory can form a solid foundation for a programmer.
>that location is arbitrary and is irrelevant to a programmer

Is this true?
>>
File: PWAADD_Objection!.png (138KB, 334x238px) Image search: [Google]
PWAADD_Objection!.png
138KB, 334x238px
>>59845866
>I can't stand to not know how things works
>I don't get OpenGL either [...] Why can't I just import something from Blender?
Contradiction in 2 paragraphs.
>>
>>59846028
makes it easy to build a program's source files together*
>>
>>59845932
>what's wrong with a command-line compiler and a decent text editor
Nothing is wrong with it per se, but if you're going to use both anyway why not just chuck them in the one window for convenience?
>>
Is there a good way to make individual meshes in a scene render pieces of it back to front. I just thought of a system where you divide up a mesh based on expected facing direction a number of times and have the renderer render the forward facing pieces first so you can eliminate the back f-
Fuck its just a bad substitute for back-face culling nevermind I'm dumb.
>>
>>59846033
Pretty much, unless you're trying to do some binary exploitation or something.
>>
>>59846028
>Provides a way to organize code into projects and makes it easy build programs
Except good languages already handle this for you and thus have editor-independent package management.
>>
>>59846033
On modern systems it's effectively randomized.
>>
>>59846065
>back to front
Meant front to back.
>>
>>59846065
>>59846079
What exactly are you trying to do?
>>
>>59846067
Not packages, but individual source files inside of a project.
>>
>>59846098
You need an IDE to make directories for you?
>>
>>59845931
one that's like this:
>you can use my code in any type of project (open or closed source, free or commercial) however the fuck you want, as long as you don't claim my code is written by you and don't claim modified versions of it are fully written by me
>your source code must provide (in a comment or separate text file) this license and a notice if my code has been modified
>also don't sue me
>>
>>59846107
No, but it can be nice to automagically have your editor create cpp files for headers you create.
>>
>>59846124
>C++
There's your problem.
>>
>>59846114
>also don't sue me


a bit sad that this is required in a license
>>
>>59845866
what is this?
>>
>>59846178
It's called a disclaimer and is necessary for software so that you don't become responsible for human deaths when some idiot uses your not-100%-proven-correct library in medical or military equipment.
>>
>>59844412
this is to concise for a noob like me. and it doesn't really seem python (?)

>>59844285
so something like this?
import secrets
buf=[0,0,0]
check=0
while(check==0):
for i in range(0,3):
r = secrets.randbelow(10)
print(r)
buf[i] = r
if(buf[0]==5 and buf[1]==5 and buf[2]==5):
check = 1
break

it seems to work (it always stops when three 5s are printed), but i'm still not sure everything is correct
>>
>>59846034
True, but I think I know where he's coming from (assuming he's not actually terry). I mean, I think there's a notable difference between memory management, trash collection, etc... and jumping head first into geometric programming with no experience.
>>
>>59846124
>automatically create cpp files for your header files
Sounds incredibly pointless as it's wrong at least half the time.
>>
File: 1490240352947.gif (1MB, 232x158px) Image search: [Google]
1490240352947.gif
1MB, 232x158px
>>59846304
If it's not Terry, he certainly got the schizophrenic aspect down.
>>
>>59846329
Are you the kind of person that implements each function in a seperate file or implements all his code in the header?
>>
>>59846114
>>you can use my code in any type of project (open or closed source, free or commercial) however the fuck you want, as long as you don't claim my code is written by you and don't claim modified versions of it are fully written by me
>>your source code must provide (in a comment or separate text file) this license and a notice if my code has been modified
>>also don't sue me
So the BSD license?
>>
>>59845931
>detects specific hardware and refuses to work
holy fucking shit, I almost can't believe it's real. Fuck lenovo, I'll never buy from them.
>>
>>59846402
Just don't but their new shit, laptops before the **30 series are good.
>>
>>59845931
one that's not stallman's hypocrisy
>>
>>59846448
GPL for a kernel is well worth it otherwise MS would just leach everything from it like they tried to in the past.

Apple already does it with BSD as well and as you can see BSD is going places...
>>
>>59846362
No. It's just that no decent programmer I know would actually save time by starting using an additional piece of software to have the occasional benefit of having it generate a cpp file for your header file.
It doesn't solve a time sink.
>>
>>59846448
It's pretty ironic that stallman always points out the difference between free as in free beer and free as in freedom, implying that the GPL grants the latter, when in fact looking at the evidence GPL programs tend to be more like free beer; they have no monetary cost, but severely restrict your freedoms.
>>
>>59846506
a decent programmer would prefer not to use C++
>>
>>59846534
Sure. But regardless if you have to this is not where you should put any effort.
>>
>>59846506
I guess you also hate adding scripting to your programs or using DSLs to simplify a problem because it requires extra work/programs?
>>
>>59846531
No. GPL restrict your freedom. But it protect my freedom. FSF does not care about your freedom, FSF cares about my freedom.
>>
>>59846595
FSF is all about protecting egos, led by the GNU/Linus crusader himself.
>>
>>59846589
>I guess you also hate ...
Did you reply to the wrong person anon?
>>
>>59846608
please don't insult the crusaders with these comparisons
>>
GNU needs phased out 2bqh.
>>
>>59846613
No specifically replied to the person saying having to run 'additional software' for 'occasional benefit' is not worth it.
>>
I'm attempting to make a dungeon generator that learns to adapt to the player. Reading up on a lot of different papers right now.
>>
>>59846595
No it restricts your freedom. It basically says that no matter what, you effectively can't make any fucking money developing anything that has even skimmed a line of GPL code. And then forces you to subject others to the same if you give in. It hampers development and adoption.
>>
>>59846651
It restricts your freedom to restrict your end users' freedoms.
>>
>>59846651
Let alone money, you can't even release your code on trurly free license if you base on GPL code
>>
>>59846672
>It restricts your freedom to restrict your end users' freedoms.
It is fucking communist cancer
>>
>>59846716
You are free to not use GPL code if you don't agree with the license.
>>
>>59846730
And this is why everyone develops software for windows and why everyone uses windows :')
>>
https://www.youtube.com/watch?v=Gojddrb70N8

This guy figured out how to program snowflakes. Wonder how hard it would be to simulate.
>>
File: bios.png (153KB, 1920x1392px) Image search: [Google]
bios.png
153KB, 1920x1392px
>>59843315
almost got this video bios figured out.
it's a fun exercise, can recommend.
>>
>>59846751
>getting paid to fuck around with inane questions like this

Sometimes i wish i fell for the college meme.
>>
>>59846531
The only freedom it restricts is the freedom to deprive others of their freedom.

>>59846651
What hampers adoption more is when proprietary projects die and end up being lost forever because they're closed source. I'd be fine with proprietary software as long as the license terms require the source to be placed in the public domain once they fail to sell X units a year.
>>
File: Screenshot_15.png (50KB, 528x294px) Image search: [Google]
Screenshot_15.png
50KB, 528x294px
I'm reading The C Programming Lenguage but this code comes up
#include <stdio.h>
int main()
{
int c;
while ((c = getchar())!= EOF) {
putchar(c);
}
}

But when I try to compile it, it doesn't work, why?
>>
>>59846716
>admitting that capitalism depends on the ability to restrict others' freedoms
wew lad

>>59846746
If "everyone developed software" for Windows, then Windows would actually have decent software, that could save a file without going into an infinite loop.
>>
>>59846867
would you care to tell us your compiler error???
>>
>>59846867
>But when I try to compile it, it doesn't work, why?
what does the compiler say?
>>
>>59846863
thats still infringing on muh freedoms.
But why do freetards pretend to follow their batshit logic. They arent freaking out and re-writing all the firmwares in their house. But somehow it only matters with their OS.
>>
>>59846867
What's the error?
>>
>>59846867
What does the fox say?
>>
>>59846895
>thats still infringing on muh freedoms.
So? You can't give everyone absolute freedom without infringing on other freedoms. So the FSF decides that having freedom to use software for your own purposes, but not to make a proprietary fork, is the best route.

>They arent freaking out and re-writing all the firmwares in their house. But somehow it only matters with their OS.
Because they already have the OS, so they want to prevent it from becoming proprietary. If and when they have written free firmware, they won't want it becoming proprietary either.
>>
>>59844227
import random

def f(a, b, c,):
print(c)
if not a == b == c == 5:
f(b, c, random.randint(0, 9))

f(0, 0, random.randint(0, 9))
>>
>>59846867
Error is
 Permission denied
collect2.exe: error: ld returned 1 exit status

Even if i add void to the main() function it still happens, I already checked if I already have it open and I don't
>>
>>59846949
Also, im compiling it by doing
gcc example.c -o example
>>
>>59846929
>proprietary
But I thought the whole GPL bullshit was because if you cant see the source, then you dont understand how it works, thus its not actually free. Which is why I question the people who ~probably~ only stop at their computers.
>>
File: rms.jpg (72KB, 393x298px) Image search: [Google]
rms.jpg
72KB, 393x298px
>>59846863
>be stallman
>pretend you care for REAL FREEDUM
>impose your shitty license on any line of code that derives from yours
>still say its ultimate freedom
literally cancer

only MIT license or BSD if you're really afraid of legal troubles
>>
>>59846949
Usually that means a library can't be found. Are you using Windows 95?
>>
>>59846971
No, it's to allow the end user to understand and thus modify the software. That's why the LGPL allows dynamic linking to proprietary binaries - you can still theoretically replace them with your own code.
>>
My fucking hand is cramping from drawing a 5 page long flow diagram
>>
>>59846949
it has nothing to do with the code.
your file permissions are messed up.
>>
>>59846863
>The only freedom it restricts is the freedom to deprive others of their freedom.
Fuck off faggot. It effectively prohibits you from developing commercial software, i.e. selling your work.

>>59846863
>I'd be fine with proprietary software as long as the license terms require the source to be placed in the public domain once they fail to sell X units a year.
Yeah look there is that, and also the argument that basically copyright lasts too long

I also think that if you have say a GPL python module that the user has installed themselves, you should be able to write a python program that imports that module and license your program commercially, since you're not redistributing the GPL module, though the FSF disagrees.
>>
>>59846965
Try putting "example.c" at the end.

>>59846971
I'm not Stallman though.

>>59846975
GPL ensures that all future versions of the software remain free.
>>
>>59847005
>Fuck off faggot. It effectively prohibits you from developing commercial software, i.e. selling your work.
Developing proprietary software is restricting others' freedom. And if you think you have a right to forbid users from modifying your code, then the FSF definitely has the right to forbid their code from being used in proprietary projects.
>>
>>59847018
>GPL ensures that all future versions of the software remain free.
But it's more "beer free" than "freedom free"
>>
Do you want your software to be used?
MIT/BSD

Do you want your software to be used and still have any derivatives opened source?
LGPL

Do you want to restrict the usage of your code ensuring that any company will likely avoid it?
GPL
>>
>>59846998
post pic
>>
>>59847044
>Developing proprietary software is restricting others' freedom
No it's not. They're free not to use it. :')

>then the FSF definitely has the right to forbid their code from being used in proprietary projects.
See the bit about importing a GPL python module.
>>
>>59847060
/topic
>>
>>59847005
How does the GPL prevent commercial use? Without DRM that further restricts freedoms it's just as easy to distribute proprietary software and even DRM gets foiled after some time.
>>
>>59846949
Installing gentoo would actually solve your problem.
>>
>>59847089
>How does the GPL prevent commercial use?
Are you retarded or just pretending?
>sell a copy of your cool program that contains one line of GPL code
>have to sell it under GPL license
>which means you have to give out the source
>which means the first person who buys it can just post in on github.
Sounds like a wise investment to be sure.
>>
>>59847089
Why would I pay for your software when I can download the source and compile it myself?
>>
>>59847122
>>59847130
Learn to read.
>>
>>59847067
>>
>>59847089
Apple or google cant fork and polish off their own versions for profit.
Even though they still could because no one would take them to court.
>>
>>59847141
While it's easy to distribute proprietary software, you can sue anyone who does and have it taken down. Any businesses who use this would be liable for commercial copyright infringement (max penalty is.. hundreds of thousand per copy? millions?)
>>
>>59847159
stali-stallman would take google to court
>>
>>59847154
ugh why would you live?
>>
>>59846998
have you considered using bigger pages?
>>
>>59847047
No, beer free means you have the ability to use it for zero cost, but not necessarily to modify it. Freedom free means anyone in possession of the software can use and modify it, and distribute it in any way that keeps the software free as in freedom.

>>59847068
>No it's not. They're free not to use it. :')
In which case no one can use your software without it restricting their freedom. There is no usage of proprietary software that does not violate one's freedom.
>>
>>59847185
If only legal fees could be payed in toewax and delusion. The world would be a much better place.
>>
>>59847159
So? If they can do a better job then let them. Otherwise the software is worse off just so that someone else can make more money.

>>59847177
Good point, but when it comes to enterprise then the fees are more for support than the software itself and you can't pirate support.
>>
>>59847209
>Freedom free means anyone in possession of the software can use and modify it, and distribute it in any way that keeps the software free as in freedom.
Except all GPL code is actually free as in free beer, because it restricts your ability to sell it
>>
>>59847246
No you can sell GPL code. You just can't close the source.
>>
>>59847246
No. Anyone can sell GPL'd code for any price they want. The only real requirement is that the new owner must receive human-readable source code, and they too are obligated to follow the terms of the GPL license.
>>
>>59847258
Name me one (1) GPL program you can't get for free that has been sold.
>>
>>59847209
> Freedom free means anyone in possession of the software can use and modify it, and distribute it in any way that keeps the software free as in freedom.
But GPL forbids me from distributing it on trurly free licenses (i.e. MIT or Apache), so it's not freedom free
>>
>>59847258
>>59847268
>someone would pay for non closed code
>>
>>59847275
Name one (1) proprietary program you can't get for free that has been sold.
>>
>>59847258
> You just can't close the source.

effectively killing your revenue since anyone after the first person can come, release the source or even distribute binaries without you needed.

There is a reason why LGPL was made, no one wants to put up with GPL when you want to make a living off your software.
>>
>>59847284
>Name one (1) proprietary program you can't get for free that has been sold.
Legally, none of them.. And the source? Pretty much all the big ones.
>>
>>59847241
>If they can do a better job then let them
I dont want to depend on a corp for maintaining and updates.
It took Apple like six years to finally implement a slide up quick bar, banner alerts and all kinds of other things the JB community did. Id rather depend on the autism of the internet.
>>
>making a living off of ones and zeroes
When are people going to realize that programs themselves have no value?
>>
>>59847299
>And the source? Pretty much all the big ones.
Is that supposed to be a good thing?

>>59847303
No problem, if the OSS community can do a better job maintaining and supporting it than Apple then people will not pay Apple for it.
>>
>>59847309
>purchasing things with tiny green rectangles of paper
When are people going to realize that money itself has no value?
>>
Redhat is arguably the biggest revenue maker when it comes ot GPL and it's because they have to sell themselves as a support group/service. That's what you become when you use GPL code.
>>
>>59847258
>No you can sell GPL code. You just can't close the source.
Why would anyone buy something they can get for free?
Sure the GPL doesn't explicitly say "You can't sell this" but it may as well say "Hope that first sale covers the costs of development because you won't find a second buyer"
>>
>>59847348
False equivalence.
>>
>>59847332
>if the OSS community can do a better job maintaining and supporting it than Apple then people will not pay Apple for it.
>implying people are rational
>>
>>59847309
>tfw a certain pattern of ones and zeros are banned in 1st world countries
>tfw a certain pattern of ones and zeros could emulate civilization
>>
>>59847359
its really not.
Everything in this world has subjective value stamped on it by society.
Software has value, especially since it literally produces and keeps the currencies of the world.
>>
>>59847351
That's the only rational way to make money off of something that can be infinitely copied and distributed around the world in seconds.
>>
>>59847332
>Is that supposed to be a good thing?
Well kind of, in that it enables you to hire people to write software safe in the knowledge that you can recoup your outlay with revenue from sales.
>>
>>59847393
>you can recoup your outlay
Well, in theory anyway.
Don't you want people being hired to write software?
>>
I need some React help. I have several checkboxes and I need to be able to count how many of them are checked. How would I do that?
>>
>>59847390
>That's the only rational way to make money off of something that can be infinitely copied and distributed around the world in seconds.
Apparently not since microsoft and apple make shitloads more than redhat lol
>>
>>59847431
People are stupid and perhaps that's why the GPL doesn't work that well.
>>
>>59847446
The GPL doesn't work that well because it removes (nearly) all incentive for people to develop shit.
Like communism.
>>
>>59847476
Communism doesn't do that though.
>>
>>59847543
It does though.
>>
>>59847565
[citation needed]
>>
>>59847543
>software commie
>one entity profits while the rest slave away

>traditional commie
>one not-leader profits while the rest slave away

And then you get
>b-b-but red hat can do it so anyone else can :^)
>>
>>59847581
>Worker Practicies in Communist Societies
>Historically, Communism has been found to not foster good work ethics. Michael Lindsay explains, “The actual Communist choice is almost certainly that “Socialism” defined in Communist terms, is a more important objective that productivity or raising the standard of living.” Hence, in all transitional societies working toward Communism, work ethic and motivation appear to be extremely lacking even though everyone is assigned some task or job. For example, in a study conducted in the former USSR, over 50% of the work force admitted to drinking alcohol while on the job. Furthermore, unbeknownst to the communist party, nearly 40% chose to work a second job privately to attain more wealth (Pereira) .

It's almost like people don't really think working harder for the same reward is a good idea.
>>
>>59847616
>>one entity profits while the rest slave away
Who profits when software can't be sold commercially? Your own argument contradicts itself.
>>
>>59847626
>It's almost like people don't really think working harder for the same reward is a good idea.
Good thing Marx never advocated that.
>>
>>59847581
>t. unlearned individual
>>
>>59847653
>In some instances, the reinstatement of some private property was needed to provide incentive for workers to produce useful programs and inventions. In one analysis by Tao-Tai Hsia and Kathryn Haun, they found that the Soviet Union had “to offer the inventor the choice between a patent, which conferred the right to exclude others from the use of the invention, and a certificate of authorship, which vested ownership of the invention in the state, but entitle the inventor to various privileges and to remuneration based upon the economic benefits realized by the state through use of the invention.” However, the very introduction of acknowledgement and reward contradicts the belief the notion of the unselfish worker.
Kek, even the commies had to pay people to write good software.
>>
>try to figure out if i should buy a $9 android gamepad
>nvidia says they have a sample to show how to get gamepad input in android ndk
>to download their sdk you have to be a registered gayworks developer
>register
>the sdk is an .exe
>try to install without additional components
>fails
>try to install with default components
>gets stuck at "preparing to install"
>>
>>59847677
>Soviet Union in the information age
>Communist

>>59847668
>t. non-argument maker
>>
>>59847678
WTF dude. You need no Nvidia sheit.
https://developer.android.com/training/game-controllers/controller-input.html

PD: KYS
>>
>>59847730
that doesn't have anything for android ndk you moron. people are saying the ndk lacks support for gamepads so i want to see more before i order a gamepad
>>
>>59847653
>Good thing (((Marx))) never advocated that.
Well it's weird because all the people and governments who have ever called themselves communist disagree:
>Within a communist society, people are expected to act in the interest of the Communist Party and the majority of society. Specifically, the individual is expected to work and act to promote the betterment of the community. Chairman Mao Zedong elaborates, “At no time and in no circumstances should a Communist place his personal interests first; he should subordinate to the interests of the nation and the masses. Hence selfishness, slacking, corruption, seeking the limelight are most contemptible, while ... working with all one’s energy, whole hearted devotion to public duty, and quiet hard work will command respect.” Hence, communists are expected to work diligently and thoughtfully in order to ensure he or she provides the most benefit to society. As a result, any worker in the computer field is expected to manufacture computer products without the wish for acknowledgment or excessive monetary reward.
>>
File: 1433698243654.png (29KB, 613x556px) Image search: [Google]
1433698243654.png
29KB, 613x556px
>write a simulator
>it runs
>realize I have no way to validate it since I never made any visualizations of the data
>think about trying to learn opengl to visualize it
>too shit at drawing to make nice models
>demotivated

tfw
>>
>>59847788
>What is a log file
>>
Can someone help me understand the basic algorithm concept of inputing an int 'n' that represents a cubes side and then printing a 2D cube using print statements
>>
>>59847803
I did that for a bit but once i got too many objects in my sim it was just unmanageable.
>>
>>59847808
Can someone help me understand this post?
>>
>>59847808
prints a cube like this
+----+
|\ \
| +----+
+ | |
\| |
+----+
>>59847827
>>
>>59847742
Then use JNI bindings
>>
>>59847836
What do you mean by "represents a cubes side"? The length of each edge?
>>
>>59847840
well yeah but why does it have to be so hard to show a fucking sample. anyway it seems the installer has downloaded everything and it's installing it now
>>
>>59847815
The user should choose what they will see from the file. They can parse out the useful information, so it doesn't matter how verbose it is and it's infinitely more useful.
>>
>>59847840
and i'm doing native input so i think i'm supposed to use jni just for managing connections and still handle motion events with the native code
>>
>>59846935
wow that's so cool. tho it doesn't always work with me, it often gives:
RecursionError: maximum recursion depth exceeded in comparison

or
RecursionError: maximum recursion depth exceeded while calling a Python object
>>
>>59847788
What does it simulate?
>>
>>59847410
Anyone have any ideas?
>>
>>59847914
traffic
>>
>>59847914
A missile defense radar system for tracking and blowing up incoming ICBMs.
>>
>>59847936
Well that's cool. Do you have anything to share? As for visualizing it, why wouldn't a simple top-down 2D visualization suffice?
>>
>>59847951
I guess I could do a top down system, even layered for bridges/tunnels.
>>
>>59847759
Nowhere in there does it day people who work hard get the same reward as those who don't. Do you really think getting rewarded or punished in proportion to your contribution or lack thereof is "excessive" or "selfishness"?
>>
>>59848029
If you want to be professional, study how the tool "encounter" works.
>>
>>59847678
ok i have the sample now and it seems straightforward enough. just basic shit like checking AInputEvent_getSource(event) == AINPUT_SOURCE_JOYSTICK and finding joysticks in java code
>>
>>59847653
>>It's almost like people don't really think working harder for the same reward is a good idea.
>Good thing (((((((((Marx))))))))) never advocated that.
hmmmmmmmmmm


>From each according to his ability, to each according to his need (or needs) is a slogan that (((Karl Marx))) made popular in his writing Critique of the Gotha program, published in 1875.
See, to me this sounds like.. If you can do more, you have to, but you won't actually get anything out of it.
>>
>>59848136
>See, to me this sounds like.. If you can do more, you have to, but you won't actually get anything out of it.
Sounds more like it means you're EXPECTED to contribute rather than it being an "oh, okay, do work if you want to" sort of thing.
>>
>>59847701
>>Soviet Union in the information age
>>Communist
Classic commie scum
>>
>>59848239
Yes "expected" of course. For no... reward.. Almost like the thing you said he never advocated....
>>
>>59848295
>For no... reward..
Many careers in capitalism have no real reward even if you work harder than anyone else. Survival isn't a reward, it's having your basic needs meet. Regardless though, we're getting off topic.
>>
>>59848240
Indeedly. The mental gymnastics is astounding

>The Soviet Union was the first country claiming to have established a workers' state. In reality, the country never became communist in the way that (((Marx))) and Engels described.
>not real communists :')

>During the 20th century, many people tried to establish workers' states. In the late 1940's, China also had a revolution and created a new government with Mao Zedong as its leader. In the 1950s, the island of Cuba had a revolution and created a new government with Fidel Castro as its leader. At one time, there were many such countries, and it seemed as though communism would win. But communist party governments forgot to use democracy in their governments, a very important part of socialism and communism.
>Oh silly Mao, silly Castro, they just "forgot" that they were meant to be democratic :') honest mistake honest
But we should totally try once more to establish a communist worker led government :') what could go wrong hahaha
>>
File: 1463845419863.png (801KB, 1176x2016px) Image search: [Google]
1463845419863.png
801KB, 1176x2016px
>>59848372
I also love how there's not a single citation on 95% of the wiki page on communism. Really makes me think.
>>
>>59847836
whats the point of 'n'? the length in ascii characters?
>>
>>59848419
ground truths dont need citations.
>>
>>59846299
what's the point of the break you change check to 1, which will stop the while function. No point in changing the check variable if you're just going to break it?
>>
>>59848419
Hate to correct the record, but the current Wikipedia article on Communism looks nothing like that, and seems pretty well cited. I don't have time to do a mathematical analysis of citation density, but it looks like at least 50% of its paragraphs contain at least one citation.
>>
Quick question

can a variable that is changed in a nested for loop be called by the parent for loop?
>>
File: thinkin deeply.jpg (47KB, 848x480px) Image search: [Google]
thinkin deeply.jpg
47KB, 848x480px
Is semantic web an academic meme?
>>
>>59848457
>ground truths dont need citations.
Yes like Mao, Stalin, and Castro simply 'forgetting' that communism was meant to be democratic. Definitely need no citation on that one.
>>
>>59848478
if the variable is declared outside the nested loop or a pointer is assigned to it - yes.
>>
>>59848488
thankfully RDF/XML is dead now.
>>
>>59848488
Yes, it never panned out. If you want to kill time and read about the W3C's futile ivory tower bullshit standards that never caught on, I wholly recommend the book 'XML in a Nutshell'. It sounds like a boring read but the sheer scale and majesty of the useless wank that they produced and no one cared about is incredible.
>>
>>59848560
this. and on the other side you have your everyday horrible, messy website code, full of language and standard abuses.
>>
File: 4chan communism.png (107KB, 1216x1137px) Image search: [Google]
4chan communism.png
107KB, 1216x1137px
I have a job interview next week. The programming language they use is C++, which I'm sort of familiar with but not really. I'm very familiar with C, so basic things like for loops and pointers won't be an issue. I'm also very familiar with Java, so the OOP side of it probably won't be too hard to pick up. Does anyone know of any good C++ resources for people who are already programmers? Basically more stuff like this: https://www.techiedelight.com/data-structures-and-algorithms-interview-questions-stl/
>>
>>59846776
Do you have any guides or books on how to get into low level systems development? I'd like to reverse engineer the windows driver of my soundcard so I can make a linux port. I already program at a intermediate level in C and C++.
>>
>>59848461
eh i was wondering that too but if i remove the break it sometimes prints some more numbers after the three 5s are found. i think it's needed because also the for loop has to be stopped
>>
Anyone got a good example code for using the Factory pattern via Java RMI? I've been trying to search for one but all I see is this fucking "Applying the Factory Pattern to Java RMI" that only tells me the basic concept and basically no code example.
>>
>>59848619
Arent there literally books titled advanced c++
>>
>>59847275
Not a program, but RedHat sells copies of its OS, even though its all open source and you can still download the .iso from their repos.
>>
>>59847275
XChat for Windows.
>>
is cs useful?
>>
>>59848738
no
>>
>>59848738
realistically no, its just a pre-req degree to get in doors. Youll learn more self-learning (which youll have to do anyway)
>>
New thread: >>59848775
>>
>>59848793
Dumbass
>>
>tfw write the messiest code in existence and only bother to make it readable once everything is functional
>tfw also probably write some of the most inefficient code ever

my professors never call me out on it because my shit meets the requirements for projects but i am absolutely certain i am will never be hired
>>
>>59848623
not really. all I have is google. this particular graphics card happens to be exceptionally well-documented.
Thread posts: 313
Thread images: 26


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