[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: 326
Thread images: 32

File: 1483058239541.jpg (937KB, 2436x3248px) Image search: [Google]
1483058239541.jpg
937KB, 2436x3248px
Old Thread: >>60208700

What are you twerking on, /g/?
>>
First for Electron -- the one and only cross-platform GUI option in the 2010s.
>>
Hiring manager here. If you don't have a facebook account, I won't hire you because I assume you're autistic or anti-social
>>
nth for wasm
>>
>>60218660
Man I'm getting tired of how slow this sites loads for me. Using FF with 4chanX and Oneechan. Takes a good 10 seconds to get it's shit in gear. Turning off 4chanX and Oneechan makes it more tolerable, but it's still slow. What kind of compatible 4chan browsing engines are there for chrome?
>>
Why do big corps contribute to open source? What kind of capitalist dirty trick is that?
>>
>>60218707

Qt
GTK+
FLTK
WxWidgets
Java + Swing
Mono + System.Windows.Forms

Plenty of options.
>>
>>60218785
Because open source is superior to closed source. GNU/Linux has already won.
>>
those people who clone every single github repo out there without ever contributing anything.
are they some kind of spammers? what's their end goal?
>>
>>60218785
EEE
https://en.wikipedia.org/wiki/Embrace,_extend_and_extinguish
>>
>>60218785
>>60218884
from personal experience, most of the open source things we contributed to were things that were crucial to our infrastructure. openssl didn't have proper funding for a long time until all of these vulns that affected big corps started rolling out. They all see the value in contributing. Also, if something came under litigation that is also something allowing the company free use of something integral to its whole, it has a motive to defend the open source nature of that resource
>>
>>60218727

Well thank goodness I'm going into academia.
>>
>>60218707
first for coding your gui natively for every os: cocoa objective c for Apple, Windows.h API for Windows and xlib in Linux.
>>
>>60218727
I really hope this is just a meme about that douchebag recruiter that was here yesterday and he's not back.
>>
File: dlang_chan.jpg (139KB, 470x545px) Image search: [Google]
dlang_chan.jpg
139KB, 470x545px
Threadly reminder that dlang-chan is not dead, and she's super duper cute and fast! Say something nice about her, /dpt/!
>>
>>60219038
first for only using xlib everywhere
>>
>>60219045
I miss you
>>
>>60219038
>xlib in Linux
>Not writing exclusively for wayland
>>
>>60219038

Win32 and XLib are a pain to write in. Just use Qt for everything. It behaves natively on every platform.
>>
>>60219080
Whoa. I didn't even know that existed.
>>
>>60218852
I personally run up to each of my user's monitors and draw a GUI on their screen with my trusty marker.
>cross-platform
>consistent design
>ultra-lightweight--it's almost like it's not even there
>can choose any color that's in my marker bag
There are no downsides if you think about it!
>>
Daily reminder that literally anybody can learn to program nowadays. CPUs are so fast and RAM is so cheap and abundant now that all your autistic little "optimizations" literally aren't necessary at all.

Anything remotely impressive in computing is done by the engineers. They are the ones who make the CPUs as good as they are, and give them the instructions they need. Remember that cooel little "fast inverse square root" or whatever the fuck it was called "algorithm" that John Carmack or whatever his name was wrote? That can all be done in a single instruction now. ONE FUCKING CPU INSTRUCTION; thanks to the engineers designing the chips, the ones who are actually doing any work whatsoever. It's even more accurate too. In fact the accuracy of the former PALES in comparison to that of the latter.

Even elementary school kids are learning how to code now. IT'S THAT FUCKING SIMPLE. Let me make it crystal clear to you: A FUCKING SIX YEAR OLD KID COULD DO YOUR JOB, SOMETHING YOU SPENT FOUR PLUS YEARS AT UNIVERSITY LEARNING HOW TO DO WHILE EVERYONE ELSE HAD FUN AND GOT LAID.

HAHAAHAHAHAHAHAHAHAHAHAHAH


What am I even saying. """"Job."""" The fact that you people get paid to do what you do makes me fucking sick. You are worse than McDonalds employees. You are worse than shit cleaning sewermen.

KILL YOUR SELVES EVERY SINGLE ONE OF YOU
>>
>>60219132
It's the next "new thing" which is coming soon™.
But really, I do hope it can clean up that ancient shitshow which is X11.
>>
File: electron.jpg (68KB, 686x960px) Image search: [Google]
electron.jpg
68KB, 686x960px
>>60218707
pretty much

>>60218852
>c-cage lang - microsoft's retarded orphan i don't want to adopt
>jevva swing - didn't try, but rotting my brain with jevva so i could sketch a simple gui?..
>gtk - lgpl trash, no static build, pulls half of linux tree in dynamic build
>nuklear - buggy trash without docs
>qt - ugly lgpl trash from 1990, design from 1989
>imgui - ugly trash for virgins
>at this point they gonna advice me to git gud in opengl and die of hunger while i am at it
ah, if only c/c++ devs weren't busy sucking dick in dim homeless sheltercaves and rolled out proper gui solution. imagine the world we would live in

webtech-based gui seems the only sane choice, with additional benefit of making nice $ on webdev-related gigs
>>
>>60218785
>>60218996
>>>/r/abbit
>>
File: delet this.png (351KB, 500x376px) Image search: [Google]
delet this.png
351KB, 500x376px
>>60218707
DELET
THIS
>>
>>60219242
thread 404d m8, dont see anything.
>>
File: gareyjohnson.png (90KB, 473x351px) Image search: [Google]
gareyjohnson.png
90KB, 473x351px
>>60219191
Did you fail your class or what
>>
>>60219280
>replying to bait
I expect (somewhat) better from you, anon.
>>
>>60219240
That picture.
I'm sorry, I think you went by mistake on the wrong board. This is /g. What you are looking for is called /fit.

On another note, arnold looked buff af in that picture. Herkulez irl.
>>
>>60219240
feels like it, yeah. the price is v8 in your program

I guess, nothing stops anyone from writing critical parts in c++, wrapping it in .dll/.so and call dem functions from Electron.
>>
>>60219308
true ĂĽbermensch should be equally developed in both mind, body and spirit
>>
>>60219344
>the price is v8 in your program
i am thinking i could hire devs to rewrite gui later in case it would become unbearable, but i wouldn't sell anything without cute gui in the first place, so shipping bloat is ok, as long as i am in the green. normies wouldn't care
>>
>>60219499
>gui
>>>/g/wdg/
>>
>>60219526
>g
>>>/g/wdg/
we all know that real programmers only print shit into consoles, bonus points if you also read shit from consoles
>>
>>60219526
>>60219584
if you arent making your own hardware, you need to go.
>>
>>60219666
/thread
>>
File: lisp-dialects.png (39KB, 833x595px) Image search: [Google]
lisp-dialects.png
39KB, 833x595px
>>60218660
I really want to learn LISP but I have a problem deciding which dialect would be more useful.
>>
>>60219799
clojure desu
>>
>>60219799
define useful
>>
File: 1493580768286.png (1MB, 1223x880px) Image search: [Google]
1493580768286.png
1MB, 1223x880px
Everyone says I need to learn to code or I'll be unemployed.

I already know some R, and the next logical step in my line of work would be to learn Python.

But should I learn 2 or 3?
>>
>>60219834
C dominates the embedded field, COBOL dominates the business field, Java dominates the hipster consumer applications, PHP dominates servers backends, javascript dominates the frontends (also targeting hipster consumers), C++ for game engines, Lua for scripting in game engines. LISP probably does not target anything to a big extent that would translate to some kind of job, but it would be nice to start with one that could be translated to income. In the end it is just part of me wanting to have fun and LISP seems to deliver in that regard.
>>
>>60219799
Why did they need the left-hand column
>>
>>60219834
Not Haskell
>>
File: small_sepia_jimbo_400x400.jpg (20KB, 400x400px) Image search: [Google]
small_sepia_jimbo_400x400.jpg
20KB, 400x400px
>>60219950
because i envisioned it so
>>
>>60219799
>>60219814
>>60219936
/g/ is probably going to spam different dialects so clojure it is.
>>
File: Screenshot_2017-05-04_19-02-45.png (15KB, 220x57px) Image search: [Google]
Screenshot_2017-05-04_19-02-45.png
15KB, 220x57px
>>60219971
Checks out
>>
>>60219866
2
3 is a meme and still not widely used
>>
Working on implementing an infinite canvas, made up of pixels divided into chunks. Struggling with how to work out which pixel needs to be changed in the data structure once the screen has been offset. Any ideas?
>>
File: useless.png (5KB, 487x74px) Image search: [Google]
useless.png
5KB, 487x74px
>>60220045
>>
>>60219866
>>60220060
The whole memesnek 2 vs 3 thing is such a shitshow. How can a language fuck up so badly?
>>
>>60219971
Haskell with 1 additional language feature. Or Haskell with 1 less language feature.
>>
>>60219799
ΠML.
>>
>>60220060
>meme
>>>/v/
>>
>>60220340
>meme
>>>/b/
>>
File: compiling the pentagon.png (13KB, 261x289px) Image search: [Google]
compiling the pentagon.png
13KB, 261x289px
messing with other people's code
>>
File: pp.png (72KB, 1366x768px) Image search: [Google]
pp.png
72KB, 1366x768px
Wondering what direction should my OS take now
>Node.JS state machine
>exokernel OS with a POSIX compatible OS layer
>my own meme operating system with my own design (I'll still use ELF because I like it)
>>
>>60219240

>lgpl trash
There is absolutely nothing wrong with the LGPL.
>>
>>60220060
Cool, thanks man. That's what I heard but I wasn't sure because when I went to 'Learn Python the Hard Way' I noticed the guy was writing a guide for 3 so I wasn't sure if people were switching.

>>60220340
memesnek? Is that hacker slang? Should I try calling it memesnek when I start my PhD to impress my professors?
>>
@60220612
Being associated with the GPL implies being trash.
>>
>>60219044
Link?
>>
unsigned int hash(uint8_t *buf, int n)
{
unsigned int i, h;

for(i = 0, h = 0; i < n; i++)
h = (h * 31) + buf[i];
return(h);
}

There is a simple change that makes this hash algorithm run about twice as fast but that doesn't change the value it returns. Can you find it?
>>
There are no men on /dpt/, only women pretending to be men.
>>
>>60220651

But you can use it with proprietary applications. The only time you would need to release source code is if you modified the library.
>>
>>60220651
Allowing nonfree software to use your code is immoral.
>>
>>60220677
how simple a change
>>
>>60220644
There isn't a lot of difference in 2 vs 3. If you know 2, you can code in 3 in under 1/2 an hour once you learn the differences. It is a matter of preference at that point.
>>
@60220692
>But you can use it with proprietary applications.
So? That doesn't somehow make it not trash.
>>60220710
This is blatantly false.
>>
>>60220722
It's similar, but not the same as, to loop unrolling.
>>
trip test
>>
>>60220732
>code
Not programming.
Please discuss this in >>>/g/wdg/
>>
>>60220612
>There is absolutely nothing wrong with the LGPL
dynamic linking should die together with gnu nazism though
>>
>>60220755
Make me you faggot.
>>
@60220692
And to add to my previous post, trash being used with trash isn't a surprise.
>>
File: IMG_0107.png (2MB, 750x1334px) Image search: [Google]
IMG_0107.png
2MB, 750x1334px
There is a class called Person. It has a bunch of properties, including FirstName, LastName, DateOfBirth, etc.

The method GetPerson(id) returns a Person instance with all of its properties having a value. The intended purpose of this method is to get the full details of a person in the system.

The method GetPersons() returns a collection of Person instances with each Person object having only a subset of its properties having a value and all other properties being null. The intended purpose of the method is to get a summary of every person in the system.

The same type, Person, is being used for two different purposes. Is this a pattern? Or did the developer just want to minimize the code and not create a PersonSummary class containing only the properties set by GetPersons()?
>>
>>60220746
i += 2?
>>
>>60220735
>This is blatantly false.
https://www.gnu.org/licenses/why-not-lgpl.html
>>
>>60220775
>class
>>>/r/communism/
>>
>>60220101
Use a "torus buffer" (2D ring buffer).
>>
>>60220775
Developer probably separated the two for inheritance purposes. The more defined a method is, the easier it is to inherit.
>>
>>60220735

So let me get this straight: you can view the source code, make changes to the source code as long as you contribute them back, use the library in your own source code without paying a dime or having to fork over your own source code, and you some how think this is a problem?
>>
File: 1493754937916.jpg (32KB, 480x856px) Image search: [Google]
1493754937916.jpg
32KB, 480x856px
>>60220775
That belly button
>>
>>60220785
I already said it's not loop unrolling. Not in itself, anyway.
>>
>>60220809
There is no inheritance involved.

I'm just trying to figure out the reasoning for this design because you can get the same Person via both methods except one method won't set all the properties and you have no way of knowing this.
>>
>>60220792
I don't visit CIA-run websites.
@60220812
>and you some how think this is a problem
Yes, being trash is indeed a problem. Unless you for some retarded reason think it isn't.
And it's "somehow", not "some how".
>>
>>60220775
>>60220860
I've seen this before in various places, the most notable of which being the SDK for Azure Data Factory.

If you request your factory and all of the datasets, it gives you a "summary" of the datasets, whereas there's exposed properties that are left null/default.

You have to actually enumerate the datasets and then request the information for a particular dataset to see those values in action.

I have no idea what this is called, but it confused the dick out of me, too.
>>
>>60220755
I don't want to develop a website, I want to write codes that will help me interpret simple biological data.
>>
>>60220921
>I want to write codes
Codes aren't programming. Visit some other place to discuss them please.
>>
>>60220908
I really want to know what this is called.
>>
>>60220863
>I don't visit CIA-run websites.
Nice meme. Here's an alternative link: http://www.linuxtoday.com/developer/1999020100405OP
>>
>>60220921
try posting to >>>/wdg/
they like to dig in biological masses
>>
>>60220960
>"""meme"""
Sorry, I didn't read your post any further. Feel free to rewrite it in a non-retarded manner if you want me to read it.
>>
Just so you know my good lads

I literally call myself a code artisan irl and sometimes I start my day in the office with loud "We kode on Wednesdays!". Don't really know what my colleagues think about it tho
>>
>>60220644
Cool kids call Python memesnek or guidobasic, yes.
>>
>>60220960
>by Richard Stallman
Opinion discarded.
>>
>>60220983
off to >>>/g/wdg/ you go
>>
>>60220972
If you are concerned about deleterious effects that may result from visiting a website that you believe to be operated by the CIA, then you will be pleased to learn that I have located a reproduction of the article that I suggested to you on an alternative website. It is here: http://www.linuxtoday.com/developer/1999020100405OP
>>
>>60221022
Does your work allow you to use Python and JS?
>>
>>60221006
>linux
i won't open that link. you sure have intstalled a virus trap there. i am not that stupid
>>
>>60221002
But I am a C++ koder most of the time, sorry. A little bit of Memesnek and C hash here and there, nothing serious.
>>
>>60220863

I'm saying your reasoning for concluding that it is trash is flawed.
>>
>>60221006
Does this website in fact contain the words "by Richard Stallman" as suggested by an earlier post? If so, there is no reason for me to visit it. That alone would be enough to dismiss absolutely anything written there.
>http://www.linuxtoday.com/developer
This site itself is operated by the CIA, but I bet you already knew that.
>>
>>60221033
Yes.
>>
>>60221052
If you can make your work easier. Why not? I wish I could code in Python for a living. I program C# as my job.
>>
>>60221049
Ruby, my man! How have you been? How's my favorite manly blokey one-of-the-lads definitely-not-secretly-a-woman trip user?
>>
>>60221043
good fit for wdg actually, they only code in CSS - it's like C but with hitler, you would be king there
>>
>>60221063
I lean functional, I use Scala as Haskell to the extent possible, Python and JS would drive me mad.
>>
>>60221080
Then don't. You have a choice in language. Most of us don't. Use what makes you happy and what makes your job easier.
>>
>>60221080
>functional
>Scala, Haskell, Python, JS
What did she mean by this?
>>
>>60221091
My choice isn't completely free: I can pick Scala, Python, JS, or Java. Worried about future employability if I stick with Scala though.
>>
>>60221063
C# is basically the same as Python these days.

It's got 10 gallons of sugar on anything you'd want to do with it.
>>
>adult male
>not a polyglot multi paradigm software architect
>>
>>60221099
Pick what you like and learn what you want in your free time.
>>
nth for elm
>>
>>60221092
Python and JS aren't functional, so she would probably not enjoy using them.
>>
>>60221144
Is Elm any good? How does it compare to Purescript?
>>
So i havent done any java / c++ in 2 years and i need something to refresh my memory
commend me some books/tutorials etc
i need from
oop to design patterns
>>
i unironically like perl
>>
>>60220677
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

unsigned int hash_old(uint8_t *buf, int n)
{
unsigned int i, h;

for(i = 0, h = 0; i < n; i++)
h = (h * 31) + buf[i];
return(h);
}

unsigned int hash_new(uint8_t *buf, int n)
{
unsigned h = 0;

--n;

for (unsigned m = 1; n >= 0; --n, m *= 31) {
h += buf[n] * m;
}

return h;
}

int main()
{
static unsigned char buf[1048576];

srand(time(NULL));
for (int i = 0; i < sizeof buf; ++i)
buf[i] = rand();

clock_t s1 = clock();
unsigned h1 = hash_old(buf, sizeof buf);
clock_t e1 = clock();

clock_t s2 = clock();
unsigned h2 = hash_new(buf, sizeof buf);
clock_t e2 = clock();

printf("Old: %u in %f\n", h1, (float)(e1 - s1) / CLOCKS_PER_SEC);
printf("New: %u in %f\n", h2, (float)(e2 - s2) / CLOCKS_PER_SEC);
}

This is somewhat quicker, but not _quite_ twice as fast.
$ gcc test.c -O3
$ ./a.out
Old: 59153840 in 0.005097
New: 59153840 in 0.003345
>>
>>60220677
Is it to do with operating on more than one word at a time from the buffer?
>>
>>60221070

I'm alright. I've been worked to the bone with three projects, all of which require working with other people.
>>
>>60221340
>worked to the bone
Sorry to hear that. On the plus side, it must be an excellent way to lose unwanted weight, if you have (or had) any.
>>
>>60221308
Interesting solution, and similar to mine, but mine still wins in terms of improvement:
$ perf stat /tmp/test /tmp/debian-2gb
3492969135
[...]
3.523478290 seconds time elapsed

$ perf stat /tmp/test /tmp/debian-2gb 65536
3492969135
[...]
1.606949734 seconds time elapsed
>>
>>60221381
nice src, nerd
>>
>>60221381
For the record, this was my solution:
unsigned int hash2(uint8_t *buf, int n)
{
unsigned int i, h1, h2, t;

h1 = h2 = 0;
for(i = 0; i < n - 1; i += 2) {
h1 = (h1 * 961) + buf[i];
h2 = (h2 * 961) + buf[i + 1];
}
if(i < n) {
t = h2;
h2 = (h1 * 961) + buf[i];
h1 = t;
}
return((h1 * 31) + h2);
}

It does do loop unrolling, but it's not from the unrolling that performance is gained.
>>
>>60221406
You fucking said that unrolling wasn't required.
>>
>>60221425
It's not from the unrolling itself that the performance is gained.
>>
>>60221406
Is it from automatic parallelization?
>>
>>60221447
No, it's from dividing the buffer into two independent dependency streams, so that the CPU can execute the instructions in parallel. The compiler doesn't actually do any vectorization, but the dependency elimination increases IPC.
>>
>>60221467
>it's not automatic parallelization
>it's the CPU choosing to execute the instructions in parallel
>>
>>60221467
Yes it is, you idiot.
>>
>>60221499
I meant to reply to >>60221441, but the post still applies.
>>
>>60221441
Then show your performance without unrolling, shithead.
>>
>>60221499
>>60221484
When you said "automatic parallelization", I assumed you meant compiler vectorization.
>>
>>60221499
I did not make this rude post.
>>
>>60221505
But that's not true. If you just unroll the loop, you'll see improvements, but they are quite small, around 10% or so.
>>
>>60221506
I never said you couldn't do unrolling. I just said that unrolling wasn't the core thing.
>>
>>60221510
If I had meant compiler vectorization, I would have written compiler vectorization.
>>
>>60221536
It's not like "automatic parallelization" is an established term, so compiler vectorization was among the things it could have meant.
>>
fite now faggots
>>
What are interesting websites I can make besides a site that just hosts other projects for a resume?
>>
>>60221528
Then show your performance increase without unrolling.
>>
>>60221556
There was no reason for you to assume that that was what I meant by it and not some other form of automatic parallelization, though.
>>
>>60221366

You can't lose weight sitting in front of a computer all day. My work has been exhausting mentally, not so much physically.
>>
>>60221590
Obviously, the technique cannot be used without unrolling.
>>
>>60221600
I've done it.
You just have to get really distracted and forget about eating.
You'll end up eating as little as possible and you'll drop weight fast.
>>
>>60221618
ffffffffffffff

reeeeeeeeeeeeeeeeeeeeeeee

Or are you a bait post?

I don't even know, but I'm upset at the person who posted that challenge, because it's bullshit and unfair.
>>
>>60221618
Despite what that other anon thinks, I think it's a cool technique, anon.
>>
>>60221630
I'm sorry I rustled your jimmies, Anon.
>>
so i started java on codecademy
>oop
>set int age to be equal to dogAge from constructor
>this.age = dogAge; = error
>age = dogAge; =correct
>>
File: 1478793094927.jpg (195KB, 1080x1080px) Image search: [Google]
1478793094927.jpg
195KB, 1080x1080px
What's the SICP of logic programming? PROLOG is incredible.
>>
>>60218777
tried nightly + e10s multi?
>>
how useful is embedding a language inside another language? like ECL
>>
>>60221903
Nice fuck up dude
>>
>>60221890
where's this kawaii girl from?????
>>
>>60221924
>/g/ hates anime now
what happened
>>
>>60221927
Nyaa died
>>
File: 1492435488550.png (1MB, 1920x1090px) Image search: [Google]
1492435488550.png
1MB, 1920x1090px
>>60221947
and /g/ resurrected it
>>
>>60221406
Here is my solution then. There is no loop unrolling, I swear!
unsigned int hash_new(uint8_t *buf, int n)
{
typedef unsigned int v4 __attribute__ ((vector_size (16)));

v4 h, m;

int d = n & 0x3;
switch (d) {
case 0x0:
h = (v4){0, 0, 0, 0};
m = (v4){1, 31, 961, 29791};
break;
case 0x1:
h = (v4){buf[n-1], 0, 0, 0};
m = (v4){31, 961, 29791, 923521};
break;
case 0x2:
h = (v4){buf[n-1], buf[n-2]*31, 0, 0};
m = (v4){961, 29791, 923521, 28629151};
break;
case 0x3:
h = (v4){buf[n-1], buf[n-2]*31, buf[n-3]*961, 0};
m = (v4){29791, 923521, 28629151, 887503681};
break;
}

for (n -= d; n >= 4; n -= 4, m *= 923521) {
v4 v = {buf[n-1], buf[n-2], buf[n-3], buf[n-4]};
h += v * m;
}

return h[0] + h[1] + h[2] + h[3];
}

$ gcc test.c -g -O3 -march=native -mtune=native
$ ./a.out
Old: 1325202284 in 1.248014
New: 1325202284 in 0.571510
>>
>>60221968
Nah. /g/ made a zombie out of it. Nyaa is still dead. The magnets are held alive for now via voodoo magic. It will die sooner or later.
>>
>>60221991
Also, I should note that I kicked the input size up to 1GiB in that test.
>>
Good talk about profunctors: https://www.youtube.com/watch?v=OJtGECfksds
>>
>>60222153
t. phil
>>
>>60219191
you know the sqrt instruction you're talking about uses either that same technique possibly with the addition of lookup tables, right?
>>
File: 1493320130473.jpg (52KB, 614x598px) Image search: [Google]
1493320130473.jpg
52KB, 614x598px
AUTOMATED /pol/ TROLL DICTIONARY
-----------------------------------------------------------
1) Manually browse /pol/ to find posts that trigger the board
2) Scrape /pol/ using the manualy discovered phrases/words as analytical data and use post correlation to determine the most triggering words/phrases for /pol/tards
3) Silently spread the discovered info on /pol/'s least favorite websites
4) ????
5) profit
>>
>>60219191

