[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: 49
File: timetocode.webm (2 MB, 1152x648) Image search: [Google]
timetocode.webm
2 MB, 1152x648
This is /dpt/, the best subreddit of /g/

Umaru-chan edition, the best of all editions.

In this thread:
r/programming
r/compsci
r/ReverseEngineering
r/softwaredevelopment

code of conduct:
no racism
no insult
no sexual harassment
no gender discrimination

wat r u working on, anon-chan ?
>>
File: computation expression 1.png (12 KB, 510x312) Image search: [Google]
computation expression 1.png
12 KB, 510x312
>>
>>54275022
why do japs like to sit on the floor on mats and thingss?
>>
File: wheeeeee.jpg (95 KB, 244x260) Image search: [Google]
wheeeeee.jpg
95 KB, 244x260
Every time I want to delete a node from a linked list. I pop the entire list to a buffer sequentially and then re-push it back in reverse minus one item.

How does that make you feel?
>>
>>54275022
this is against the rules
>>
File: Penetration of Loli - Return.jpg (370 KB, 579x567) Image search: [Google]
Penetration of Loli - Return.jpg
370 KB, 579x567
>>54275022
ayy
>>
>>54275044
you don't like sitting on the floor? what are you, some sort of faggot?
>>
File: FizzBuzz.png (13 KB, 578x461) Image search: [Google]
FizzBuzz.png
13 KB, 578x461
>>54275044 >>54275049 >>54275068
sorry I can't post the sound version outside of /gif/

post Lisp
>>
File: 1431197382136.png (44 KB, 286x364) Image search: [Google]
1431197382136.png
44 KB, 286x364
OK, can someone explain Python license to me?
Maybe some idea about other Languages licenses as well?

I read recently some stuff that python is GPL and therefore to distribute your code written in python it must also be GPL so whoever buys your stuff has right to see the source code

Am I getting this right?
How are other languages licensed?
>>
>>54275088
GPL is a literally a trojan virus invented by a communist. If you have no other choice, maybe allow LGPL, but not GPL.
>>
>>54275049
>>>54275022
>this is against the rules
why defuck does the mod delete my post now?
>>
>>54275088
i don't see how that could be true, imagine buying a pencil and the manufacturer having rights to whatever you wrote with it
>>
>>54275088
but who was then
>>
tried to find a ladygaga song, got this instead:
https://www.youtube.com/results?search_query=touch+my+body
>>
that's it
i'm making a fighting game
>>
File: 1393885777587.jpg (5 KB, 225x225) Image search: [Google]
1393885777587.jpg
5 KB, 225x225
>>54275128
they discuss it here
https://www.reddit.com/r/Python/comments/4gpa83/employer_refuses_to_allow_python/

I dont feel like theres clear cut answer in the discussion there, but there seems to be common theme that there are limitations when you go in to distribution of your code
>>
>>54275172
>clear cut answer in the discussion
that's fucking reddit for you, they talk all day but they can't answer shit, at times i have to filter reddit out when searching, cause google keeps thinking that they are reliable sources for answers

nah, as i said, that would be fucking retarded and i'm sure you can quickly find closed source python programs out there.
>>
>>54275128
That is literally what GPL is.
Someone gives you a pencil, then turns around and says the Mona Lisa -tier drawing you made must be open source too
>>
>>54275153
why not be creative, original, and actually make something different and something people might actually use?
>>
>>54275153
fighting games are the hardest kind of game to make t b h lad

I hope you have some experience in gamedev already
>>
>>54275222
Really?
Anon on 4chan where even in programming thread on /g/ pedophiles need to bicker over their favorite anime 6 years old girl... is going high-horse on reddit?
>>
>>54275225
yeah but i doubt python is that manufacturer

>>54275257
no, they're the hardest to balance, anon there will probably make a shitty version of an existing fighting game nobody will ever play
>>
>>54275249
bc my game will be cool
>>54275257
it'll be a simple 2d game to start with
if i fail,i'll go learn i guess
>>
>>54275225
this
GPL is communist cancer
>here take this 50 LOC shitter library i wrote in an hour, it's all yours
>now give me your 100 kLOC source good goy
>>
>>54275267
>high-horse on reddit?
you clearly have never seen what reddit is, it's a fucking circlejerk off PC culture and censorship, fuck reddit.
>>
>>54275267
Fuck off, now.
This is not a place for redditors, not even kiddnig.
You ruin fucking everything.
>>
File: fedora.jpg (59 KB, 479x720) Image search: [Google]
fedora.jpg
59 KB, 479x720
>>54275290
>>54275294
I am sorry reddit triggered you
better let you back to your anime lolis, furry and ponies
>>
>>54275048
I legit do somerhing like this in java. I make an array and when in need to delete an item i just delete the array and remake it with the same elements minus that one. Anyone have a better solution, cause mine feels retarded as shit.
>>
using Java 1.7
want user to input string
then program will assign ints to the chars as well as whether the char was a vowel vs consonant
then do some math on the int values based on the individual chars entered
should i use array, arraylist, hashmap, other?
>>
>>54275288
Can someone explain it to me
SFML uses multiple libraries that are licensed under GPL, yet it uses some custom MIT-esque license.

My website uses psycopg2 as the database driver, which its LGPL. Does that force me to use LGPL/GPL? What if my code just imports psycopg2?
>>
>>54275369
If you have to compact the array, just memmove to overlap the item you want to delete and realloc.
>>
>>54275011
>r/ReverseEngineering

Can /g/ into reversing network protocols? I've been entertaining the idea of writing a bot for a shitty mobile game my friends play. How would one go about doing this?
>>
>>54275369
i think i just remove the item without redoing the array
>>
>>54275317
Go away.
>>
>>54275412
I dont think that's possible in java?
>>
>>54275411
start by sniffing the network traffic, the chances are a shitty mobile game uses plaintext JSON/XML/other crap so it will be trivial to work with
>>
>>54275399
Also to add to this, SQLAlchemy is MIT, but it depends on psycopg2

Am I supposed to recursively look through every fucking library that I use to see if any of the dependencies use some shithouse license like GPL?
>>
>>54275410
>shrinking the memory

I seriously hope you guys aren't this retarded
>>
>>54275428
dunno about java
>>
>>54275411
use something like wireshark

also this: >>54275433 especially for the shittier mobile games, like with flappy bird you could just edit the high score in plain text
>>
>>54275410
Yeah that sounds good. Imma go figure out how to do that in java.
>>
>>54275433
>>54275455
couldn't he monitor the memory and see what matches ingame, like cheatengine?
>>
Sup /g/ newfag c++ fag here.
I'm trying to program a store kisok for my final project, and I had a few questions.
My basic idea is to have one main source file, with other c++ files to imitate stuff like a printer for recipes and an inventory system to check whether the entered barcode is valid, and the display the actual food item. Do those files need to be .h files? Thanks in advance lads.
>>
>>54275478
if it's online he needs to affect the server, like send commands as if he's playing the game
>>
>>54275478
how's that gonna help? he needs to manipulate network packets, sure he could use cheatengine to figure out the packet structure and hook into the socket to intercept read/write ops but why not just analyze the traffic first?
>>
>>54275290
>>54275222
yeah, discussions on /dpt/ are much better, amiright ?
>>
Quick question.

My Python 3 script:
print(wait, "hours from", hours, ":00 it will be", time, ":00")[code/]

Prints:
24 hours from 12 :00 it will be 12 :00
[code/]

How do I get rid of the spaces between 12 and :00?
>>
>>54275257
? Literally the simplest of games. a 2D landscape with parallax scrolling, a bunch of animating textures that correspond 1:1 to a hitbox state machine. The underlying crap is literally a solved problem and the hardest thing is balancing the craploads of characters which should be doable with a good dose of game theory.
>>
>>54275501
could he
>make them think that he used a shitton of money
>tell them it was his kid
>get Ks of cash
>>
>>54275497
use .h files for declarations and .cpp files for definitions, so both
>>
>>54275542
you're free to say whatever you like here.
nobody has any authority.
>>
>>54275544
print('{} hours from {}:00 it will be {}:00'.format(wait, hours, time))
>>
>>54275399
Nobody cares which license some shitty floss project uses. What the fuck are they gonna do? Sue the guy? These fuckers ain't got the money nor the disposition to fight over hobby code. You can't even touch non-US citizens anyway.
>>
File: 1457274399165.jpg (44 KB, 544x529) Image search: [Google]
1457274399165.jpg
44 KB, 544x529
>>54275553
>actually using .cpp files
>>
>>54275386
Use % operator I guess
>>
>>54275579
bad way to store cp and soviet documents
>>
>>54275546
it's one thing to make some shit that resembles a fighting game, it's another to make an actual fighting game with solid gameplay, combos, responsive controls etc
>>
>>54275579
Now seriously how can you be an elitist about this?

Either you know nothing or you're trolling
>>
>>54275544
sorry I messed up my tags I hope you can understand what I'm asking
>>
>>54275455

Game in question is Empire Z.

I'm not exactly a whiz at networking and I'm sure how to use a software to sniff just the game's traffic.

What I did was decompile the APK. Seems to be some kind of shitty obfuscated java code that calls an ARMv7 shared object, which is likely where the game and net I/O stuff actually is. I have an exam in some hours so I haven't gotten to it yet, but I'll bust out the Hex Rays for this thing and see what I can figure out.
>>
File: bern.webm (1 MB, 720x404) Image search: [Google]
bern.webm
1 MB, 720x404
Ask your much beloved programming literate anything (IAMA)

>>54275544
You can set a customized separator through the named argument sep

eg:
print("a", "b", sep = "")

>>54275222
I found the cs related subreddits to be quite good.
>>
>>54275577
thank you :)
>>
>>54275607
If you don't use templates in virtually everything you should be shot
>>
>>54275639
look for java.net and android.net packages in the java code, otherwise it might be in the shared object
>>
>>54275577
it's beautiful
>>
>>54275501

