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

File: 1481234393653.png (102KB, 1000x1071px) Image search: [Google]
1481234393653.png
102KB, 1000x1071px
What are you working on, /g/?

Old thread: >>58099323
>>
Is there any merit in learning x86 assembly?
>>
File: karen haskell.png (818KB, 1280x719px) Image search: [Google]
karen haskell.png
818KB, 1280x719px
the same image
every
fucking
time
>>
Parallel functional programming thread:

>>58105321
>>
>muh data structures
>muh algorithms
>>
>>58108874
Yes
>>
>>58108860
CS student here
what can I start to learn or work on that would have a practical use? I am tired of learning shit just for a grade
>>
File: 1369922453088.gif (2MB, 350x258px) Image search: [Google]
1369922453088.gif
2MB, 350x258px
I have an array of vec3 vertices and an array of vec3 colors and an array of glushort indices. How do I draw this model with opengl es 3? I tried several examples but nothing shows up, except the screen clearing color.
>>
>>58108897
You want somebody to write the entire rendering code example for you ITT just so you can learn?

Post the most simplified version of the code you think should work.
>>
>>58108860
Why is the original image never used?
>>
File: anal beads.png (270KB, 457x381px) Image search: [Google]
anal beads.png
270KB, 457x381px
>>58108860
>What are you working on, /g/?
Learning how to make burritos.

public class Identity<T>
{
public T Value { get; private set; }

public Identity(T value)
{
Value = value;
}
}


public static Identity<B> Bind<A, B>(this Identity<A> a, Func<A, Identity<B>> func)
{
return func(a.Value);
}


public static Identity<T> ToIdentity<T>(this T value)
{
return new Identity<T>(value);
}


var result = 
"Hello World!".ToIdentity().Bind( a =>
7.ToIdentity().Bind( b =>
(new DateTime(2010, 1, 11)).ToIdentity().Bind( c =>
(a + ", " + b.ToString() + ", " + c.ToShortDateString())
.ToIdentity())));

WriteLine(result.Value);


>
Hello World!, 7, 11/01/2010
>>
>>58108938
Now implement the functions in Control.Monad, e.g.

forever
replicateM
mapM
>>
>>58108876

i never implied autist is pejorative. i simply recognized how much of an autist you are.
>>
>>58108951
I've got to crawl before I can walk, anon. Give me time to embrace these monads.
>>
File: 1481576626678.jpg (7KB, 243x250px) Image search: [Google]
1481576626678.jpg
7KB, 243x250px
>>58108932
I've lost it
>>
>>58108963
why did you feel the need to say that then? what value does it have? so that people think you are "cool" for being able to recognize basic and obvious things? nice.
>>
File: wtf.png (557KB, 934x1000px) Image search: [Google]
wtf.png
557KB, 934x1000px
>>58108975
>>
>>58108976

my god, how autistic you truly are.
>>
File: 362etwg.png (39KB, 1000x1071px) Image search: [Google]
362etwg.png
39KB, 1000x1071px
>>58108975
why don't you use the optimized image?
>>
>>58108976
This is autism.

And not the potentially positive "hey this guy might actually be really good at something technical" autism.

Just the "this person obviously has trouble communicating with humans" autism.
>>
File: 1437321349174.png (389KB, 934x1000px) Image search: [Google]
1437321349174.png
389KB, 934x1000px
>>58108975
>if only we had an archive where those images and posts are stored

useless fat fuck
>>
>>58109019
Why did you turn it upside down?
>>
>>58108988
cool, why did you feel the need to make this "post" though?
>>58109003
I fail to see the relevance of your post
>>
>>58109019
i'm australian
>>
>>58109040
cool, me too. so? why did you post this though?
>>
>>58109040
i'm so sorry
>>
When did you accept that qt programmer bfs didn't exist?
>>
>>58109031
>why did you feel the need to make this "post" though?

to notify you of your autism, what else?
>>
>>58109076
i just made this post to notify you that you've inhaled oxygen in the past few minutes. what else?
>>
>>58109118

you are an autist.
>>
>>58109118
thanks for reading this reply
>>
>>58109136
cool, why did you feel the need to write this though? do you think i don't know that? or do you think for whatever reason that anybody else doesn't know that?
>>58109137
thanks for writing this "reply"
>>
>>58109150
>why did you feel the need to write this though?

because you are an autist.
>>
>>58109165
why do you feel like this in any way even comes close to answering my question?
>>
>>58108938
Kill urself faggot. You'll never use that in real life.
>>
>>58109187

>>58109165
>>
>>58109232
>>58109187
>>
File: anal beads.png (46KB, 677x881px) Image search: [Google]
anal beads.png
46KB, 677x881px
>>58109195
Well, no, but I'm trying to learn the idea behind some of these functional concepts that are all the rage.

In some cases, I'm finding that I'm already doing things in a functional way, but really I was just using a language feature because it got the job done.
>>
>>58109240
LINQ is very functional
>>
How would I go about hole punching with TCP and UDP, and how reliable are they?
>>
>>58109272
why don't you google it?

