[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: 322
Thread images: 33

File: shit font tbh.png (573KB, 587x551px) Image search: [Google]
shit font tbh.png
573KB, 587x551px
What are you working on, /g/?


Previous thread: >>56226097
>>
First for Go sucks.
>>
>>56228890
Is it worse than Rust?
>>
>>56228877
Nth for Haskell
>>
>>56228877
>What are you working on, /g/?
Fun CRUD project for data storage.

I thought CRUD was supposed to be lame, but I'm enjoying it so far.
>>
>>56228948
Have you thought about adding a Pi option?
You just have to store the index of when your data occurs (and the size)
>>
File: wtfmit.png (25KB, 514x224px) Image search: [Google]
wtfmit.png
25KB, 514x224px
Why do people keep parroting SICP? I'm 10 mins into the mit lectures and this shit hits. This is literally insane.
>>
>>56228971
>SICP
It's a meme.

No one sane actually uses this to learn.
>>
>>56228971
>limitations of our own minds

And algorithmic complexity
>>
>>56228971
Yeah, what is wrong with that?
>>
>>56228877

REAL THREAD:

>>56228753

>>56228753

>>56228753
>>
>>56228989
>posted before bump limit
Yeah, nah
>>
>>56228971
I keep re-reading and can't believe someone is saying this. It's like this shit gave me PTSD.
>It's the king of engineering where you ignore the constraints that are imposed by reality.
>>
>>56228964
>Have you thought about adding a Pi option?
I'm not sure what you mean by this.

Maybe I misconveyed what I'm actually building. I'm not doing data storage so much as "Take this data and store it over here in a specific format." except it's hundreds of GB at a time.
>>
>>56228971
He means tolerance as in https://en.wikipedia.org/wiki/Engineering_tolerance

which is a central concept in many engineering disciplines. What's wrong with it?
>>
delusional C# shart in marts think this can't happen to them

https://robovm.com/robovm-winding-down/

xamarin is a fucking pointless bloated layer on top of the java android api
>>
File: insubordinate clause.jpg (265KB, 515x700px) Image search: [Google]
insubordinate clause.jpg
265KB, 515x700px
>when you realize you're doing something completely insane and you cut runtime in half with the fix

Well, shit.

At least I caught it, right?
>>
>>56229020
I was joking, Pi is a transcendental number so you could "store" whatever data in it (only the index would be as big as or bigger than the data you're storing)

e.g.

3.1415

i want to store "14"
so I store 1:2d
i want to store "141"
so I store
1:3d

3.1415...................x:32857238957235778932579235
32857238957235778932579235
x:26ish-d
>>
>>56229029
Programming is not magic. Your shit doesn't float in a magical ether fueled by CS grad dreams.
>>
>>56229063
How many threads are you going to say this in?
Why do you like saying "magical aether" so much?
>>
>>56229062
Oh yeah.

Didn't they use that for a TV show or something? The whole idea that all data eventually exists in Pi (that we know of).
>>
>>56229063
the code runs exactly how it is written. there is no "tolerance" to worry about.
>>
>>56229075
That was someone else

>>56229087
I didn't highlight tolerance. That was just the browser search. I've heard that "magical abstractions" bullshit in the video, couldn't believe what I was hearing and looked it up in the transcript by "tolerance".
>>
>>56229087
There is undefined behavior, which is (surprise) not defined. Therefore making heisenbugs possible etc.
>>
>>56229120
>That was someone else
So what, you need to pass the baton?
>>
>>56229141
No, I just liked how the original guy put it and it stuck in the back of my mind. Also didn't hear it from here.
>>
>>56229132
if your code has UB you're doing it wrong
>>
>>56228877
my master's degree

kill me now
>>
>>56229164
Do you use C?
If so, you are programming in a magical aether that does not exist at the hardware level
>>
>>56229198
>my master's degree
In what?

Did you have work experience or straight out of undergrad?
>>
>>56229171
I never disputed that, just wanting to add it's existence for the sake of being exact.
>>
>>56229205
That's the case for all languages. Even C.
>>
>>56229225
>In what?
Gender Studies and Black History

>Did you have work experience or straight out of undergrad?
No
>>
File: BOLIsuECYAEsZwu.jpg large.jpg (24KB, 460x345px) Image search: [Google]
BOLIsuECYAEsZwu.jpg large.jpg
24KB, 460x345px
>>56228877
>What are you working on, /g/?
Started implementing parts of the C standard library for my kernel.
>>
>>56229448
>C standard library
Why?
>>
>>56229444
>This is the first post from this IP in this thread.

Come on, anon. We can see that shit.

>>56229171
>Undefined behavior

I prefer to call it "dynamic features".
>>
I'm gonna be doing an android application. Is react native a meme or should I stay with vanilla android development?
>>
>>56228902
You can build web apps with it. Not so much with Rust http://www.arewewebyet.org/
>>
>>56229528
stay with vanilla android development

especially avoid anything called 'react', 'agile', 'angular', 'node' or whatever the shit
>>
>>56229528
use xamarin
>>
>>56229616
I use Xamarin, but I would certainly not recommend it to someone that doesn't already know C#.
>>
>>56229633
I do know C#, is it much different from working vanilla android development?
>>
>>56229656
They are very different, and unfortunately, both are quite painful.

That being said, Xamarin can be pretty comfy, especially if you're doing a multiplatform app (write once, deploy to iOS, Android, and WinPhone).

Personally, I'm extremely comfortable with Visual Studio, so that makes the development that much more accessible to me.
>>
File: akari2.jpg (58KB, 514x524px) Image search: [Google]
akari2.jpg
58KB, 514x524px
Rate my UTF-8 converter!
char hex_value(char c)
{
c -= (c >= 'a' && c <= 'f') ? ' ' : 0;
if (c >= '0' && c <= '9')
return c - '0';
else if (c >= 'A' && c <= 'F')
return c - '7';
else
return 0;
}

char *utf8_rewrite(char *str)
{
/* %E5%88%9D%E9%9F%B3%E3%83%9F%E3%82%AF => 初音ミク */
unsigned i, j;
for (i = 0; str[i]; i++)
{
if (str[i] == '%')
{
for (j = 1; j <= 2; j++)
str[i] = (str[i] << 4) | hex_value(str[i+j]);
memmove(&str[i+1], &str[i+3], strlen(str)+1);
}
}
return str;
}
>>
>>56229715
It's shit
>>
>>56229715
>blankposting
>>
>>56229715
> >=, <=
Triggered
>>
File: 404-anonymouse.png (61KB, 266x500px) Image search: [Google]
404-anonymouse.png
61KB, 266x500px
>>56229060
let's write our own universal IDE that would support all meme languages and all the error codes are 4chan insults.
>parameter missing, faggot
>no value set, manlet
>invalid syntax, kys
>>
>>56229087
>the code runs exactly how it is written
the C standard (and by implication everything built on C) doesn't require a particular implementation of e.g. floating point numbers, which means e.g. numerical stability is permitted to vary cross targets

>if your code has UB you're doing it wrong
i'm skeptical that there exists any significant C project without UB
>>
>>56229804
Or instead of wasting time, we only make it for relevant languages, i.e C/++. And give people the option to extend it with their gimmick languages.
>>
>>56229457
libstdc usually ships with the kernel because it needs to work with system calls
>>
>>56229804
> >kys

I thought you said 4chan insults
>>
>>56229804
I think you can already do this in Visual Studio.
>>
>>56229715
undefined behaviour
>>
What would happen if stack overflow suddenly vanished?
>>
>>56228971
because Abelson's "computer science is not as science" shtick depends on the rejection of computing as a phenomenon that occurs in reality

if computing is a real phenomenon then it can be measured empirically, and in fact people do this every time they run a benchmark, which are radically more accurate than the spherical chickens in a vacuum turned out by complexity theorists
>>
>>56229863
>>56229848
>>56229837
the point was to distribute it to losers who think they are coders. fresh graduate, pajeets, etc
but we praise in blogs and reviews. oh it's my fav thing.
>>
>>56229894
/dpt/ gets gayer

We get 100 SO clones
>>
>>56229901
>coders
Fuck off "coder"
>>
>>56229891
Where?
>>
>>56229901
This sounds genuinely lame.
Please refrain from posting again.
>>
>>56229894
boost C++ would lose all its users
>>
>>56228971
SICP is masturbatory wank imo, it really is a meme
>>
File: welcome to the right DPT.png (38KB, 703x430px) Image search: [Google]
welcome to the right DPT.png
38KB, 703x430px
>>
what should i read if i want to jump from C# to java?

also any prolog fags here? im curious as to whether anyone uses it for anything other than AI
>>
>>56229993
kek - even the mods do something right once in a while
>>
>>56230007
"java for dummies" by barry burd or "head first java"
>>
File: 1428798620339.png (197KB, 911x915px) Image search: [Google]
1428798620339.png
197KB, 911x915px
friendly reminder that the people who unironically hate java are fantastically incompentent and like to delude themselves into thinking similar/worse languages like C# are somehow infinitely better
>>
>>56230067
D kicks both their ass
>>
File: mpv-shot0001.jpg (64KB, 1280x720px) Image search: [Google]
mpv-shot0001.jpg
64KB, 1280x720px
This triggers the pajeet.
>>
Is there a reason why C bitfields are almost completely ignored in favor of bitwise masks?
>>
>>56230103
>C bitfields
you mean uint32_t?
>>
>>56230100
That's the way of the Pajeet.
>>
File: mpv-shot0002.jpg (63KB, 1280x720px) Image search: [Google]
mpv-shot0002.jpg
63KB, 1280x720px
This puts the poo in the loo.
>>
>>56229715
>confusing terms
>>
File: mpv-shot0003.jpg (63KB, 1280x720px) Image search: [Google]
mpv-shot0003.jpg
63KB, 1280x720px
>>56230162
This designates the shitting street.
>>
>>56230029
will that get me up and running faster than any other book?

>>56230067
its rather easy to hate java when youve only got limited experience of how terrible programming languages can be
>>
File: mpv-shot0004.jpg (62KB, 1280x720px) Image search: [Google]
mpv-shot0004.jpg
62KB, 1280x720px
>>56230188
This makes the son's stomach hurt.
>>
File: mpv-shot0005.jpg (41KB, 1280x720px) Image search: [Google]
mpv-shot0005.jpg
41KB, 1280x720px
>>56230211
This throws a poo party at the loo.
>>
>>56230194
https://docs.oracle.com/javase/tutorial/

you can run through this really fast
>>
>>56229894
Another one would be created.

Why do you ask?
>>
So I wanted to make simple multiplayer card game (inspired by Duelyst and Magic Duels), but I'd like to avoid using external server. Is there any possibility to connect two players over the Internet behind routers? I heard about UDP hole punching but it uses external server anyway.
>>
>>56230359
>Is there any possibility to connect two players over the Internet behind routers?
Tor. Make each user publish a hidden service.
This gets you built-in encryption automatically.
Look at Ricochet, a chat program that works like that.
>>
>>56230359
One player acts as the server and everyone else is a client.
For games where latency isn't a problem, like fucking card games, it's perfectly fine.
>>
File: mpv-shot0006.jpg (96KB, 1280x720px) Image search: [Google]
mpv-shot0006.jpg
96KB, 1280x720px
>>56230289
>>
>>56230428
>One player acts as the server and everyone else is a client.
No shit.
The problem is reaching the socket behind the NAT.

>>56230410
Wouldn't that be extremly slow as for video game?
>>
>>56230359
Don't.
If you make all your 'duels' server-side it's probably the only type of game you can make hacker-/cheater-proof.
>>
>>56230290
im looking for detailed info on the language, best practices with it, and its best tools. not beginner tutorials are not what im looking for.
>>
>>56230443
link?
>>
>>56230474
>double negative
fug
>>
>>56230458
I feel like you shouldn't have to code defensively against improperly configured network connections.

Let them figure it out.
>>
>>56230458
>Wouldn't that be extremly slow as for video game?
You can expect a latency of under a second. Enough for turn based games.
The plus side is that Tor can work through almost any firewall.
>>
>>56230502
>>56230458
P.S. Just try the Ricochet chat program on 2 computers. You could even use its code.
Another advantage of Tor hidden services: built-in authentication between the users.
Try Ricochet and you will see.
>>
You don't know what he'll is, /dpt/. I thought I liked programming. That was before I entered this shit fuck of a project. Now my biggest concerns are micromanaging bosses, shifting requirements, siloed teams and terrible communication. I'll be lucky if I don't kill myself before this project launches.

Don't get into professional programing, /dpt/. Just trust me on this.
>>
>>56230550
>don't work for shitty companies

thank you captain obvious
>>
>>56230550
Oh, I know. I'm currently NEET because I couldn't take it anymore.
>>
OMGosh why is android studio sofa king slooooooooooooooooooooooooooooooooooooooooooooooooooooooooow?
fucking makes even notepad unresponsive
plz help. i think it's some gradle shit idk
>>
File: vingboons_1664_lg.jpg (343KB, 2000x1364px) Image search: [Google]
vingboons_1664_lg.jpg
343KB, 2000x1364px
>>56229528
use ndk/native activity with c++

>>56230482
look for mike acton cppcon

>>56230687
visual studio + c++ + opengl + ndk
>>
>>56230709
>visual studio + c++ + opengl + ndk
huh?
>>
>>56230211
>tfw I'm really interested in type/category theory as it applies to writing efficient code
For instance, a type system powerful enough where you can easily write code that automatically transposes your data from AoS to SoA.
>>
>>56228877
I'm writing a bulk XML writer class in c#.
XmlExtensions(List<string> _stringList1, List<string> _stringList2, List<string> _stringList3)
{
stringList1 = _stringList1;
stringList2 = _stringList2;
stringList3 = _stringList3;
mode = 06;
BulkWrite();
}

Currently building BulkWrite() method
>>
>>56228877
What can I even do with Java? I've read a bunch of books and tutorials on it. But unless I want to get into web or mobile development, the language seems pretty limited.

I fell for the "3 billion+ devices" meme.
>>
>>56230802
Be a code monkey on enterprise projects that have been using Java for decades already.
>>
> start writing a compiler
> plan on having multiple passes that generate slightly different intermediate languages
> haskell doesn't support inheritance for ADTs

DROPPED
R
O
P
P
E
D
>>
Made a crawler that gathers data and puts it into a DB. Trying to figure out what the fuck to do with the data right now.
>>
>>56230733
What exactly are you doing?

I can almost guarantee this is already built-in.
>>
>>56229891
literally everything is undefined behavior
there might be a fucking electrical storm and my computer turns off

is what happens then defined, faggot?
>>
>>56229896
>which are radically more accurate than the spherical chickens in a vacuum turned out by complexity theorists

Too true.
>>
>>56230865
Yes.
>>
>>56230842
data Shared a = Lam a | App a a

data Named = Var String | Named (Shared Named)
data DeBruijn = Idx Int | DeBruijn (Shared DeBruijn)
>>
>>56230905
looks a bit clunky but i guess that would work.

i'll try it out
>>
>>56230935
It also gets around the fact that you can't have two constructors with the same name in the same module.
>>
Once you know one language comprehensively (say Python), how easy is it to learn other languages such as C++, Ruby, R?
>>
>>56230960
yeah I knew that was part of the problem but you'd think ghc would be able to figure out which was the right one.
>>
>>56230966
That depends on you more than anything.

The only sure thing is that additional languages are often much easier than the first.
>>
>>56231018

To be honest, I still feel like I don't know Python comprehensively enough - this is mainly because of the amount of libraries and shit that there are to learn as well as the language itself.

Any tips? My friend told me to do a lot of projects, and another thing I'm doing is interview questions.
>>
>>56231055
There's no point in learning all of the possible libraries of any high-level language.

The important thing is that you can efficiently solve problems that you don't currently know the answer to.
>>
File: 1420500175412.jpg (438KB, 900x2134px) Image search: [Google]
1420500175412.jpg
438KB, 900x2134px
hello my friends
which ones from here would be good to pick up for a newbie? which ones should I avoid until I learn more?
thank you and god bless
>>
>>56230802
Aren't there opengl bindings for java? Pretty sure you can do most anything with pretty much any language.
>>
>>56231089
I think he's asking about stuff that other languages can't do, because most other languages are way better than Java.
>>
>>56231083

newbie here, would also like to know the answer. The Knuth book and SICP seem too dense for a complete novice, but maybe I'm wrong
>>
>>56230802
only your imagination is limited
>>
I don't even know if I'm improving in my programming or not
>>
>>56231112
nice meme fag
>>
File: 1462210815648.webm (2MB, 640x360px) Image search: [Google]
1462210815648.webm
2MB, 640x360px
>C# generics are simple, efficient, and nearly foolproof. Java generics resemble C++ templates in their tendency to generate incomprehensible compiler errors, yet don’t even support unboxed primitives as type arguments! If you want an efficient resizable integer collection in Java, you cannot use any implementation of List<T> etc. because that would force wasteful boxing on all elements.
>Instead, you must define your own non-generic collection that hard-codes int as the element type, just as in the bad old days of plain C or .NET 1.
>>
>>56231137
Case in point: >>56231145
>>
>>56231083
learn python, then c#, then when you try making something with more than a handful of classes, read gang of four
>>
>>56229582
You can't build much of anything in Rust.
>it will be ready someday
It's literally vaporware.
>>
>>56231145
>generics
shart in mart
>>
>>56231180
GoF patterns are for describing code, not writing it.
>>
File: nativeact.png (74KB, 1296x778px) Image search: [Google]
nativeact.png
74KB, 1296x778px
>>56231083
>SICP
>haslel
>design patterns
>lisp

>>56230720
like this
>>
>>56231187
nice meme m8

>>56231191
you sure? i may be thinking of something else then
>>
>>56231116
SICP is a bit hard and knuth for sure
a bit of experience can help before trying those, but SICP is really really good and worth the effort
>>
>>56231212
You don't think "oh, I will solve this problem with a Visitor". They are simply a language for describing OO software (because most of them are trivial constructs in functional languages). Using them as tools is a perfect example of linguistic relativity, and you're just limiting yourself.

The same goes for UML. You don't need to make a UML class diagram before writing any code, you make one when the project becomes big enough that you need something to get new contributors up to speed.
>>
>>56231252
>>56231212
>>56231191
>GoF patterns are for describing code, not writing it.
That was the intent, but Java Enterprise idiots got it all backwards and wasted years designing their codebases around "how can we apply literally all of these design patterns as much as possible."
>>
>>56230859
Not him, but learning purpose?
>>
File: cover_hackingciphers_thumb.png (74KB, 240x300px) Image search: [Google]
cover_hackingciphers_thumb.png
74KB, 240x300px
>>56231180
I am currently learning python with this book, I'm not completely new to it as I've messed around with it a bit before but this is the first book I'm reading. What are some other recommended python books for when I finish this one?
>>56231199
Are you saying I should read those or I should avoid those?
>>
>>56231247

Is it difficult in the sense that it requires programming experience, or mathematical sophistication?
>>
>>56231252
It's a shame, because when I learned Java for the first time, we had every design pattern imaginable shoved down our throats from the get-go.

Like anything else, the first experience ruined my perception of the subject, so I pursued other languages immediately.
>>
>>56231283
avoid
this >>56231270 guy got it right
SICP(w/ lisp) is a literally dangerous meme >>56228971 along with haslel
>>
>>56231270
nice meme, it's not like that in reality, just in your deluded sperg brain, sure there are retarded software shops but that applies to all languages and they're not relevant
>>
>JIDF (Java Internet Defense Force)
POO
>>
>>56231306
>haslel
Elaborate
>>
>>56231310
I think the issue is not so much the shops, but rather the universities that teach in the way >>56231298 is describing.
>>
>>56231298
this never happen, java is pleasent to learn
>>
If I use the C# networking API with Unity, is that going to be cross-platform? I'm developing an iOS/Android app. Is the entire C# standard library cross-platform or am I gonna run into issues?
>>
>>56231252
Am I right in understand too that design patterns are meant to arise naturally in your code after a while? Like, you don't start coding with a pattern in mind, but after a while you might start to see them develop naturally.
>>
>>56231322
no universitites teach ithat way
>>
>>56231252
what exactly is the problem with this approach? surely building software up using tried and true patterns is a generally good idea.
>>
>>56231321
all functional programming is dangerous and balls to the walls retarded
if you actually want to do shit and reason about shit, learn C or C++
ignore memes like lisp or haskell
>>
>>56231338
it's trash
>>
>>56231357
Yes, they do.

>inb4 b-but it's probably only shit universities
>>
>>56231283
read a proper book on how to write quality python code, not some gimmicky cybersec book that wont teach you much more than one specific application of the language.
>>
>>56231375
all universities are shit at teaching programming
>>
Work continues on my wiki table editor. I'm trying to make it feel as much like excel as possible, while being constrained to stuff that can easily be converted to mediawiki markup.
>>
>>56231361
Is C++ dying a meme, is it still worth learning?
>>
>>56231376
That is what I am asking for I guess.
>>
>>56231338
>the C# networking API
Do you mean System.Net?

As long as they're using the Mono or .NET Core implementation, you should be fine.
>>
>>56230550
from a NEET that worked has since 12, welcome to any salaried job out there.
>>
File: euphoric.jpg (163KB, 500x688px) Image search: [Google]
euphoric.jpg
163KB, 500x688px
How can I tell if I'm getting better at programming?
>>
>>56231412
ok, now go do it
>>
File: 1440041930022.jpg (15KB, 250x250px) Image search: [Google]
1440041930022.jpg
15KB, 250x250px
>>56231376
10/10 answer

>Which book should I read next?
>A good one
>>
>>56231376
>python
>proper
>quality
AHAHAHAHAHAHAHA
>>
File: 1470489844968.jpg (31KB, 960x960px) Image search: [Google]
1470489844968.jpg
31KB, 960x960px
>>56231430
But I don't know what book yet
>>
>>56231410
c++ is the last good language ever invented
it will always be top dog, forever, even when the human race is extinct some future civilization will rediscover c++
>>
>>56231459
not really my problem now is it
>>
>>56231410
It's the best language to learn.
There's no sane reason to learn/use as a main language C for mainstream programming(only in some niche cases). You can program C-style C++, which you should

If you're not convinces, here's a simple graph with basis on scientific facts.
>>
>>56231412
if youre a complete beginner go look up the recommended reading for MITs intro programming module (the python one) for their CS students and read whatever you think is appropriate

>>56231428
do you fuck up to lesser degrees?

>>56231438
no problem senpai

>>56231456
could be worse, it could be java
>>
>haskell
>python
>memelang#129812
why is /dpt/ so fucking shit
>>
>>56231413
That's pretty impressive. I know cross-platform C code was a pain in the ass if you stuck to the standard library since Microsoft's POSIX sockets are fucking retarded
>>
>>56231485
>could be worse, it could be java
haha nice bait very funny here's your (You)
>>
>>56231461
>>56231473
But what about it being difficult to program in? I've heard it takes years upon years of practice to be even kind of good at due to stuff like manual garbage collection.
>>
>>56231485
>python as first lang
this meme has gone too far
DO NOT DO THIS
C + +
+ +
+ + C
>>
>>56231487
If you want better advice go to Freenode and visit ##c, ask for Zhivago
>>
>>56231485
Thank you anon
>>
>>56230722
>For instance, a type system powerful enough where you can easily write code that automatically transposes your data from AoS to SoA.

That sounds like rewarding work. I like optimization problems. I wonder if we'll ever get to a point where the hardware doesn't require handling things in continuous chunks. Like a cpu that would be able to figure out it needed to pull a particular element out of a bunch structs and put that on the data bus out of the cache. You'd have overhead to keep track of it but I wonder how bad the tradeoff would be.
>>
>>56231473
>>56231410
C++ is a badly designed ancient language.
Go for a modern lisp or ML based language.
>>
>>56231501
see >>56231145

i want to like java, but god damn do the java devs need a fucking slap

>>56231508
would you prefer he learn VB, PHP, or JavaScript?

>C++
tip top kek, ive never used a language ive hated quite like C++
>>
>>56231509
i don't even come here for advice it's just a shitty habit because i have nothing better to leave as the idle page on google chrome
>>
>>56231493
Well, yeah, the whole point of Mono/.NET Core is to have all non-Windows-specific functionality to be native to all supported operating systems, so when you call the same library on different OS's, you're accessing a different implementation with a certain set of guarantees for your code.
>>
>>56231508
but Cancer++ is absolute dogshit
>>
>>56231506
>manual garbage collection.
And this is why you should learn C/C++ first
The "it's hard" bullshit is parroted by people who don't know it. It's not. You control the lifetime of *your* resources. That's it. Ask for some memory block from the system. Do something with it. Give it back to the system when you don't want it anymore, whenever you want. That's it.

>>56231534
>>56231575
it's the most beautiful language you shitter
>>
>>56231508
C++ is depressing to use, and ugly to look at.
>>
File: pigs.png (13KB, 562x272px) Image search: [Google]
pigs.png
13KB, 562x272px
>>56231590
what did he mean by this?
>>
>>56231287
it's not really that difficult programming wise, but if you're a complete novice, the programming combined with the terminology and math stuff they use can be kind of overwhelming.

I'd give it a shot and if you can handle it then go for it.
>>
>>56231616
C++ makes me sad when I use it, and it is not aesthetically pleasing.
>>
>>56231580
no, its an ancient, poorly conceived sack of shit
>>
File: 1445405579477.webm (1MB, 960x540px) Image search: [Google]
1445405579477.webm
1MB, 960x540px
>>56231083

>/prog/
>>
>>56229896
he's not saying that measuring your shit isn't scientific, but that what people mean by "computer science" isn't science, which is quite obviously true. Who develops software via scientific method?

>>56228975
>>56231306
>>56229963
> i don't want to learn how to write and understand interpreters, compilers, logic programming languages, message passing and polymorphic dispatch, lazy evaluation, or backtracking nondeterminism
>>
>>56231689
>> i don't want to learn how to write and understand interpreters, compilers, logic programming languages, message passing and polymorphic dispatch, lazy evaluation, or backtracking nondeterminism
that's right
I don't
>>
>>56231580
>it's the most beautiful language you shitter
take C
a programming language with use and high functionality and smear it with dogshit and Java then you have C++
>>
>>56231654
Still alive
>>
Task: rewrite this code written in python in another concise way:
for i in range(4):
foo()
for i in range(128):
bar()
>>
>>56231705
ok pajeet
>>
>>56231580
>this is why you should learn C/C++ first
Does the 'C/C++' mean learn C, then C++ afterward? Or to learn C-style C++ or something like that?

I get that doing the hard yards is a good thing, but I wonder about whether there's more to the language than just that learning experience. Would I be more productive with C# or Python instead?
>>
>he doesn't tag his 64 bit pointers to save registers
#include <stdio.h>

#define TAGPTR(ptr, val) (((unsigned long long)ptr = (unsigned long long)ptr | val))
#define READTAG(ptr) (((unsigned long long)ptr & 15))
#define READPTR(ptr) (((unsigned long long)ptr & 0xFFFFFFFFFFFFFFF0))

int square_or_maybe_cube(int* a)
{
if(READTAG(a) == 0)
{
return *a * *a;
}
else if(READTAG(a) == 1)
{
a = READPTR(a);
return *a * *a * *a;
}
else
return 0;
}

int main(void)
{
int a = 25;
int* ptr = &a;
int* tagged_ptr = &a;

TAGPTR(tagged_ptr, 1);

printf("%d\n", square_or_maybe_cube(ptr)); // 625
printf("%d\n", square_or_maybe_cube(tagged_ptr)); // 15625

return 0;
}
>>
>>56231740
>Would I be more productive with C# or Python instead?
Yes, by a large margin.

C# and Python let you actually start doing things.

I can do something in less than 10 lines of C# that would take hundreds of lines in C.
>>
>>56229083
Person of interest
>>
>>56231709
you can(should) write C-style C++; you've got the core and no fluff, but can still take advantage of some nicer C++ syntactic sugar and if you want to do something quick, the flexibility of the STL
nobody is forcing you to go full retard OOP

>Does the 'C/C++' mean learn C, then C++ afterward? Or to learn C-style C++ or something like that?
Learn C++. Then when you've got a bit of experience, shed some of C++'s fluff and program mainly C-style.
>>
>>56231740
>Would I be more productive with C# or Python instead?

>productive
hands down
>lightweight and flexible
ehh... maybe not as much...
>>
>>56231756
>assignment makes pointer from integer without a cast [enabled by default]
>error: lvalue required as left operand of assignment

kys
>>
>>56231811
>he thinks it's C++
It's C, retard
>>
>>56231822
Exactly.
>>
>>56229205
You fucking killed me. Fucking kekd
>>
>>56231721
>>56231721
>>56231721
bump
>>
>>56230124
>he doesn't know what bitfields are

>>56230103
Because they can only be used in structs I guess.
>>
>>56231855
Do your own homework.
>>
>>56231897
bump
>>
How do you write aesthetic C code, /dpt/?

This is the best I've been able to manage
#include <stdio.h>

void strrev(char* c) {
int len = 0 ;
while(++len]) ;
while(len--) {
char temp = *c ;
*c = c[len] ;
c++[len--] = temp ;}}
int main() {
char* s = "Hello world!" ;
strrev(s) ;
printf("%s", s) ;}

>>
>C++ is SHIT no one uses it anymore its badly designed!

its multiparadigm

literally all the meme languages you use are programmed and implemented in C++ be it a virtual machine or a compiler. C++ is everywhere and the same people that fox-and-grapes it like "nooo no one uses it its too complicated and ugly!"
>>
>>56230162
>>56230188
>>56230211
>>56230289
I actually had a shitter link this to me in the past. These faggots always whine about academic circle jerk.
>>
>>56231721

[[bar() for i in range(128)] and foo() for i in range(4)]
>>
>>56231913
trolling too hard
>>
>>56231756
> he doesn't use a stack machine to use 0 registers
>>
>>56231921

tell me if this helped you faggot
>>
>>56231916
>literally all the meme languages you use are programmed and implemented in C
ftfy

of course GNU sucks so they use C++ for GCC now despite RMS' hatred for it
>>
>>56231916
same argument goes for common lisp except common lisp actually has a decent metaprogramming system and not shit arbitrary unflexible syntax


>>56231938
i compile my meme languages all the way down to assembly you dumb cuck
>>
File: schmakrersahnk.png (60KB, 1263x833px) Image search: [Google]
schmakrersahnk.png
60KB, 1263x833px
Anyone here use Hackerrank? I've got like 1500 pajeet points on it
>>
>>56228877
>What are you working on, /g/?
This appacademy problems for my first test. I just started programming. Been using codeacademy but that doesn't fucking teach me shit.
>>
>>56231937
>[[bar() for i in range(128)] and foo() for i in range(4)]
doesnt work

when i do those 2 loops , i am populating a list with values list = [(255,0,0),(123,54,23),...]
>>
>>56231887
i know what they are i'm just saying they're pointless kill yourself
>>
What are the BEST resources for data analysis with Python?
>>
File: Screenshot - 230816 - 22:42:38.png (22KB, 965x480px) Image search: [Google]
Screenshot - 230816 - 22:42:38.png
22KB, 965x480px
>>56231957
>>
>>56231979
>i know what they are
No, you clearly didn't. You even thought that uint32_t was a bitfield? kek
>>
>>56231957
yeah i did a few of the compiler and parser ones but one or two of them are buggy and don't pass tests when submitted even though they pass when run manually.
>>
next /g/ame to code:
rape simulator VR
>>
>>56231918
for good reason
>>
>>56232002
FUCKING SPERG i implied that bitfields are irrelevant and that plain uint32_t is what you should use instead
>>
>>56231973

it does work you fucktard, I just ran both of them on a basic print function and the output is the same.
>>
File: 8.png (1KB, 139x59px) Image search: [Google]
8.png
1KB, 139x59px
>>56232010
An anon is already working on that.

Has a full genetics system to procedurally generate lolis.

>>56232030
No, you didn't.
>>
>>56232050
>i know what the author intended better than the author himself
stay delusional RETARD
>>
>>56231986

check out Allen B Downey's work, his books are great and he does a lot of data work.
>>
>>56231957

i can't for the life of me solve this one

https://www.hackerrank.com/challenges/bear-and-steady-gene
>>
>>56232030
>it was the carposter
Ah, if I knew I would probably had ignored your bait.

>i implied that bitfields are irrelevant and that plain uint32_t is what you should use instead
No, you clearly didn't. Also uint32_t is NOT a replacement for bitfields in the way >>56230103 asked. Surely uint32_t can be used for bitwise masks just like any other integer type however it is not relevant to the question at all.

Yet another thing that the carposter has no idea about has been added into the list. Weren't you banned in the last thread? Are you ban-evading?
>>
>>56232082
kill yourself retard
>>
File: fp_rank.png (68KB, 1255x313px) Image search: [Google]
fp_rank.png
68KB, 1255x313px
>>56231957
>>56232006
my fp rank
>>
I have an interview with Botnet tomorrow.

Does anyone know a good site for practicing hard problems? Looking for some good breadth/depth first search problems.
>>
>>56232078
And you pretend to be a developer? What are you doing on /dpt/?
>>
>>56232101

wow nice. I only started programming 3 months ago (I'm the guy with 1500). I've done all Implementation and Starter challenges so far. I want to pretty much finish everything in Algorithms before I move on.

I don't know any FP languages, just Python so I'll probably have to learn one before I move on to that one.
>>
>>56232110
>developer
Pajeet term desu senpai.
>>
>>56232110

post a solution then nigger
>>
>>56232078
from collections import Counter
import sys, math

n = int(input())
s1 = input()
s = Counter(s1)

if all(e <= n/4 for e in s.values()):
print(0)
sys.exit(0)

result = 9999999999
out = 0
for mnum in range(n):
s[s1[mnum]] -= 1
while all(e <= n/4 for e in s.values()) and \
out <= mnum:
result = min(result, mnum - out + 1)
s[s1[out]] += 1
out += 1

print(result)
>>
I hate OOP. Are there languages that don't implement OOP?
>>
>>56232159
haskell
>>
>>56232159
C
>>
>>56232149

what does this actually do? sliding window or otherwise?
>>
>>56232105
>getting a job
lmao retard kys
>>
So, I got to manage a payload that comes as byte array in C++, I don't want to mess with pointers since I don't alter the array, so I'm thinking of making a wrapper class. Is this recommendable? Any advise if this is the best way?
>>
>>56232249
>being a failure NEET like you

kys
>>
I like to use programming to solve math stuff and manage files. What language is the best for me?
>>
>>56232249
>being a NEET unironically
>>
>>56228155
anyone?
>>
>>56232278
python
>>
>>56232278
Literally any of the major languages.
>>
>>56232278
bash/zsh/sh
>>
>>56232297
what problem are you having?
>>
>>56232278
refer to the following easy to follow chart >>56231473

Thank you.
>>
>>56233333
obey the quints!
>>
A cache miss isn't noticeable by a human. Code that cache misses a lot runs 10-100x slower than code that takes into consideration that it's running on a physical machine and not an abstraction. That is very noticeable by humans. Even when your data structures and algos are designed with a nice O(logN), it's very noticeable when one program bogs down with 1/6 the data compared to another.
I work in games, so the story I tell new kids is: The PlayStation2 ran at 300Mhz and a cache miss would cost you 50 cycles. The PlayStation3 ran at 3200Mhz and a cache miss would cost you 500 cycles. So, if you are cache missing a lot, your PS3 game will run as if it were on a PS2.
In other words, not paying attention to cache make your computer run like it's 10 years older than it is. You paid for a modern machine, but you are getting the results of a Craigslist junker. This is true outside of games. It's the reason 4x2Ghz cellphones struggle to run seemingly simple apps. It's a big part of the reason people struggle to orchestrate armies of servers (distributed computing is easier when it's 90% less distributed).
Is it really harder to work with the cache system instead of ignoring it? Yeah, it requires a tiny bit of study an a little bit of planning. In contrast, the theme I see a lot online is to completely dismiss physical reality in favor or theory. And, the theme I see almost universally in the students (and many senior engineers) I interview is complete ignorance of the very existence of cache and it's effects on the code they write. It's very concerning...
>>
>>56232363
No, I don't deny it's important to know that cache misses exist, and what they can do: to the contrary, it's vital.

However, in 90% of applications, it's not going to matter, because those applications are spending hundreds of cycles waiting anyways: Disk or network IO, user input, all that stuff is way slower than a cache miss. If you're writing a video game, or a database, or other software with very high soft-realtime speed requirements, or heavy data access, by all means, optimize to avoid cache miss.

But if you're writing a company-internal Rails app, nobody's going to notice, even if you're getting cache miss after cache miss. Which you probably won't.

Actually, if your language isn't compiled, a cache miss is the least of your worries, perf-wise.

And now I've got to see if I can optimize my code to avoid cache misses. But the code's in Scheme, so unless the initial access cost is amortized, I'm already doomed...
>>
>>56232363
This is why it's often faster to just iterate through an array vs. implement some retarded CS algorithmic "optimization". But no one in Academia gives a shit about real world performance.
>>
>>56232345
There is a difference between the AMD and Intel Programming manuals in regards to the cpuid instruction

specifically when determining the Model and family fields of a processor. I have it working correctly with a Intel processor, but the AMD manual on the same subject doesn't quite match and using the AMD method
gives me incorrect results.

I don't have a AMD processor to test this with so I want to know if there is a difference in implementation/semantics
(so I should handle it when messing with the cpuid instruction)
or if the AMD programming manual is garbage.
>>
>>56232278
i don't like lisp for most stuff but it seems like the perfect language for mathematical computations
>>
>>56231348
Basically. Well, if you're limiting yourself to OOP, anyways.

>>56231360
Yeah, but GoF design patterns are all garbage. That, or obvious, if you're not constraining yourself to using objects and classes as your only tool.
>>
>>56232449
well i my computer has:

>AMD Quad-Core A10-8700P
>AMD Radeon R7 M360 2GB

i can check something if you want
>>
>>56232388
>webdevs still think they are real software engineers
REEEEEEEE
>>
>>56231520
The topic of data types is really interesting to me. We've pretty much totally figured out the procedures part.
>>
>>56232505
are they at least worth adhering to as a beginner?
>>
>>56232388
typical C#/java/javascript/hipster reasoning

>"its slow because X and Y and Z and it's of a better practice to avoid such and such"
>who cares! no one cares!!! it doesnt matter! dont worry about it!!! so what!!!! no one cares!!! No one notices the slow down just deal with it!
>>
Rust noob here. Trying to read in a series of int values and then print them out in reverse order. The first line of input is the number of values and the second line contains the values separated by a space.

use std::io;

fn main() {
let mut len = String::new();
io::stdin().read_line(&mut len).unwrap();

let arr: [i32; len] = [0; len];
let mut buf = String::new();
for n in 1..len {
io::stdin().read_line(&mut buf).unwrap();
arr[n] = buf;
}

for n in len..1 {
print!("{}", arr[n]);
}
}


I have no idea what I'm doing. Rust users...help.
>>
>>56232556
No. Best to completely ignore that book until you need to know design patterns for a job. You'll want them in that case, because it will help you decipher the shitty OO code you'll have to work on. The ironic part is that the code is probably shitty because it was written with design patterns in mind.
>>
>>56232567
you're retarded.

that reply was pulled from here:
https://news.ycombinator.com/item?id=12342300
>>
>>56232556
You don't adhere to design patterns. You're not supposed to shove them in. They just describe some common solutions to common problems. If you somehow try to adhere to them you will likely end up overusing them.

I'd probably recommend you don't worry too much about them. They will generally be obvious when you actually need them.
>>
>>56232584
so how does one go about designing good, reliable, easy to understand software?
>>
>>56232567
Sometimes it literally doesn't matter, though.
>>
>>56232616
Here in /dpt/ we do groundbreaking stuff where that is very important. Go somewhere else with your CRUD Rails app Pajeet Rajeshson.
>>
>>56232608
Follow actual principles like low decoupling, high cohesion. And use the right tool for the job.
>>
>>56232608
something something haskell

but seriously, don't listen too much to these guys. most likely they have never touched enterprise code in their entire life. design patterns aren't a meme, if used in the right way
>>
>>56232642
Oh noes I have been discovered!

*shuffles off to poo in the loo*
>>
>>56232510
sure why not, I just need to see if the information from cat'ing /proc/cpuinfo is the same as given by the program
https://gist.github.com/anonymous/4475ee520ff998ab0463458d36f24af3
>>
>>56232650
>most likely they have never touched enterprise code in their entire life
This is true for the vast majority of /dpt/, unfortunately.

I'd be willing to be that less than 20% of us actually get paid to program.
>>
>>56232650
The right way to use design patterns is as a language to communicate about code. Not as tools.

Think about the name. You identify patterns. You don't make them just because.
>>
>>56232650
The right way is very sparingly.
>>
>>56232510
>APU
>dedicated GPU
What are laptop makers thinking?

Yeah, they probably have different CPUID results, you are probably supposed to test the processor brand and then design to each spec.
>>
>>56232647
got any lit you would recommend on this?

>>56232650
so, where appropriate, and not religiously?
>>
>>56232687
"Low power mode" uses the APU and turns the GPU off.
>>
>>56232674
no shit Brad
>>
>>56232713
Okay? So why does anon need to know about them except for his coworker Pajeet to teach him about the codebase when he joins a project?
>>
>terry developes his 64-bit OS on a 64-core Xeon with 64 GiB of RAM
Notice anything?
>64-bit
>64-core
>64 GiB
Notice anything? Look at the first column:
>6
>6
>6
It's a trap!
>>
>>56232737
4 the horde
4 the alliance
4 pete's sake
>>
>>56232665
here you go:

https://gist.github.com/anonymous/be96133ea6cba9dd4095f5c4ba9e2878

i included the system information too
>>
>>56232696
I just learned though programming a lot, especially in Haskell. Practice, because I figured out for myself what makes code maintainable and extensible, and Haskell, because I can't (easily) work around bad decisions through shared mutable state. Rust would have the same effect, as long as you stay away from std::cell.
>>
>>56232665
this is cat'ing /proc/cpuinfo >>56232769

and this is the output of your program
CPUID instruction is supported
Sizeof struct: 40
Highest supported function: 0x0D
Processor type: AuthenticAMD

EAX: 0x00660F01 EBX: 0x00040800
ECX: 0x3ED8320B EDX: 0x178BFBFF

Base Model: 0x0
Base Family: 0xF
Extended Model: 0x6
Extended Family: 0x6

Model: 0x0
Family: 0xF
Stepping: 0x1
>>
File: 1417328729368.jpg (21KB, 500x500px) Image search: [Google]
1417328729368.jpg
21KB, 500x500px
>>56228877
Going through SICP. Got temporarily stuck on exercise 1.11.
Took me a day to figure out how to write the recursive function iteratively (with the help of the Fibonacci algorithm given as an example).
Took me another day to write it up.

#include <iostream>        //Example program from p42 of SICP; Exercise 1.11
using namespace std; // Iterative version of f(n) = f(n-1) + 2f(n-2) + 3f(n-3)

unsigned long long f(int n){
if(n<3){
return n;
}

if(n>52){
cout << "Sorry. Can't do numbers this big. :(" << endl;
return 0;
}

unsigned long long a = 2;
unsigned long long b = 1;
unsigned long long c = 0;
unsigned long long d = 0;

for(int i=3;i<=n;i++){
d = a + 2*b + 3*c;
c = b;
b = a;
a = d;
}
return a;

}

int main(){
int n = 0;

cout << endl << "=== Iterative version of f(n) = f(n-1) + 2f(n-2) + 3f(n-3) ===" << endl << endl;

cout << "Please enter the integer n: ";
cin >> n;

cout << endl << "f(n) = " << f(n) << endl;
}


I felt a brief wave of relief and accomplishment come over me before being swept under the sea of realisation that I still have some 540+ pages to go, with harder exercises.
Perhaps I should just go get a job instead of becoming increasingly unemployable.
>>
Reading through K&R. I have a question about arrays in C.

So if I understand it, an array a is just an immutable pointer to a[0] and a[n] is just a shorthand for *(a + n).

Where is the size of the C array stored? When I use sizeof to get its size, what does the program actually end up doing?
>>
>>56232931
>starting with SICP
>trying to get a job any time soon

Pick one.

Man, you fell hard for the memes.
>>
VB.NET:
Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)
Lv_Prices.DataContext = Binding_Lv_Main_Prices

