[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/dpt/ - Daily Programming Thread
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 255
Thread images: 50
File: K&R himegoto waifux2.png (1 MB, 1000x1400) Image search: [Google]
K&R himegoto waifux2.png
1 MB, 1000x1400
old thread: >>53907281

What are you working on, /g/?
>>
File: 1458254478352.gif (1 MB, 200x200) Image search: [Google]
1458254478352.gif
1 MB, 200x200
>>53912129
Making the next facebook so I can become rich.
>>
File: 1437932947119.png (163 KB, 400x400) Image search: [Google]
1437932947119.png
163 KB, 400x400
First for OCaml
>>
Well congrats, trap-poster, you've consistently managed to make several shit threads in a row. What will you do next?
>>
File: 1453716187346.png (59 KB, 500x402) Image search: [Google]
1453716187346.png
59 KB, 500x402
What language do you think pepe code in?
>>
File: 1459363702262.jpg (21 KB, 313x235) Image search: [Google]
1459363702262.jpg
21 KB, 313x235
what is the best c++ native or native-looking widget toolkit for desktop applications that lets me static compile and disregard any form of gpl licence ??
>>
>>53912175
I'd post a pic that you would like, but it would violate Global Rule 15. :^)
>>
File: naruto_tea.jpg (72 KB, 628x642) Image search: [Google]
naruto_tea.jpg
72 KB, 628x642
>>53912175
Can you faggot stay on topic please.
>>
>>53912208
LOLCODE
TrumpScript
FiM++
C+=
>>
>>53912170
nice family, working on any projects right now?
>>
If I post ascii porn, is it still violating the rules?
>>
File: 1436993271883.jpg (68 KB, 515x698) Image search: [Google]
1436993271883.jpg
68 KB, 515x698
>>53912283
No, only shitposting about OCaml. Soon it will have algebraeic effects. How nice!
>>
>>53912339
yup, super excited for that. just sad that it's being delayed till at least 4.04 :( hopefully it'll come out along-side modular implicits
>>
File: Time4Programmingx.gif (478 KB, 500x250) Image search: [Google]
Time4Programmingx.gif
478 KB, 500x250
Every day until you like it
>>
>>53912232

I would say the rule kinda stinks, but I think we have a rule against that too.

>>53912261

First couple of posts of DPT are generally reserved for complaining about the OP pic. Now that that's over...

>>53912308

Somewhere floating around on my computer is a picture of an anon being banned for many things, one of which included sending moot ascii horse cock emails. So I'd stay on the safe side and not post it.

Not against the rules is to post a program that generates ascii porn.
>>
>>53912339
>Soon it will have algebraeic effects.
lel, heard the same thing about parallel threading a few years ago and we are still waiting.
>>
hey uh

I interviewed and was offered an unpaid internship. Do I go ahead and take it? I know there's a lot of stigma against doing work for free, but damn, the experience really would look good. Also, this is my the end of my senior year in a CS degree and I haven't done an internship yet.
>>
>>53912601
I thought the point of an internship is not doing work for free.
>>
>>53912502
yeah i got banned for posting a picture of a guy shitting on a designated shitting street. it was so pixelated you couldn't even tell if he was wearing pants
>>53912590
multicore was originally slated to be released in january, so not sure where the "years" is coming from. and algebraic effects is coming with that.
at least for now we'll be getting flambda which should bring OCaml's speed way past the current "functional programming" standard of speed
>>
>>53912601
That unpaid internship will actually make your resume look worse than if you had just NEET'd it up for that gap of time.
>>
>>53912654
Is it? I hear CS is extremely competitive now, and an internship, any internship might give me an edge.
>>53912674
I wouldn't put the pay on my resume. They wouldn't have to know that it was unpaid.
>>
File: jack.png (224 KB, 266x362) Image search: [Google]
jack.png
224 KB, 266x362
>>53912734
>Is it? I hear CS is extremely competitive now
Well im fucked
>>
>>53912734
>>53912761
I think it's more the fact that in the IT industry experience tends to get people jobs.
>>
>>53912734

They could easily ask in an interview.

Also, unpaid internships often don't exactly provide you the experience you need. You should avoid them like the plague.
>>
>>53912308
if you have askii porn i would like to see it
>>
>>53912922
Sadly no, I just wanted the green light before I start it as a project.
>>
>>53912734
>>53912884
tripfag's right
Unpaid internship literally means "we picked this guy off the street to do our bitch work. He's gonna break his back making copies and buying coffee for the people we do pay, like this other intern, because he thinks people are going to take him seriously after we give him a year of bitch work with nothing to show for it"

I demand paid internships, not because I need money, but because companies are less likely to fuck around with you because they're actually paying for your time.

It has also been said that your value as a human being is as high as someone is willing to pay for. So, before you pick that unpaid internship, you gotta ask yourself, "Is my time really worth *nothing*?"
>>
Grey hat marketing in Clojure!
>>
>>53912933
It's ascii. It's gonna be grayscale as fuck.
Turn it into a gif, with the first frame as "spoiler image NFSW" and the second frame as your ascii porn.
Mods won't give a shit.
>>
this:

http://cljsfiddle.com/
>>
>>53912973

>It has also been said that your value as a human being is as high as someone is willing to pay for. So, before you pick that unpaid internship, you gotta ask yourself, "Is my time really worth *nothing*?"

Now, the logic behind this could also be used to say "charity is worthless". It isn't, but giving charity to a company that can make money on its own selling products is pretty dumb. If you're going to do free programming, at least do it for a noble cause. Although, strictly speaking, if you're doing an unpaid internship, you're not doing free programming, you're doing free coffee making.
>>
>>53913116
It doesn't strictly mean "charity is worthless"
Charity is something performed only by people who already have value, and its value can be interpreted as "this activity has equal or more value than the equivalent time that someone would pay him for."
>>
post trap lewds
>>
File: no geimus for u.jpg (195 KB, 737x1132) Image search: [Google]
no geimus for u.jpg
195 KB, 737x1132
Let's say I have a C program that just generates random hashes and prints them to stdout.
I want to make it multithreaded to take advantage of all my cores.
If I make the threads wait to print to stdout, then I can avoid race conditions.

Is there a way to keep it portable, or do I have to add #ifdef flags for both linux and windows?
>>
>>53913309
what'd you need the ifdefs for
>>
>>53913378
to use different multithreading libraries for different platforms?

or can I just use pthreads on windows?
>>
>>53913309
>If I make the threads wait to print to stdout, then I can avoid race conditions.
Most operating systems allow you to use IO from multiple threads.

>Is there a way to keep it portable, or do I have to add #ifdef flags for both linux and windows?
Boost, pthreads, or Qt.
>>
>guy wants me to write some code for his excel spreadsheet
>okay
>need to do some stuff with a string
>not sure how to do index access
>someChar = someString[1]
>doesn't work
>google it
>someString.Chars(1)
>does nothing
>continue googling
>Mid(someString, somePosition, 1)
>works
>start writing code
>run it
>Invalid procedure call or argument
>doesn't tell me which one
>click okay
>code window closes
>open code window back up
>comment out the line of code that I think is doing it
>run it again
>Invalid procedure call or argument
>click okay
>code window closes
>open code window back up
>comment out another line of code that could be doing it
>run it again
>Invalid procedure call or argument
>click okay
>code window closes
>open code window back up
>repeat ~20 times
>eventually find the line of code responsible
>Mid(someString, somePosition, 1)
>it's all bounds checked with if statements, so surely it's not
>I'll try it with a different input
>go to change the cell that someString is coming from
>current cell highlighted is lower than the one I want to go to
>press the up arrow
>cell goes right
>press the left arrow
>cell goes down
>press the right arrow
>cell goes to the other side of the spreadsheet
>now it's a few spaces to the right of the one I want to get to
>I know what to do
>press the up arrow
>cell goes right
>good so far
>press the up arrow
>cell goes right
>just a little bit more
>press the up arrow
>cell goes left about 8 places and down 1
>fuck it
>click the one I want
>go to edit it
>this worksheet is protected
>go to unprotect it
>please enter the password
>shit
>go to the code
>scroll to the top
>worksheet.protect password:="password"
>go back
>type in "password"
>edit the cell
>try to run the code again
>Invalid procedure call or argument
>click okay
>code window closes
>that's okay I wasn't using it
>I'll just try another input to be sure
>edit the cell
>this worksheet is protected
>unprotect it
>edit the cell
I'm gonna need another post, shit
>>
File: nomercy.webm (523 KB, 720x336) Image search: [Google]
nomercy.webm
523 KB, 720x336
Ask your much beloved programming literate anything (IAMA)

>>53912208
http://pyos.github.io/dg/

>>53913309
printf is thread safe.

>>53913410
>or can I just use pthreads on windows?
yes, or
https://tinycthread.github.io/
or c11's threads.h
>>
>>53913444
So, "tl;dr: Excel is shit"?
>>
>>53913378
to check platform

I am not he nor am I sure about how to keep that portable but I really can't think of a function in that process to create any ambiguity...
>>
>>53913444
Don't. Words are futile against this kind of madness. Just ragequit
>>
>>53913492
Suggest to me a medium sized project preferably programmable in the C programming language.
>>
>>53913492
>printf is thread safe.
stdout isn't. Multiple threads using it simultaneously may lead to a race condition.
>>
>>53913497
But I'm also not a c programmer.

lol
>>
>>53913309
Make a thread that prints from a queue that other threads add hashes to, then just make the queue safe with mutexes or some shit.
>>
I'm using Python to build a network of logic gates.
For now, I've implemented a system that simply iterates through a list of gates like

 def OR(a,b):
s = a or b
return s

def NOT(s):
if s == 1:
s = 0
else:
s = 1
return s

def timeStep(t):
t = t + 1
return t

seedValues = {
"init": 0,
}

#define initial vals
gates = {
"gateA": 0,
"gateB": 1
}

t = 0
m = 0

#data table header
print "t\tgateA\tgateB"

#run logic gate loops
while (t < 20):
gates["gateA"] = OR(seedValues["init"],gates["gateB"])
print t, "\t", gates["gateA"], "\t", gates["gateB"]
t = timeStep(t)

gates["gateB"] = NOT(gates["gateA"])
print t, "\t", gates["gateA"], "\t", gates["gateB"]
t = timeStep(t)
print "\ncomplete"


This creates problems if I want a larger network. I want the gateA-gateB-loop to oscillate (unless something breaks the loop), but if I build a larger network it will only oscillate whenever my function "happens" to time step by.

Can I implement a time step function where every gate updates more or less synchronously with time?
>>
>>53913527
Oh yeah, the output of that run is

t       gateA   gateB
0 1 1
1 1 0
2 0 0
3 0 1
4 1 1
5 1 0
6 0 0
7 0 1
8 1 1
9 1 0
10 0 0
11 0 1
12 1 1
13 1 0
14 0 0
15 0 1
16 1 1
17 1 0
18 0 0
19 0 1
.
>>
File: stallman2.jpg (23 KB, 592x290) Image search: [Google]
stallman2.jpg
23 KB, 592x290
>>53913444
>run the code again
>code window opens up
>Invalid procedure call or argument
>click okay
>code window closes
>open the code window back up
>get it to write out the value of position
>it's 2
>get it to write out the length of the string
>it's 8
>replace position with 2 in the code
>it works, but I can't do that because it might change in the future
>run the code again
>notice the cell I decided to put position into shows a 0 really quickly before the 2
>why didn't my bounds checking code catch that?
>click okay on the invalid procedure call or argument popup
>code window closes
>open it again
>scroll to the bounds checking
>If position < Len(myString)
>perfect
>And positon > 1
>positon
>positon
>I made a typo in the name of the variable, and instead of complaining, it just silently accepted it
>change it
>code works
>try another input
>this worksheet is protected
>unprotect it
>change the cell
>code doesn't work
>code does nothing
>click another button on the spreadsheet
>they do nothing
>none of the buttons do anything
>ctrl+z
>ctrl+z does nothing
>close the spreadsheet and open it again
>click the button
>button does nothing
>go and get a glass of water to relax before I start smashing shit
>come back
>click the button
>now it works
>email the spreadsheet back to the guy
>come and shitpost about it
I don't have any words to describe how I feel right now
I'm not even sure
>>
File: 1458546951680.jpg (47 KB, 474x479) Image search: [Google]
1458546951680.jpg
47 KB, 474x479
>>53913527
>#define initial vals
>>
>>53913527
>
#define initial vals

man I read that as a C preprocessor directive, just like the highlighting suggest. You almost gave me a heart attack

>>53913530
Is this output correct or not?
I don't get what "update synchronously with time" means (well apparently you don't either Mr. "more or less")
>>
>>53913560
>coding in C
Heh.