you'll find better answer than here
>>
>>58109291
/g/ has surprised me before
>>
How would I name a module that holds hiragana (monographs, digraphs), katakana (monographs, digraphs and kanji with their romaji?
>>
org.junit.ComparisonFailure: expected:<[]TestD> but was:<[]TestD>
at org.junit.Assert.assertEquals(Assert.java:115)

what die he mean by this?
>>
>>58109272
Read about sockets in general. TCP and UDP are just protocols on top of them.
>>
>>58109320
https://github.com/junit-team/junit4/issues/976
>>
>>58099014
It's easy to miss if you keep using crappy software and writing crappy code.
But computers are stupid fast.
It's very rare for your implementation to be slow if you just use SIMD and multithreading reasonably well.

But don't write code too well. Using computers will just jade you after that. You look at an application that takes more than a second to launch and feel insulted. Like they didn't even care for the user enough to do the most basic shit to make it run acceptably. So you're stuck there waiting for their garbage abstractions to do their useless work.
>>
>>58109316
weeaboo_faggot
>>
>>58109316
kana
>>
animu is degenerated and a sign of a shitty programmer
>>
File: moonman_for_president.jpg (161KB, 848x1250px) Image search: [Google]
moonman_for_president.jpg
161KB, 848x1250px
>>58109371
pic related
>>58109400
AFAIK kanji isn't part of the kana, but w/e.
>>
it is okay to work without getters within methods, right?

for example, inside a Point object, use this.attribute = 3, instead of this.setAttribute(3)?
>>
>>58108892
make something you can use yourself
>>
>>58108874
Haha, no
>>
>>58108874
Not to write it, but maybe to be able read compiler output
>>
what does your day as a programmer look like?

>work at 9.00 AM
>breakfast
>head to work
>program for 3hours
>lunch
>back to work
>"program" til 6 PM
>go home
>browse 4chins til midnight
>bed
>repear
>>
>>58109465
Only when the the purpose of the object in question is to hold data.
>>
>>58109465
>it is okay to work without getters within methods, right?
Yes.
Getter and setter methods are the odd case really. Schools teach them the wrong way.

If you've made a conscious decision between public and private variables anything goes as long as you stay within those bounds.
>>
>>58109465
If the getters/setters don't do any additional logic, I wouldn't bother.

If they do, you may find that it gets duplicated if you don't use them. Also, in the case that they do, even if you have a public getter, I would make a private setter, again to reduce that duplication.
>>
How accurate is my system clock, assuming it gets the time from an NTP server?
>>
>>58109491

>wake up at 6:30am
>eat, clothes, leave by 7:00am
>arrive at 7:30am
>response to emails
>deploy to staging
>get the most important cards done for the day
>snack
>coffee
>hackernews/reddit/4chan
>lunch
>get all other cards completed that I had planned for the day
>3pm, play a game of dota with the coworkers
>complete more code if I need to
>deploy to staging
>response to emails
>leave around 4-5pm
>code personal projects at home if I don't have anything social planned
>shower/sleep

My average day in web//mobile app development.
>>
>>58109535
Accurate in what way?
As in its granularity?
Consistency syncing across different systems?

I don't know but you'd probably like to be more specific.
>>
>>58109565
Consistency across multiple computers. I'm assuming it is pretty accurate to itself
>>
junior C# code monkey here. I'm currently dealing with a bunch of consultants in order to learn the proper .NET way of doing things, but so far I fucking hate what I'm seeing.

shit basically goes like
>make absolutely everything public always
>pair every single class with an equivalent interface
>force IoC via dependency injection, always
>design any and all code around the expectation that it will be called externally

this is a ton of boiler plate and project clutter, and the benefits that I can see are minor in comparison.

whenever I ask them to explain their rationale, I get vague answers about how it's "cleaner" and "best practice" or that "everybody in the industry does it" and "you'll understand eventually as you code". I'm starting to think they don't even fucking know.

help me see the light /dpt/
>>
>>58109564
i'm going to begin in mobile app developement.

any tips you can give, if you don't mind?
>>
>>58109491

if you dont have anything besides 4chan to do with your free time, you might as well kill yourself.
>>
>>58109601
>if you dont have anything besides 4chan to do with your free time
what do you suggest?
>>
>>58109589
>I'm starting to think they don't even fucking know.

they dont fucking know either.
they once were junior C# code monkeys like you and saw a senior C# code monkey doing it. now they are seniors themselves, they pass it down to juniors.

you will also go the same path.
>>
>>58109583
http://www.ntp.org/ntpfaq/NTP-s-algo.htm#Q-ACCURATE-CLOCK
>>
>>58109613

i do lots of activities, but they are unique to my location, family and personal taste.

the thought of having nothing but 4chan and work in life scares the shit out of me.
>>
>>58109589
First of all, please read the Yellow Book before codemonkeying around, since making everything public in the code is a disaster waiting to happen.
>>
>>58109589
do what they tell you, finish your work and then fap to anime girls
>>
>>58109626
just to be clear, I'm looking for informed opinions, not neetfags suffering from Dunning-Krueger effect
>>
>>58109651

this is the authentic /g/ lifestyle.
>>
>>58109613
drugs, porn and videogames
>>
>>58109669

im am neither a neet, nor overestimating my competence.
you underestimate the amount of inertia behind people coding for years.
>>
File: 1482336965034[1].jpg (665KB, 3000x2000px) Image search: [Google]
1482336965034[1].jpg
665KB, 3000x2000px
>>58108059
Which book is that from?
>>
should I export my projects as .jar or as .zip?
>>
>>58109730
.zar
>>
>>58109730
.tar.xz
>>
>>58109730
.bro
>>
whats the fastest way to take thousands of images and import them to a database table? they have to match up with an item number, too. Please tell me I don't have to do this manually.
>>
>>58109730
.mp3.exe
>>
>>58109730
.bix
>>
File: anal beads.png (5KB, 407x55px) Image search: [Google]
anal beads.png
5KB, 407x55px
>>58109491
>stumble hungover into the office between 5:30AM and 7:00AM
>check email to see if there's anything important to do today
>initial browse of current /dpt/ and other threads
>get a bit of work done, fix a few issues and send emails to clients/internal staff notifying that it's done/working now.
>continue shitposting on 4chan while working on pet projects
>grab a few beers from the office fridge around 11AM
>go home at 3PM and enjoy the rest of my day with alcohol, food, and cat
>>
>>58109730
.raw
>>
>>58109730
optimised png
>>
>>58108059
>>58109718
>I have no idea why IDE users are worse in my experience
That's dumb. At least try. You're writing a book.
Don't have an opinion if you have nothing to say.
>>
File: 1457925328866.jpg (34KB, 436x428px) Image search: [Google]
1457925328866.jpg
34KB, 436x428px
>>58109491
>wake up at 10
>log into skype so I'm online
>sleep until 12
>wake up again and make breakfast and shower
>fix some menial bug and check it in so it looks like I'm working
>mess around on my main rig until 6pm, occasionally doing actual work on my laptop
>make 6 figures doing this for 2 years now
feels alright
>>
>>58109909
i would chastise you but you used an anime image so you're alright
>>
What is the most retarded, forced and obnoxious "feature" in a major programming language ever?

And why is it definitely the declaration/definition split of C++?
>>
>>58109951
Mutable state
>>
>>58109909

dont you have to deliver some actual productivity if you work from home?

i work for a mid-size company, not even a small one, and even here it becomes immediately noticeable if a project member slacks off.
>>
>>58109969
Some companies' management staff are really, really poor at their jobs.

Luckily, capitalism will either set them straight, or their end-product is so valuable that they can afford all of that waste, in which case the consumers are to blame for paying those prices.
>>
>>58108874
Yes.
>>
>>58109491
I'm not exactly a 'programmer', more data analyst. But similar enough.

>wake up at 6:50
>roll out of bed and into home office
>set Lync status to "available"
>doze in recliner until 9AM
>clear inbox full of trivial bullshit questions
>lunch
>clear production queue / troubleshoot EDI errors / generate reports for the day
>3:30PM set Lync status to "off work"

laptop on the side of my desk open to 4chan throughout this entire process
>>
>>58110014
what does an data analyst does?

you mess with R and graphs?
>>
>>58108874
Maybe
>>
>>58109951
OOP
>>
>>58109951
mutable types
>>
>>58109969
I only work from home 3 or 4 days a week, so I get most of the work done on the 1 or 2 days I'm in the office.

I've also become really efficient at the work I do, so the time estimate I give is usually double or triple what I need, while still appearing conservative.

Assuming I work in the office 2 days in a particular week I probably put in about 20 hours of work total.
>>
>>58110058
>>58110014

you will get a call to train your replacement pajeet soon.
>>
>>58110046
OOP is not a feature of a programming language.

That's like saying that being Jewish is a bad programming language feature, given that many programmers subscribe to that particular faith.
>>
>>58110068
i'm already training my replacement though, because i'm really incompetent at what i do
>>
File: k.jpg (314KB, 1920x1200px) Image search: [Google]
k.jpg
314KB, 1920x1200px
>>58110068
>>
So I realize that for many programming jobs a degree is less important than a practical demonstration of ability (portfolio). Especially for fields like web and mobile.

What about embedded development, though? Is it unheard of to land a position in that field without some flavor of science degree?

Mostly just curious, having landed my current CRUD-level job without a degree.
>>
>>58110058
>I've also become really efficient at the work I do, so the time estimate I give is usually double or triple what I need, while still appearing conservative.
Mein neger. It took a while to master that skill though.
>>
>>58110238
>for many programming jobs a degree is less important than a practical demonstration of ability

in the US, possibly.
here in germany, you are mostly ranked by your degree. at least when entering a job field.

in the US, a bachelors degree in computer science is often listed as a "nice-to-have", far below "project experience". in germany, the degree is the hard requirement and experience the extra.
>>
>>58108860
Is learning Haskell worth it? Looks like a meme language.
>>
File: 1480485122767.webm (3MB, 400x400px) Image search: [Google]
1480485122767.webm
3MB, 400x400px
>>58109951
Dynamic typing.
>>
>>58110238
You'll only get anecdotal answers here, so you probably shouldn't try to form any meaningful opinion from replies to your posts.

I've seen both sides: in some cases, the hiring staff were the technical guys, and they didn't give a damn about a degree. They cared about qualifications and prior work. In other cases, I've seen a degree in a related field be absolutely required for the applicant to be considered.

It really just depends on the MO of the company you're shooting to work for.
>>
>>58108968
yes. grab ur monads.

grip them firmly before moving on to other things.
>>
>>58110298

>C++ standard library: the webm
>>
File: 1482341325733.jpg (140KB, 640x580px) Image search: [Google]
1482341325733.jpg
140KB, 640x580px
>>58108892
C++14 so you're ready for C++17 then your body odor... in that order.
>>
>>58110238

im wondering this too. My jobs consists of web CRUD'ing 99% of the time. If that counts as full stack, cool, if not, then i dont care. I am doing both front end and back end though. I'm curious if that could translate into anything else. Just started learning C, though.
>>
>>58109465
This limits your ability to extend the class.
>>
>>58109659
Then, sadly, you came to the wrong popsicle stand, bwa.
>>
>>58109764
.tar.gz you faithless whore
>>
>>58110422
.tar.bz2 you mongrel
>>
File: 1310272508051.png (231KB, 640x640px) Image search: [Google]
1310272508051.png
231KB, 640x640px
>personal project now over 40k loc
>>
>>58110451
but what is it?
>>
>>58110451
>tfw loc doens't mean shit

what are you even doing?
>>
    /**
* Reads length Ts from stdin to dest
* Params:
* dest holds a pointer to the beginning of memory to be read to
* length holds the amount of Ts to be read
**/
private void read(T)(int *dest, in ulong length)
{
foreach(i; 0..length)
{
readf("%s", cast(T *) &dest[i]);
}
}

/**
* Writes length Ts from src to stdout
* Params:
* src holds a pointer to the beginning of memory to be read from
* length hold the amount of Ts to write
**/
private void write(T)(int *src, in ulong length)
{
foreach(i; 0..length)
{
writef("%s", cast(T) src[i]);
}
}


>when you finally understand the joys of type parameters
>>
>>58109491
>code
>code
>code
>code
>code
sleep a few minutes
>code
>code
>hate those lazy cube monkeys
>kill the next guy who says sushi
>code
>code
>code
>code
>code
>check in
>no bugs
>no review notes
>no love
>sleep another 15 minutes
>suicidal thoughts
>code
>code
>get fired
>repeat
>>
>>58110470
Xe's probably using Go.
>>
Stupid new to programming - made a little tool in C++ that helped me enter and sort initiative for my tabletop shit.
>>
>>58109730
.base64
>>
>>58110285
No it's utter bollocks. If you're looking for that FP epiphany, Lisp is the only correct answer.
>>
>>58110285
it's pretty cool
>>
>>58110470
Hello world in Java.
>>
>>58110285
It's pretty much Python of the functional word.
>>
>>58110614

Download link pls
>>
>>58110619
Except good
>>
File: 1474422015271.png (577KB, 670x448px) Image search: [Google]
1474422015271.png
577KB, 670x448px
>>58110537
>dynamic typing
>watered down syntax
>claims it can be super powerful because it has glorified eval()

>>58110619
???
>>
>>58110466
>>58110470
An imageboard with character by character post synchronisation.

>>tfw loc doens't mean shit
If your code is DRY, it can be used to measure volume.

>>58110492
Go, some C and TypeScript.
>>
How do I prevent myself from becoming a code monkey and become a better programmer each day?
>>
>>58110638
>???
import ...
import ...
import qualified ...
import qualified ...
import ...
import ...
import ...
import ...
import qualified ...
import qualified ...
import ...
import ...
import ...
import ...
import qualified ...
import qualified ...
import ...
import ...
>>
>>58110673
It's the Python of FP because it uses the keyword "import"?
>>
>>58110644
>An imageboard with character by character post synchronisation.

Sounds cool, but what is its practical application?
>>
>>58110695
No, because you just spam import and get everything you need to do served for you ready to use.
>>
gay dicks, PENIS
/dpt/
>>
>>58110729
Ubuntu:
apt search penis
>>
>>58108860
on a raspberry pi hardware keylogger, but i seem to have failed

anyone done something similar?
>>
>>58109491
>wake up 9:25AM
>get to work at ~10:15
>workload is probably pretty light, spend time playing video games or watching a few episodes of some show
>do some work
>depending how interesting it is, I may or may not go back to video games
>leave at 6PM
>unless it's Friday, then I leave at ~3:30
There have been some more hectic days too, but overall I have shitloads of extra time to finish my tasks and can approach them very leisurely.

>>58109589
If you know how to program my suggestion is to evaluate every single "best practice" and only apply it if it's common sense to do so or if it's a logical, sane way of implementing something in your application. I never heard that one about making everything public though, that sounds retarded as fuck to me. The dogma in OOP usually goes about making as much shit private as possible, since an object should be defined by its contract and external callers shouldn't need to care about the internal implementation. That's a pretty good guideline and it makes sense most of the time.
>>
>>58110696
Same as 4chan - shitposting and normal discussion. You could arguably also use it for non-permanent image sharing and related discussion similar to boorus. The file format support is extensive (JPEG, PNG, APNG, WEBM, MP3, MP4, OGG, PDF, ZIP, 7Z, TAR.GZ and TAR.XZ) and processing is quite optimised.
>>
>>58110709
Personally I don't fault languages for having a lot of libraries, and Haskell is a much better language than Python outside of that.
>>
>>58110791
I knew it was meguca.
BTW are you Dutch?
>>
>>58110839
Oh, I was never implying that it's a con.
>>
>>58110862
Well you never know with /dpt/, and there are a lot of other things that are shitty about Python that don't apply to Haskell.
>>
>>58110858
No.
>>
>>58109589
these consultants are retards.
>everything public always
absolutely not, completely defeats the purpose of access modifiers
>pair every single class with an equivalent interface
nope, useful in certain cases but not always
>force IoC via dependency injection, always
same as above
>design any and all code around the expectation that it will be called externally
same as above

>I'm starting to think they don't even fucking know.
probably this. they sound like pajeets 2bh
>>
File: image.png (58KB, 1680x1050px) Image search: [Google]
image.png
58KB, 1680x1050px
>>58108860
>What are you working on, /g/?

Exploring the deepest, darkest corners of Racket by doing Advent of Code 2016.
>>
Hey dpt i'm an experienced programming and i've searched around but I can't figure this out. I'm trying to add the local weather to my homepage website. I live in canada and they government offers a little html5 weather forecast thing but I really just want the temperature in plain text so that I can style it as I want does anyone know anything about how to get data from the environment canada.
>>
So I have a 2D Android platformer written in Java

Should I have a class that and initialise everything that I need when the game opens. Then have methods that set the values of these classes every time I start a new level or screen?

Rather than initialise the entire 2000 item game world upon each 30-second level, disposing it all at the end.
>>
>>58111055
Pull open the website source and check the API where they're pulling the data.
It's 99% probably just JSON.

I'm bored at work so just post some URLs already.
>>
>>58111068
I dunno if this is what you're talking about but I would always strive to reuse stuff as much as possible when working with memory and other resources.
>>
>>58111102
This is the forecast https://weather.gc.ca/city/pages/ns-39_metric_e.html
And this is a Data service they offer that I may message them about.
https://www.ec.gc.ca/meteo-weather/default.asp?lang=En&n=B8FFBA33-1
>>
>>58110952
>absolutely not, completely defeats the purpose of access modifiers
and this is bad? access modifiers are total shit
>>
>>58111157
>access modifiers are bad
>>
In C# i have a project that has to keep track of a shitton of variables.
I usually just make a class for al l those variables and set them all as static public.

is that a thing or am i fucking up?
>>
>>58111167
That's okay, assuming they are divided up in a somewhat sane way
>>
>>58111111
>>
>>58111055
>>58111143
Looks like it's not a live weather feed, but is done server-side when they present the webpage. I'd be tempted to say PhP from the signature. They have Ajax but they're not using it to update any data.

This means the server could be running any sorts of code to acquire the data, and doesn't use any of the other popular weather endpoints IoT style. You could contact them for that delicious .CSV, or just use something like..
https://www.wunderground.com/weather/api/
>>
>>58111276
Thanks for the help, I think i'll hit them up for that CSV cause that seems easiest hopefully they will give me it. It seems like its more for businesses but hopefully they won't care i'm using it to power a weather display on my autism homepage.
>>
>>58111167
It's acceptable, but considered bad practice.
C# suggest object orientation. Do you mind giving an example of the kind of variables you're storing?
Object Orientation is a hotly debated topic among many people, but you should be sure to follow the natural convention for whatever language you are writing in.
If you 'can' have an instance of data, then you probably should in C#. It's primarily designed for higher-order data management.
>>
File: IMG_20161221_212420682.jpg (1MB, 3000x1688px) Image search: [Google]
IMG_20161221_212420682.jpg
1MB, 3000x1688px
Nice :D
>>
>>58111167
if it compiles, you're good
>>
>>58111315
cute, good work
>>
>>58111303
http://openweathermap.org/API
also an option

The reason they're going to have you contact them is to prevent a million billion requests impacting their servers. The other options I've showed do the same with a simple signin, letting you use an API key to make sure you don't ask for a radar map twenty-times a second. Both alternatives are free and might be better documented/faster.
>>
>>58111315
neat
>>
>>58111315
is that local temp what are you using to do that a raspberry pi, arduino?
>>
>>58111345
Ok thanks for all the help i'll look at using the ones you sent while i'm waiting for a response for the gov. Then i'll see which is better
>>
File: IMG_2554.jpg (435KB, 1667x2500px) Image search: [Google]
IMG_2554.jpg
435KB, 1667x2500px
>>58111355
Yes, I have an Arduino hangning outside sending temperature (and humidity) to another raspberry which acts as server and logs inside temperature with a ds18b20 sensor.

too lazy to look right now what the outside sensor is called dm69 or something like that shit.
>>
>>58111403
Awesome I will probably setup something similar in the future.
>>
File: yes.png (146KB, 1233x658px) Image search: [Google]
yes.png
146KB, 1233x658px
>>58111403
DHT-22
using mysensors as backend and domoticz as frontend (which has a nice api)

the raspberry with that led polls that api through python.

If I have that lcd really nice setup those two raspberrys should be brought together
>>
>>58108860
>What are you working on, /g/?
GUI for my sadpanda downloader
>>
>>58108874
idk
>>
Flowcharts for a TCP based decentralized network
>>
File: 1448066729810.jpg (24KB, 401x372px) Image search: [Google]
1448066729810.jpg
24KB, 401x372px
>>58111811
>>
mpv used to have working DVD menu support but the main dev removed it because he doesn't like (extremely hates) DVDs.

Since September libdvdnav support has been broken (undocumented) and you have to use libdvdread (dvdread:// instead of dvd://, not much practical difference).

Was broken with this commit, to quote him "Untested because I don't give a fuck about your shitty DVDs".

https://github.com/mpv-player/mpv/commit/5e30e7a04125e3c503160a76bbfe9361bff561fd

Anyway this makes it kind of difficult to play DVDs without menu support. So now I just write a shell script for it, I find which tracks go with each episode and put them in order in a list, and have a nice graphical selection using Zenity for the episode I want.

#!/bin/bash

mpv="mpv --profile=dvd"

disc1=BANNER_OF_THE_STARS2_V1.ISO
disc2=BANNER_OF_THE_STARS2_V2.ISO
disc3=BANNER_OF_THE_STARS2_V3.ISO

tracklist=("$mpv dvdread://9 --dvd-device=$disc1" \
"$mpv dvdread://10 --dvd-device=$disc1" \
"$mpv dvdread://11 --dvd-device=$disc1" \
"$mpv dvdread://12 --dvd-device=$disc1" \
"$mpv dvdread://13 --dvd-device=$disc1"\
"$mpv dvdread://9 --dvd-device=$disc2" \
"$mpv dvdread://10 --dvd-device=$disc2" \
"$mpv dvdread://11 --dvd-device=$disc2" \
"$mpv dvdread://9 --dvd-device=$disc3" \
"$mpv dvdread://10 --dvd-device=$disc3" \
"$mpv dvdread://11 --dvd-device=$disc3" \
"$mpv dvdread://12 --dvd-device=$disc3")

episode=$(zenity --entry \
--title="Episode Selection" \
--text="Choose Episode:" \
--entry-text "1")

episode=$(($episode - 1))

${tracklist[$episode]}
>>
There's two approaches to creating a general AI.

First approach, you create systems like computer vision, NLP, voice recognition, etc separately, and make them work together.
Second approach is you create the entire AI as a neural network and just train it on harder and harder problems.

Which approach is better?
>>
>>58111907
>tfw you're 15 years old and think you know anything about AI
>>
>>58111935
Except is a perfectly valid question.
>>
File: INBvStO.png (312KB, 506x662px) Image search: [Google]
INBvStO.png
312KB, 506x662px
I'm making a webpage in a language with manual memory management for shits and giggles.
>>
File: UPGRADE_OR_SMASH.jpg (319KB, 2018x2125px) Image search: [Google]
UPGRADE_OR_SMASH.jpg
319KB, 2018x2125px
IT'S ALMOST 2017 WHY ARE PEOPLE STILL USING v4010 X12 TRANSACTIONS REEEEEEE
>>
>>58112009
>X12
What type of Gentoo? Our civilization have only X11.
>>
>>58111907
First because the results are much more useful.
Even when we make systems complex enough to rival the human brain, that grow and change on their own, it won't mean much if it's not sentient in exactly the same was we are.

It's a lot easier to design these tools and parts in meaningful ways and let a learning system learn to use them rather than trying to have a learning system learn what vision is.

>tfw in 5-10 years you'll have a personal assistant that can interact with most everything in your life
>she won't be sentient but you'll waifu her all the same.
>>
>>58111961
you're in good company, my website is basically run by C, and there's that Akari BBS dev making an imageboard in C
>>
So I found an image via google search that I attempted to attach to a previous post, but it was rejected because it "contains an embedded file".

How might I find out what this embedded data is?
>>
>>58110285
Haskell is slow.

http://benchmarksgame.alioth.debian.org/u64q/haskell.html

Java wins in almost every benchmark.
>>
>>58112089
For reference, this is the image: http://www.midtownmarriageandfamilytherapy.com/wp-content/uploads/2012/04/hulk-large.jpg
>>
>>58112050
>making an imageboard

That's actually what I'm working on, but mine isn't backed by a relational database. I'm hand-rolling the data structures because SQL is overkill for my goals. Might add one at some point, but it's just busy work for an otherwise hobby/fun project so meh.
>>
>>58112105
broken iptc data, nothing embeded
>>
>>58109594
Give me some info, brother!

Are you starting at a place that creates mobile apps? Is this a freelance/personal thing? What's your web experience like? Have you worked with Angular or React before? Are you going to be creating both Android and iOS apps?
>>
For C++, is there any advantage as to putting all the implementation code in header files?

Looks like all the cool guys are doing it this way, but I've only seen arguments against it (like increased compile time)
>>
>>58112167
damn you took a while to reply!

its more a freelance / personal thing.

basically i want to gain experience in android developement so i can enrich my portfolio.

No, i haven't worked with Angular or React before. I am still a college student, and thus i use C++, C , Python and Java.

I only intend to create Android Apps, because i don't have any apple device
>>
>>58112207
If the class is templated, you have no choice.
>>
>>58112218
>unironically using templates
>>
>>58112231
>unironically using C++
>>
>>58112150
Imageboards are always fun to make, I am working on one too, also without a relational DB, though not in C, the only other twist being its for a Gopher server rather than HTTP (which makes it more like a textboard with image file uploads than an imageboard but whatever)
>>
>>58112245
>unironically programming anything
>>
>>58112207
You have to include templates and inlined functions in header files.
>>
>>58112207
The reasons to do it is because it's unnecessary to split it up. Unless you're having people link to your precompiled and want to provide headers without implementations.

Really, any decent texteditor folds code. Why have to move between different buffers just to read an implementation?
>>
How the fuck do i implement async/await the right way, my shit works but it freezes if i press the "Stop" button, or if i press "Start" button again

        private async void Button_Click(object sender, RoutedEventArgs e) //Start button
{
string car;
string price;
string link;

wantToAbort = false;

while (!wantToAbort)
{

// ----Fake GET request----

//-----End Fake GET----

myList.ItemsSource = myClients;
string searchCar = txtBlock.Text + " " + txtBlock2.Text;

var articleNodes = htmlDoc.DocumentNode.SelectNodes($"//*[@id='main_content']/div[1]/div[2]/ul[1]//*[text()[contains(., '{searchCar}')]]");

if (articleNodes != null && articleNodes.Any())
{

foreach (var articleNode in articleNodes)
{
car = WebUtility.HtmlDecode(articleNode.InnerText);
price = WebUtility.HtmlDecode(articleNode.ParentNode.ParentNode.SelectSingleNode("span").InnerText);
link = WebUtility.HtmlDecode(articleNode.ParentNode.ParentNode.Attributes["href"].Value);

var tempUser = new User(car, price, link);
if (!myClients.Any(x=>x.Link == tempUser.Link))
{
myClients.Insert(0, tempUser); //Inserts new item if Links are different
txtBlock3.Text = "Searching...";
}
}

await Task.Delay(10000); //THIS SHIT IS GIVING ME TROUBLE
}

}
}


private void Button_Click_1(object sender, RoutedEventArgs e) //Stop button
{
wantToAbort = true;
txtBlock3.Text = "Ready to search again!";
}
>>
>>58112256
I've not messed around with golpher, but that sounds interesting. Are there still fairly active sites online?
>>
Is it normal that my linked list takes way less time to delete than to create? Because if it's not deleting right I dun goofed.
>>
>>58112481
no; deletion of an element in a linked list does not require any allocation of memory so it should be faster
>>
>>58112486
yes
>>
should i run php from iis or apache?
>>
>>58112504
So it is normal? That "no" threw me off.
>>
>>58112486
No.
>>
>>58112525
create -> have to allocate memory -> takes time
delete -> delete the node -> pointers point to next element
>>
>>58112525
oh, whoops; yeah i meant to say yes
i think i went like: no you haven't goofed, in my head
>>
>>58112486
maybe
>>
>>58112418
First of all you should have a return type of Task so the caller has a proper handle on the Asynchronous process.

That looks like WPF, which I know already has some clever multithreading stuff going on.
To be safe, I would suggest having your timed work in a different function than the button-click handler. It's a lot cleaner and then allows work() to be done without using the UI.
tl:dr, return type Task. Move async work stuff into its own function to be safe.
async Task doWork() => await Task.Delay(10000);
void onclick(){
this.workTask = doWork();
}
>>
>>58112548
>>58112562
a'ight thanks, is there any way I can fix my memory in the event that I fucked up?
>>
>>58112486
I don't know
>>
>>58112418
I'm not sure I understand what you're trying to do.
You do some stuff, then wait 10 seconds.
After that 10 seconds you check if you want to abort, if not, you do the stuff again and wait another 10 seconds.
What are you expecting to happen?
>>
>>58112579
i don't understand what you mean
>>
>>58112486
can you repeat the question?
>>
>>58112596
If I don't delete it, is it there forever?
>>
>>58112621
no, it will eventually delete itself, because like the human life, they have a lifespan of activity
>>
>>58112486
Install Gentoo
>>
>>58112644
Ok, that was my concern.
>>
>>58112570
Yes, it is WPF

You mean to create whole new method just for Delay function? How does it help, i have no idea what i'm doing with these threads. If there's a way to autoclick button without this shitty multithreading feel free to educate me

>>58112592
I press button, it checks the site every 10s, updates my Observablecollection. Another button stops the process. Program still hangs even if i change the variables without stopping
>>
i don't know how to build a working template reeee
>>
File: Capture.png (16KB, 508x511px) Image search: [Google]
Capture.png
16KB, 508x511px
>>58112668
I just mean that I don't know off my head how WPF handles async method handles. It's likely not important. Did you have it return Task yet?
>>
>>58112621
once you remove the references to the node (delete), a GC will take care of it if you have one
otherwise, you should free it explicitly
>>
Why doesn't this work:

#include <stdio.h>

int main() {

char * test = "test";

scanf("%s", test);

printf("%s", test);

return 0;
}


Works with an array but isn't an array just a pointer?
>>
>>58112668
I doubt it hangs on the delay.
Pause the process and check what it is doing.

Or post the entire project, that snippet isn't enough.

>>58112698
async void is preferred for event handlers.
>>
>>58112717
>isn't an array just a pointer

It's just a set of variables of the same type, not necessarily pointers.
>>
>>58112717
>but isn't an array just a pointer?
No, an array and a pointer are two different things. Arrays are contiguous elements in memory, while a pointer contains the value of a memory address. Arrays often decay into pointers to their first element, but they are still different things.

In your case, the string "test" is somewhere in your programs memory, and you cannot modify it without corrupting your binary.
>>
I've finished my hiragana/katakana trainer program. It shows you a kana and prompts for the corresponding romanji. Correct input turns green, incorrect input turns red and the correct solution is added. Finally, the duration is shown with the number of incorrect answers.
Any idea how to remove all these unwraps?
fn practice(translations: &[kana::Translation]) {
let now = SystemTime::now();

let mut indices: Vec<_> = (0..translations.len()).collect();
rand::thread_rng().shuffle(&mut indices);

let mut mistakes = 0;
while let Some(index) = indices.pop() {
let ref translation = translations[index];

println!("{}", translation.kana);

let mut input = String::new();
io::stdin().read_line(&mut input).unwrap();
input = input.trim().to_string();

print!("{}{}", cursor::Up(1), clear::CurrentLine);
if input == translation.romanji {
println!("{}{}", color::Fg(color::Green), input);
} else {
mistakes += 1;
println!("{}{} -> {}",
color::Fg(color::Red),
input,
translation.romanji
);
};
print!("{}", color::Fg(color::Reset));
}

print!("\nFinished in {} seconds with", now.elapsed().unwrap().as_secs());
match mistakes {
0 => print!("out mistakes"),
1 => print!(" 1 mistake"),
_ => print!(" {} mistakes", mistakes),
}
print!("\n");
}
>>
>>58112743
isn't it a block of memory with arr_name just being a pointer to arr[0]? How would I make this work?
>>
>>58112768
What are you trying to do? Have you tried using strings? They're insanely easier.
>>
>>58112764
>>58112743
read more books

>>58112717
this fails because "test" is a const *char

write char test[] = "test" and it works fine

also, just allocate memory explicitly by writing
char test[byte_count]

or
char *test = malloc(byte_count * sizeof(char))


>>58112768
>>
>>58112717
String literals are not modifiable.
>>
>>58112815
>sizeof(char)
>>
>>58112845
Where is the problem?
>>
>>58112845
>caring about things that are optimized at compile time anyway
>>
>>58112808
Trying the different between

char test [] = "test";
char * t = "test";


The first works fine but I want a deeper understanding of pointers.

>>58112845
I was told this is the safest way because sizes can differ between machines.
>>
>>58112845
Hey who knows when we'll get 32 bit characters?
>>
>>58112861
>I want a deeper understanding of pointers.

Try something more practical then. Like a linked list.
>>
>>58112861
>I was told this is the safest way because sizes can differ between machines.
I agree with the use of sizeof (char) but you have to know that the C specs states that it's always 1 (even if it's 13 bits long).
>>
http://pastebin.com/yEVgYdwc

I made an imgur crawler that downloads random images. It discards the "file not found" placeholder images by checking the md5 of the downloaded images. I plan to combine it with google image search and maybe a neural network thingy that can detect nsfw imgs (if I can manage it) to find unique nudes that aren't shared anywhere else on the internet.

I've been a depressed ball of fuck for the last couple months and coding this small thing today felt good, now wreck me for it you faggots, come at me!
>>
>>58112815
>read more books
What I said was absolutely correct. String literals are stored in the program's read only memory.
>>
>>58112850
sizeof(char), according to the C spec, is always 8-bits. Having said that, it doesn't matter at all since any sane compiler will optimize that out.
>>
>>58112845
>actually using magic numbers
You sicken me.
I actually do work with microcontrollers in automation and I work with a handful of programmers who think that because it compiles on their laptop, it ill work.
>>
>>58112896
>according to the C spec, is always 8-bits
No.
>>
>>58112766
>Any idea how to remove all these unwraps?
nvm, fixed it
fn practice(translations: &[kana::Translation]) -> Result<(), Box<Error>> {
let now = SystemTime::now();

let mut indices: Vec<_> = (0..translations.len()).collect();
rand::thread_rng().shuffle(&mut indices);

let mut mistakes = 0;
while let Some(index) = indices.pop() {
let ref translation = translations[index];

println!("{}", translation.kana);

let mut input = String::new();
io::stdin().read_line(&mut input)?;
input = input.trim().to_string();

print!("{}{}", cursor::Up(1), clear::CurrentLine);
if input == translation.romanji {
println!("{}{}", color::Fg(color::Green), input);
} else {
mistakes += 1;
println!("{}{} -> {}",
color::Fg(color::Red),
input,
translation.romanji
);
};
print!("{}", color::Fg(color::Reset));
}

print!("\nFinished in {} seconds with", now.elapsed()?.as_secs());
match mistakes {
0 => print!("out mistakes"),
1 => print!(" 1 mistake"),
_ => print!(" {} mistakes", mistakes),
}
print!("\n");

Ok(())
}
>>
>>58112461
There's places like Floodgap (gopher://gopher.floodgap.com) that have actively updated content, likes news and weather, though that's mostly automated.

You can see what I was talking about at gopher://khzai.net/1/chan or http://khzai.net/1/chan (my other project is an HTTP proxy for my gopherhole), its inspired by other 'chans' like Gopherchan (gopher://port70.net/1/chan) and 70chan (gopher://gopher.su/1/board)
>>
File: cunt.jpg (214KB, 844x1200px) Image search: [Google]
cunt.jpg
214KB, 844x1200px
I have spent the two weeks attempting to rewrite parts of a tool made by my PhD student predecessor. Right now it uses simple indexed binary files to allow fast access and operate on some quite large datasets we have. In the name of maintainability and modernity I have decided to rewrite the data retrieval part of the tool to use SQLite.

Anyway over the last two weeks I've gained a grudging respect towards my predecessor because his implementation is at least two orders of magnitudes faster than mine. I also now have an inkling that my approach was misguided and the relational model (or at least SQLite) may not be the best approach here.

Basically there are billions of variable length records stored in a specific order and I'm fetching millions of them at once by their IDs. My main problems are:

1) SELECTing millions of records is either millions of SELECT statements or (faster) doing it in batches of several hundred with SELECT (blahbhah) WHERE id IN (hundreds of ids go here).