Dim xitem As Item = Nothing

xitem.Name = "YES MAN"
xitem.Buy = "NO MAN"

Binding_Lv_Main_Prices.Add(xitem)
Lv_Prices.ItemsSource = Binding_Lv_Main_Prices
End Sub

XAML:
<local:NullImageConverter x:Key="NullImageConverter" />
<DataTemplate x:Key="TempImage">
<Image MouseDown="Lv_Prices_Image_MouseDown"
Source="{Binding ImageSource, Converter={StaticResource NullImageConverter}}"
Stretch="Uniform" />
</DataTemplate>


Getting this error message:
The name "NullImageConverter" does not exist in the namespace "clr-namespace:programxxx"

Can someone tell me what i'm doing wrong? I can't for the life of me get it to work.
>>
>>56232966

You don't have the size stored anywhere. You have to calculate it. sizeof() on an array will end up giving you the entire size of the array in bytes, which is not useful.

To correctly calculate it, you do something like:

size_t arr_size = sizeof(array) / sizeof(array[0]);
>>
File: 29529-figure-1.jpg (57KB, 412x413px) Image search: [Google]
29529-figure-1.jpg
57KB, 412x413px
>>56232885
ok thanks a lot, It looks like it is a slightly different implementation for AMD vs Intel
I'll have to refactor it to account for that.
>>
>>56232966
It's either a compile-time constant or unknowable.
>>
>>56233054
Right, I understood that. But where is the size of the array in bytes stored, what does sizeof do to get that nice little number? Is it determined at compiletime or what?
>>
>>56232388
>But if you're writing a company-internal Rails app, nobody's going to notice, even if you're getting cache miss after cache miss. Which you probably won't.
But then you end up dying by a thousand paper cuts because everyone thinks that way and you have dozens of these programs running and together they bog down your system.
>>
over 300?
new thread!
>>56233126
>>
is there a /g/ approved MySQL/SQL book?
>>
>>56232931
Never done SICP, but as a rule, you can write any recursive algorithm as an iterative algorithm using a stack object. Essentially you swap the call stack for a variable stack. Not sure if this is what they are getting at.
>>
>>56233146
SQL? thenewboston does well enough
>>
>>56233143
dumbass
>>
What's the best way to make a twitch bot that goes to other channels and comments? I want to avoid using selenium because I don't want them to know its a bot.
>>
>>56233189
sorry, sperglord. u can make the next one with your lolishit.
>>
Currently in the process of learning my first programming language, C. I'm using the book, "C Primer Plus" for my course.
>>
>>56233091