>I don't get what "update synchronously with time" means (well apparently you don't either Mr. "more or less")
I mean that I want a time step to cause every gate to be checked, not just checking one node at a time. I don't really now how to put it any better (my terminology's probably rubbish).
>>
>>53913579
>every gate to be checked, not just checking one node at a time.
So you would have all nodes updated based on the previous state of all the other nodes? Also seedValues seems meaningless to you right?
show me a diagram of your network in EE style. Also is the output you posted in >>53913530 (which I understand is produced by >>53913527) conform to your specification or not? Guess not but...
Is this a nor latch?
>>
File: gates.jpg (9 KB, 536x150) Image search: [Google]
gates.jpg
9 KB, 536x150
>>53913605
Here's a more dynamic example: code below with corresponding EE diagram in pic related.
 def OR(a,b):
s = a or b
return s

def AND(a,b):
return a and b

def NOT(s):
if s == 1:
s = 0
else:
s = 1
return s

def timeStep(t):
t = t + 1
return t

seedValues = {
"init": 0,
}

gates = {
"gateA": 0,
"gateB": 1,
"gateC": 0
}

t = 0
m = 0

#data table header
print "t\tgateA\tgateB\tgateC"

#run logic gate loops
while (t < 20):
gates["gateA"] = OR(seedValues["init"],gates["gateB"])
print t, "\t", gates["gateA"], "\t", gates["gateB"], "\t", gates["gateC"]
t = timeStep(t)