Yeah, the idea is to create my own scriptable game client. Then I'll write an AI which will automatically collect resources and develop the character. Forever. Then I'll run like 2k instances of them and zerg rush the pay2win top tier faggots with hordes of anonymous no-name accounts they can't track because they don't belong to any in-game group (alliances).

Trolling to the max
>>
>>54275597
Considering "good fighting games" are created almost by accident and pretty much never on purpose, I'd say there's really no difference between those two categories. It's a combinatorics problem so huge, it just happens to work out in practice somehow.
>>
>>54275670
how does using templates relate to using cpp files?
>>
File: 24231.jpg (54 KB, 500x500) Image search: [Google]
24231.jpg
54 KB, 500x500
>>54275766
>>
>windows has UNC \\?\ paths which send the full pathname directly to the FS
>no more bullshitting around backwards compatibility and retarded DOS crap
>applications which use it: 0
>GitHub for Windows, which runs on top of goddamn msys2, doesn't support the fucking Unix paths

This fucking OS is unsalvageable.
>>
>>54275670
>wanting unreadable code and retardiculously long compile times for no reason other than to feel a bit more smug when you tip your fedora
>>
>>54275802
So you don't know anything. That's what I thought.
>>
>>54275811
>what is low binding
>what is parametrisation
>how do I read C++ code
>how do I program
>how do I take a screenshot
>>
>>54275825
lol nerd >>>/r/eddit
>>
>>54275824
Give me your best .cpp file for a template class
>>
>>54275837
Newfag redditors like yourself really need to leave.
>>
java map/hashmap
phonebook has name, phone#
bill, 5551212
jenny, 8675309
but can it have a 3rd, 4th, etc field, such as address or email?
>>
>>54275825
>how do I read C++ code