2) The selected elements have to retrieved in the same order in which they are stored (i.e. element 10,000,000 before element 10,000,032); in relational databases this is not guaranteed unless I use ORDER BY which adds a significant overhead even when ordering by indexed fields.

3) Sometimes I need to retrieve elements in an interval (i.e. id BETWEEN 10000000 AND 11000000). This is glacially slow even on indexed fields.

Should I just give up? What's a good database approach which is guaranteed to respect the order of elements and is fast in operating on intervals?

The "flat" binary file code made by my predecessor is actually highly perfomant and reasonably well documented (it's C fuckery with some bit level stuff but I've managed to understand it, all gotchas had comments etc.) but it just feels untidy in principle if not in practice.

tl;dr: I've wasted two weeks because I thought I was smarter than a C autist who recently graduated.
>>
>>58112907
Yes.
>>
>>58112896
>>58112953
C states that CHAR_BIT will be at least 8. I can be higher.
POSIX C mandates that CHAR_BIT is exactly 8.

That doesn't matter though. sizeof(char) will always be 1.
>>
>>58112717
If C would allow that, you'd have a buffer overflow vulnerability right there
>>
>>58112952
You can't be smarter than something implemented at a low level for a very specific reason.
>>
>>58112892
"var" is a thing.
instead of checking the hash of an image check the return status code, if it's 404 then the file doesn't exist.
>>
>>58112991
I'd be fine with being a little slower for the advantages of the solution using a more generic approach and being more maintainable.