gates["gateB"] = NOT(gates["gateA"])
print t, "\t", gates["gateA"], "\t", gates["gateB"], "\t", gates["gateC"]
t = timeStep(t)

gates["gateC"] = OR(gates["gateA"],seedValues["init"])
print t, "\t", gates["gateA"], "\t", gates["gateB"], "\t", gates["gateC"]
t = timeStep(t)
print "\ncomplete"


Output:
t       gateA   gateB   gateC
0 1 1 0
1 1 0 0
2 1 0 1
3 0 0 1
4 0 1 1
5 0 1 0
6 1 1 0
7 1 0 0
8 1 0 1
9 0 0 1
10 0 1 1
11 0 1 0
12 1 1 0
13 1 0 0
14 1 0 1
15 0 0 1
16 0 1 1
17 0 1 0
18 1 1 0
19 1 0 0
20 1 0 1


>seedValues seems meaningless
It might be now, but later on I'm gonna have it change under certain conditions, to see perturbations of the gate system.
>>
File: gates.jpg (9 KB, 536x150) Image search: [Google]
gates.jpg
9 KB, 536x150
>>53913693
That pic is wrong. I meant this.
>>
I have the following problem:
[b]Letter[/b] is a [b]PriorityPackage[/b] of the lowest priority. It is an error if the Letter is weighing over 500g and has a displacement over 0.001 m^3. It has a text output in the form of "P"+priority+"["+ID+"("+weight+","+displacement+")".

 package Postal;

public class Letter extends PriorityMail {
public Letter(double weight, double displacement,Value Priority){
super(double weight, double displacement, Value.lowest);
if (weight >= 500) throw new IndexOutOfBoundsException("Damnit");
}

}


this sorta works. However, i want an exception to happen BEFORE the constructor, but I cannot have that because of the [i]super[/i] keyword.
 
public class Letter extends PriorityMail {
public Letter(double weight, double displacement,Value Priority){
if (weight >= 500) throw new IndexOutOfBoundsException("Damnit") ;
else
super(double weight, double displacement, Value.lowest);
}
}


In c++ it would be valid for the constructor to throw at any time, even if the object isn't initialized or formed properly.

The idea is to have a priority queue of polymorphic, abstract Mails, which would be determined at runtime to be Letter, Package or sth else.
>>
>>53913693
>>53913736
I see
If you want every node to be updated at once, you're probably better off generating a brand new gates dictionnary at each step while keeping the old one as an immutable reference, rather than trying mutating it, which destroys information, don't you think? then
gates=newGates
at the bottom and you're done maybe?
>>
nothing im a pleb
>>
File: akari eats chippus.png (131 KB, 256x256) Image search: [Google]
akari eats chippus.png
131 KB, 256x256
Rate my tripcode generator!
$ ./tripforce | grep -i "desu"
TRIP: '!eqqMqQDeSU' -> PASS: '3\HhEG7#Y#'
TRIP: '!Ox9tUxdesU' -> PASS: 'H?@B%/(9,'
TRIP: '!MWXJ7xDEsU' -> PASS: '=qa.|[JBy_'
TRIP: '!hSDesUneJo' -> PASS: 'lFFLRsM{>)'
TRIP: '!L9DCDesUF2' -> PASS: 'UL-(y3+{ '
TRIP: '!VxNDESUx7.' -> PASS: 'V$jC$&3nma'
TRIP: '!NrSFRTDEsU' -> PASS: '>f1:C|HKXr'
>>
>>53913883
>>
>>53913802
That's a mighty fine idea. Thanks!
>>
File: 50ShadesOfGentoo4.png (391 KB, 5181x2914) Image search: [Google]
50ShadesOfGentoo4.png
391 KB, 5181x2914
What was your first language?

What language are you learning/writing in now?
>>
>>53913883
>
Ox9tUxdesU

?
>>
>>53913892
i forgot about secure tripcode ##s, let me fix that
>>
>>53913908
pretty ^.^
>>
>>53913907
>What was your first language?
C
>What language are you learning/writing in now?
Still C.

I guess I just started with perfection. I've tried many languages, but nothing tickles my fancy like C does.
>>
>>53913922
What projects do you do?
>>
Learning some nodejs, I'm building a forum indexer, pretty much everything is working (indexing part) but what's the best way to make queries fast? like I see in the 4chan archives it takes under 1 second to search through probably millions of posts but on mine it takes a long-ass time, sometimes mysql will even freeze


I mean simple shit like
SELECT * FROM user_posts WHERE UId = user_id
>>
>>53913930
Nothing proper at the moment, but I've been messing around with OpenGL lately, trying to get skills I need for a future project.
>>
>>53913883
testing spaces
>>
>>53912129
>>>53907281
>file deleted
blown the fuck out fucking faggot
>>
>>53914045
what was the picture?
>>
>>53913922
Baby duck syndrome.
>>
>>53914151
Not him but I learnt a lot of language and I only like C. What should I do?
>>
>>53914121
hime (the character in this OP) wearing a maid outfit
>>
>>53913933
Have you tried adding indexes on relevant columns?