It's write-only.
>>
File: carlos.png (272 KB, 560x560) Image search: [Google]
carlos.png
272 KB, 560x560
>>54275878
>>
File: [tilting increases].png (27 KB, 500x500) Image search: [Google]
[tilting increases].png
27 KB, 500x500
>>54275864
>template metaprogramming
>muh 'nerics
>muh memes
>>
>>54275844
That wasn't the point. You were objecting to using cpp files. You should use them alongside headers for declaring member functions.
>>
>>54275905
I'm honestly so sorry but you really aren't funny. Nothing you've said has been funny and you are lowering the quality of this website. It's not your fault, every under age redditor is like this. That's one of the many reasons the age limit is in place, and why reddit is hated so much
>>
So is GNU Make like the LISP of build systems or what?

Shit's literally a functional programming language. You can metaprogram it to do the most crazy shit.

I think I hate Make a little less than I used to now.
>>
>>54275937
That is exactly the point.
If almost every class is templated, you should barely have any cpp files.
>>
>>54275944
take a look in the mirror projecting literal reddit fag
>>
>>54275961
kill yourself

only the worst incompetent memers use templates to any significant extent in normal applications
>>
File: _.jpg (74 KB, 1280x720) Image search: [Google]
_.jpg
74 KB, 1280x720
>>54275968
>take a look in the mirror
>projecting
>literal fag

inb4
>sperg faggot cuck kill yourself
>>
>>54275905
>>muh 'nerics

Generics are incredible.
>>
>>54275985
kill yourself faggot cuck sperg
>>
>>54275984
The only excuse for avoiding templates is using void pointers

Templates allow you to reduce the binding between your files, regularly lower the number of #includes, produce consistent, reusable and modular code, etc.
>>
>>54275984
templates is the greatest thing offered by C++, they are a true advance in the programming language theory field.
>>
File: 12yo simulator.png (15 KB, 801x270) Image search: [Google]
12yo simulator.png
15 KB, 801x270
>>54276000
WE DID IT REDDIT
MOM 360 GET THE WEED EVERYDAY JOHN CENA
>>
>>54276008
>putting this much effort into writing """"reusable"""" (yeah fucking right) code instead of the actual software
keep telling yourself that
>>
how can i post source code so it looks formated?
>>
>>54276008
>regularly lower the number of #includes

... wat
>>
>>54276038
>>>/g/installgentoo
>>
>>54276041
he's right, you don;t need anymore to declare data structures for every types.
>>
>>54276073

You should be using intrusive data structures anyway. They're analogous to how template metaprogramming works and in plain C.
>>
>>54276073
>muh dater struger
fuck off, your program isn't made up entirely of data structures unless you're doing the most pleb CRUD shit
>>
>>54275952
>>54275952
>You can metaprogram it to do the most crazy shit.

Please don't.
Just use it as an install and build script, there's no need to run 50 shell commands just because you want make to automate every last thing.
>>
>>54276038
like with spoilers but with code
>>
>>54276008
>Templates
>implying i make the same software more than once
>>
File: sicp.jpg (182 KB, 800x800) Image search: [Google]
sicp.jpg
182 KB, 800x800
>>54276102
every programmer know that data structure + algorithm = program
>>
>>54276106
>shell commands
>shell
>needing to shell out

