[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: 316
Thread images: 31

File: tmp_987-1486942169611-15805773.jpg (193KB, 1300x1244px) Image search: [Google]
tmp_987-1486942169611-15805773.jpg
193KB, 1300x1244px
What are you working on, /g/?

Old thread: >>62073328
Anime threads >>>>>>> any other /dpt/ threads
>>
File: programming socks.png (338KB, 1140x813px) Image search: [Google]
programming socks.png
338KB, 1140x813px
Are programming socks a meme or do they actually work?
>>
Where should I start learning to program? Should I start with Python?
>>
File: include.jpg (102KB, 1920x1080px) Image search: [Google]
include.jpg
102KB, 1920x1080px
>>62078873
#include <archer.h>
>>
>>62078848
I'm working on a music visualiser.
>>
>>62078878
>Should I start with Python?
You should start with something. Why do you think python is a good idea?
>>
>>62078878
Python damages brain. Learn D instead.
http://ddili.org/ders/d.en/
>>
>>62078911
>job opportunities
>>
File: cool kids club_.png (328KB, 1158x980px) Image search: [Google]
cool kids club_.png
328KB, 1158x980px
>>
>>62078910
I find the syntax comfy and easy to understand even as a brainlet

>>62078911
Is this a meme language or actually good? Never heard of it.
>>
>>62078923
>Programming
>Job
>Money
lmao
>>
>>62078930
D is a highly underrated language, and yes, it's pretty Good
>>
>>62078910
Is it better to learn python or ruby if I want to do web dev later? Is rails or django better?
>>
>>62078930
D is pretty good. Actually one of the best languages that have GC
>>
D is a gateway to C++
>>
>>62078939
How brainlet friendly are we talking here?
>>
>>62078962
It depends on the book you are reading. The D book is pretty beginner friendly, Read the first few chapters to find out.
>>
File: image.jpg (199KB, 952x1334px) Image search: [Google]
image.jpg
199KB, 952x1334px
>>62078878
Imho, you should start with Goviaji, this language was developed in 2K16 at Univerzita Pardubice (http://www.upce.cz/index.html )
Books: Myšlení v Goviaji, 2016 (Petrešenko Batčko);
Goviaji in Nutshell, 2016 (Tomáš Makášérčko).
>>
>>62078958
This, ironically. Learning D is worth it because it's a very easy transition to C++
>>
File: 1495635065747.png (127KB, 601x508px) Image search: [Google]
1495635065747.png
127KB, 601x508px
>>62078981
Ah yes, I'm very familiar with this language.
>>
>>62078930
>I find the syntax comfy and easy to understand even as a brainlet
Then it's pretty good for you to start with probably. It's not that important what you start with really. Some say python makes it difficult to move to other languages. I don't think that's true. I've used a broad range of languages and python is among them. I didn't start with it and I don't particularly enjoy it for reasons that'd be hard to explain to a newbie.
>Is this a meme language or actually good?
It's a very niche language but that niche takes it seriously. It comes from people in leading positions within the C++ community.

Personally I think I'd learn best with it. But I think we're not like one another.

It's more important that you're motivated to keep learning in any case. I think python is good at that. With many other languages you can get very cryptic problems or environment issues that hinder you from actually programming. They're understandable from the perspective of developing actual software but not for learning.

If I were to tell myself what to start with I'd say Go. But I think python is a fine candidate. Just don't procrastinate on a language choice. Spending a single hour contemplating this is a massive waste of time.
>>
>>62078991
You also were exchange student in Pardubice?
>>
File: Trish Collins9.jpg (1MB, 3352x2432px) Image search: [Google]
Trish Collins9.jpg
1MB, 3352x2432px
>>62078873
they're a meme

you need programming nylons
>>
>>62079017
This is really good advice anon

> Spending a single hour contemplating this is a massive waste of time.

uh oh, t. guy whos been contemplating this for 3 days
>>
>>62079105
>uh oh, t. guy whos been contemplating this for 3 days
https://www.codecademy.com/learn/learn-python
Try this maybe.
I haven't tried it but I've been told it's a very 'gamey' way of learning. So it doesn't feel like work as much.
>>
>>62079121
>https://www.codecademy.com/learn/learn-python
Thanks man, I'm going to go get started on it now.
>>
>>62078930
>I find the syntax comfy

Let's be real here, you don't have much experience do you? Especially as a "learning language," I would recommend ruby over python every time. Inexplicably, python has more general adoption but ruby is simply a better language, though their problem domains are nearly identical.
>>
>>62079215
I'd agree. But Python is more popular. So he's more likely to find people that can help teach
>>
>>62079215
I have no experience at all outside of doing some html years ago, I've looked at samples from a few different languages and python just looked the least confusing to me, I like ruby too.
>>
>>62078945
rails is absolute garbage, and I say this as a ruby enthusiast. I do not like python, have never looked at django, so I couldn't comment. But why would you want to do web dev? If you want to do web dev, you're better off going deep into javascript imo
>>
i want to get into webdevelopment and am pretty good with php including its popular frameworks.

stackoverflow survey showed that there are inexplicably more jobs for fullstack java webdev than anything php related.

would it be a good idea to switch and learn the java stuff?

which popular parts are even included in java webdevelopment?
>>
>>62078848
Header brainlet here.

Let's say I have xyz.c with
struct abc { ... };
and xyz.h with
typedef struct abc abc;
in it.

Then I have ass.c with:
#include "xyz.h"
abc mystruct;
.

It tells me that the storage size of mystruct is unknown. I can easily make a pointer to struct type abc, so it recognizes the typedef, but it doesn't actually let me implement a struct of that type. Does the xyz.h file need additional info?
>>
>>62079317
>inexplicably
Why do you think Java web dev is inexplicable?

>>62079317
>which popular parts are even included in java webdevelopment?
Old: Spring, Hibernate
New: Play, Jetty
>>
>>62079277
Isn't rails in super high demand?
>>
>>62079264
Well I wouldn't fault you for picking python but, I just really think ruby is a much better option for early experiences in programming. python is a bit more, "idiosyncratic" in some regards, and so if you move to learn other languages it could be a little harder to unlearn the python way.

In any case, they are very similar languages, and you'll find as you look at languages deeper, if you become experienced in python, you will be able to quickly and easily write some ruby code, or vice versa. The actual "programming" parts, reasoning and problem-solving, is the important thing, though the syntax and particulars of a language can assist in how you approach a problem.

What am I even rambling about, anyhow python, ruby, doesn't really matter, good luck, have fun!
>>
>>62079336
ass.c doesn't know the size of abc. You need to define the struct in the header or you can only access it trough pointers. Now it's opaque type that you can't create.
>>
>>62079363
Most enterprise development is either Java or C#
>>
https://www.reddit.com/r/C_Programming/comments/6vvg1c/preprocessor_question/
>>
>>62079373
and since its an opaque type, might as well take advantage of it and have your make/free functions in the header so 'clients' don't need to worry about that. (and other related functions..)
>>
>>62079398
gcc vs clang: the debate
>>
>>62079363
Yes but in part that's because rails quickly becomes a spaghetti mess, and taking over a rails project is an incredibly un-fun horrible thing. Rails had/(has?) a huge spike with all these companies seeing how they could write a one-liner and have a blog or some shit, but then they find out the picture's a bit more complicated than that.

Many, many, many people using rails could be much better served by even a simpler ruby web framework, but somehow that doesn't cross their minds. Rather the opposite, there are an alarming number of people who decide to "learn rails" without understanding any ruby. Not even fucking kidding. So yes there's """demand""" but I don't think I'd go near it personally, much better areas of webdev.
>>
>>62079373
oh ok. I was under the impression that only prototypes and typedefs went in headers. I didn't know you could declare whole structs in them.
>>
>>62079429
you mean external linkage structs, or just define struct types?
also, you can also include functions with the inline keyword
>>
REMINDME: make C preprocessor in Python
>>
File: obsolete.jpg (127KB, 767x991px) Image search: [Google]
obsolete.jpg
127KB, 767x991px
you losers learn Rust yet?

https://doc.rust-lang.org/book/second-edition/
https://rustbyexample.com/meta/doc.html
https://doc.rust-lang.org/nomicon/
>>
>>62079527
go suck a dick you worthless shitlord faggot piece of crap
>>
File: .jpg (64KB, 680x743px) Image search: [Google]
.jpg
64KB, 680x743px
>>62079527
>rustonomicon
>>
>>62079540
>that autistic tantrum
the power of C
>>
>>62079527
no, it seems like kind of a bad language. I also don't like C though, before you try to bully me about it.
>>
>>62079553
https://www.rust-lang.org/en-US/conduct.html
>>
>>62079527
Yes I am learning it.
>>
>>62079566
jew.. i'm mean... yuden

>>62079336
>abc mystructe;
>>
>>62079048
yuden feet

disgusting
>>
hi
>>
>>62079811
hey
>>
>>62079811
welcome, now get out
>>
>>62079811
Segmentation fault (core dumped)
>>
File: nickelodeon foot festish.jpg (1MB, 1500x4795px) Image search: [Google]
nickelodeon foot festish.jpg
1MB, 1500x4795px
>>62079048
footfags get the gas
>>
In Python, how do you write in a csv file an array of results like this ?

>     FX   FY   FZ
>H1 1 2 3
>H2 4 5 6[
>>
>>62080057
with open('file.csv') as f:
print '>\tFX\tFY\tFZ'
for i in range(2):
print '>H%d\t%d\t%d\t%d' % (i+1,i+1,i+2,i+3)

unless you need some external api to write to csv files :^)
>>
>>62080140
thanks a lot dude
>>
>>62080140
dunno python 2, but i think you forgot write permission and you should use f.write
>>
c++ replace when
>>
>>62080185
when non-C++ non-dead language ISO standard comes out, that's when
>>
every day I hate python more and more
>>
>>62080197
AFAIK C# has ISO standard, but maybe it's outdated, i dunno

>>62080199
Stop being childish then.
>>
Software 3D renderers are ez. Trying to optimize them ain't.
>>
>>62080238
Why the hell would you waste processing power on software renderers
>>
Using windows. Can someone write me a script to make a folder and put 25 photos into that newly made folder then repeat? I don't know how to write scripts at all.
Have 1000s of photos that I need to change the exif data on manually, they are all in the same folder. exiftoolgui has a bug where if you try to edit more than ~25 photos then the exif data won't save. Instead of manually making folders and and putting in 25 photos with mouse I think it'd be easier with a script. But I don't know anything about scripting.
>>
>>62080238
use opengl fag
>>
>>62080387
can I do it for you? I'll pay you!
>>
>>62080387
give me a the destination folder address and image filename pattern
>>
What are some pseudo-programming exercises I can practice? Gonna go to an interview in a couple of days and I was told I'll get around 10-20 such problems.

It's my first interview too, so any tips are appreciated.
>>
>>62080499
no, i will do it for you, i'll pay you and pay him too
>>
>>62080615
you mean you've never made your own project over 10kloc?
>>
>>62080615
Look them right in the dick. It establishes your no-nonsense attitude while demonstrating that you don't intend to upset the dominant hierarchy.
>>
>>62080647
I've made some shitty programs before, and even tried *trigger warning* to make some games , but I've always just identified what I wanted to implement(say, Pathfinding) , searched around the internet for solutions and learn about them (say, A* and Dijkstra) and stuck them with duct tape in my project.

I just have no idea what sort of things are asked of you in a professional environment. They obviously won't let me use stack exchange if I don't remember how to implement quick sorting or stuff.
>>
Did we ever figure out averaging two ints in C?
>>
>>62080708
nothing wrong with games, that's where all start, but only the best manage to stay
>>
>>62080575
new folder 1, new folder 2, .... etc (each folder needs 25 photos in it)
IMG_XXXX.JPF is the file name pattern.
>>
>>62080761
 average = (int + int) / 2
>>
>>62080761
yes, in 50% of the use cases
>>
>>62080761
Nope
>>
>never programmed before
>starting comp sci on monday
alri
>>
>>62080803
>>62080761
I'm retarded desu, more like 66%
>>
>>62079017
Why start with Go?
>>
File: Alonzo_Church.jpg (39KB, 235x314px) Image search: [Google]
Alonzo_Church.jpg
39KB, 235x314px
>>62080826
>thinking comp sci is programming
well it probably is nowadays
>>
>>62080826
us or yurop?
>>
>>62080950
poorop
>>
>>62080934
speaking of the venerable dr church, can anyone point a brainlet at somewhere that has like, actual examples and worked problems/solutions involving (simple, typed, ...) lambda calculus? I'd like to play around with it but all intros I've seen are either much too complicated for me to skim or just stop at some basic definitions. I could put in the legwork and work from the definitions but, well, I don't want to.
>>
>>62080826
lol pussy, it's as easy as anything else, university is almost as brain dead as high school
>>
>>62080996
im a brainlet
>>
>>62081001
https://www.youtube.com/watch?v=3x8mSr8ZPGQ
Here's some background info you'll want before you start in CS
>>
File: frag.png (14KB, 266x214px) Image search: [Google]
frag.png
14KB, 266x214px
>>62078848
In bitwise operations, how would I convert a 32bit in into 4 8bit ints?
>>
>>62080980
>poorop
what?
>>
>>62081066
shift by four for different times
>>
>>62081099
sorry, it's the autism spilling

poor europe
>>
>>62081134
then brush up on your mats skills desu
>>
what does /dpt/ think of enterprise integration patterns??
>>
>>62081113
I don't understand.

16bit to 8bit is:
x & 255;
x >> 8;

What do you mean by 4?
>>
>>62081066
int a[4] = {0};
for (int i = 0, i < 4, i++) {
a[i] = ((x & (0x000000ff << 8*i)) >> 8*i);
}
>>
>>62081443
can also be written as
int a[4] = {0};
int temp = x;
for (int i = 0, i < 4, i++) {
a[i] = temp & 0xff;
temp = temp >> 8
}
>>
#include <stdio.h>
int main(void)
{
int dogs;

printf ("How many dogs do you have?\n");
scanf("&d", &dogs);
printf("So you have &d dog(s)!\n", dogs);

return 0;
}


Is something wrong with it? It doesn't give me the amount of dogs I type in
>>
>>62081468
>"&d"
>>
>>62081468
dereference dogs

*dogs
>>
>>62081468
>&d
use %i
>>
>>62081481
kek what
>>
>>62081468
% not &
>>
>>62081488
>inputting raw numbers
>not inputting the address of the data you want
>>
Is there a good general algorithm for finding the smallest subsets which only appear in a single set from a list of sets?

e.g. with four sets:
A = {1,2,3,4,5,6}
B = {2,3,5,6,7}
C = {1,3,4,5,6,7}
D = {2,3,5,7}

The smallest subsets which appear only in A are {1,2} and {2,4}, the smallest subset which appears only in B is {2,6,7}, the smallest subsets which appear only in C are {1,7} and {4,7}, and D has no such subsets.
>>
I want to die
>>
File: 1499678753591.png (192KB, 896x481px) Image search: [Google]
1499678753591.png
192KB, 896x481px
Is this a good book for this specific subject?
>>
>>62081480
>>62081481
>>62081487
>>62081490
Whoops

Thanks
>>
>>62081557
>mentioning both C and C++
It's shit and focuses only on C++.
>>
>>62081530
your question makes no sense
>>
>>62081530
oh nevermind I think I see it now. I suppose it would start with finding all the subsets that only appear in one of those sets, and then selecting the smallest ones.

for A there is {1,2,3,4,5,6} which appears in no others, but there is a smaller (possibly more but we don't care), {1,2,3,4,5}, but there is a smaller, {1,2,3,4}.

Hmm I don't know, interesting problem.
>>
File: 1503411346129.jpg (283KB, 1000x1000px) Image search: [Google]
1503411346129.jpg
283KB, 1000x1000px
>can't fopen a file on windows unless it already exists
Gay.
>>
>>62081620
>possibly more but we don't care
but we would care exactly when we find no other smallers, since we'd be interested in sets of the same size we're currently looking at

I'm curious about solutions to this now. mostly because I'm avoiding my own work...
>>
I actually name my C++ source files .C and header files .H

Just to prevent pajeet wincucks from trying anything
>>
>>62081698
Apperently it prevents VS Kode cucks as well. How brilliant
>>
>>62081530
This is probably reducible to the set cover problem or some other NP-complete set problem. Combinatorics is a wellspring of disappointment.
>>
>>62081698
>file extensions mattering at all
It's been a long time since I used winblows
>>
File: solarized-light.png (390KB, 1680x963px) Image search: [Google]
solarized-light.png
390KB, 1680x963px
solarized light is the best theme
>>
>>62081698
>I actually name my C++ source files .C and header files .H
>Just to prevent literally anyone from ever wanting to use my software on any platform
ftfy
>>
>>62081760
have fun getting cancer
>>
>>62081774
w-what do you mean anon
>>
>>62081760
>low contrast theme
enjoy your eye cacer
>>
>>62081788
stop it my eyes are fine
>>
>>62081807
not for long
>>
>>62081807
educate yourself man, you'll get cancer using that theme.
>>
>>62081788
>Implying high contrast isn't what fucks up your eyes
>>
File: 1496688749826.jpg (993KB, 1182x1581px) Image search: [Google]
1496688749826.jpg
993KB, 1182x1581px
>>62081758
It's not that the file extensions are preventing it, windows is not case sensitive. Which means, windows can't tell the difference between main.C and main.c file

Plus I use C++11 constructs. There is NO WAY wincucks can even touch my source

>>62081764
I don't want pajeets to implant "telemetry" to my program
>>
>>62081443
But ints are 24 bits wide, anon
>>
>>62081807
for now
>>
>>62081570
Any advice for what else to use?
>>
>>62081809
>>62081813
>>62081840
okay fine what light theme should i use then

i have pretty bad astigmatism so dark themes make my eyes hurt
>>
>>62081814


However, most studies have shown that dark characters on a light background are superior to light characters on a dark background (when the refresh rate is fairly high). For example, Bauer and Cavonius (1980) found that participants were 26% more accurate in reading text when they read it with dark characters on a light background.

Reference: Bauer, D., & Cavonius, C., R. (1980). Improving the legibility of visual display units through contrast reversal. In E. Grandjean, E. Vigliani (Eds.), Ergonomic Aspects of Visual Display Terminals (pp. 137-142). London: Taylor & Francis
>>
>>62081821
kek
>>
>>62081863
Nothing you cited contradicts what I said. Low contrast themes exist in both black on white and white on black versions.
>>
>>62081858
if dark themes already hurt your eyes, it's too late man. just take a break and stop looking at screens. also visit doctor
>>
>>62081831
#define DESIRED_OUTPUT_SIZE_BITS 8
#define MAGIC ((2 << (DESIRED_OUTPUT_SIZE_BITS+1))-1)
int const n = sizeof(int)*8/DESIRED_OUTPUT_SIZE_BITS
int a[n] = {0};
for (int i = 0, i < n, i++) {
a[i] = ((x & (MAGIC << DESIRED_OUTPUT_SIZE_BITS*i)) >> DESIRED_OUTPUT_SIZE_BITS*i);
}
>>
>>62081821
>I don't want pajeets to implant "telemetry" to my program
I know. My point is that's not all you're preventing. You're effectively preventing anyone, even Linux users, from giving enough of a shit to implement anything at all in your program or even try to use it.
If a file says .c and doesn't compile with a vanilla C compiler, I'm reporting it as a bug and never touching that heap of garbage again.
If it says .c and I open it to find it contains C++11 code, the MOST I'll do to fix it is rename it to .cpp. I WON'T just accept the naming convention and proceed to play silly retarded filename games with an emotional manchild's project setup just to use or expand upon software I have no reason yet to suspect is anything but mediocre. That would be a tremendous waste of my time and energy.
>>
>>62081924
just use uint32_t

int is just a number from -(2^15) to 2^15-1
>>
>>62081858
i use the default white on black usually

>>62081881
>Small text sizes, low contrast, glare and refractive stress all resulted in increased activity in the orbicularis oculi, while convergence stress and accommodative stress did not, though after reading in these two conditions, readers are more likely to report headaches and pain coming from behind the eye. Stressors such as small text size and glare are reported as irritation on the front of the eye.
>In a follow-up study, we asked people to read with multiple levels of the small text sizes, low contrast, glare and refractive stress. While readers reported greater amounts of eye fatigue with the more difficult levels (smaller text, more glare etc), we found different reactions to stress from small text size and low contrast from that caused by glare and refraction.
>...
>Reading small text and low-contrast text resulted in constant orbicularis oculi activity across all levels, and the blink rate decreased even at the smallest text sizes and lowest contrast. For these two conditions, which do not benefit from squinting, readers appear to use the orbicularis oculi to avoid blinking. We know that blinking increases the likelihood of being forced to make a backwards eye movement, and it may be that poor text quality amplifies the need to avoid blinking. It is also possible that poor text quality increases cognitive demands for text recognition, which serve to reduce blink rate.
http://www.eyemagazine.com/opinion/article/eye-strain
>>
File: clion.png (67KB, 808x648px) Image search: [Google]
clion.png
67KB, 808x648px
>>62081858
>>
>>62081920
>>62081963
>>62081974
alright thanks changed to default black text on white theme and increased font size
>>
>>62081952
>even Linux users
huh? Any decent IDE/Editor in *nix knows .C and .H are well-established C++ naming convention. The only fags that suffer are microcucks (VS Studio and VS Code). I've had bitter experiences with wincucks before, they tend to use MSVS only library functions in their pull requests. It's just a technical way to tell them to fuck off
>>
>>62081963
These results are surprising to me, they contradict my anecdotal evidence. My eyes hurt way less when I reduce the contrast of my screens. It might be due to lower amounts of blue light being emitted by my screen when contrast is low though.
Still, it makes me want to try high contrast themes again, thank you for posting your sources anon.
>>
>>62082018
Oh. I misread. You meant literally .C and .H, not .c and .h capitalized for emphasis. Got it.
That being said, you can usually get away with using .h instead of .H unless you're using precompiled headers
>>
>>62081952
>name your files .c
>add empty .C files too
good luck extracting my project wincucks
>>
File: 235848-rubber.jpg (12KB, 506x640px) Image search: [Google]
235848-rubber.jpg
12KB, 506x640px
>>62082177
>work in c++
>name your source files .png
>name your output files .wav
>>
>>62082255
>include a file named "con"
>wincucks can't extract it
>>
Remember /dpt/
>those who seek to misle others are themselves misled
>>
How would I go about making my own type 1 hypervisor? I know C and python and have good amount of knowledge about UNIX and Sysadmin skills. Can someone guide me through? Time is not a constraint.
>>
>>62081974
What editor is this?
>>
Horribly bored so I'm writing useless shit in C... draw circle filled or not, line to, rectangle and draw text... worst part is sdl has these things implemented ... I use pixels for mine because I'm bored
>>
>>62082352
Read the filename
>>
>>62081698
>>62081714
>>62081758
>>62081821
>>62081764
>>62081869
>>62081952
>>62082018
>>62082177
>>62082255
>>62082294
Why would you want to prevent Windows users from using and modifying your software?
Windows is the standard operating system that people use.
You're locking out the majority.
>inb4 the majority is stupid
If you believe this, you're elitist
>>
>>62081858
decent light themes for emacs are

github-modern
flatui
iodine
material-light
mccarthy
gandalf
plan9
leuven

dark themes that don't have much contrast

darcula
creamsody
firebelly
jazz
lavender
brin

if you want to look at a theme before installing, search on google "emacsthemes.com THEME_NAME"

eg for github-modern https://emacsthemes.com/themes/github-modern-theme.html

the most download themes on MELPA: https://emacsthemes.com/charts/all-time.html
>>
>>62082373
>Why would you want to prevent Windows users from using and modifying your software?
>>62082018
>>
>>62082333
https://www.youtube.com/watch?v=9nHHky2ufDU
>>
>>62081698
What do you mean by prevent pajeet wincucks from doing anything? How can they do something? I'm a newfag
>>
>>62082368
Thanks. Why do you use that and not vim? Or is vim a meme?
>>
>>62082412
Vim is not a meme but different folks different folks.
>>
>>62082387
>I've had bitter experiences with wincucks before, they tend to use library functions that are only compatible with the OS everyone uses, and not with my niche tinkering OS.
??????
>>
>>62082373
Not windows users, VS users.
>>
>>62082412
I'm not the one who posted the image but
>is vim a meme?
Yes
>>
>>62082430
>a distinction
??????????????????????
>>
>>62082428
Woah there, are you actually using wankblows? Fuck man
>>
>>62082432
>i only use real text editors such as cat
>i only use real web browsers such as wget
>>
>>62082428
>Windows
>Everyone uses
Only pajeets use windows, and some low IQ dumb shits
>>
>>62082439
>mingw
>cygwin
>>
>>62082430
Actually, all windows users
>>
>>62082445
>not using Windows
get with the times grandpa
it's the standard OS of the modern age
>>
>>62082460
I don't even use Linux
>>
>>62082373
There is nothing wrong with elitism. Elitism is good.
>>
File: s.png (28KB, 1284x1020px) Image search: [Google]
s.png
28KB, 1284x1020px
>>62078848
>What are you working on, /g/?
Nothing but i am ready and await your commands
>>
>>62082428
If by everone you mean gaymer manchildren that can't tell the difference between the internet and internet explorer, yes. Not sure I want them anywhere near me
>>
>>62082483
>Windows
>Standard OS
lmao you mean Android, right?
>>
>>62082483
What do you mean? Do you ACTUALLY use windows? Not even in Virtualbox?

Fuck man
>>
>>62082483
>Doesn't even support POSIX
NOT PORTABLE
LITERALLY SHIT
>>
>>62082463
Windows is the OS everyone uses therefore if you call Windows users stupid it's elitism
>>62082471
Gross why would you want to emulate linux on windows literally just pick one (pick Windows though because it is standard)
>>
>>62082523
>Windows is the OS everyone uses
Not everyone is a programmer and I don't want shitty pajeets that calls themselves programmers near me. They stink like shit and can't even use CMake
>>
>>62082523
>Windows is the OS everyone uses
Source?
>>
>Windows
>``standard OS``
Where does this m*m* come from?
>>
>>62082549
probably from statistics
>>
>>62082489
objectively wrong
>>62082501
No I mean everyone
>>62082509
No i mean Windows
>>62082517
Why would I not, it's what everyone uses
>>62082521
You just don't get it do you?
Windows is standard and the majority.
If Windows isn't POSIX compliant, that doesn't mean Windows doesn't support POSIX, it means POSIX doesn't support Windows. It's POSIX that's not portable here. And by extent anything that IS compliant.
>>
>>62082538
Windows is also standard for programmers
>>62082541
Go outside once in awhile and look around
>>
File: 1482754490385.png (227KB, 1280x720px) Image search: [Google]
1482754490385.png
227KB, 1280x720px
>>62082557
>probably from statistics
huh?
>>
>>62082579
>Windows is also standard for programmers
*nix programmers outnumber wincucks by a very large margin
>>
>>62082579
>Go outside once in awhile and look around
Opinion not changed at all
>>
>>62082565
No one uses windows, the screenshots you see are fake, emulated from virtualbox and shit. Windows is not usable.
>>
>>62081530
your problem looks dumb, probably an XY problem
>>
>>62082584
Yes, if you look at that graph you can see that Windows has the greatest market share.
>>
>>62082565
>No i mean Windows
Android is more popular than windows
>>
>>62082591
>>62082594
>>62082600
literally all lies / bullshit
>>
>>62082549
It's a continuation of the standard established by the (IBM) PC standard introduced in the 1980s and still reigning today. The line of Microsoft operating systems has ==>LITERALLY<== been the standard for PCs from day one and remains such today.

>>62082584
>Android
>PC
>>
>>62082604
Not any more. On top of android there are Linux servers and other embedded devices.
>>
>>62082609
No one develops for android it's dead in the water
>>
>>62082613
>>Android
>>PC
What do you mean? Android IS the standard
>>
>>62082621
>Not any more
So you posted a false graph?
>>
>>62082626
>No one develops for android it's dead in the water
Actually no one develops in windows, it's dead in the water
>>
>>62082610
Sorry to break it to you, rajesh
>>
>>62082373
>If you believe this, you're elitist
so?

>>62082412
I posted the picture, it's the best c/c++ ide on linux desu
and I'm a student so it's free
>>
>>62082602
>probably an XY problem
???

I've described the general problem and provided a trivial example with a trivial result.
>>
>>62082628
How is that supposed to be ``false``? Are you slow?
>>
File: idc-2017-q1.png (189KB, 770x416px) Image search: [Google]
idc-2017-q1.png
189KB, 770x416px
>>62082626
mhm
>>
>>62082565
Android itself crossed Windows marketshare lmao
>>
>>62082660
Oh it's you, the one that always makes these awful fucking low grade posts.

If it's not false then clearly Windows has the most market share, can't you read a graph?
>>
>>62082656
l2google

https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem
>>
>>62082677
>If it's not false then clearly Windows has the most market share
Are you actually trying to be retarded? Android, by itself has crossed the windows market share mark. Furthere more, there are Linux servers and other platforms that add up to the difference.
>>
hello guys it's me the wincuck who started this current shitstorm
i actually exclusively use linux
i have memed you all :^)
>>
>>62082565
>it's what everyone uses
No programmer uses windows, anon. You hae been baited all these time
>>
With 20 single hero levels I'm approaching the fun limit. Increasing the single hero level count further would decrease average level fun units below satisfactory level. Time to move on to co-op levels, to introduce a new element to the game and thus increase the fun factor.
>>
>>62082579
Actually, *nix is a more popular platform than windows.
>>
>>62082682
Sounds like a concept made up by engineering brainlets with no grasp of algorithmics as a mathematical discipline who can't imagine trying to deal with abstract problems.
>>
File: 1496880688113.png (2MB, 1151x4907px) Image search: [Google]
1496880688113.png
2MB, 1151x4907px
>>62082483
lol gradpa stop trying to fit in. We /android/ now. PCs are for sweating neckbears :^^)
>>
>>62082763
*Or maybe it's just your initial post making it sound like that.
>>
Anyone else hate UML modelling? It all seems so arbitrary
>>
>There are people on /g/ that ACTUALLY, GENUINELY run windows OUTSIDE Virtualbox/KVM

Fuck man
>>
I honestly can't imagine developing in a win environment. It sounds like absolute fucking misery. How is it even done? Do you just suffer through trying to get any library you want to work or just assume you can't use any useful library or what? even ubuntu is better, looks and acts "pretty much the same" to the average pleb, and it's just apt-get <library> wow there are good to go.

The last time I had to use windows for something was quite a long time ago, but I couldn't figure out how to use ftp on it. Had to literally find some bullshit ftp software that wanted me to look at ads or pay for it, from some rando company with who knows what in their closed source software...

Just an absolute nightmare, why would anyone do that?
>>
>>62082763
kill yourself mathfag, good luck getting anyone to spoonfeed you on a useless theory-only problem, you wouldn't appreciate the answer anyway
>>
>>62082802
literally nothing wrong with windows
>>
>>62082813
Seems like I struck a nerve.

Have fun rehashing the same foobar-tier problems over-and-over I guess.
>>
File: 1497818815482.png (17KB, 684x342px) Image search: [Google]
1497818815482.png
17KB, 684x342px
>>62082816
If that lets you sleep at night, anon.

Fuck man
>>
>>62082373
windows users don't program
>>
>>62082841
have fun begging virgin autists on the internet to do your research for you
>>
>>62082763
>engineering brainlets
Here we are, brains the size of mountains, calling one another names.

Ps. your a fuck tard
>>
>>62082373
But the majority IS stupid. Otherwise there would be no "smart" person. Are you dumb?
Actually don't even bother replying, I already know the answer.
>>
>>62082812
Oh nice work tuxtard. Now you've done it. Guess what, you'll never use a Windows product again. My dad works at MicroSoft and as we speak, he's using MS Azure and the MS R compiler to analize your speech patterns.
*slow clap*
So there ya go, problem solved, soon you can never set a finger on another MS product. Congrats kiddo, you brought this on yourself.
>>
>>62080841
Because i have a preference for C like syntax. It's a very simple language and my experiences with it from an environment perspective have been good. Also Rob Pike thinks it's good for programmers who don't know much.

I also like it in its limitations. More people should recognize the need for a bridge language. Scratch - > Go - > Sepples/Java/Whatever is something I belive could be very effective.
>>
>>62082845
I lost all the remaining shred of respect I had for microsoft for this very particular thing
>>
go is a programming language for system programming, rust is a programming language for system-level programming
>>
>>62082854
>begging
I'm just sharing an interesting problem while I work on it myself, shame you're too dumb to appreciate it or ignore it.

>>62082875
Call me what you want, but don't call problems dumb just because you're too dumb to understand what makes them interesting.
>>
Ok, what OS is recommended and why?
>>
>>62082908
Plan9
Nice color scheme
>>
>>62082900
this is a programming thread, if you're not trying to solve a practical problem you should at least say so and not be a snarky cunt when people try to help
>>
>>62082812
I'm sure it depends on the language you use. Rust and Go have pretty modern package managers, I'm sure adding dependencies to their libraries is quite easy even on windows.

> I couldn't figure out how to use ftp on it
I'm not 100% sure but I think windows has an ftp client by default (or maybe it comes packaged with git?). Anyway, if you can't manage to install clonezilla by yourself you must be retarded.

t. Gentoo user
>>
>>62082812
Many kode artisans use their favourite M$ branded Java spin-off in that Operating service
>>
Is it true that C++ is mostly used as a legacy language nowadays and will die soon, or is that a /g/ meme?
>>
>>62082845
What's the story here?
>>
>>62082957
Rust will take at least 10 more years to replace C++, IFF it eases up on its pedantic security rituals
>>
>>62082962
>He doesn't know
It's not just Windows 10 that has telemetry issues -- Microsoft has done the same with Visual Studio 2015 C++ compiler
https://betanews.com/2016/06/10/microsoft-visual-studio-2015-c-compiler-telemetry/
>>
guys quit being so stingy with your data :)
don't be so paranoid, lol
just relax man it's only telemetry
>>
>>62082928
>if you're not trying to solve a practical problem
It could be practical but that doesn't make a difference to the problem.I know even soft engineers aren't dumb enough to reason e.g. about sorting algorithms without getting wrapped up with the irrelevant issues of what IMPORTANT PRACTICAL REAL WORLD PROBLEM the sort will be addressing.