Are you running your MySQL instance on a shitbox laptop?
>>
If i may,
i'm trying to program a computer algebra system.
I'm using C++.
the problem i have is i can't find a way to represent and connect data.
i figured i need to have the data in a tree form.
After some research i came to the conclusion of 2 basic data structures,
a leaf node which i'm planning to have a father class and multiple inheriting classes which are defined based on what that leaf node is i.e. variable, fraction, and so on, and a connection node that is compromised of a vector or list, i'm still thinking of a way to handle this.
the problem is how do i mix those two together,
lets say i have this list [x,2+3,3,4]
it should be a vector of (variable, expression,number,number)
the expression is a connection, while the other three are leaf nodes.
i though of giving them all a united father, but that makes traversing the tree a bit hard, and makes stuff like comparing two trees even harder.

the two main types look like this for now
class Leaf 
{}
class Connection
{ vector<Connection> members; }

leafs being determined through things like
class var : leaf 
{
string name;
}
class fraction:leaf
{
int a,b;
}

any help would be great. i feel like i'm missing something and i am going through c++ books and looking at data structures.
>>
File: 1460017868201.jpg (217 KB, 634x527) Image search: [Google]
1460017868201.jpg
217 KB, 634x527
The XML layout doesn't work, but setting it in code makes it work. Doesn't make any sense.

<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<com.user.myapplication.Views.RoundCornerView
android:id="@+id/spaceView"
android:layout_width="44dp"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
app:backgroundColor="@color/colorPrimaryDark" />

<com.user.myapplication.Views.RoundButton
android:id="@+id/buttonView"
android:layout_width="44dp"
android:layout_height="44dp"
android:layout_centerVertical="true"
android:layout_toEndOf="@+id/spaceView"
app:backgroundColor="@color/colorPrimary"
app:image="@drawable/icon_delete" />
</RelativeLayout>


RelativeLayout.LayoutParams params1 =
(RelativeLayout.LayoutParams) spaceView.getLayoutParams();
params1.width = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 44, getResources().getDisplayMetrics());
params1.height = ViewGroup.LayoutParams.MATCH_PARENT;
params1.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
params1.addRule(RelativeLayout.ALIGN_PARENT_TOP);
RelativeLayout.LayoutParams params2 =
(RelativeLayout.LayoutParams) buttonView.getLayoutParams();
params2.width = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 44, getResources().getDisplayMetrics());
params2.height = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 44, getResources().getDisplayMetrics());
params2.addRule(RelativeLayout.RIGHT_OF, spaceView.getId());
params2.addRule(RelativeLayout.CENTER_VERTICAL);
>>
/dpt/ I am studying Android and I can't find an interesting API to consume. I was looking for something that I could get and post information. What do you guys suggest?
>>
>>53914536
Post your full XML.
Is this a Fragment? An Activity?
>>
>>53914821
There's always 4chan's APIs.

There are public movie, manga, and anime APIs as well.
>>
>>53914309
>Have you tried adding indexes on relevant columns?
what did you mean by that
>>
>>53913907
>What was your first language?
Pascal.

>What language are you learning/writing in now?
Right now I'm (re)learning C#. When .NET got released I wrote some C# code but it has evolved a lot since then.
>>
>>53914847
>4chan API
I was looking for something more social acceptable, but I will try to find a movies API.
>>
>>53914864
http://www.programmerinterview.com/index.php/database-sql/what-is-an-index/
>>
>>53913907
>What was your first language?
C++

>What language are you learning/writing in now?
C#
>>
>>53914834
It's in a listview. I don't change anything else except set the layout in code and the spaceView starts expanding correctly and the roundBbutton starts centering vertical.
>>
Is anyone here familiar with the cc65 toolchain?

I'm trying to learn 6502 assembly using it, but the linker confuses the shit out of me.

I have no idea how to use segments.
>>
>>53914916
What IDE are you using? It should tell you specifically what's wrong with your XAML layout.
>>
>>53914916
Could you show me the layout you're trying to achieve?
>>
File: 1439548495946.jpg (76 KB, 461x639) Image search: [Google]
1439548495946.jpg
76 KB, 461x639
Hello /dpt/ quick question.
I live in a country in which it is quite easy to get a job, as long as you can demonstrate an ability to understand programming concepts.
What would you recommend me to read, or what projects should I try and finish, to polish my C# skills to an acceptable intermediate level?
I am looking for basically a list of subjects that I can go through to be ready for job interviews.
>>
>>53914968
Practice consuming, manipulating, and presenting lots of raw data.

For example, pull in megabytes of raw text from an API or database, do creative things with the information, and show interesting information on an interactive GUI.

Make sure you're aware of best-practice and how to make your code very readable.

Learn the shit out of LINQ and how you can interact with enumerables with LINQ.

You should also learn the basics of SQL and how to write some simple queries.

You can use the free AdventureWorks database for these things.
>>
>>53915014
I'm working on a program right now that will pull inner text of specified tags, ids and classes within an Html page, and organize them into comfy lists.
I will make a whole bunch of search options on those lists using LINQ on the data, that can be accessed and customized through the GUI(amount of certain words, amount of comments to a post, etc.).
Does that sound like a good plan?
>>
>>53915077
Oh, and an option of saving all categorized data into a DB.
>>
File: regexxxx.png (77 KB, 395x1182) Image search: [Google]
regexxxx.png
77 KB, 395x1182
>>53915077
>>53915085
Scrapers can be quite useful, but if you're scraping a website's HTML when it has APIs, that's usually not good design.

That's a good project to start with either way, just make sure you understand basic database design, with particular emphasis on maintaining third normal form (3NF).

Scraping HTML is suffering.
>>
Playing with CAS calculators and python I was wondering if the transposing of an equation to make it useful has to be done by hand?

Is there a way to write a function like an addition function, where if you put the answer and one of the numbers, it will give you the last variable, without writing a completely new function and working it out by transposing the equation?
>>
>>53915153
http://www.sympy.org/en/index.html
>>
>>53915148
>if you're scraping a website's HTML when it has APIs, that's usually not good design
My thought was actually that it's probably would be good practice to create a program that can pull data without any 3rd party APIs.
>>
>>53915190
No no no, you've got it backwards.

Let's take something like OpenDNS Umbrella's console for example.

They make constant changes to the UI of the website, shifting elements around, in order to improve the user experience.

However, the APIs that expose data and functionality and authentication remain consistent.

This allows a company to write an application utilizing their APIs and not have to worry about constant changes.

The idea is that APIs should remain consistent, so that people can develop with them.
>>
>>53915190
It would, but it's a pain and like the anon below said sites change a lot.

>>53915234
As in programming practise. Not best practise.
>>
>>53915174
Oh shit thanks bro.