Hahahahaha I have evolved beyond such puny constructs. I have tamed even the mighty beast wildcard. Nothing is impossible in this brave new world
>>
>>54276162
>Nothing is impossible in this brave new world
m.. m-make a gui
>>
>>54276142
you don't need to roll your own AbstractTreeMapWtf or if you do, you don't need to use it for a gorillion different types, or if you do, you can use a template or something for it, but it sure as hell doesn't make up a significant amount of your program
>>
>>54276118
[spoiler]
#include <iostream>

int main(int argc, char** argv)
{
std::cout << "testing formating!" << std::endl;
return 0;
}
[/spoiler]
>>
>>54276106
I have a workspace directory with a make/ folder, where I have developed an entire framework for compiling my projects, complete with a standard library of useful functions, the ability to simply declare things and it'll automatically metaprogram all the targets and recipes into the build system, I can now manage motherfucking circular dependencies between shared objects with this god-given software its too powerful

>>54276180
The terminal emulator is a GUI that displays text. I don't need to make one
>>
>>54276225
i guess it didn't work gj
>>
>>54276225
[c o d e]c o d e[/co d e]
>>
>>54276193
>never had to write anything more consistent than fizzbuzz.

Abstraction is the most important concept of computer science.
>>
>>54276237
>can't make gui
>brags that he can make anything
welcome to the big boys' house
>>
>>54276283
 will this work? 
>>
>>54276304
gj familion
>>
>>54276284
Knowing when abstraction is harmful is similarly important.
>>
>>54276284
kill yourself

programs are more than just data structures

ok, templates can be used for data structures

doesn't mean the majority of your program should be templates
>>
What are you struggling with right now anon-chan?
>>
>>54276284
That's what they call the "Lisp school" which gave rise to the modern webdev mentality.
https://news.ycombinator.com/item?id=6418061

>One programmer costs ~ 300 cores. (Bay Area salary with benefits vs. AWS EC2 pricing)

>If your code consumes more than 300 cores, you should care about performance. If your code consumes less, you should care about productivity.

>Adding cores is easy while adding programmers is hard. Cores scale linearly while programmers don't. So I set the guideline at 1000 cores. Do not make performance-productivity tradeoffs below that.
>>
>>54276300
I'm in God's house now, only dreams and clouds
>>
>>54276379
god doesnt exist
>>
>>54276361
My own hypergraph file system.

>>54276330
>programs are more than just data structures

spotted the code monkey
>>
//look ma, no #include "mySerialType.h"
template <typename SerialType>
struct somestructure {
SerialType serials[3];
///etc
}
>>
>>54276394
LITERALLY TIPPING THIS HARD
>>
>>54275399

SFML dependencies:

PThreads, OpenGL -- License depends on implementation, generally not GPL.
Xlib -- Uses its own license, I think.
Xcb, x11-xcb, xcb-randr, xcb-image -- MIT, I believe.
Xrandr -- Custom license. Not GPL.
Udev -- LGPL
Freetype -- Two licenses. One is a BSD-like license that is compatible with the GPLv3 but not GPLv2 (Apache is like this as well), one is GPLv2. Either is acceptable.
Libjpeg -- Custom BSD-like license.
OpenAL -- LGPL
libFLAC -- Xiph.Org BSD-like license.
libVorbis -- Xiph.Org BSD-like license.

And no, you don't need to GPL or LGPL your project if you use an LGPL library. The LGPL only requires that any changes to the LGPL library itself be re-contributed. The library you link it against can be whatever fucking license you want.
>>
>>54276330
>kill yourself
I have no time to waste with such a bad-mannered person: This discussion is now terminated.
>>
>>54276434
thanks for your opinion

literally >>>/r/eddit
>>
File: tip.jpg (44 KB, 469x463) Image search: [Google]
tip.jpg
44 KB, 469x463
>>54276434
>This discussion is now terminated.
>>
File: 1461079435634.jpg (960 KB, 2338x1700) Image search: [Google]
1461079435634.jpg
960 KB, 2338x1700
>>54276441
>>
>>54276434
>>54276417
>>54276411
>>54276394
>>54276385
>>54276330
>>54276162
>>54276142
>>54276106
>>54276102
Gee there's a lot of fags online today
>>
>>54276454
>low binding
>gay

Low binding is the straightest kind of binding
>>
>>54276453
you're a fucking smug dunning kruger idiot

your program is shit or atypical if it's made up of nothing but various hand-rolled data structures that you use for gorillions of different types
>>
>>54276454
>>54276463
How many of these are (you)
>>
File: Untitled.jpg (50 KB, 842x655) Image search: [Google]
Untitled.jpg
50 KB, 842x655
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Assignment
{
class Program
{
static void Main(string[] args)
{
int rowCounter, columnCounter;

for (rowCounter = 0; rowCounter < 8; rowCounter++)
{
columnCounter = 0;

while ((columnCounter < 8) && (rowCounter % 2 == 0))
{
if (columnCounter % 2 == 0)
Console.Write('X');
else
Console.Write('O');

columnCounter++;
}

while ((columnCounter < 8) && (rowCounter % 2 != 0))
{
if (columnCounter % 2 == 0)
Console.Write('O');
else
Console.Write('X');

columnCounter++;
}

Console.WriteLine();

}

Console.ReadKey();
}
}
}