You are probably misunderstanding what sizeof is.

sizeof is not a function, it's an unary operator in C.

http://en.cppreference.com/w/c/language/sizeof

You can use it without parentheses and it will still give you what you want but most people use the parentheses form to make it clearer on what sizeof is being applied to.

Which is to say that when you use it, it's compiler-specific on how it is implemented. Most compilers I say would do this at compile time.

Also, you asked about difference between array and pointer. There's a lot of differences that are subtle between them but the main thing is that an array is an area of contiguous memory space that holds data and a pointer is a variable that holds the address of another variable inside, which may be the above or not. That difference leads to all the subtle differences like sizeof working differently on pointers than arrays.
>>
Whats a good set of tools(meaning languages and actual tools as well) that could be used for making a text based game that can be played from a web browser?

I've never done web-dev, and as far as I know you generally have web based front end and some sort of back end that does stuff. I'm not entirely sure what front end and back end mean.

I'm not making an mmo. Having a web based game just seems more convenient for getting people to try it and for handling text output than dealing with various multiplatform console windows/commands.
>>
File: 1363369190360.jpg (43KB, 425x349px) Image search: [Google]
1363369190360.jpg
43KB, 425x349px
>>56233223
is it possible to overload sizeof for my class
>>
>>56233239
Yeah
>>
>>56233239
Jk it's not, at least not in c++
>>
File: 1411164370350.jpg (7KB, 255x220px) Image search: [Google]
1411164370350.jpg
7KB, 255x220px
>OOP is a fine paradigm as long as you do the opposite of all the standard OOP practices
>>
>>56233182
I have limited/no idea what stacks are but I doubt I'm that far.
For starters, I'm only on the first chapter.
>>
>>56230733
>>56230859
>>56231277
Well, I can't say I haven't learned anything as a result of making this but my intention was solely to solve a problem I had with programmatically generating xml files with 3 lists.
Example of desired output
<People>
<Person>
<Name>Isaac Turnbull</Name>
<Age>45</Age>
<Email>[email protected]</Email>
</Person>
<Person>
<Name>Debra Turnbull</Name>
<Age>42</Age>
<Email>[email protected]</Email>
</Person>
<Person>
<Name>Cancer Turnbull</Name>
<Age>456</Age>
<Email>[email protected]</Email>
</Person>
</People>

I forgot my exact issue but it was with a certain method that was rather inflexible. So I decided to simply create what I wanted exactly.
>>
>>56231508
>C++ as a first language
Calm down, edgelord.
>>
>>56231767
To be fair, it really depends on what you are intending to program. If you are recreating Skyrim, I doubt you can do it in 10 lines but whatever
>>
>>56232701
The idea it's a waste of 60% of the die that could have been used on a more advanced branch predictor.
>>
what are your favorite programming-related videos, /dpt/

i need something to watch since im really bored right now and i need inspiration, i already watched some of the MIT computer science course ones
Thread posts: 322
Thread images: 33


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