Another question is that does it only work with Algebra?
>>
>>53915234
I meant literally good practice for learning interactions with Html in C#.
Obviously I know that for a final product one should use an API if available, that makes sense.
But I'm not making a product but a demonstration of my abilities.
My next step in this plan is to make a program that does the same, but for a specific site using it's API, to demonstrate I can use them properly.
>>
>>53914385
anyone?
>>
rate muh fizzbuzz

import std.range:iota;
import std.algorithm:map;
import std.conv:to;
import std.stdio:writeln;

void main() {
auto r = iota(0,101).map!(a=>(a%15==0)?"FizzBuzz":(a%3==0)?"Fizz":(a%5==0)?"Buzz":a.to!string);
foreach(s;r) writeln(s);
}
>>
>>53915248
>As in programming practise.
Maybe a practice in tedium.

You certainly want an example of utilizing APIs somewhere in your project list.
>>
>>53915274
Sounds good.

Would hire if code is readable.

It's amazing how many applicants we have that don't really understand what an API is.
>>
>>53915305
Yeah I heard that American CS grads are major retards.
I did hear it from /g/ though.
>>
>>53915287
Couldn't you do something like:
void main()
{
iota(0, 101)
.map!(a=>(a%15==0)?"FizzBuzz":(a%3==0)?"Fizz":(a%5==0)?"Buzz":a.to!string)
.each!writeln
}
>>
My boss caught me reading /dpt/ and asked what is this place? I told him it is where programming professionals post their code and help each other and they help each other but a lot of times they get side tracked. He reads it the last few posts and says wow great job keep up the great work and ask me if you need anything

I am so glad you guys are actually pretty normal today
>>
>>53915351
That's adorable kinda
Wait till he wanders into /pol/ by accident
>>
>>53915351
Dodged a bullet there, anon.
>>
>>53915351
kek
>>
>>53915367
If he says /pol/ is always right one day I think I will die of laughter

>>53915375
I work at a Software Developing firm
>>
Sorry for intruding just need quick answer if its possible.
Regarding interpreted languages, when is the compilation done of given source code? I mean although its "interpreted" it must be compiled to machine code at some point right?
>>
>>53915351
I browse /dpt/ every day at work.

So far, no shit for it, but obviously I hide some images as they appear.
>>
>>53914385
ok i guess no one here knows how to go on fixing this. then if i may anyone that understood what i wrote could help me out make it clearer incase i ask this again.
>>
>>53915450
No, the interpreter is your machine code, the code only gets parsed and interpreted (eventually converted to underlying VM code).
>>
http://thedailywtf.com/articles/Income
>when Pajeet codes
>>
>>53915450
It's parsed, sure, but it's not compiled to machine code. As the name implies, the interpreter (sometimes VM) takes the instructions from the parser and executes them by setting up a state machine and looping on the parser output.
>>
>>53915510
So it first goes to interpreter and then to CPU , interpreter has hooks to CPU's instruction set? Does this means that interpreter already has compiled commands that serve as bridge between source and cpu without waiting to compile ?
>>
Learning React.

Really missing TypeScript.

I'll get around to checking out how to switch babelify for tsc soon.
>>
How should I deal with JSON objects that contains URLs like "species" and"starships" from the following example:
{
"birth_year": "19 BBY",
"eye_color": "Blue",
"films": [
"http://swapi.co/api/films/1/",
...
],
"gender": "Male",
"hair_color": "Blond",
"height": "172",
"homeworld": "http://swapi.co/api/planets/1/",
"mass": "77",
"name": "Luke Skywalker",
"skin_color": "Fair",
"created": "2014-12-09T13:50:51.644000Z",
"edited": "2014-12-10T13:52:43.172000Z",
"species": [
"http://swapi.co/api/species/1/"
],
"starships": [
"http://swapi.co/api/starships/12/",
...
],
"url": "http://swapi.co/api/people/1/",
"vehicles": [
"http://swapi.co/api/vehicles/14/"
...
]
}
>>
>>53915640
What about them?
>>
>>53915598
>>53915617
In precompiled languages the parsing and compiling is done ahead of time, so the only step left is to make the CPU run it.

In interpreted languages a different program must also be running and reading the source code to actually execute these instructions by running code that the processor understands. The mapping is not 1:1. Get your head out of your ass.
>>
>just out of school
>c# white board interview and other "curve balls" will be thrown at me

How should I prepare bros?

>muh first interview
>>
>>53915662
If I parse them I will have a String field with that URL, but what I really wanted is to use the information that it contains.
>>
>>53915678
Ask them.

Any competent tech firm will appreciate someone competent and willing to avoid bombing the interview.
>>
>>53915617
Consider this example program:
void add(int a, int b)
{
fprintf(stdout, "%d + %d = %d\n", a, b, a + b);
}

void sub(int a, int b)
{
fprintf(stdout, "%d - %d = %d\n", a, b, a - b);
}

int main(int, const char **)
{
std::ifstream stream{"data.in"};
std::string line{};

std::string op{};
int a = 0, b = 0;

while(std::getline(stream, line))
{
std::stringstream ss{};
ss << line;
ss >> op;
ss >> a;
ss >> b;

if(op == "add")
add(a, b);
else if(op == "sub")
sub(a, b);
}

return 0;
}


You compile it and that's your "interpreter", now you feed it a file with "add 5 5", "sub 10 5" and so on, it "interprets" those and calls appropriate functions.

>>53915681
You mean you want to get the information that the /page at that URL contains/? In which case you need to keep making requests to these URLs.
>>
>>53915672
Its just that the explanation for how interpreted languages work is blurred (at least in sources that I found on internet). Its always something like "it doesnt compile, it reads line by line and executes etc." but nobody goes into what is actually happening between interpreter and cpu since cpus supposedly understand only one type of language.
>>
>>53915330
Oh yeah, but for some reason I have an aversion to turning ranges into expressions.
>>
>>53915701
Well I guess I just need to find a way to make dynamic requests based on the urls that are parsed.
It would be better if the API already returned the objects filled with the data instead of URLs.
Thanks anon.
>>
>>53915640
Looks like poor API design, because it's storing relational data as a full string path, rather than just the primary key referencing the data.

You could regex those URLs down to their ID, so that your
"starships"
would just contain 12, 24, etc.

Create multiple objects to maintain relational references.

In this case, you can have Character objects, and that Character object contains a list of references to Starship objects, etc.
>>
>>53915793
>It would be better if the API already returned the objects filled with the data instead of URLs.
That violates relational design and would end up duplicating tons of data.

Let's just say that each Starship object is 1kb of data.