How did I do?
>>
>>54276142
How such a revered book have so little influence in the industry?
>>
>>54276497
It's literally arcane wizard shit.
I've been programming for years and I still don't understand most of it.
>>
>>54276479
i don't know what that is but 10/10 for not being a ragefag
>>
>>54276479
verbose/10 needs more comments
>>
God is this literally the shitposting general? Let me open dpttxt.
>>
>>54276422
You don't need to do shit if you don't actually distribute your program.
>>
File: 1451316939583.png (98 KB, 810x1195) Image search: [Google]
1451316939583.png
98 KB, 810x1195
>>54276513
>>
>>54276027
MAKE THIS INTO A REDDIT BOT
>>
File: eg1.png (11 KB, 476x178) Image search: [Google]
eg1.png
11 KB, 476x178
>>54276479
Is this what you wanted?
>>
File: r6 esp.png (2 MB, 1205x967) Image search: [Google]
r6 esp.png
2 MB, 1205x967
Coding some sick hax
>>
>>54276513
lel, then you are mediocre. sicp is an introductory book that has been taught for more than 25 years now (notably at MIT, UC Berkeley, Caltech, ...). Sure it's a little hard but not "that" hard.
>>
File: 1461871291922.png (71 KB, 810x1195) Image search: [Google]
1461871291922.png
71 KB, 810x1195
>>54276576
>>
File: sc.gif (3 MB, 320x227) Image search: [Google]
sc.gif
3 MB, 320x227
>thesis project literally brought me to tears just trying to build a C++ library and run sample code
>dragged out uni for two years of utter depression
>graduated with 9.6 average, fuck all experience and a hatred of programming

I clearly need mileage, but if I pick up a project that actually lets me focus on designing solutions, then I'm not learning anything, and if I have to spend two weeks googling unreadable error messages before can even I start, I'll sooner hang myself. What's the middle road?

The worst part is the feeling I'm not even moving ahead. Half the time I don't even get what fixed it and the other half's useless anyway, because the next technicality is something different again.

Should I just focus on less frustrating languages? Is C++ even particularly annoying or is it all me? Honestly, I've only ever worked on tiny projects in anything else. I have no idea what field I'm even going for.
>>
>>54276665
>MIT, UC Berkeley, Caltech
  M
E
M
STEM
H
FELL
O
R
>>
>>54276649
make it calculate where the head is
>>
>>54276678
try C#
>>
>>54276690
>STEM
>not S.T.E.M.
kys
>>
>>54276678
My experience with c++ has been going similar desu. Check out C#
>>
>>54276690
      G
S O U R
A
P
E
S
>>
>>54276665
>has been taught for more than 25 years now
They dropped it over 10 years ago in favor of a much more relevant introductory course using python, and not your geriatric meme language.
>>
File: sSUVobo[1].jpg (399 KB, 1596x895) Image search: [Google]
sSUVobo[1].jpg
399 KB, 1596x895
>>54276696
Bone esp coming soon
>>
>>54276734
>relevant
>python
>>
>>54276678
common lisp

what you want is what you get
>>
File: no.gif (164 KB, 500x281) Image search: [Google]
no.gif
164 KB, 500x281
>>54276721
boys shouldn't kiss boys
>>
>>54276734
MIT still teach SICP, just at a higher-level class.

May other schools that used to teach SICP now teach HtDP to beginners instead, and use SICP for advanced classes.
>>
>>54276741
nice but maybe not have the lines when they're so far away
>>
>>54276761
but /dpt/ is full of faggots
>>
>>54276690
Have you even finished high school ?
>>
File: buy me geimu.png (156 KB, 451x387) Image search: [Google]
buy me geimu.png
156 KB, 451x387
>>54276783
no means no faggot
>>
>>54276803
>umaru
clearly you are faggotkin
>>
Programming is shit web design is much better and pays a lot more
>>
>>54276761
if they're wearing a skirt it's ok bby
>>
>>54276803
*kisses u*
*smooch*
*pulls pants down*
>>
>>54276822
*throws skirt at anon* put it on slut
>>
File: average dpt poster.png (147 KB, 500x281) Image search: [Google]
average dpt poster.png
147 KB, 500x281
>>54276822
>there are people in this thread RIGHT NOW not wearing skirts
>>
>>54276846
I am wearing a skirt right now. It helps me program 100 times better
>>
>>54276873
Fag
>>
File: cs.jpg (1 MB, 1904x4706) Image search: [Google]
cs.jpg
1 MB, 1904x4706
>tfw the level lowered so much that sicp is now considered to be expert-level
>>
How does /g/ feel about Visual Studio?
>>
Best programming languages?