>Daily reminder that literally anybody can learn to program nowadays.
The fact that many people can't even FizzBuzz attests to the fact that you are wrong here.

>CPUs are so fast and RAM is so cheap and abundant now that all your autistic little "optimizations" literally aren't necessary at all.
First off, you shouldn't act like your program is the only one running on the machine. Yes, your target machine may have 4, 8, or even 16 GB of RAM available. No, you don't get to keep the whole thing to yourself. Ideally, you shouldn't be using fuck tons of it anyways, because do you know what one thing hasn't been improving significantly over the years? The cost of an L3 cache miss.

>Remember that cooel little "fast inverse square root" or whatever the fuck it was called "algorithm" that John Carmack or whatever his name was wrote? That can all be done in a single instruction now. ONE FUCKING CPU INSTRUCTION
You can also do 64-bit integer division in one instruction... but it'll cost over 50 cycles. Number of instructions isn't important. Number of micro operations is a bit more important. Also, the use of dedicated CPU instructions for these sorts of tasks is a double edged sword. It might do what you want marginally faster, but you're going to have to intentionally dip down into assembly to do it, because your compiler likely won't emit it. As a result, you're going to have some seriously fucked portability.

>A FUCKING SIX YEAR OLD KID COULD DO YOUR JOB, SOMETHING YOU SPENT FOUR PLUS YEARS AT UNIVERSITY LEARNING HOW TO DO WHILE EVERYONE ELSE HAD FUN AND GOT LAID.
I knew how to program before I started university. I also got laid before I started university. And incidentally, a six year old could not do my job.