>>62082928
Calling a problem dumb is not trying to help.
>>
>>62081530
Assuming this is an ordered problem (you'd cancel subsets going from A->D) you can create a datastructure describing the sets more abstractly. Like how every set that shouldn't collide with A would require numbers <1 or >6.
If a set shouldn't collide with AuB it requires the restrictions A have put and <2, >3 <5, or >7.

As you keep going you can amass these rules and quickly early out.
Of course you can also collapse these rules. Once you cover a range of 1-7 in one of these you'll just use that as a rule instead of the earlier ones.
>>
>>62082845
it's because of telemetry that window is now good.
>>
File: 1503373308070.png (6KB, 321x321px) Image search: [Google]
1503373308070.png
6KB, 321x321px
>>62083006
>these people browse /g/
>>
>>62083015
Also this looks like a machine learning problem where you're actually trying to maximize overfitting and then trying to minimize the resulting decision tree by pruning.
>>
>>62083019
>window is now good.
haha, nice trolle I almost laughed
>>
>>62082962
Microsoft pushed telemetry into applications in VS 2015 by default (allegedly by mistake).
It was quickly discovered and they backed off.
>>
File: 1501346173183.png (784KB, 899x899px) Image search: [Google]
1501346173183.png
784KB, 899x899px
>>62083006
>>
>>62082970
>rust
>replacing anything
dumb delusional poster.
>>
File: 1472600052422.png (387KB, 2560x1440px) Image search: [Google]
1472600052422.png
387KB, 2560x1440px
>>62083043
>by mistake
>>
>>62083031
Yeah that's a way to put it if you wish to overcomplicate things. I wouldn't describe it like that at all.
>>
Do you ever need to solve differential equations in programming(unless you are programming something related to them)?
>>
>>62083012
>It could be practical but that doesn't make a difference to the problem
yes it does, if it was a real problem there would most likely be a better way to solve it, kill yourself and fuck off back to /sci/
>>
>>62083061
To be fair it's not like the telemetry isn't an optional feature. I don't know what their 'bug' looked like but this is a very clumsy way to sneak it in if it was intentional.
>>
>>62083087
>differential equations
i am a long time programmer and i don't even know what a differential equation. kek.
>>
>>62082986
>Our intent was benign
>We haven’t actually gone through this full exercise with any customers to date though
Did they expect people to actually fall for those?
I think it's an insult towards the users to think that they are this much dumb and gullible
>>
>>62083087
No. You don't need any non-logic math for programming without a specific domain.
A lot of math can make it easier though. You really should know differential equations though. It's high-school math. People expect you to know it.
>>62083118
Same goes for you mister.
>>
File: 6fS3KCp.png (24KB, 707x369px) Image search: [Google]
6fS3KCp.png
24KB, 707x369px
>use C++ they said

Any idea how to fix this? It's a clean install of mingw on a clean install of windows 10. Please send help.
>>
>>62083115
Bullshit, they got found out and quickly integrated the botnet deeper into the compiler so no one can see
>>
>>62083118
You never did calculus?
>>62083135
I see, expects as much
>>
>>62078848
>Trying to find out HP totals for mobs in fortnite
>Get tired of manually figuring out what total damage amounts I can do with various weapons
>Start making a custom subset sum calculator in C
>MSVS can't declare variable inside for(;;)
>Fuck that, try to set up emacs/gcc
>This is stupid, let's just install linux on a VM
>Research and ask, decide to try Debian
>Try to install, VMware Player 6 is so outdated doesn't support Debian 9.
>I might be able to update player to 7, then ???, then current
>Fuck that, might as well uninstall install newest.
>If I'm doing that, might as well look at alternatives
>Decide to try out VirtualBox

Have you figured out that I have ADD yet?
>>
>>62083146
>windows
Found your problem
>>
>>62083158
OK but aside from that. Surely there must be some people who program in C++ on windows.
>>
>>62083087
obviously no. When would you ever be working over continuous structures? Difference equations, closely related, well maybe. Though also there's deep connections between DE and linear algebra. But unless you're doing research or some really interesting programming, none of that will ever matter to you.

Also DE comes up with electronics, so if you ever get into the circuit side of hardware, it might be of use or interest.
>>
Last time I checked MSVSC can't even support the C99 standard lmao

I guess they have been busy planting the spyware into the compiler
>>
>>62083158
Stop this fucking meme.
Meme OS have 20x problems because most of them are unsupported pieces of shit
>>
>>62083146
Sorry amigo. I use visual studio. It's the only reasonable way to do C++ on windows.
>>
>>62082710
Not on that graph it hasn't
>>
>>62083151
>You never did calculus?
no (stopped going to school at 16)
>>
>>62083187
Are you literally crying right now hahaha
Seems like you POS spyware OS is forcing you to use the spyware compiler
>>
>>62083087
Possibly, if analog computing makes a comeback
https://www.youtube.com/watch?v=3J6a_kwBMfM
>>
>>62083087
just plug it in to mathematica
>>
>>62083189
I wanted to mess around with OpenGL stuff. How difficult is it to get glfw/glad to play nice with MSVC?
>>
>>62083187
At least it can compile C++ porograms LMAO
>>
File: 1477671944349.png (38KB, 882x619px) Image search: [Google]
1477671944349.png
38KB, 882x619px
>>62083189
Fuck man you can ACTUALLY use C++ in windows these days?

Fuck man this is amazing.
>>
>>62083152
You're just an average linux user.

t. average linux user
>>
>>62083244
>opengl
obsolete. now it's all about webgl
https://thebookofshaders.com/
>>
>>62083280
What the fuck is that font and why does () form proper circle?
>>
>>62083288
this is bait
>>
Anyone have any insight into how much (technical) project managers get paid? (I understand these values will vary depending on region, etc)
>>
>>62083146
Go find a mingw forum to help you.
>>62083244
I've done it. It was a bit of a hassle. But mostly it was because I didn't understand glad and I believe I also forgot to call one of the init functions (and C++ being notorious for allowing libraries to provide helpful error messages didn't help).
>>
>>62083313
One of the many fonts I can chose from
>>
>>62083288
software as platform was mistake
>>
>>62083288
It's a pretty good book.
>>
>>62083318
no this is the best introduction to opengl shader. by far.
>>62083342
yes
>>
>>62083321
Look at something like payscale.
>>
>>62083189
modern eclipse is perfectly fine shill
>>
>>62080258
>>62080438

Of course, for everyday things like games and such hardware acceleration is a must. But hardware rendering is also unreliable, different GPUs do things slightly differently and your rendering ends up being different.

In contrast, with software renderers, you know that you'll always get the same exact result no matter where you run it from.
>>
File: code.png (123KB, 751x364px) Image search: [Google]
code.png
123KB, 751x364px
Should my text editor have the ability to send text to a printer?
>>
>>62083354

Yeah I just remembered Glassdoor as well, looks like they get paid almost the same amount of money as I do right now as an intermediate dev.
>>
>>62083353
>no this is the best introduction to opengl shader. by far.
in real opengl you don't do everything in the fragment shader ffs
>>
>>62083365
lmao
>>
>>62083360
What makes you think GPUs have lower error rates than CPUs?
>>
>starting to dev wearing diapers
productivity through the roof, this changes everything
>>
>>
>>62083409
explain
>>
>>62083399
our entire team watched episode of broad city before we begin our work day
never been so productive in my life
https://www.youtube.com/watch?v=3A1xyy1D0Yk

when some of the guys yell YAS QUEEN i know they managed to solve some serious problem
>>
>>62083464
https://www.youtube.com/watch?v=lJgM4_C3gvE
>>
you're in charge of hiring
your best candidate, completely beyond your expectations and asking below what they're worth, has told you that xhe wears nappies that will need to be changed 2-4 times a day.

do you hire? or is the software industry still too backwards to accept littles in the workplace?
>>
>>62083544
>say this jokingly now
>a years time google has a dedicated nappy changer team
>2018 blizzard entertainment looking to hire more nappies, all of their games have diedie skins
>>
>>62083357
>eclipse
So you use mingw then? Help out anon.
>>
>>62083544
Depends on the reason he wears them. Chron disease? Hired. Lazyness? Not hired.
>>
>>62083577
how about because xhe identifies as a little, shit-lord?
>>
>>62083425
while(IsBase64StringIfSoDecode(test))
>>
>>62083570
no i use cygwin
>>
>>62083544
>don't tell anyone
>get hired
>show up to work in full babby gear
>they can't do shit or you'll go to the press and sue them for discrimination
>>
>>62083658
>document everything in babytalk
>>
>>62083658
>literally shit your pants in meetings
>no one can say anything about it
>>
>>62083692
>>62083658
>receive generous severance package after 1 month
>>
New thread: >>62083699
>>
>>62083544
I turn xher rhetoric against xher.
By suggesting that xher identity means xhe can't change xher own diapers, xhe is construing non-cishet gender identities and sexualities as a disability, which is offensive to xherself and also to other non-cishets.
No hire. Xhe has triggered me and therefore no hire.
>>
>>62083391
Not him but I think he's not talking about hardware errors, he's talking about determinism.

>>62083360
>different GPUs do things slightly differently and your rendering ends up being different.
Are you emulating floats? Because if you don't the results are going to be different on different CPUs. The FPU flags can be set by any interfereing process.
Thread posts: 316
Thread images: 31


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