top tier:
>Excel Formulas
>MSWLogo
>C preprocessor
>.txt

good tier
>C derivatives (C++, Go, D, ...)
>ML derivatives (Ocaml, F#, ...)
>Powershell

ok tier
>meme languages (Nim, Idris)
>English language

diaper tier
>visual basic
>C#
>x86, x64 assembly
>bash

web tier
>HTML
>CSS

python tier
>python
>javascript
>python
>java
>python
>>
File: idalarge[1].gif (142 KB, 2560x994) Image search: [Google]
idalarge[1].gif
142 KB, 2560x994
>>54276881
ASM 4 life homie
>>
>>54276952
    P
N O T
R
T
A
B
L
E

THE POWER OF C COMPELS YOU
>>
>>54276952
oh boy I'd need, like, THREE motivational pingus to deal with something complicated like this haha
>>
>>54276948
First /g/ list I've seen that doesn't (retardedly) put C# in top tier. Why would you ruin it and put ASM in the same one?
>>
File: 1459774792211.png (881 KB, 556x739) Image search: [Google]
1459774792211.png
881 KB, 556x739
>>54276809
>>54276809
>>54276822
>>54276830
being a faggot is a mental illness people that are faggots tend to kill themselves you should seek medical help
>>
File: 091256129.jpg (40 KB, 695x427) Image search: [Google]
091256129.jpg
40 KB, 695x427
>>54277004
>asm
>above C#
>>
>>54275088
Python is licensed under the PSF

https://docs.python.org/3/license.html

which is compatible with the GPL, but you program can be licensed under whatever license you want.
>>
>>54276930
It's pretty good as a IDE but has slow compilers.
>>
>>54277017
anon bby it's ok
*kisses u*
*smooch*
*pulls pants down*
>>
>>54277049
> *
>not a kind variable
get out
>>
>>54276361
I'm struggling with full static compilation of SDL2-based project on linux.

>>54276422
How much code do we need to draw a single pixel...
>>
why isn't this working?


<html>
<head>
<title>useBean Example</title>
</head>
<body>

<jsp:useBean id="date" class="java.util.Date" />
<p>The date/time is <%= date />

</body>
</html>

>>
Noob dropping by real quick, hi.
I kinda expected /g/ would hate C#. Isn't it all windowsey and shit?
>>
>>54277072
Nah, most do hate C#, except unity babbies and pajeets.
>>
>>54277071
REEEEEEEEEEEEEEEEE

Some of you guys are alright. Don't go to >>>/wdg/ tomorrow if you're not a web dev.
>>
>>54277072
C# is fine, this >>54277083 nigga is a ragefag
>>
>>54276645

Which language is this?
>>
File: semisupercrescent_plot.png (10 KB, 600x400) Image search: [Google]
semisupercrescent_plot.png
10 KB, 600x400
>>54276881
Programming algorithms, datastructures and languages isn't a cutting age CS research anymore. Cutting age research is Machine Learning, it doesn't matter which language you write your ML in, if it works and it is fast.
>>
>>54277072
only people who hate it are pajeets upset about it being a better designed language than java. I don't think anybody else even cares about c# here with some rare exceptions who just think it's alright.
>>
>>54277099
Here is my other class


public class StudentsBean implements java.io.Serializable
{
private String firstName = null;
private String lastName = null;
private int age = 0;

public StudentsBean() {
}
public String getFirstName(){
return firstName;
}
public String getLastName(){
return lastName;
}
public int getAge(){
return age;
}
public void setFirstName(String firstName){
this.firstName = firstName;
}
public void setLastName(String lastName){
this.lastName = lastName;
}
public void setAge(Integer age){
this.age = age;
}
}

>>
>>54277110
F#
>>
>>54277118
only people who like it are pajeets that believe c# differs enough from java for java to be shit tier and c# to be top tier
irrational hate for java & irrational love for c#
>>
Speaking of C#, how well is it supported on non-Windows platforms?

Do you still have to use Mono to get a non-trivial C# application to run on Linux?

I heard something a while back about MS releasing parts of their .NET runtime as open source. Did that improve C# working on Linux?

What I'm trying to ask is, how good is C# on Linux? If I make two similar GUI-based programs, one with Java and Swing and the other with C# and its own GUI library, will the Java one perform better on Linux, or is C# on Linux also pretty capable?

I am asking because I have read a LOT of good things about C#, but I cannot justify spending the time to learn it if I can't run a C# program well on Linux.
>>
Lets make /College General/ to contain all these poor homework babbehs?
>>
>>54277139
JUST FUCKING MAKE THE FUCKING FIELDS FUCKING PUBLIC FUCKING GOD FUCKING DAMNIT FUCK please
>>
>>54275421
+1
>>
>>54277166
I can't that is bad OOP design and in Java you are suppose to make it private I am sorry
>>
How do I get into machine learning?
I feel like I'm missing out.
>>
>>54277116
That's oversimplifying it a bit. There is lots of new and important research in the field of programming languages.
>>
>>54277186
Fuck you, homework slave

For my own software I will do whatever the hell I want.
>>
$ ./dpt
C are M$ pajeet no arch skirts of shills GNU/Linux of M$ GNU+Linux is nigger M$ no rms anime u linux C u cuck arch are RUST C is C shills a C RUST no x.org rms are GNU/Linux shills are F# RUST no F# F# and nigger arch a stallman nigger u pajeet GNU+Linux a RUST shills and cuck.

hmm
>>
>>54277186
>bad OOP design
Yes, also known as good design
>>
>>54277225
>>54277265
Why does proper OOP design trigger you guys so much? It makes perfect sense when making large software in teams
>>
>>54277193
Learn Python, google and take a course on Tensor Flow/Pandas.

Here are some datasets:

https://github.com/caesar0301/awesome-public-datasets

Stop being a bitch and go do it, Machine Learning is literally retard tier to actually use.
>>
>>54277193

1) Read /r/MachineLearning everyday, also read older posts there is a lot of great stuff