>KILL YOUR SELVES EVERY SINGLE ONE OF YOU
You first.
>>
>>60222671
Why are you responding to old bait? Get your shit together.
>>
>>60222671
Yes, this is clearly pasta
>>
>>60218660
Learning Haskell. How would I make my integer partitioning functions a bit better?

normalize :: [Int] -> Int -> [Int]
normalize xs l =
xs ++ [0 | x <- [1..(l - length xs)]]

partition :: Int -> Int -> [[Int]]
partition n k
| n < k = []
| n == k = [[1 | x <- [1..k]]]
| otherwise = [zipWith (+) [1 | x <- [1..k]] (normalize part k) | ki <- [1..(min remain k)], part <- partition remain ki]
where remain = n - k

partitions :: Int -> [[Int]]
partitions n = [x | k <- [1..n], x <- partition n k]
>>
>>60223032
Realized I could put [1 | x <- [1..k]] into the where clause. Anything else?
>>
>>60222733
>>60222745
I'm bored, and when I'm bored, I start talking about cache misses. Gimme a break.
>>
>>60223032
lol,
normalize xs l = take l (xs ++ [0,0..])
but I could do the same thing with the 1s. Also the first guard was unnecessary because min remain k would be negative in such a case, causing no output.
partition :: Int -> Int -> [[Int]]
partition n k
| n == k = [ones]
| otherwise = [ zipWith (+) ones (part ++ [0,0..]) | ki <- [1..(min remain k)], part <- partition remain ki ]
where
ones = (take k [1,1..])
remain = n - k
>>
File: retard.jpg (60KB, 640x512px) Image search: [Google]
retard.jpg
60KB, 640x512px
>>60222671
>tripfags are so retarded they reply to the most obvious bait
not as if this was news, but...
>>
>>60218660
How easy would it be to make an executable to refresh my clock via the internet?
>>
>>60223345
define executable, clock, and refresh
>>
Hey guys, I'm working on a genetic algorithm that generates random brainfuck programs that output a target output. It works great a lot of the time, but sometimes it gets stuck at local minima and refuses to change. I've tried a lot of different ways to increase the pressure for programs to change but it's not working. Any suggestions?
>>
File: file.png (6KB, 449x476px) Image search: [Google]
file.png
6KB, 449x476px
>>60223345
>>
>>60218707
If only Electron apps were not as slow
>>
>>60223350
Gosh, I'm sorry I wasn't even thinking.