If 10,000 different Character objects reference the same Starship, you've just created 10,000kb of extra data for no reason.
>>
>>53915808
I agree with you anon, it should at least have the direct ID of that object.
But I am not the developer of this API, I am just consuming it in an Android App that I am developing to study.
>>
We should have a /dpt/ programming collab guys
>>
>>53915869
No good can come from this.

Just try getting a consensus on language.
>>
>>53915823
I see, make a lot of sense.
I just said it would be better in my perspective but your POV is great.
Having URLs as attributes is a common scenario in a real world APIs?
>>
>>53915869
Alright, but surely we cannot have a collab without a proper logo.
>>
>>53915877
Alright fine

Guys which language should we all program in together?
>>
File: 1434263274520.png (47 KB, 344x517) Image search: [Google]
1434263274520.png
47 KB, 344x517
I'm not a programmer but I enjoy reading /dpt/.
What's wrong with me?
>>
>>53915903
Masochism
>>
Want to learn C
Is 'the C programming language' good, as in difficult and challenging, hopefully a little more difficult or as difficult as sicp?

Also the language i will learn from the book is the same language people will use right? Not outdated or anything?

Do I need third edition, or will second do?
>>
>>53915903
You have an interest in programming.
You could start studying and learn programming. In the end, it's always a handy skill to have.
>>
File: 1459365110134.png (7 KB, 257x206) Image search: [Google]
1459365110134.png
7 KB, 257x206
>>53915903
>>
>>53915890
>Having URLs as attributes is a common scenario in a real world APIs?
Not as a reference to another object within that API.

Like I mentioned, it would have been better as a list of IDs, as the attribute specifies that it's looking for "starships" or "species".

4chan's API, in contrast, does not actually benefit from relational design, as it is very 'trickle down' in nature. There is no relationship between a thread on /g/ and a thread on /b/, other than if a post links to one another, but this is not utilized by the application itself.
>>
File: 1445603634573.jpg (446 KB, 1191x670) Image search: [Google]
1445603634573.jpg
446 KB, 1191x670
How do I "reverse compile" the executable file back to its source code so I can cheat big corporations and see their protected source code?
>>
File: grace-purple-cotton.jpg (56 KB, 1000x1000) Image search: [Google]
grace-purple-cotton.jpg
56 KB, 1000x1000
>>53915903
It's just like eating out a woman's butt don't knock it unless you try it. So you should try programming. Also try on this dress right here
>>
>>53915900
C# or F#
>>
>>53915950
http://ilspy.net/

Except anything significant will be completely obfuscated to the point where you won't be able to get much useful out of it.

This will show homebrew stuff pretty clearly, albeit a bit weird due to compiler optimizations.
>>
>>53915945
>it would have been better as a list of IDs
It makes even simpler for me to understand and create a code if it was a list of IDs.
Anon, thanks a lot. Being unemployed and not having contact with more experienced programmers sure is a bad thing, I appreciate a lot your insights and for sharing your knowledge.
>>
>>53915958
Alright guys C# will be the language

What should we actually build?
>>
>>53916008
The Memes Database.
>>
File: how_about_no.jpg (78 KB, 457x386) Image search: [Google]
how_about_no.jpg
78 KB, 457x386
>>53916008
>Alright guys C# will be the language
>>
>>53916008
im starting the logo , will advanced css graphx
>>
>>53916030
What do you prefer Java? Yeah we can all do Object Oriented classes it will be so easier to maintain that way
>>
>>53916008
C# on a board where everyone uses LiGNUx?

Let's try Racket or CL. That could be fun.
>>
>>53916027
>CRUD/webshit
no thanks
>>
>>53916006
You're making me feel all warm and fuzzy.

My perspective on these things is from a database architecture viewpoint, so I'm used to looking at things in a relational-data-oriented way.

I highly recommend learning some relational database fundamentals, as relational algebra and the related fields are the basis for many ways in which non-trivial application store data.

/dpt/ can be fun, but isn't always the best place for good advice. Try to find a smaller forum or IRC to bounce ideas off of people who actually do these things regularly. Better yet, get a job and you'll learn way faster than anything else.

It's a shame there isn't something like a more relaxed, less anal-retentive Stack Overflow.
>>
>>53916050
or C or Lisp
>>
>>53916050
That isn't true I use Windows 7 and program in Java
>>
>>53916046
it should probably be in C++ if it's a hobbyist kind of thing (max productivity not required) but still serious (high quality required)
>>
>>53916050
C# can be deployed and developed on Linux.

Even RedHat Enterprise Linux is shipping with .NET built in.
>>
I am accepting suggestions for an Android App.
What do you guys want?
>>
>>53915725
The interpreter is itself written in (usually) C code and has to be compiled. Does that help?

It's done using a giant jump table switching over valid language constructs and adding them to its internal state machine.
>>
>>53916079
jew soundboard
>>
Why is python considered bad?
>>
>>53916087
GIL.
>>
>>53916087
many reasons

it's no good for teaching programming, just produces incompetent shitters, yet retards push it onto naive beginners
>>
>>53916084
It does actually,thanks.
>>
What is the best lang to start developing simple "AI" such as a chat bot?
Is it really AIML?
>>
>>53915919
It's kind of outdated, but generally good.

For example, no one opens programs with just main() anymore.
>>
>>53916056
Racket and CL (Common Lisp) are lisp dialects.
>>
>>53916053
>get a job and you'll learn way faster than anything else
That's what I have been trying to do in the past 6 months but the "planets aligned" (decided to change my career direction, my country is in political and economical crisis) and I have been trying to keep active while I can't find one.
So I have been studying by myself and developing some apps that I can show on job interviews to prove that I can program and etc.
Also, I know 4chan threads aren't a good place to find advice, that's why I said I appreciate your help.
>>
>>53916085
http://www.soundboardarchive.com/game/81/Red-Hot-Jewish-Sexline.html
>>
Fugg is the difference between insertion sort and gnome sort? It says
> It is a sorting algorithm which is similar to insertion sort, except that moving an element to its proper place is accomplished by a series of swaps, as in bubble sort.
as opposed to what? Doesn't the insertion part come down to basically the same thing in 99.9% of the cases? Does someone have the ultra obvious clue I'm missing?
>>
>>53916116
Currently, not sure.

If you're into .NET:

I'm interested in this since //Build/ showed it off:

https://bots.botframework.com/

You'd combine this with a machine learning API like the ones here:

https://www.microsoft.com/cognitive-services
>>
>>53915693

I did. They said c# white board testing and curve balls.
>>
>>53916170
How much C# experience do you have?