2) Try to implement simple stuff, a linear classifier, naive bayes, multilayer perceptron.

Read wikipedia and tutorials, some decent ones are http://karpathy.github.io/neuralnets/ http://scikit-learn.org/stable/tutorial/basic/tutorial.html https://www.toptal.com/machine-learning/machine-learning-theory-an-introductory-primer

You shouldn't have problems with ordinary programming, shouldn't fear highschool math. ML builds on these skills. Also note that using ML is way simpler than coming up with semi-original or even full custom algorithms (an example of semi-custom one: http://benanne.github.io/2014/04/05/galaxy-zoo.html )
>>
>>54277210
PL research is impractical meme logic research, you could literally generate an infinite number of different logics and prove even more theorems about them. These people happen to get paid for such activity and that's it.
>>
>>54277277
Because
>making large software in teams
is not what I want doing for life
I want to be an upper middle class rentier working on robot gf software as a hobby.
>>
>>54277315
Sure buddy.
>>
Is programming VST synths tough?
>>
>>54277277
>step 1) make fields private
>step 2) create public accessors for said fields
>step 3) ensure public accessors mimic the field being public in the first place
>step 4) comment setters and getters
>step 5) write unit tests for setters and getters
>step 6) mark user story for "develop accessors for private integer #342 and private float #512" as completed
>step 7) go home
>step 8) wake up
>step 9) repeat
>>
>>54277342
https://unqualifiedreservations.wordpress.com/2007/08/02/whats-wrong-with-cs-research/
>>
>>54277361
>.wordpress.com
>>
>>54277360
What is your point? It pays a lot of money and you forgot debugging large applications
>>
>>54277368
nigga its an eb1k s3krit club
just

dont

get

--

--

banned
>>
>>54277376
>hello, I'm mr Pajeet Kumar a professional Java Software Engineer
if you are a pajeet then java maybe pays good money, otherwise I doubt it
>>
>>54277376
>setter/getter
>helpful for debugging

Yeah that fucking stack frame mate it's not like you can put a breakpoint on the .property = value statement or anything
>>
File: doge 3.jpg (64 KB, 600x450) Image search: [Google]
doge 3.jpg
64 KB, 600x450
So I'm the retard with the diamond array. Pls send help /g/. This is as far as I got. I have no idea of how to make the rest of the zero diamond.