I want to make a program to update my system clock (as in my date/time clock). For some reason my desktop loses internet connection frequently as well as my clock never staying up-to-date even if I set it manually and forgo the internet entirely.

>>60223360
Basically I want to be able to do this with a single click, preferably from my startbar.
>>
Web development is programming.
>>
>>60222636
use std::env;

fn main(){
let inputs :Vec<String> = env::args().skip(1).collect();
for input in inputs {
print!("((({}))) ", input);
}
println!();
}


$ redpill r8 my \/pol\/ speak simulator

(((r8))) (((my))) (((/pol/))) (((speak))) (((simulator)))
>>
>>60223390
nice meme friendo
>>
is luajit dead? I don't want to spend my time on dead stuff
>>
>>60223390
Backend web development is programming.
Frontend is design, and it's hardly even challenging anymore now that you just staple libraries together instead of writing anything.
>>
>>60223399
Shit
>>
>>60223416
>new version release on 2017-05-01
yup, looks dead to me
>>
>>60223399
I don't undersrand that meme. is it related to lisp?
>>
>>60223374
>I want to be able to do this with a single click

if you're using windows:
https://superuser.com/a/977989

>To do a force-update you need to run the following as administrator (or system):
>
SC START w32time task_started


you can save it in a .bat file but i think you need to search for the workaround to pin those to the taskbar
>>
>>60223427
05/jan or 01/may?
>>
>>60223441
yyyy-mm-dd
>>60223432
http://knowyourmeme.com/memes/echo
>>
File: 1492476070339.png (218KB, 500x500px) Image search: [Google]
1492476070339.png
218KB, 500x500px
>>60223449
>http://knowyourmeme.com
Get the fuck out of here.
>>
>>60223467
>Get the fuck out of here
Get the fuck out of here
>>
>>60219356
"Should" is the keyword here
>>
Why is it so hard to ask for a programming language to have packing of arrays with nonstandard element sizes?
>>
>>60223601
please clarify
>>
Is there a standard Python book like The C Programming Language is for C? Or a web tutorial?
>>
>>60223660
You don't need that cause Python is brain dead to learn.
>>
>>60223677
So one exists, but you won't tell me what it is?
>>
>>60223639
Bit packing, but of a type that is say 9 bits or 3.
>>
File: 7c973f1f69[1].png (15KB, 553x344px) Image search: [Google]
7c973f1f69[1].png
15KB, 553x344px
Im trying to read from a file that contains 1500 movie titles. What am I doing wrong?? Why wont it read the entire file?
  Scanner input = new Scanner (file);