Have you written your own applications using class objects and types to describe lots of data?

Can you utilize(read: abuse) the shit out of LINQ?
>>
>>53916165
Thanks, I am into .NET.
I'm a relative beginner though and AI is a huge topic so I really need the basics of the basics.
>>
>>53916135
Yet they are highly different languages, whereas C and C++ have mutual intelligibility and are considered different languages... I learned today that a language is a dialect with an army and a navy, maybe it is lso the case with programming languages...
s/army and navy/libraries and support/g
?

(I'm not attacking your post, I just want to stir up discussion)
>>
>>53916162
kek
>>
>>53916184

I've done calculators and shit in c# that's it
>>
>>53916223
Calculators are fun to write in any language because the parser theory is far more important than the actual calculations.
>>
so me and a friend are working on a database for fun.
he won't accept that what he has done is false.

what we want is have each user be given a set of permissions of what they are allowed and no allowed to do.
what i offered is having a permission table and a uer_permission table holding an id of the permission and id of user as a key.

he went on things through pic related and won't heed my calls about how he is wrong and that its a waste of storage and time complexities as well as allowing for a lot of duplictes.

he pitched in that there should exist permissions, then roles of which each hold a set of permissions, then users get a set of roles.

now i know i might not be right in just taking in permissions + user accounts. but adding roles that way is worse than what i thought of.
Can anyone suggest a better model to go with?

i thought of a middle ground where we can have roles, but users aren't allowed to hold more than one role, since a role could alredy cover permissions of another role.
>>
>>53916087
FIOC
>>
File: image.png (859 KB, 2048x1536) Image search: [Google]
image.png
859 KB, 2048x1536
>>53912129
soon in the app store, muh first app.
>>
Am I a faggot if I consume an Astronomy data on my Android App?
>>
>>53916353
You're a faggot regardless.
>>
>>53916353
yes.
>>
>>53916385
What kind of data could I consume to make myself less faggot then?
>>
>>53916407
cuck data.
>>
File: wr7wQ74.png (32 KB, 1070x412) Image search: [Google]
wr7wQ74.png
32 KB, 1070x412
>>53916223
I'm bored.

See image.
>>
What's a good introduction to Scheme? Preferably something a little less dense than sickpee.
>>
>>53916301
What is this app about?
It's just a calculator?
>>
Writing a... webapp? Idk what to call it. I named ot stochatta.

It uses 3 to 1 dimensional markov matrices to generate sentences from learned source materials. I had it spend all night reading war and peace and it got about 250,000 records. Unfortunately, now the most common words are "prince andrew" and "emperor alexander", so I need to pick better source material, or write a better lexer (perhaps just ignore any words beginning with a capital letter).

Here's a couple sentences.

longing to be a man who was not know what was the same time to the Emperor Alexander and the same time he was a man of 


the battle commence the same time to the Count who was the same time to the old prince Vasili and I am not know what is not 


The words "same time" appear a lot because I think Tolstoy (or at least his translator) uses is as a transition a lot in the book
>>
File: if-else.png (85 KB, 647x567) Image search: [Google]
if-else.png
85 KB, 647x567
Is there an intelligent way of doing pic-related in C++?
>>
>>53916546
The Racket guide if you've programmed already (which I assume). It's quick, less hand-holding. You have to make up your own exercises tho.

As for Scheme vs Racket: aim for the moon, if you miss, you'll land on a star baby.
>>
>>53916547
>just a calculator
>>>>>just
rude 2bh
>>
>>53916565
Use a hash table.
>>
>>53916599
I was blind. Thanks anon.
>>
>>53916565
2d array. First dimension is the condition, second dimension is the output. Then you just do

[Code]
for(int i = 0; i < 10; i++){
if(strcmp(m, options[i][0]) == 0)
cout << options[i][1]
}[/code]

strcmp will return 0 if the strings are equal. Technically this is C, so there may be a better, more nuanced way to do it in C++ but this will work also
>>
>>53916594
I thought smart phones calculators would come with a "scientific" version already.
>>
>>53916599
Seems a little expensive just for a few options.
>>
>>53916599
>>53916645
Why not just a switch statement?
>>
>>53916660
probably not all of them and there's still a market for third party calculators i guess (but it's probably not the most profitable type of app). and with his you can have other apps open at the same time, not sure how common that is on iOS
>>
Java professional here. I will help any of you guys with your assignments or homework

Also to all the programmers here working on their projects

https://www.youtube.com/watch?v=KxGRhd_iWuE
>>
Designing the kernel for my new microkernel based os project called Gnu Turd
>>
File: sIOZLJs.png (67 KB, 748x722) Image search: [Google]
sIOZLJs.png
67 KB, 748x722
>>53916555
4chan is bretty good source material.

I'm working on implementing grammar to try to make the responses more coherent, without directly copying long phrases in the posts.

You're chaining based off of whole words?
>>
>>53916721
>https://www.youtube.com/watch?v=KxGRhd_iWuE
Thanks that helped
>>
>>53916688
I don't know if switch statements can check strings in C++. I don't even think they can in java
>>
>>53916727
Yeah. I have it check for chains of 3, chains of 2, and chains of 1 word, then check for which chain is the most common
>>
File: firefox_2016-03-10_12-38-15.png (556 KB, 771x533) Image search: [Google]
firefox_2016-03-10_12-38-15.png
556 KB, 771x533
>>53916721
>>
>>53916721
Do you work with Android?
>>
>>53916555
le reddit should have more normal conversational source
>>
am i shadow banned or somethiing, none of my questions are even getting a kill yourself reply
>>
File: anya.jpg (89 KB, 575x446) Image search: [Google]
anya.jpg
89 KB, 575x446
>>53916555
>War and Peace as source material
Unfortunately, now the most common words are "prince andrew" and "emperor alexander"

Amazing. Leave it as it is.
>>
File: image.png (328 KB, 2048x1536) Image search: [Google]
image.png
328 KB, 2048x1536
>>53916547
>>53916660
muh color themes n shit, it's mainly targeted at ipads because they doesn't come with a built in calculator, but app runs on iPhones as well.

Also every free calculator is garbage and has ads on it, mine will be open sores with no ads.
>>
>>53916812
Not a lot but I do have experience with it
>>
>>53916846
You have to go back.