main(){
int lin,col, ord;
printf ("enter array size\n");
scanf("%d", &ord);
int mat[ord][ord];
for (lin=0; lin<ord; ++lin)
{
for(col=0; col<ord; ++col)
if(col>=(ord/2)-lin)
mat[lin][col]=0;
else
mat[lin][col]=1;

}


for (lin=0; lin<ord; ++lin)
{
for(col=0; col<ord; ++col)
printf("%d", mat[lin][col]);
printf("%\n");
}
>>
>>54277404
whats that
>>
>>54277162
>Do you still have to use Mono to get a non-trivial C# application to run on Linux?
yes

>Did that improve C# working on Linux?
It's still in development. They are transitioning from one set of console tools to another, there are only packages for a few specific version of linux distros depending on specific library versions, so basically you can get .Net core working without issues as long as you stick to the same (outdated) build environment as in step-by-steps

>how good is C# on Linux?
Mono is ok. Java fares better performance-wise and obviously has better infrastructure for linux development. .Net core (console only so far) and the latest asp.net are supposed to be faster. Plus there is ahead of time compilation support (and llvm backend) in development. But this all is gonna be ready for straightforward use in some unforeseen future.
Basically if you want to learn the language by writing mostly GUI desktop software - it's Mono only. If console apps + web apps in Asp.Net is fine for you and you don't mind either using ubuntu 14.04 or spending time figuring out how to build .net core from source on a different system, making it support newer dependencies (which isn't really the greatest start to familiarizing yourself with the language) then do that.
Where it's worth or not to learn it - idk, it very much depends on whether .net core is going to be at all successful
>>
>>54277413
$120,000 American dollars is pretty good for Java programming

>>54277428
It does help I see you never debugged before
>>
File: Dandy drone.jpg (37 KB, 225x156) Image search: [Google]
Dandy drone.jpg
37 KB, 225x156
>>54277435
I have to use only arrays and loops to make a 2D array of variable size (user input of 3 to 20), that contains a diamond made of 0s and the corners out of 1s. The thing is I can do math and some "complex" shit on C (statistics, calculus...) but it seems I'm to retard to make images with numbers.
1 1 0 1 1
1 0 0 0 1
0 0 0 0 0
1 0 0 0 1
1 1 0 1 1
>>
>>54277162
I use ASP.NET Web Api at work sometimes.

When I saw that you could use it with OS X and Linux I gave it a try, it is a super shitty experience. It definitely isn't anywhere near production ready.

It's a valiant effort, but wait until the platform is more mature.

As far as C# goes it really is a very good language, but it's not really production ready for multi platform.
>>
>>54277470
what user input is in that example?
>>
>>54277470
Please fuck off to /College General/ with your homework.
Thanks.
>>
>>54277470
>i can't into basic algorithms for solving real problems

STEM STRIKES AGAIN!
>>
>>54277470
>>54277433
Send help
>>
Chess in assembly.

I'm still a little scrublet, taking the few CS classes in community college that will transfer to my 4-year, and this semester it's MASM.

Been pretty fun so far, though.
>>
>>54277413
Also my name is Patel get it right
>>
File: doge.jpg (88 KB, 970x617) Image search: [Google]
doge.jpg
88 KB, 970x617
>>54277488
The matricial order.(It needs to be a square matrix)
eg.
3=3x3
4=4x4
....

>>54277492
H-h-how did you guessed anon?
>>
>>54275294
>acting like 80% of the people in here don't spend a nontrivial amount of time on reddit and just try to hide it

People are gonna use what's popular, often over what's good. If that wasn't true, you'd be on some other chan right now.
>>
File: wrinkledmabrain.webm (197 KB, 500x282) Image search: [Google]
wrinkledmabrain.webm
197 KB, 500x282
>>54277493
find yourself a function f(x,y) that computes the pixel (0 or 1) at coordinates x y, then double-loop to initialise the array with it. Done. For the function, look into Manhattan Distance.

t- Your fellow maths, reasoning, and programming literate.
>>
File: CFPNnL9.jpg (790 KB, 946x4201) Image search: [Google]
CFPNnL9.jpg
790 KB, 946x4201
>>54275290
>PC culture
>>
File: thetruthaboutjs.jpg (103 KB, 1024x576) Image search: [Google]
thetruthaboutjs.jpg
103 KB, 1024x576
>>54277575
>if you're not dead because of the problem, you don't have a point
>microagressions are problematic
pick fucking one
>>
>>54277564
>acting like 80% of the people in here don't spend a nontrivial amount of time on reddit and just try to hide it

80% of the people in here don't spend a non trivial amount of time on reddit, you fucking dumbass
>>
>>54277604
I browse both reddit and here. I personally prefer reddit for the funny cat pictures and the programming threads have better topics
>>
>>54275083
What language is this?
>>
>>54277646
Visual FoxPro
>>
>>54277604
Your first mistake is putting too much faith into literally any other user on this board.
>>
>>54277646
MSW Logo
>>
>>54277537
>>54277537
impossible to center the diamond with a even matrics
>>
>>54277603
There's no such thing as "PC culture" is the point. It just means "basic rules". It's only a shock to neckbeards who pee in bottles and shitpost on 4chan all day.
>>
>>54277604
The bulk of this side is reddit and shitposters.
>>
>>54277674
>what are non-integers
>>
>>54277361
I still haven't read quite everything, but it seems that the person has a fundamental misunderstanding of several concepts, starting from the division of CS research, to thinking that _need_ is a valid argument, to thinking that simplicity in itself is good (things should be as simple as possible, _not_simpler_), and to thinking that the amount of people using a language is the same thing as their worth.
>>
>>54277641
>>54277662
>>54277729

I hate nu-/dpt/
>>
>>54277733
>printing half a character
fucking slut
>>
>>54277733
>>54277674
H-help
>>54277574
I only have twenty minutes ;_;
>>
>>54277749
I also enjoy my little pony it has a great story line
>>
>>54277455
>>54277480
I see, thanks for the replies.

I'll probably hold off on learning C# until the platform matures for Linux.
>>
>>54277761

I'd help, but I have no fucking clue what they want if the array is even.

What would a 4x4 diamond even look like
>>
>>54277749
>implying you're somehow a part of the long in between peaks of quality of this site that no other site achieves
You're just as bad as the redditors. You've most likely migrated from reddit and think you're now "a part of it".
>>
>>54277778
Wouldn't it be easier to tell the user to fuck off if he enters an even value?
>>
>>54277778

1001
0000
0000
1001

or

1111
1001
1001
1111
Thread replies: 255
Thread images: 49

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.