As it's stands my version is not usable since his is a real-time back-end while mine can take minutes to process a request.

The approach I've chosen just doesn't seem to be the right one for the problem.
>>
>>58113037
*most painfully I'm still using that guy's code to figure out which rows need selecting (it's relatively complex set theoretical stuff which could make a very complex SELECT indeed...), the overhead I add is all in actually retrieving the data from the database
>>
??=include <stdio.h>

char *ptrs[4] = {
NULL,
"fizz",
"buzz",
"fizzbuzz",
};

int main (void) ??<
int i;
for (i = 0; i < 100; i++) ??<
char *ptr;
ptr = ptrs[2 * (i % 5 == 0) + (i % 3 == 0)];
if (ptr == NULL) ??<
printf ("%d", i);
??> else ??<
printf ("%s", ptr);
??>
printf ("??/n");
??>
return 0;
??>


>>58112982
>POSIX C
There is only one C and it's called ANSI.
>>
>>58113127
ISO C is the official C.
POSIX C is an extension to ISO C.
>>
>>58112952
Consider PostgresSQL
experiment with MATERIALIZED VIEW
(cached views that can, for instance, contain the ORDER BY)
>>
>>58113179
Your lies will never pass.
>>
>>58113199
They aren't lies and i don't give a fuck about you
>>
>>58111837
It's actually coming along quite well. Everything should work nice and dandy as long as around 20% of clients forward ports in some way (UPnP or manually)
>>
File: awPfa.png (503B, 161x81px) Image search: [Google]
awPfa.png
503B, 161x81px
>>58112998
Problem is, file does exist senpai. They return this image instead of a 404.
>>
>>58113228

At least for me, when I put in the URL of a non-existent image, I get redirected to removed.png.

Check the headers that you get before the redirect, see if there's anything there that might be useful.
>>
>>58113204
I see, the code monkey is hurt. How many of your bugs did you fix today?
>>
>>58113180
Googling the issue I've found

>Materialized views are similar to base tables in that the rows are not stored in any particular order; the database server orders the rows in the most efficient manner when computing the data. Therefore, specifying an ORDER BY clause in a materialized view definition has no impact on the ordering of rows when the view is materialized. Also, the ORDER BY clause in the view's definition is ignored by the optimizer when performing view matching.

I might try though, thanks for the suggestion.
>>
What's the point of c11 nested anon structs if you need to declare them inside the fucking struct?
If you want to declare struct that you will nest into multiple struct but you want to access the struct items with only single access like . or ->, are you supposed to define it as macro?
/* ok  */
typedef struct {
struct { int x; int y; };
int z;
} s;

s tmp;
tmp.x = 3;

/* not ok */
typedef struct {
int x; int y;
} xy;

typedef struct {
xy;
int z;
} s;

s tmp;
tmp.x = 3;
>>
>>58113272
i don't even program you wagecuck
>>
>>58113299
Darn, I wasn't aware of that peculiarity of materialized views
>>
>>58113311
So get the fuck out of /dpt/.
>>
File: Screenshot_2016-12-21_16-52-27.png (48KB, 953x463px) Image search: [Google]
Screenshot_2016-12-21_16-52-27.png
48KB, 953x463px
Finally got back to working on VM (in D). So far I have instruction you see in INS implemented except for ADD and SUB (PUSH and POP haven't been tested yet thought).
>>
>>58113306
It just makes shit like tagged unions a lot nicer.
struct {
int type;
union {
long l;
double d;
void *p;
};
};


Really, the only times I can think of them being useful, unions are involved.
>>
What is the best free flowchart software? I need something a bit more powerful than A4 paper and pencil
>>
>>58113370
What if you want to simulate class methods by having struct for "static methods".
Then you would
struct static_method {
void(*fn)(void* self, int arg0);
};

struct my_class {
struct static_method;
int some_attribute;
};
struct my_class x;
init(x):
x.fn(&x, 10);

Is this stupid or how should it be done?
>>
>>58113435
I believe Microsoft's compiler has an extension that did that.
I'm not aware if any other compilers do that, though.
>>
>>58113270
I'm looking into it, thanks
>>
>>58113435
you would have to write
x.static_method.fn(&x, ...);

but you are more or less correct
>>
>>58113473
still wrong actually, since static_method is not a member of my_class actually
also, my_class is not a valid struct because struct static_method; has no identifier

i would really just write
struct my_class {
void(*fn)(void* self, int arg0);
int some_attribute;
};

struct my_class x;
init(x):
x.fn(&x, 10);

instead, keeping the functions associated with a struct within that struct
>>
File: tumblr_inline_ngo0r1t8yA1r74w94.png (216KB, 500x381px) Image search: [Google]
tumblr_inline_ngo0r1t8yA1r74w94.png
216KB, 500x381px
>>58113472

In fact, I'm willing to bet that if you turn off automatic redirects in your HTTP library (read the docs on how to do this) and simply check the return code for a 301/302 AND check the location header for removed.png, that will do it.
>>
>>58112827
so char * test = "test"; is a pointer to a literal ?
>>
>>58113510
>>58113473
What annoys me is that if c11 allows accessing anonymous structs items with single accessor why can't it do it also with already declared structs.

In this I would want to define
struct extended_class0 {
struct static_method;
};
struct extended_class1 {
struct static_method;
};

struct extended_class0 x;
x.fn(&x);

I could implement it like
#define static_method struct { void(*fn)(void*); }
struct extended_class0 {
static_method;
};

Feels just so wrong.
>>
>>58113575
Actually never mind. I can just define the methods as macros and use _Generic.
>>
>>58113568
Yes.
>>
How do I get into C++ windows development?
I just want to write normal win32 gui programs, but I don't how to do that with c++. Or should I stop trying to hurt myself and just use c# for this purpose?
>>
So I'm using AndroidStudio and DropBox between my desktop computer and laptop. Everything so far is working fine except for the part where Android Studio has to switch SDKs every time I open my project on the other computer.

Anyone have any experience with this? Basically on computer A, my sdk is saved to path X. And on computer B, my sdk is saved to path Y.

What exactly should I save to to DropBox in order to simply pick up where I left off on the other computer?
>>
>>58113661
You're fucking stupid for using DropBox as version control.
Second, don't share your local.properties to different machines.
>>
>>58113677
Why am I stupid?
>>
>>58113661
Just learn what github or SVN is.
>>
>>58113677
Also why are you so mean? Be nice.
>>
>>58113659
Win32
It's pretty shit.
>>
>>58113681
You'll find out soon enough that you need version control for your project.
>>
>>58113659

https://msdn.microsoft.com/en-us/library/windows/desktop/ff381399(v=vs.85).aspx
>>
>>58113693

If you want kindness, go elsewhere.
>>
redpill me on quaternions. what use beyond slerp do they have?
>>
>>58113753
Why? I don't understand why I'd have to go elsewhere. Can you explain to me?
>>
>>58113753
How about YOU go elsewhere?
>>
>>58113681
Not im, but my major problem with Dropbox is that all conflicting files get renamed, since having these computers connected to the internet isn't a guarantee. I have switched to using sshfs and backing up to Dropbox and Git.

Also, git is much more powerful with version control (commits to trace bugs, different branches, forks, etc). I would recommend using it over (or alongside) Dropbox
>>58113795
Because that anon is autistic and gets power from projecting his insecurities on strangers on the internet
>>
In Java, can I make the the variables and classes within a class that will only ever be instantiated once, static?

As long as there will only be one instantiation, it should be fine, right?
>>
>>58113795
Because this is 4chan, you fucking faggot.
>>
>>58108860
GODDAMN. I spent a truly insane amount of time on this CPU project and people who did half the work and implemented only half the fucking processor got 100s while I did not.

Honestly, I did so much work because I was interested in it, but it's ridiculous that work was not given the credit it deserved.
>>
Saving all my best posts for the new thread desu.
>>
>>58113832
tell senpai this
>>
>>58113832
but did it work?
>>
>>58113825
no static ever, friendo
>>
>>58113859
Yeah, better than everyone else's at that.
>>
>same behavior but used for different things and with different function names for clarity
is this an acceptable case of code/behavior duplication?
>>
>>58113828
>implying 4chan is supposed to be angry and short-tempered
By and large, people on 4chan are nicer than people in real life
>>
>>58113659
Either go for C# or look up C++ CLR projects
>>
>>58113871
absolutely not. just overload it.
>>
>>58113871
Why duplicate instead of just call the duplicate behavior inside the other.
>>
>>58113828
You make 4chan sound hardcore. Is that your intention?
>>
>>58113885
People here can be helpful, but that doesn't mean that they have to pleasant when they do it.
"Harsh" is just the default state.
>>
>>58113871
There's no acceptable case for duplication.
>>
>>58113862
>no static ever
nty
>>
>>58113930
>nty
I dont speak autism
>>
New thread:
>>58113953
>>58113953
>>58113953
>>
>>58110238
I don't think you'd have good luck getting into the embedded field without a degree, not saying it's impossible with a really good portfolio and a desperate company but I think the industry would be a little less accepting due to the fact that math and physics knowledge is more important in the field compared to your average webdev or mobile job
>>
>>58109951
classes in js
reactive in js
literally no perpose
Thread posts: 321
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.