You should know there is no such thing as shadow ban here.
>>
>>53916846
I can read this, so no you're not
>>
>>53916846
kill yourself
>>
>>53916855
>open sores
get ready to receive death threats and article long insult tirades from poo2loos hoping to earn 0.01$ from their calculators
>>
>>53916855
>>53916855
Holy fuck that could actually be useful. That's the first useful app I've seen on here.
>>
>>53916846
backtoreddit.jpg
>>
>>53916852
I was thinking of adding categories to each entry, so I can choose filters. One idea was to filter out anything other than philosophy books and papers and make a philosophy paper generator and see if it can scrawl out some post modern bullshit to pass for a real undergrad paper.

Also, someone suggested making one read sjw material and another read red pill material and have them argue.
>>
>>53916862
>>53916868

i saw it being mentioned in some threads so i thought it was happening.

>>53916882
it always feels like i have withdrawal symptoms if i ever go long without someone replying like that. thank you.
>>
I haven't written a single line of code in over three weeks.

I'm building up the anticipation.
>>
File: textanalysis.png (101 KB, 2451x840) Image search: [Google]
textanalysis.png
101 KB, 2451x840
>[linguistic analysis of 4chan intensifies]

This is going to be fun.
>>
>>53916492
Not him, but I'm bored, too.

1. It means that ayy can represent anything an int can, plus can also be null.
2. I don't know the name, but ?? is basically sugar for the ternary "ayy != null ? ayy : 5"
3. 5, since ayy was null
4. Ternary operator, freeBeer equals "No beer today :(" since it's thursday here and beer is disgusting anyway.
5. a) "ANY DICK WILL DO"
b) 8 + 10 + 10 + 16 = 44
6. For each string in the list, it'll print said string concatenated with lmao's value (5).

Hom many did I get right ?
>>
>>53916860
Let me ask you something about Android then.
The most common concept of Android development is to make requests to an API, parse the response and show it to the user.
My question is: Is it required to have a local SQL database to store the API responses and then showing it to the user (API > Local Database > User / User > Local Database > API) or should I make requests every time I want to show some data to the user (API > User / User > API)?
>>
>>53916956
Is that a generated graph? Using what to generate?
>>
File: image.png (443 KB, 2048x1536) Image search: [Google]
image.png
443 KB, 2048x1536
>>53916884
I don't care about loo's and their poo, they suck at programming.

>>53916894
thanks anon, I guess you will enjoy it
>>
File: 1457757239873.jpg (708 KB, 2048x1152) Image search: [Google]
1457757239873.jpg
708 KB, 2048x1152
When will I be able to feel like I know how to program. I feel so inferior.
>>
teaching myself some more bash
only that i don't have anything important
to optimize with scripts so i made this
4chin media scraper

#!/bin/bash
echo enter board
read board
echo enter thread
read thread
echo enter extension e.g. webm,jpg.gif
read extension


chin_url="boards.4chan.org/"$board"/thread/"$thread
echo "Scraping $chin_url"
wget -e robots=off \
-H -nd -nc -np -nv \
--recursive -p \
--level=1 \
--accept $extension\
--convert-links -N \
--limit-rate=200k \
--wait 1.0 \
$chin_url
echo ""
echo "finished scraping $chin_url"
>>
>Can't find an interesting API to consume on my Android App
>Can't progress with my studies since I am not programming
Send help.
>>
>>53916982
It is much more efficient and better to have a self-contained, serverless, zero-configuration, transactional SQL database engine.

https://www.sqlite.org/
>>
>>53916956
Am I part of this botnet already?
>>
>>53916996
It' actually pretty neat anon, congratulations.
Guess I will develop something for Android like this.
>>
File: xWJbm77.png (32 KB, 945x431) Image search: [Google]
xWJbm77.png
32 KB, 945x431
>>53916972
Good stuff, anon. Just missed the name of the Null-Coalescing operator.

Pic related for answers, can't spoiler because /g/.

>>53916984
https://www.microsoft.com/cognitive-services/en-us/linguistic-analysis-api

Microsoft has public APIs for all sorts of stuff now. You can use them sparingly at no cost.
>>
>>53917015
But how do you deal with synchronization?
If the server has an update, let's say the user decided to create something on the Web App, how do I sync both Android App and Web App?
>>
File: image.png (123 KB, 1536x2048) Image search: [Google]
image.png
123 KB, 1536x2048
>>53917035
Do it bro, I learned so much with this project.
>>
>>53917081
Sounds like you need to host a publicly accessible server with that data.
>>
File: Kz92XLA.png (14 KB, 439x366) Image search: [Google]
Kz92XLA.png
14 KB, 439x366
>>53917032
>Am I part of this botnet already?
Yes.

Your IP address has been logged and this incident has been reported.
>>
>>53916565
On a 64 bit system you should make all op strings 8 characters or less. Copy the characters from the op into a zero filled aligned buffer of length 8, cast the buffer to a long with a union, and switch based on the long values. It's faster than doing repeated strcmp.

union {
long l;
char str[sizeof(long)];
} op;

op.l = 0;
strcpy(op.str, m);
switch (op.l) {
blah:
blah:
default:
}
>>
>>53917127
sheeeeeiit
>>
>>53916884
or the dream in code kid will copy it and say he invented it
>>
>>53917107
You don't learn much from a calculator project
>>
>>53917000
It doesn't get easier anon, you just get better.

I felt the same way too. Everything I worked on was programming exercises. I felt like I would never be a programmer because I couldn't cross the barrier between making things and making USEFUL things. You just need to find something that's useful, even if it's been done before. Look at the anon up there. He made a calculator app. He did it better than all the other calculator apps. You think there aren't 1,000,000 calculator apps out there?

Find a project that is useful. If you think "Oh no I don't know how to program that though", then fucking FIGURE IT OUT. I made a program which converts data to audio and audio back to data using the "Kansas city standard" in my freshman year. I didn't know the first fucking thing about programming, or even using external libraries. So I studied regularly, asked lots of questions did a ton of googling, and found my answers and MADE it.

Learn by trying and failing and trying again anon
>>
>>53917108
Sorry but what do you mean?
>>
>>53917171
>dream in code kid

Is that kid a fake or what

The concept of dreaming in code is retarded. I do and I'm not a terrific programmer or anything.
>>
>>53917171
damn man iOS development has so many troubles
> Poo in the loo's death threats
> Dream code Kid may rip you off
> Applel mad cuz ur app is open source
>>
>>53917194
That depends on your prior knowledge, friend.
>>
>>53917248
>Applel mad cuz ur app is open source
?
>>
Everyone post their calculator apps
>>
>>53916748
After Java 7, it can.
>>
>>53917194
For someone that literally knew nothing about Xcode and Swift, I learned a lot...

My next goal is a shitty game tho.
Thread replies: 255
Thread images: 50

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.