while (input.hasNext()) {
String movieLine = input.nextLine();
counter++;

System.out.println(movieLine +counter);
}
>>
>>60223684
There is none cause Python is easy to learn. Any book will do.
>>
>>60223717
[spoiler] Ada ;) [/spoiler]
>>
>>60223811
>Spoiler tags on /g/
>>
>>60223722
don't you need your while loop to have a value to compare to?
something like
input.hasNext() == true

forgive me if I'm wrong but I'm not too familiar with Java, but I have had some experience.

I'm more curious as to why it isn't in a try/catch statement
>>
>>60223959
No, in many programming languages "if (something)" is equivalent to "if (something) == true"
>>
>>60223985
good to know. thank you.
>>
>>60220766

https://zedshaw.com/archive/why-i-algpl/

>being sucker
>>
How do I move pointer to a string (static array) inside a void function?

void foo(char** str) {
str++;
}

int main()
{
char s[4] = "bar";
foo(&s);
printf("%s\n", s); //should print "ar"
return 0;
}


main.c: In function 'main':                                                                                                                                                                 
main.c:10:5: warning: passing argument 1 of 'foo' from incompatible pointer type [enabled by default]
foo(&s);
^
main.c:3:6: note: expected 'char **' but argument is of type 'char (*)[4]'
void foo(char** str) {
^
>>
>>60224321
void foo(char** str) {
(*str)++;
}
>>
>>60224321
Array labels cannot be modified. You need to pass in a proper pointer. Also, you need to dereference the pointer inside the function so that you actually change the pointer in main.
#include <stdio.h>

void foo(char **str) {
(*str)++;
}

int main()
{
char s[4] = "bar";
char *ptr = s;
foo(&ptr);
printf("%s\n", ptr);
return 0;
}
>>
Redpill me on reversing strings with pointers:
void reverse_string(char *string)
{
char *b = string;
while(*b != '\0')
*++b;
--b;
while(*string != '\0')
{
*string = *b; // Never makes it past this line.
++string;
--b;
}

}
>>
>>60224384
Yes but I want to change the array. Do I really have to strcpy the whole thing when all I do is skip a couple initial characters?
>>
>>60223722
I've determined it has something to do with the fact that some title have accented characters like Ă© and such
>>
>>60224419
You can modify the array though the pointer. The array is just storage. You can treat 'ptr' in my example as the actual string.
>>
>>60218660
Just re-fucking-lieved that I passed all my courses this semester.
>>
File: Capture.png (6KB, 183x242px) Image search: [Google]
Capture.png
6KB, 183x242px
Imma fuckin genius
>>
>>60224408
>*string = *b;
You need to implement an actual swap. That's just assigning to the front from the back.
>>
>>60224488
Thank you
>>
who else /gsoc/
>>
>>60224529
>gsoc

What?
>>
>>60224576
The Google Summer of Code, often abbreviated to GSoC, is an international annual program, first held from May to August 2005,[1] in which Google awards stipends, which depends on place of university of the student,[2] to all students who successfully complete a requested free and open-source software coding project during the summer. The program is open to university students aged 18 or over.
>>
I finally was able to draw a triangle with vulkan, after 950 lines of code.
I don't understand half of it.
>>
>>60224627
I thought /g/ had merged with /soc/ or something of the sort

>>60224638
Does vulkan require you to bind yourself to windowing APIs like X11

I'm looking for a way to do hardware accelerated graphics on Linux while depending on nothing but the kernel itself
>>
>>60224627
oh yeah i forgot about that
it seems extremely unrewarding and only seems to favor autistic maths majors with it's unrealistic problemset and insane time complexity requirements to be able to solve the big datasets in 7 minutes.
>>
File: 1487975208976.jpg (37KB, 711x620px) Image search: [Google]
1487975208976.jpg
37KB, 711x620px
>>60224627
>The program is open to university students
Why does google hate NEETs?
>>
>>60224638
God damn NiBBa
>>
>>60224627
Oy vey
>>
>>60224638
Why use Vulkan
>>
>>60224655
maybe for the hardest project, most are pretty straightforward
>>
>>60224653
>I'm looking for a way to do hardware accelerated graphics on Linux while depending on nothing but the kernel itself
What exactly are you trying to do? I actually know a little bit about that stuff.
>while depending on nothing but the kernel itself
That reasonably is not going to happen, as it would be mired in shitloads of driver-specific details, but I know about doing it with only using a few low levels system libraries.
>>
>>60224699
because it is new.
and I didn't like opengl tutorials/books.
>>
>>60224734
>What exactly are you trying to do?

I'm just experimenting. Want to try rendering graphics without any other program running.

Imagine this: Linux boots up, then your program is started, and it somehow takes control of the screen. It draws graphics and and reads input via evdev.

No talking to X11 or anything. If programs talk to X11... Who does X11 talk to? Imagine the way video games used to work: they'd boot up and just start running, and they had control of the hardware. I want to make programs like that. No intermediaries/dependencies except for the kernel

>I know about doing it with only using a few low levels system libraries.

I've heard it can be done with kernel mode setting or whatever, but I just can't find any detailed docs. Apparently, I'm supposed to grab an OpenGL context using some Linux kernel APIs, and once I have the context everything works normally from there.
>>
>>60224782
>Imagine this: Linux boots up, then your program is started, and it somehow takes control of the screen. It draws graphics and and reads input via evdev.
That's exactly what a wayland compositor does, and I've been working on one lately. evdev is a bit outdated though; Libinput would be a better idea.
>I've heard it can be done with kernel mode setting or whatever, but I just can't find any detailed docs. Apparently, I'm supposed to grab an OpenGL context using some Linux kernel APIs, and once I have the context everything works normally from there.
I'll give a quick overview of all of the drivers involved. It's sort of an involved process, with lots of little details, but hopefully this can get you started.
DRM (direct rendering manager) is a linux subsystem for dealing with displays and whatnot. There is a userspace library called libdrm that is used to interface with it. This is where you configure the resolution (modes) and can get a basic framebuffer to draw shit in. https://github.com/dvdhrm/docs/tree/master/drm-howto is a pretty decent explanation on how to work with DRM.
After that, you can get a proper hardware accelerated framebuffer using GBM (Generic buffer manager), provided by Mesa. In order to get your OpenGL context, you use EGL, which will take a gbm_device. Then you can now draw shit to your monitors using OpenGL ES.
If you're using the proprietary Nvidia drivers, GBM won't work. You have to some extra fuckaround shit with EGL because Nvidia thinks they're too cool for GBM and are just assholes.
>>
>>60219240
>imgui
Anon it's the thing I wish UI devs would use so they can finally code their bullshit effectively. We shouldn't have more than one UI guy at our company but we have 5. It's a trivial task made hard by the tools.
>>
>>60223399
The collect is unnecessary:
use std::env;

fn main(){
let inputs = env::args().skip(1);
for input in inputs {
print!("((({}))) ", input);
}
println!();
}
>>
>>60224908
This is really cool man, thanks.

I'm not really a fan of Nvidia's drivers anyway. They make my X server extremely unstable for some reason. Best case there's tearing and glitches everywhere, worst case it just crashes. Nouveau solves that problem.
>>
File: 1493470972396.png (245KB, 560x484px) Image search: [Google]
1493470972396.png
245KB, 560x484px
Will C make me feel like a hacker? I've been using some other languages which I like, but I have come to the conclusion that they lack something.
And are there some relatively "intermediate-level" examples of creating languages in C?
>>
E-Mail history:

>Potential employer: We liked your resume a lot. Which day would suit your schedule best?
>Me: [Names day]
>Potential employer: That's okay with us. Would 9 am be a good starting point?
>Me: Yup, that's okay.

Potential employer doesn't answer anymore. Feels uncomfortable. From a formal point of view, I have all the info I need, but it feels like they've just forgotten about me.

Now what?
>>
>>60226285
Write an email with "please respond"
>>
>>60226285
What do you want them to write?
>>
>>60219799
>his lisp doesn't go all the way to the right
>>
File: primeBench.jpg (19KB, 694x107px) Image search: [Google]
primeBench.jpg
19KB, 694x107px
AS3 might be trash, but its actually quite decent for benchmarking, apart from the 15sec delay killswitch
>>
>>60226405
Code:
function isPrimeLong(n:int):Boolean
{
for(var i:int = 2; i <= n; i++) { if(n % i == 0) return false; } return true;
}

function isPrimeQuick(n:int):Boolean
{
var sqN:int = Math.round(Math.sqrt(n));
for(var i:int = 2; i <= sqN; i++) { if(n % i == 0) return false; } return true;
}

function eratos(limit:int):Array
{
var primes:Array = new Array();
if (limit >= 2) {
var sqrtlmt:int = int(Math.sqrt(limit) - 2);
var nums:Array = new Array(); // start with an empty Array...
for (var i:int = 2; i <= limit; i++) // and
nums.push(i); // only initialize the Array once...
for (var j:int = 0; j <= sqrtlmt; j++) {
var p:int = nums[j]
if (p)
for (var t:int = p * p - 2; t < nums.length; t += p)
nums[t] = 0;
}
for (var m:int = 0; m < nums.length; m++) {
var r:int = nums[m];
if (r)
primes.push(r);
}
}
return primes;
}

// Arrays & Primes
var primesQuick:Array = new Array(),
primesLong:Array = new Array(),
primesEratos:Array = new Array();
const PRIMES:uint = 100000; // for virtually any number above 100 000, disable Upto N

// UPTO N
var time = getTimer();
for(var j:int = 1; j < PRIMES; j++) if(isPrimeLong(j)) primesLong.push(j);
time = getTimer()-time;
trace("UPTO N\t\t\t::\tArray of primes below\t"+PRIMES+"\tin time:\t"+time+"\tms\n");

// UPTO SQRT(N)
time = getTimer();
for(var i:int = 1; i < PRIMES; i++) if(isPrimeQuick(i)) primesQuick.push(i);
time = getTimer()-time;
trace("UPTO SQRT(N)\t::\tArray of primes below\t"+PRIMES+"\tin time:\t"+time+"\t\tms\n");

// ERATOS
time = getTimer();
primesEratos = eratos(PRIMES);
time = getTimer()-time;
trace("ERATOS\t\t\t::\tArray of primes below\t"+PRIMES+"\tin time:\t"+time+"\t\tms");
>>
>>60226457
Whenever I see you posting that, it makes it seem like it's not actually that bad of a language, maybe akin to a less retarded javascript or something, but too bad it's doomed to a terrible, terrible platform.
>>
>>60226482
It really is just a better Javascript (Not that its good, just better)
But yeah, who tf makes flash shit anymore, apart from us? Like what the fuck
Also recently learned that C# was an alternative the instructor could've used, but just decided not too...
>>
>>60226302

that's very bad advice. i would be turning from someone who received an offer to someone who begs for one.

>>60226324

another formal confirmation that they'll be ready when i appear would suffice.
>>
(Java)
Can anyone help me with this? What I need to do is to create an instance of a class (this class will always be an implementation of RunnableTask) thanks to Task (where you can get the RunnableTask's name)
public void runTask(@RequestBody Task task)
throws ClassNotFoundException, IllegalAccessException, InstantiationException {
Class<?> runnableTask = Class.forName(task.getRunnableClassName());
Object taskTemp = runnableTask.newInstance();
taskTemp.setParameters(task.getTaskParameters());
taskTemp.runTask();
}

PS: The main problem is that the RunnableTask will be different if the Task I'm passing is different (with a different RunnableTask name --> A different constructor)

Don't know if I explained it well. Feel free to ask anything.
>>
Why is it cmake is making it more painful to compile than if I had to carve the makefile out in stone?

Every library is included in a different way, cmake can never find anything, so you have to hold the path up to its face even though everything lies in common default locations.
You basically have to implement your own warning system just to figure out why it always fails.
I get why so many people just dump everything into a single file, because cmake is a fucking pain to use.
>>
>>60220775
So getPerson() returns a completely different instance of Person than getPersons ()? That sounds stupid as fuck.
>>
>>60225111
what does collect() even do in the first place?
>>
>>60224653
as far as I know windows are not a necessity in vulkan, therefore you are not bound to a windowing API like your example X11
>>
>>60226963
Conumes all of the elements of some iterator and puts them into some collection (usually a Vec).
>>
>>60227107
>Conumes
Consumes*
>>
>>60225111
The inputs variable is also pointless:
fn main() {
for input in std::env::args().skip(1) {
print!("((({}))) ", input);
}
println!();
}


However, if you use an iterator chain, you can remove the final space:
fn main() {
println!("{}", std::env::args().skip(1).map(|input| format!("((({})))", input)).collect::<Vec<_>>().join(" "));
}
>>
>>60227260
The compiler would produce the same output anyway with the inputs variable.

Your second version does unnecessary heap allocation, as
format!
creates a new String which is then unnecessarily put into a new Vec. It's also less readable.
>>
>>60227260
>>60227380
Why the hell doesn't rust support .join() on iterators?
What a shitty memelang.
>>
>>60227380
Any use of
format!
will make inefficient use of allocations. If you want to avoid those, do this:
fn main() {
use std::io::{stdout, Write};

let stdout = stdout();
let mut out = stdout.lock();
let mut buf = String::new();
let mut first_word = true;
for input in std::env::args().skip(1) {
buf.clear();
buf.push_str("(((");
buf.push_str(&input);
buf.push_str(")))");
if first_word {
first_word = false;
} else {
buf.push(' ');
}
out.write_all(buf.as_bytes()).unwrap();
}
out.write(b"\n").unwrap();
}


>>60227429
Because of technical details concerning the implementation of the trait system. It might be fixed later.
>>
On Fridays we kode, right?
>>
>>60219866
3
2 is a meme and is being fazed out over time. if you had asked this question 5 years ago then >>60220060
would be right but learning 2 now sounds laughable.
>>
>>60220644
Don't listen to these faggots.

If you're a programmer and not a software engineer, go for 3.

Don't reference Python as having to with snakes, software engineer autists will shit on you. It has to with Monty Python, only morons and people tricking morons call it a snekity snek.
>>
>>60227586
>meme
>>>/v/
>>
>>60223352
Anyone have any idea?
>>
File: 1464442541884.png (1MB, 1357x1281px) Image search: [Google]
1464442541884.png
1MB, 1357x1281px
>>60227568
It's Wednesdays.
>>
>>60227604
I call it Guidobasic irl.

I should really invest in fedora at some point.
>>
What does this Python code do?

for i in xrange(len(t))
>>
>>60227742
Gives you the indexes of t in i so you can access the elements in t.
>>
It's gonna be very stupid, but why does this give syntax error:
import os, sys

for i in range(1, 33):
newpath = ((r'C:Users\Anon\Desktop\temp\No. %s' % (i))
if not os.path.exists(newpath): os.makedirs(newpath)
>>
>>60227766
It's followed by
for c in t[i:]


Is that a slice command above? Slice t from i onward, and then loop over its characters?
>>
>>60227742
>code
Not programming.
>>
File: so_cool.png (2MB, 1920x1080px) Image search: [Google]
so_cool.png
2MB, 1920x1080px
>>60227812
post yfw you will be never be so pedantic the word code will unironically trigger you
>>
>>60227804
Why don't you look up the syntax for python and then find the meaning yourself?
I will not go through some code one line per post.
Write some notes for yourself if you need to.
>>
File: pepe_teeth.gif (507KB, 172x172px) Image search: [Google]
pepe_teeth.gif
507KB, 172x172px
>>60227854
>>
>>60220775
I think I did this once and I regret it and it was mad stupid. It causes all kind of problems.
Use a repository.
>>
>>60227854
I like the word.
It makes it easier to spot retards.
It saves time.
>>
>>60227857
>all posts are requests for aid, personally addressed to me

lmaoing at ur life tbqh famalamaringdongding
>>
>>60219936
Scheme and Racket are fun.
>>
>>60227883
>all posts are requests for aid, personally addressed to me
Source?
>>
>>60227634
>she needs to join our startup
>lets invite her
gets me everytime
>>
>>60220644
IIRC the author of Learn Python The Hard Way claimed that Pytohn 3 is not turing-complete, so I'd stay away from his stuff if I were you.
>>
File: hqdefault[1].jpg (18KB, 480x360px) Image search: [Google]
hqdefault[1].jpg
18KB, 480x360px
>>60227854
>>
File: smoking_cool_skeleton.jpg (27KB, 720x540px) Image search: [Google]
smoking_cool_skeleton.jpg
27KB, 720x540px
>>60227854
feels breddy good
>>
>>60221621
This. Have not done it, but true.
>>
>>60221877
Yes, because age is an int. Actually specifying that makes the statement a declaration (with an initialiser) rather than an assignment expression, though.
>>
>>60221890
This is a great question.
>>
>>60227780
What os? Windows?
then C:/Users/Anon......etc
>>
I've been avoiding learning OOP like it's the plague. Everytime I try to implement it into something I'm working on, I end up fucking up and having to rewrite shit
>>
>>60228257
try smalltalk
>>
>>60228161
gives the same error:
    if not os.path.exists(newpath): os.makedirs(newpath)
^
SyntaxError: invalid syntax
>>
>>60228286
Why would he try OOP garbage?
>>
Reminder

Historically, languages designed for other people to use have been bad: Cobol, PL/I, Pascal, Ada, C++. The good languages have been those that were designed for their own creators: C, Perl, Smalltalk, Lisp. – Paul Graham
>>
Is it normal that I sometimes don't understand what people mean by certain things they do? Especially when they try to make a "joke".
>>
>>60228332
>C, Perl, Smalltalk, Lisp
All of those are utter trash with almost no redeeming qualities. How the fuck is that """"good""""?
>>
>>60227780
You forgot to close something
>>
>>60228334
It sounds like you have the typical CS weakness of not being able to provide context for anything you say.
>>
>>60219240
>but rotting my brain with jevva
>instead choose rotting brain with jevvascript
>>
>>60228819
That was on purpose, I wouldn't want certain people to track me down and then have evidence.
The context is pretty clear from the wording.
>>
>>60228332
Reminder

"Bad" is undefined in this context and therefore this statement has no ground to stand on, as it says nothing.
>>
>>60228957
>"Bad" is undefined in this context
"Bad" is the negation of "good".
>>
>>60228291
>SyntaxError
It's not the path that's causing that, it means your python program itself has a syntax error. Look that way.
>>
>>60229047
Post his definition of a "good language"
>>
File: 6XiRgru.png (1MB, 960x720px) Image search: [Google]
6XiRgru.png
1MB, 960x720px
>>60228890
>The context is pretty clear from the wording.
No, it isn't.

>I sometimes don't understand what people mean by certain things they do?
This happens to literally (yes, literally, not the normalfag abused "literally") everyone at some point in their life. Everyone goes through this, no matter what field they're in. Your case is not special without context. Is someone reacting to something you're doing? Is someone doing something in a way you don't understand?

>Especially when they try to make a "joke".
So you can't handle someone who is socially inept? Are you insulted by their "joke"? Annoyed? Does it actually impact your work? Do they do it constantly to a point where it would be understandable to complain? Was it a one-off thing that tumblr-triggered you to the point where you had to make an incredibly vague post on /dpt/ about how someone rubbed you the wrong way?

>and then have evidence
Pic related
>>
>>60228334
This is the most genuinely autistic post I've seen today.
>>
>>60229088
Why would I be posting that?
>>
Couldnt find a Python convention for naming of modules and classes inside packages.
I have a package called "api", should my modules and classes inside it be called "base_api", "BaseApi", "user_api", "UserApi", etc. ?
I suspect it shouldn't, just "user" and "User" inside "api", but some classes would have conflicting names later, with other packages such as "controllers" that could also have a module "user" and class "User".
Any conventions I should follow? Or just use "import as" when a conflict occurs?
>>
>>60229199
It might cause intelligent conversation rather than shitposts. If you don't want that, then don't post it.
>>
>>60229099
>No, it isn't.
I don't understand. It should be pretty clear.

>This happens to literally (yes, literally, not the normalfag abused "literally") everyone at some point in their life.
I get that, but it happens far too often for me to keep ignoring it. I think there might be something wrong with the people who keep acting in strange ways. Or there might be something wrong with me. I genuinely don't know, which is why I made that post in the first place.

>So you can't handle someone who is socially inept?
I don't really think those people are what you would call socially inept.

>Are you insulted by their "joke"?
Definitely not.
>Annoyed? Does it actually impact your work?
Yes.
>Do they do it constantly to a point where it would be understandable to complain?
I wouldn't say so.
>Was it a one-off thing that tumblr-triggered you to the point where you had to make an incredibly vague post on /dpt/ about how someone rubbed you the wrong way?
I'm pretty sure that's not the case. The post is vague for a reason, their kind might be lurking here so I need to "protect" myself.

>Pic related
I don't think I have given any reason to call my existence itself a "joke". Or was this an attempt at a joke which points out my inability to understand certain jokes?

>>60229143
Explain.
>>
>>60229321
>All these pronouns
No one knows what you're talking about and it's so vague could mean literally anything. I'm sorry they left a pudding cup on your desk, even though they KNOW you don't particularly like pudding.
>>
>>60229252
You failed to mention that "good" itself is undefined, which leads me to believe you have some sort of hidden agenda.
Do you think an intelligent conversation is somehow possible in this case?
>>
>>60229382
+1
>>
>>60229379
>No one knows what you're talking about and it's so vague could mean literally anything.
I don't think it's really all that special so just interpret it in a way which makes the most sense. I am almost positive they might actually look at what I'm posting. I don't need any unnecessary awkwardness because of this.
>>
>>60229412
Then you shouldn't have posted about it in the first place
>>
>>60229432
Why not? Is there a rule somewhere which states that vague posts are prohibited?
Maybe someone had the exact same problem and they'll get it right away even without me being specific.
>>
>>60229321
>It should be pretty clear.
"DURR SOMEONE IS DOIN THINGS I DON UNNERSTAN AND IT BOTHERS ME IS THIS NORMAL" - you

This is exactly the weakness I'm talking about. To have context of a situation means that an outsider will have an understanding of your specific situation based upon things you've specified.

Like what, do you not like listening to people talk to rubber ducks to work out solutions? Someone took some office supplies from you without asking?

Have you tried COMMUNICATING with the people in question about this fuckin joke instead of typing the equivalent of mumbling like an actual autist? I know this is a tough one for 80 IQ idiot savant programmers such as yourself, but when you talk to people in a workplace, they're generally courteous enough to explain themselves/apologize/stop. Otherwise, you bring it up the chain or start looking for new digs.

The picture is related because the first impression you have given here is that you are a living programmer caricature.
>>
>>60229475
>a rule
No, autismo.

>Maybe someone had the exact same problem
Everyone has, which is why it's uninteresting without actual detail.
>>
>>60229480
>so mad he forgot the pic
chill faam
>>
>>60228334
POAST CODE FFS! This isn't mind-reading general.
>>
>>60229480
>To have context of a situation means that an outsider will have an understanding of your specific situation based upon things you've specified.
Full context isn't always something which can be easily provided. I have already said multiple times that they might be checking this website, not this thread in particular, but still.

>Like what, do you not like listening to people talk to rubber ducks to work out solutions?
No, people just act in weird ways which are not always clear to me. Some other people seem to find it normal, which is why I'm slightly surprised.
>Someone took some office supplies from you without asking?
No, I don't understand how you inferred this from what I said.

>Have you tried COMMUNICATING with the people in question about this fuckin joke
What do you precisely mean by this?
>80 IQ
No.
>The picture is related because the first impression you have given here is that you are a living programmer caricature.
I don't even call myself a programmer really. I love programming, but I'm not a fucking "programmer".

>>60229534
>Everyone has
In which case it shouldn't be hard to explain.
>>
Fahrenheit = 0
celcius = (Fahrenheit - 32) * 5/9
Fahrenheit = int(input("Enter a temperature \n"))
print(celcius * Fahrenheit)


what is wrong with me ;__;
>>
>>60229641
It's ok, Allen. The nice letter that cute grill left on your desk wasn't some cruel joke to play with your emotions. Have some self confidence!
>>
>>60229708
These aren't equations these are ordered assignments.

Also
It's "celsius"
Be consistent with capitalizing variables. Also Celsius is a proper name so you're wrong anyway.
Even if you are thinking algebrically, if fahrenheit = 0 then celsius * fahrenheit = 0
>>
>>60218785
90% writing drivers for server hardware then pestering maintainers to hurry it along the patch stream
>>
>>60229641
You totally have a sub-100 IQ; you're too stupid to discuss this. Enjoy writhing in agony as you struggle with the concept of workplace social behaviors.
>>
>>60229959
>You totally have a sub-100 IQ
This is definitely wrong. Which makes me wonder if the rest of your information is wrong as well.
>Enjoy writhing in agony as you struggle with the concept of workplace social behaviors.
What a fool you are.
>>
>>60229993
Which spectrum are you on, by any chance?
>>
>>60230053
A spectrum of what?
>>
>>60228332
I agree with the general idea but surely ada isn't a 'bad language'.
Thread posts: 326
Thread images: 32


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