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

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 326
Thread images: 34

File: nani?!.jpg (134KB, 800x800px) Image search: [Google]
nani?!.jpg
134KB, 800x800px
old thread: >>59933073

What are you working on, /g/?
>>
First for Rust
>>
>>59939666
go away satan
>>
>>59939666
Also, check'em

>>59939671
Fuck off, Jesus
>>
File: 1482013529967.jpg (1MB, 3537x3335px) Image search: [Google]
1482013529967.jpg
1MB, 3537x3335px
What language will let me write down axioms using first order logic and then let me program with them?
>>
>>59939666
of course Satan would endorse Rust

>>59939709
>first order
STLC i think
>>
>>59939709
What is the real world application of predicate logic?
It looks like academic wank.
>>
File: prolog-tree.png (66KB, 775x687px) Image search: [Google]
prolog-tree.png
66KB, 775x687px
>>59939709
Literally Prolog
>>
>>59939709
What logic Prolog does?
>>
How do you people stay productive on your thinkpads(laptops)? I'm a desktop user, I use my desktop fucking 16 hours a day. Even though my laptop is 1080p I still feel cramped on it and I can't get anything done. I'm considering a little 13" USB monitor for it but I'll look a sperg using that in college and I'm already kinda fat and dress like a poor so
>>
>>59939715
I'm pretty sure it's constructive.
>>59939725
>real world
How do you determine if a world is real?

>>59939742
>>59939747
Forgot about it. Thanks.
>>
>>59939709
Prolog, it's useless.

>>59939747
FOL
>>
>>59939760
I have a use for it, so it's already not "useless".
>>
>>59939652
cirno ftw
>>
>>59939751
I have a thinkpad with 1280x800 resolution and it's not difficult at all.
I don't even use workspaces, I just alt+tab between open windows.

Have you ever tried programming on a phone?
When you can't even display 80 character lines without truncating?
That's cramped.
>>
Is there a Project Euler for dummies?
I'm looking for some easy programming challenges that require little to no math.
>>
>>59939776
What use?
What will you make in it?

>>59939751
Use it for long enough and you become used to it.
I move a lot so a desktop was impractical for me, now I just do my job normally on my 15 inch 1080p laptop.
>>
File: 1486832618064.jpg (68KB, 929x960px) Image search: [Google]
1486832618064.jpg
68KB, 929x960px
Can you recommend any UTF-8 characters that look like "n" and "N" other than 6E and 4E? I need a replacement for these letters that wouldn't be noticed unless you looked at the code, I don't care if it looks funny it Times New Roman or some other font like that, I'm doing a thing in monospace and with little pixel density.
>>
>>59939826
Does it matter? Any use would be sufficient to say that it's useful.
>>
>>59939808
I mean I can do it but in general it's just not enjoyable. Maybe I'll try to use my laptop more at home to get used to it. I only use it at school, the second I get in the door I plop down at my desktop, yet whenever I take out my laptop I think to myself "damn this thing is so nice why don't I use it more"
You know, it's not just programming either, pretty much anything that isn't 4chan I suck at on the laptop. Even just working on multiple choice questions, it feels way way slower than on my desktop.
>>
>>59939833
what about aleph?
>>
>>59939848
what are you even asking
>>
>>59939871
I'm lonely. Just wanted to chat
>>
>>59939922
Your problems are banal and the way you describe your life makes me glad I'm not you.

Lose weight, fatty.
I bet you don't even program outside of class.
>>
Daily Programming Challenge!
Implement pow(-a, b) in x87 assembly.
>>
>>59939857
>who could be behind this post.jpg
I'm only using A-z and a-z characters anyway.
>>
>>59939944
wait is aleph jewish?
>>
>>59939959
it's used in most jewish texts, but yeah it works in my case, I'll give it a try, thanks for the suggestion.
>>
Is modulo expensive, or can I assume all CPUs do the intel thing where integer division always produces a dividend + remainder and the remainder is fetched instead of the dividend?
>>
>>59939940
I don't, I have a vague interest in it at best. More interested in hardware. Problems are banal because I go to great lengths to live as simple a life as possible. I keep no one around so I don't have to answer to anyone or explain myself. I'll lose weight if I ever decide to get a girlfriend, comfy right now.

Why are you so bitter? Try smiling when you're on 4chan, it'll reflect in your posts and make more people's days better. That's why we all work with computers right? To make people's lives better through technology.
>>
>>59939970
they ruin everything
>>
>>59939995
Oh don't worry, I'm having fun deconstructing your life and having you spill your heart out in the programming thread of an anime imageboard.

Get some friends, being alone for long periods fucks with your mental state, having to maintain appearances with people fprces you to take care of yourself.
>>
simple bst in java for a class
>>
>>59939825
http://rgho.st/private/8mdW4GGqL/9427ccdaec8a3fae5bf6e36506c6bd25
>>
>>59940091
That would defeat the whole purpose though, I live like this so I don't have to worry about maintaining appearances or relationships. I suppose I'll have to clean up when I start looking for work. Nothing wrong with having a conversation. Do you program for fun? I'm just lacking motivation lately. It's definitely enjoyable, nothing rivals finally getting something to run or compile.
Maybe that's the ticket guys. Program like people play video games until you become a master at it like a WoW nerd is a master. They know everything about every class and item in the game and the metagame. If you got to that point with programming you could earn really good money, maybe even enough to have a girlfriend.
>>
File: counter_devil.png (365KB, 500x697px) Image search: [Google]
counter_devil.png
365KB, 500x697px
>>59939666
>>
can you NEETS do a DPT without anime for once?
>>
http://jesusnjim.com/
who is this guy and why does he remind me of terry?
>>
>>59940263
A /dpt/ without anime is not /dpt/
>>
>>59940209
I suggest you clean up now before you become so entrenched in your ways that you become a neet 0.0001s after graduating.
The whole reason you go to university is to build connections, nobody NEEDS to go to college to learn programming, ignoring the people aspect of college is going to cripple you in more ways than one.

Also, are you on the autism spectrum?
You sound like it.
>>
>>59940263
anime imageboard
>>
>>59940150
Link doesn't work.
>>
>>59940263
/dpt/ was anime-less this weekend
>>
>>59940306
What happens?
This file since to be downloaded two times already.
>>
>>59940150
looks like a nice book, but the layout really annoys me for some reason.
>>
>>59939943
>in x87 assembly
You lost me.
>>
>>59940330
Keeps loading.
>>
>>59940330
>>59940352
Nevermind, fucking phone refused to connect.
>>
dpt, I'm sad
>>
File: nyotepad hello dpt.png (6KB, 670x431px) Image search: [Google]
nyotepad hello dpt.png
6KB, 670x431px
Another personal milestone reached!

I just wrote a text and saved it to a file using my own text editor.
>>
>>59940425
i'm sadder
windows refused to boot, writing from linux atm
>>
>>59940434
That's really good!

What language did you write it in?
>>
>>59940529
C++ using Windows API, Direct2D and DirectWrite

It's a silly thing, but i'm proud.
>>
>>59940563
Nah that's good. I've been wanting to experiment with using direct OS/hardware APIs but I'm still too shite lol.
>>
File: ohshit.png (8KB, 995x191px) Image search: [Google]
ohshit.png
8KB, 995x191px
well shit, thought I beat depression but it's kicking in again.
wat do, /g/?
>>
>>59940817
>he fell for the depression meme
>>
>>59939825
>Is there a Project Euler for dummies?
but that is project euler
>>
>>59940434
nice work tbqh
>>
>>59939825
codewars
>>
>>59939825
make snake in pygame or love2d
>>
>>59939825
>>59940912
Does anyone else find Project Oiler boring?

It's literally just "here is well-defined problem, please recall or google the solution kthx"
>>
>>59941071
ye
time based contests is where the action is
>>
>>59941071
it's up to you if you google it...
>>
rate my method faggots
int check(char *d)
{
int i;
for (i = 0; i < count; ++i) {
if (!strcmp(e[i], d)) {
return 1;
}
}
return 0;
}
>>
>>59941168
what's e, faggot?
>>
>>59941181
2d char array
char *e[20];
>>
>>59941168
it's a function not an method
>>
>>59940817
What is this graph anon?
>>
>>59941233
github contributions
>>
>>59941196
global i'm assuming? that's bad form
>>
>>59941249
Ah, silly me. Thanks.
>>
C++ or Rust? Why?
>>
>>59941251
yes global.

basically, its a table that stores names, and i use that function to not print repeated elements.

some kind of """hash table""""
>>
>>59941271
>current year
>having a fucking global variable
>having a fucking global variable named "e"
>>
>>59941290
i changed names before posting
>>
How to deal with the fact that there are no unsigned data types in java???
>>
>>59940434
I made one of those in python, pretty nice feel - well done anon
>>
File: 1480552380914.png (41KB, 1280x1483px) Image search: [Google]
1480552380914.png
41KB, 1280x1483px
Send the two limbs at the sides of the fountainhead of your physical being into conduits of striped cotton. Only then can you master the writing of laws in letters and numbers
>>
>>59941319
https://blogs.oracle.com/darcy/entry/unsigned_api
>>
>>59939652
>tfw nobody will ever contribute to your projects on github
>>
>>59941537
Maybe I will
>>
>>59941537
Have you considered making it more friendly to women of color? Maybe people feel alienated by exclusionary or ableist rhetoric? Something to consider
>>
File: hlep.jpg (25KB, 631x341px) Image search: [Google]
hlep.jpg
25KB, 631x341px
>>59941284
>>
>>59941537
It's a great feel. I get to do it all myself and call the project my very own.
>>
>>59941537
HOW AM I SUPPOSED TO CONTRIBUTE IF YOU DON'T POST YOUR GITHUB, FAGGOT?
>>
>>59941662
I'm not a programmer but if I were I'd feel really uncomfortable about working on something that has been posted on 4chan...
>>
File: upset.png (198KB, 834x468px) Image search: [Google]
upset.png
198KB, 834x468px
>>59941558
>>59941662
https://github.com/EZ3CHI3L
Currently figuring out image scaling and stuff, eventually gonna implement a real GLSL bicubic b-spline interp.
Some dood even made a cheap pygame knockoff of my program: https://github.com/nilesr/Eternity2
>>
>>59941705
>https://github.com/EZ3CHI3L
explain your website
>>
File: 1488756444497.jpg (119KB, 839x835px) Image search: [Google]
1488756444497.jpg
119KB, 839x835px
>imperative language doesn't have switch/case construction
>>
>>59941815
>C doesn't have switch/case construction

kys
>>
>>59941855
C isn't the only imperative language, you know?
>>
>>59941889
which one are you talking about?
>Ada
>ALGOL
>BASIC
>Blue
>C
>C++
>C#
>Ceylon
>COBOL
>D
>eC
>FORTRAN
>GAUSS
>Go
>Groovy
>Java
>Julia
>Lua
>MATLAB
>Machine language
>Modula-2, Modula-3
>MUMPS
>Nim
>Oberon
>Object Pascal
>OCaml
>Pascal
>Perl
>PHP
>PROSE
>Python
>Ruby
>Rust
>>
>>59941914
About every language without switch/case construction.
>>
Probably a stupid question, but I'm trying to learn some PHP.

I chose to learn by making a family website where I'll be putting up pictures from over the years, so everyone in the extended family can both see and upload their own pictures. Especially newly digitalised photos from way before smartphones and shit. Just for fun really.

Anyway. Basically my question is this: How do I, by a link or something similar, generate a custom page, where the link passes a value from my mysqli database?

I've only been learning for a few days. Any help is appreciated.
>>
>>59939825
https://projecteuler.net/
>>
>>59939652
A type system that eliminates scope creep
>>
wtb some some easy to medium level project idea
going to use C++ or Rust
>>
File: desu.jpg (54KB, 666x380px) Image search: [Google]
desu.jpg
54KB, 666x380px
>>59941537
>I can't use if! it is 0.0001% slower!
>>
>>59942028
asm
>>
>>59941572
What do you mean "mount" them locally?

Can you just stream/download the files from that URL and then play them once they're downloaded, organized, and named?
>>
>>59942035
>>59940434
>>
crosspost from sqt.

I feel like I'm missing something with CMake.
I'm working on a project that uses OpenCV. I added OpenCV as a submodule on Git so I have all the sources in my project directory. I know I can do add_subdirectory(opencv) to make it build the library, but how can I then instruct my project to link against it?
>>
>>59942273
Don't use cmake.
>>
>>59939825
URI Online Judge.
>>
Should muh gaem have globuhl voriabels?
I ken juss use extern word key to aksays?
>>
we did it, reddit!
import sys

def urlify(string, wordLength):
bufferLength = len(string)
backAdd = bufferLength - 1
for i in range(wordLength):
backRead = wordLength - (i+1)
if(string[backRead] == ' '):
string[backAdd] = '0'
backAdd-=1
string[backAdd] = '2'
backAdd-=1
string[backAdd] = '%'
else:
string[backAdd] = string[backRead]
backAdd-=1
return string

print(urlify(['M','r',' ', 'J','o','h','n',' ','S','m','i','t','h','','','',''], 13))
>>
>>59942273
Look for "target_link_libraries" or something, in my project:

cmake_minimum_required(VERSION 3.0)
project(GAEM)

# Configure Compiler
set(CMAKE_CXX_COMPILER "clang++-3.8")
set(CMALE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1 -pedantic -lSDL2")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wno-error=switch -Wno-unused-parameter")

set(ROOT_DIR "${PROJECT_SOURCE_DIR}")
SET(BUILD_DIR "${ROOT_DIR}/build")
SET(SRC_DIR "${ROOT_DIR}/src")
SET(LIBS_DIR "${ROOT_DIR}/libs")
SET(DATA_DIR "${ROOT_DIR}/data")

include_directories(
SYSTEM
${LIBS_DIR}
)

set(SOURCE_FILES
src/Main.cpp
src/RenderSystem.cpp)

add_executable(GAEM ${SOURCE_FILES})

INCLUDE(FindPkgConfig)

PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)

INCLUDE_DIRECTORIES(${SDL2_INCLUDE_DIR})
target_link_libraries(GAEM ${SDL2_LIBRARIES} ${LIBS_TO_LINK})

file(COPY ${FILES} DESTINATION ${BUILD_DIR})
[/code
>>
>>59942702
-std=c++11 *
>>
>>59939666
>> First for Rust.unwrap()

FTFY
>>
>>59942070
Go is better at restricting the number of features you use.
>>
>>59941705
>Eternity, but usable
>Imagine my surprise when I tried to use Eternity, my window to the good, only to find out that >attempting to compile it leads to a 2000+ line error message.

>I just rewrote it in python
I would be mad too.
>>
Man, iterators in Rust are pretty powerful.
>>
What alternatives are there? I looked into premake but it doesn't seem to have very good compatibility with existing projects.
>>
>>59942902
HKTs never
>>
>>59942997
HKTs are completely fucking useless
>>
>>59943013
You couldn't be more wrong
>>
You guys good at databases? There's no database general so I thought I'd post here.

These things are seriously awesome. It's gotten to the point I'm using them as replacement for spreadsheets. Whenever I want to keep track of something over medium and long term, I make a database now.

Really small ones are so easy to use with SQLite. Really easy to access programatically. I think it should be the default solution to the "how do I write something to disk and load it later" problem. UTF-8 text is the second best solution; human readable but requires parsers and generators. Security exploits are often found in this user input handling layer. SQLite is ridiculously well-tested.

I seriously hate object-relational mappers now. The entire idea is just fucking retarded. In many companies I got to watch as teams of pajeets eviscerated perfectly good relational designs, as if they drove data requirements. It's the other way around; database drives the application design. If you have a database, protect it at all costs, especially from teams of Java/Ruby on Rails/.Net pajeets who think of everything as a class with attributes. Our DBAs were either fucking pushovers or management denied them the authority to do their fucking job

Seriously ORM a shit. An SQL abstraction layer is fine since it allows independence from the underlying database's specific features, but if you're abstracting away SQL, you're doing it R O N G
>>
>>59943013
>We've had this argument multiple times already
>Yet still no one can come up with an actual valuable use for them
>>
>>59943118
Meant for
>>59943055
>>
File: hkts.png (53KB, 581x668px) Image search: [Google]
hkts.png
53KB, 581x668px
>>59943118
Anything in the top half of pic related that isn't * (type) or * -> * (generic) or * -> * -> * (generic 2 args)
>>
>>59941537

don't expect them to

just stay away from github
>>
python's for i in range() doesn't let you update i in the body. it's a glib fascimile of a for loop
>>
>>59943179
>Haskell
I said valuable uses.

It's funny how every time I ask about HKT's, I always get Haskell responses.
Just shows that HKT's are nothing but Haskell masturbation and uselessness.
>>
>>59943074
I have a burning question regarding databases actually.

I have three tables, where one has keys to the other two. What I want to do is this:
SELECT * FROM db_1 WHERE a='$v'
INNER JOIN db_2
ON db2.key = db_1.key
INNER JOIN db_3
ON db_3.key = db_1.key

But I can't do that, because the WHERE would need to go last. I'm being retarded I'm sure.

Basically I have a certain record, which has an ID, and I want to access that record, using WHERE on its ID, but in the same query I want to access values contained in the two other tables. How do I do that..?
>>
>>59943239
That isn't Haskell
>>
>>59943246
Well it looks like Haskell so it's probably just as useless.
>>
>>59943239
haskell doesn't even HAVE higher kinded types
>>
Can you guys rate my connect 4 project please?

http://ideone.com/c697Lt
>>
>>59943244
Can't you just put it at the end and do WHERE db_1.a?
>>
>>59943278
That's just wrong

>>59943239
>>59943254
well aren't you the fool
>>
>>59943340
I need db_1.a to equal a local variable, how would I do that?
putting
WHERE db_1.a = '$v'
at the end doesn't seem to work. I'm new to databases myself, and I agree they are very cool. I'm just not very good yet
>>
File: demo.gif (4MB, 712x570px) Image search: [Google]
demo.gif
4MB, 712x570px
how is this kind of stuff programmed? i would like to implement something like pic related so that the user can explore a 3d node map, being able to create nodes or load diferent data sets. im trying with unity 3d at the moment, using an xml to load the nodes coordinates on the 3d space, how would you guys go about making such thing?
pic related is from plot.ly 3d scatter visualization example, any insights?
>>
>>59943290
1/10
>>
>>59943539
Rendering it is simple - each node is a sphere and each edge is a line. The hard part is spreading them out in a visually pleasing way. There are loads of papers on that subject, but the basic principle is to make each node repel each other node but make connected nodes attract each other. The keyword you're looking for is force-directed graph drawing.
>>
>>59943539

What do you mean how is it programmed? Are you asking how 3d graphics work?
>>
>>59943340
>>59943410
fixed it, no bother:)
>>
how far into transition are you gals?
>>
>>59943850
>transition
what do you mean?
>>
>>59943877
He means he's a gay fucking faggot.
>>
>>59943729
what lenguage/environment would you recommend that is capable of rendering this? im already aware of force directed layout algorythms but a complete noob in 3D applications.

>>59943799
more like what should i use or which tools are recommended for the task
>>
File: unity demo.gif (1MB, 653x492px) Image search: [Google]
unity demo.gif
1MB, 653x492px
>>59943895
>>59943729
>>59943539
this is what i have so far. and having that first example i posted in mind, makes me feel like its going to be a pain in the ass to make this unity thing work like intended
>>
File: 1490250555596.gif (3MB, 800x708px) Image search: [Google]
1490250555596.gif
3MB, 800x708px
/dpt/ I'm a pleb who realizes how shit he is at pointers.

I want to change this.

What are some good material to become a master at pointers?

And I mean master, like, if it's to deal with pointers people will want to call you.

What are the best resources to for one to move on this road?
>>
>>59943978
how did you make that, then?
>>
>>59943978

throw that unity shit in the trash and do it in 150 lines of openGL
>>
>>59943999
So what you are saying is... you want some pointers? ;))
>>
>>59944022
can you use your mouse in openGL to rotate the scene?
>>
>>59939652
>What are you working on, /g/?

Arduino shit
>>
>>59944022
thats what i want to hear, what is the best way to do this? just opengl? not used to make interactive 3d shit
>>
>>59944168

glm for SIMD vectors with overloaded operators
glfw for input handling

now go find that tutorial with the rainbow triangle
>>
I'm writing a thing to organize a database of my images, like giving them tags and optional messages both for searching/filtering. So if I wanna find images tagged 'sad' I can see them all easily or attach the text in the image as a message so I can find it that way too. I'm using it as a way to learn about databases & WPF for the UI, it's really fun so far.
>>
>>59944257
dont listen to this faggot. implementing such thing in opengl will go full seppuku
>>
goddamn I can't stand the kids in my CS&E department. today in the CS lounge, after taking an easy as fuck networks exam "BRO, WHAT DOES DVR EVEN MEAN???" "jeez that was so fucking hard! networks is so hard! us CS majors have it so hard" these are the same fuckers that scribble CS memes all over the whiteboard in the CS lounge and spend almost all of their free time playing runescape and league of legends
>>
>>59944507
so, what it dvr?
>>
>>59944480
This. You'll end up spending 99% of the time figuring out how to draw a triangle, then spheres and lines and eventually abstracting that to create a bunch of spheres and lines easily. You'll spend days figuring out how openGL works versus whacking out the visualization in a few hours in Unity.
>>
>>59944480

it can't be any simpler than this

> tool: a 3d graphics library
> task: draw some dots and some lines
>>
explain this
#include <stdio.h>

#define TEST(a,b,c) (a+b+c+d)

int sum(int a, int b, int c, int d){
return TEST(a,b,c);
}

int main()
{
int a = sum(1,2,3,4); // 4 enters in the macro??

printf("%d\n",a ); // outputs 10
return 0;
}
>>
>>59944514
distance-vector routing. we literally had an entire lecture on it and it's mentioned 800 times in the textbook but these ultra brainlets didn't know what DVR meant
>>
File: maxresdefault.jpg (173KB, 1440x1440px) Image search: [Google]
maxresdefault.jpg
173KB, 1440x1440px
>>59944560
>>
>>59944560
what don't you understand, pajeet?
>>
>>59944560

int sum(int a, int b, int c, int d){
return TEST(a,b,c);
}


expands to

int sum(int a, int b, int c, int d){
return (a+b+c+d);
}
>>
>>59944560
The preprocessor is not part of C. It's a separate entity that runs as part of the build chain before your source code is compiled.
>>
>>59944584
Sir, please don't offend me

>>59944585
>>59944593
got it thanks
>>
>>59944593
>The preprocessor is not part of C
you learn new things every day
>>
>>59944559
op wants the application to be able to navigate the 3d space, and interact with the objects. not as simple as you think
>>
File: aurora-6788456.jpg (438KB, 1575x1003px) Image search: [Google]
aurora-6788456.jpg
438KB, 1575x1003px
>>59939652
Not sure if anyone from the thread yesterday is here, but I actually took the advice to stop learning Python and give c++ a try. So far i'm enjoying it a lot more. I'd already been reading a lot about how computers actually work, and c++ seems to reveal a lot that python obscures and does automatically for you. Even simple stuff like how when you create a variable, it has a value already from whatever memory address it accessed. A bit trickier maybe, but it's cool. Also I like the tutorials for c++ way more than the ones I'd used for Python.
>>
>>59944634
cppreference.com is a godsend
>>
>>59941537
>tfw someone uses your github project in their github project
>>
File: 1471693734478.gif (143KB, 500x400px) Image search: [Google]
1471693734478.gif
143KB, 500x400px
>>59944634
Not sure if that's a game or some SCADA software for controlling weapon systems.
>>
anybody here ever straight up stolen a complete project, renamed a bunch of things, and uploaded as their own original work?
>>
>>59944829
as in github?

what are you thinking?

maybe if you write it in a different language than the original project...
>>
File: stuff.png (22KB, 1026x540px) Image search: [Google]
stuff.png
22KB, 1026x540px
>>
>>59944793
>mkv
>not mpv
>>
>>59939709
L I S P
I
S
P
>>
>>59944829
Why would you want to do that unless you have some interview you want to smoke
>>
>>59944859
Who are you quoting?
>>
>>59944897
read this sentence
>>
>>59944897
I know who you are, and where you live. Cut it out.
>>
what are some good applications of CS I could use to help my college radio station?
>>
Maybe a customizable sound board or something
>>
Also try asking them if they ever do repetitive stuff that they would prefer to have automated
>>
File: unnamed.png (27KB, 1280x800px) Image search: [Google]
unnamed.png
27KB, 1280x800px
>>59945061
- online radio station (listen your college radio in your browser)
- audio visualizer

etc
>>
it doesn't make any sense to me that map in python doesn't return a list
>>
>>59945061
Scrambler.
I made a very good signal scrambler but I got outed by my professor when I asked him some technical questions and he guessed what I was making. Police almost got called too.
>>
>>59945120
list(map(chr,[66,53,0,94]))
>>
>>59945121
What language?
>>
(python) BlackJack

is this code im writing too clusterfucked?

things I know are wrong:

I still havnt implemented split or insurance functions

I need to print out the print statements in a way that makes more sense

I also need to block out user error eg(press a wrong key)

but im in shit posting mode now, so thats tomorrows problem, but looking for any comments on what I have done

https://pastebin.com/qsyXJmTE
>>
>>59945133
"it doesn't make any sense to me that map in python doesn't return a list"
>>
>>59945120

Guido answers this question here: https://docs.python.org/3/whatsnew/3.0.html

>since creating a list would just be wasteful
>>
Skedaddling around with 2d graphics (SFML) trying not to screw over my scope and lose all motivation
>>
File: 1491456688770.jpg (255KB, 1600x1200px) Image search: [Google]
1491456688770.jpg
255KB, 1600x1200px
>>59945119
>>59945121
audio visualizer has been on my mind for some time, but there's a shit ton of fucking stupid red tape that goes into updating a college owned website.

I really want to make a better automation system for music that plays when no dj's are on . rn we use wideorbit and they want you to buy some expensive ass software called musicmaster to make better unique daily playlists.

all our music is picked right now from alphabetical rotators that play songs in order. whihc leads to some songs being played more than others (i.e voewl rotators such as "Rock Rotator A' contain rock category songs that start with A, which there are a shit ton so rarely they all play)
>>
>>59945143
C
>>
>>59945146
it's alright
>>
>>59945162
>If you really need a list and the input sequences are all of equal length, a quick fix is to wrap map() in list(), e.g. list(map(...)), but a better fix is often to use a list comprehension (especially when the original code uses lambda), or rewriting the code so it doesn’t need a list at all
what's this guy's beef with lists?
>>
>>59945175
That seems easy enough to implement.
So long as the songs are properly tagged, you can make a lot of playlist. You can even get creative with era, genre and mixing and matching depending on the person making the playlist.
>>
>>59945192
you don't wanna know

he found out a list was fucking his wife
>>
>>59941705
>>59941779
>website has /edgy/ poetry
>animay-may github picture
>dotfiles repo
>unfinished irc bot
>literally wrote an app in C to show pictures of animay-may in desktop threads
>this can't be real, /g/ is just a meme right?

100$ says this edgelord uses arch
>>
>>59945120
It makes perfect sense, consider mapping a function that increments some value in everyone node in a tree. Map can allow you to do that, but it makes no sense to return a list of the modified tree.
>>
>>59945146
Blackjack is a perfect situation to implement OOP. Maybe you should try that. As practice.
>>
>>59945146
Are single and double quotes both considered a string in Python? I never liked Python. Yeah though it's alright.
>>
>>59945232
>Are single and double quotes both considered a string in Python?
yes
>>
>>59945223
why not have it return the mapped tree?
>>
>>59945232
yes.
>>
>>59945232
yes they are, I get sloppy though and and lose consistency

and there is doc strings """ yada yadda """
>>
>>59945258
>>59945260
>>59945146
I guess my only criticism then would be to stick to using either double or single quotes instead of using both randomly throughout, just for consistency
>>
>>59945206
lol he just copied a library into his project too:
https://github.com/EZ3CHI3L/Eternity/blob/master/src/stb_image.h

that's all the meat of it and he copied it hehe xD
>>
>>59945289
are you retarded?

next thing you gonna say is that some guy copied stdio.h
>>
>>59945304
dude the whole project is just displaying some nerdfuck anime image

he wrote a main method for a library

he wrote hello world
>>
>>59945259
Well, in that guys link Python 3s map actual does return an iterator to the mapped object. I can't think of anything off the top of my head in Python (which doesn't mean anything), but mapping can conceptually be over any type of 'container', even things like functions, for which would be difficult to create a standardized way of returning every possible 'mappable' back in a list.
>>
>>59945325
>>59945289
>>59945206
if you don't have anything nice to say, don't say anything at all. unless this guy's the same one who was saying that programs are proofs
>>
File: 1492478502711.jpg (87KB, 409x409px) Image search: [Google]
1492478502711.jpg
87KB, 409x409px
>>59945332
i just want an easier to script with haskell
>>
>>59945283
You also can use single quotes inside a double quote string without an espace character or vice versa
>>
>>59945350
>haskell
>>
>>59945350
don't we all friend
>>
>>59945289
I've (not that guy) used other 'libraries' that are just one file with everything in it so you don't need a compiled dll or a bunch of source files, like sqlite-net, you just grab the single file and add it to your project
>>
File: Capture1.png (540KB, 1371x817px) Image search: [Google]
Capture1.png
540KB, 1371x817px
I didn't actually do any programming but I feel good about figuring out how to compile this stuff without visual shitio
>>
>>59945335
programs can be proofs m8

programs are groups of functions and running them is proving whether or not a algorithm works or is useful (at least, the first programs were just proofs; now days only theoretical science and math spits out programs you could consider proofs.)

ML may be the one CS field left where the programs are "proofs."
>>
>>59944560
Because you're retarded.
>>
what language can you make a sudoku calculator in the easiest?
>>
is there a rapidfire way to see what a function does exactly in python? like in haskell you can do :t map and it'll tell you the type
>>
>>59945425
Probably python.
>>
>>59945414
>1 hour after a guy shows up and calls a guy retarded

you aren't very bright, are you?
>>
>>59943290
Just started programming I guess?
>>
>>59945432
If it has something like Common Lisp's DESCRIBE, then sure.
>>
>>59945443
i guess
>>
>>59945442
Why the fuck would I emit any light?
>>
>>59945491
because you're Jesus.
>>
>>59941705
>CeCILL
What kind of shitty license is that?
Get the based GPLv3 and put the FSF quote in your code to scare off MS shills. You don't need to use a real name, just make that shit up, nobody is gonna verify if the name exists or not anyway.
>>
>>59945506
Damn, you got me.
>>
>>59945581
>>
File: 1490811475103.gif (365KB, 400x328px) Image search: [Google]
1490811475103.gif
365KB, 400x328px
>>59939652
How do I avoid choice anxiety when choosing to learn a new language? There are so many languages out there, no silver bullet, and a mass of dissenting opinion. Even though most things could be written in a handful of languages, there are zealots for everything.

It makes me ill to think about going down a road for a year just to find out it was the wrong choice and no one uses it.

At work they use ruby and java, and /g/ calls these boring/old/pajeet languages. I kind of enjoy Ruby, I just feel inferior because people talk so much shit about it.
>>
>>59939652
What languages do most mobile gaming apps utilize?

Serious here
>>
>>59945667
usually assembly or java
>>
>>59945653
who on /g/ shittalks ruby? i've never used it mind you, just never heard it talked down about
>>
>>59945667
Unity's 2017 keynote talk or w/e claimed that 38% of all mobile games globally are currently using Unity (so C#). I don't know about the rest though.
>>
>>59945653

It shouldn't take you a year to learn a new language unless you are becoming an expert in it. If you can't churn out a shitty but comprehensive project in any language after a week or two of study you are probably missing some major fundamentals.
>>
>>59945691

Plenty of people shit talk the language... mostly Python fans and people who hate the stereotypical web dev.
>>
>>59945893
Hey I love Ruby and I love Python as well.
People with language loyalty are fucked in the head. Language is just another ends to a means. If another language can do the task better, I am all for using that instead.
>>
>>59945893
literally never seen a single post saying ruby is shit and i've been here for 3 years
>>
>>59945923
I don't use rails or do webdev, we just use it as a scripting language for server maintenance. I come from perl before this and I like ruby much more than python.

>>59945691
Lots of people who see ruby as some post-hipster language. People that think it's dead and move onto new_hotness.
>>
File: 1492370215734.jpg (291KB, 1180x664px) Image search: [Google]
1492370215734.jpg
291KB, 1180x664px
Can someone explain to me how Reddit is written in Python? I thought website were written in HTML/CSS.

...please respond
>>
>>59946076
https://github.com/reddit/reddit/blob/master/r2/setup.py#L60
>>
>>59945923

I don't really consider myself to have strong language loyalty, although I do find some languages displeasing to work with, namely PHP. Python is okay, but almost every area it gets used in, I tend to prefer using Ruby for. Although I must admit, it has the better libraries in machine learning fields.

>>59945942

I've been on 4chan since 2006, and most of the posts trashing Ruby that I've seen have been made in the last couple of years. Perhaps you should lurk more threads than just /dpt/.

>>59946076

You are thinking of the front end, which is what your browser sees. Python is used for the backend, which is the program serving that HTML/CSS to you, and interacting with the database.
>>
>using a language with blocking and mutexes as concurrency primitives
Disgusting
>>
Does anyone else sometimes swear horribly at whatever they're doing? Like calling some framework absolute fucking trash and horribly designed until you figure out that you were supposed to do the thing another way?
>>
>>59946076
Are you retarded?
>>
>>59946126
Ruby is
A pile of tripe
What a mess
Dynamic types
Adding end
To all your blocks
Feels just like
Fellating cocks
>>
>>59943290
Is this bait or a meme? If not thn good job i guess
>>
>>59946126
>Perhaps you should lurk more threads than just /dpt/.
i'm good
>>
Is there anyway I can make something like $50 - $100 per week considering I know how to wrangle data and make some basic predictions and visualisations from some data set (Using R and Python)?

Or would I be better off just trying to make some blog where I download a dataset, work through it to do some basic cleaning, wrangling and then some prediction, analysis and some visualisation? As I learn more I'll be able to use more complicated regression techniques and some machine learning/neural network type work; but for now I'm not that good; I'm a first year Data Science student for what it's worth
>>
>>59946219
I'm not a programmer.
>>
>>59946198
I do that at everything.
>>
>>59946076
same way Php can write websites. It outputs the html/css.
>>
File: reddit-netsec.png (159KB, 491x1116px) Image search: [Google]
reddit-netsec.png
159KB, 491x1116px
>>59946076
>>
>>59946076
The HTML and CSS are generated dynamically by web frameworks. In reddit's case pylons.
>>
export was a mistake: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n1426.pdf
>>
>>59946344
What the fuck are they even doing over there?
>>
>tfw paying $20/month for codecademy pro
welp i didn't realize there are tons of step-to-step tutorials on youtube.

i thought chatting with a tutor would be more helpful

at least i get the additional freeform projects i guess
>>
>>59946289
Thx, that makes me feel better
>>
>>59946344
Wait what? They stored password in fucking plaintext.
>>
>>59939652
I'm writing an alternative image viewer for Windows.
>>
>>59946379
Yes, there's no other way to be able to email you forgotten passwords.
>>
what is the point of post-secondary institutions when all the info for programming is online? teaching quality is pretty bad in CS too, you're expected to self-learn things
>>
>>59946401
Yes there is: PGP
>>
>>59946401
This is why I use dummy passwords whenever I sign up for shit on the internet. You never know when a moron is going to store password in plain text and fuck evereything over.
>>
>>59944852
Everyone has to start somewhere.
>>
>>59946424
if you're talking about wanting to be a software engineer, there's more to it than knowing syntax for a given programming language
>>
>>59946424
Universities are really for teaching you how to study and learn more effectively, they are supposed to teach you the tools to do that. Unfortunately in the last 50 years or so they've turned into drone worker-producing mills. Hence why there's so many Java schools today, companies don't want to have to wait a week for you to pick up Java when they hire you, and they also don't want you (rightly) complaining that Java is garbage.
>>
>>59946465
so? where does the university come in on that? weekly lab exercises? assignments? does that give you programming experience?

>>59946467
>Universities are really for teaching you how to study and learn more effectively, they are supposed to teach you the tools to do that.
that's correct.
>>
>>59946432
how would that work? you expect normies to store the key in their cache and never clear it or something?
>>
>>59946490
Programming experience comes from projects and assignments they give you. Most of the time the only guidelines given is what language to use and the end results. There is no step by step, it is sink or swim. If you don't know the language, you better learn it and complete the assignment.
>>
>>59946432
PGP would not work in this case, the best reddit could have done, and should have done, was encrypt the data in their databases with the key hidden elsewhere and not accessible to any intruders.
>>
>>59939652
I tried making a neural network to imitate my movements in a simple game I made, but that shit doesn't work
>>
>>59946518
Yeah that's the part I struggled with in school. It's really hard to try to make up a program without assistance. I can try to teach myself using codecademy tutorials, but that's all step-to-step stuff. I ended up failing that python algorithms course.
>>
I'm a MechE student but my professor wants me to switch over to CompSci because he says i have a knack for it. Here's my latest project, a Connect Four game:

https://ideone.com/c697Lt
>>
>>59946490
>so? where does the university come in on that? weekly lab exercises? assignments? does that give you programming experience?
yeah, computer science is about more than just making programs though. the classes i've taken so far that stuck out to me as very useful were organization of programming languages, which was kind of a meta class about languages themselves where we did a bunch of different languages like prolog, and made a scheme interpreter in scheme which was wacky. operating systems was also pretty good, self obvious. theory of automata and linguistics was useful, lots of heavy hitting stuff in there. analysis of algorithms was very foundational. you can definitely learn the stuff yourself, i'm trying to teach myself assembly because my school doesn't even have a course on it, but if you just go to code academy and learn syntax you're wasting your time. i can rec you some good books if you want
>>
>>59946501
>>59946534
The website would have your password (encrypted at signup using your public key) stored somewhere, and it would be emailed to you when you tell it you've forgotten your password, and you'd be able to decrypt it using your private key. That way, the website (and anybody with access to its database) would not be able to decrypt your password, but you would still be able to get it in an email reminder.

You don't keep your public-private key pair in cache, you keep it somewhere persistent.
>>
>>59946553
should've known this was you. get some
c e r t i f i c a t i o n s
e
r
t
s
>>
>>59946553
You are expected to do a lot of self learning in colleges/universities. That is the part people struggle with. It is no longer structured like in high school or junior college. Suddenly people have a lot of free time (which they are supposed to use for self studying) and no idea what to do with it. So they end up doing degenerate shit and fluking out of their major and ending up in some art major where the bar is set way too low. Then they graduate and wonder why they can't find any jobs.
>>
>>59946584
>but if you just go to code academy and learn syntax you're wasting your time. i can rec you some good books if you want
got any recommendations for python? i have some books at home but i never get the motivation to do things
>>
>>59946592
is there already a protocol that automates that? if not it's not gonna work but if they do that's cool. still wouldn't use it because emailing people passwords makes you look like an idiot
>>
>>59946490
>where does the university come in on that?
A job board that involves more than dead end tester jobs and pretty much every self-taught "software engineers" and "senior software architects" I've met fucking sucks and are so crazy inflexible they fret over the minute you propose anything that's different from the usual OOP imperative bullshit.

Not to mention the crazy amount of code they paste, not understanding what the fuck they are seeing in their IDEs and working with self-learners is just a terrible terrible experience overall.

Where does college comes into play into making people less shit at everything, I don't know. Probably being forced to know the very basics, instead of jumping straight to java fart apps. I definitely know that self-learners should stick to sucking dick for a living instead of infecting my existence with their incompetence.
>>
>>59946616
automate the boring stuff.
I always recommend people start with that. It teaches you to do a lot of functional stuff along with syntax.
>>
>>59946592
How would reddit authenticate then?
>>
>>59946604
Shit that hit me hard.

I was wondering why I'm doing so bad in university, until I realized I only study a few hours per course per term. I remember spending all my spares and lunches studying in high school.

>>59946598
what certs? my dad did a bunch of cisco stuff. sorry about my blogging, how did you recognize me...
>>
>>59946592
>your public key

that ain't happening with a normie website buddy.
>>
>>59946620
In theory you could sign and encrypt an entire password reminder email to be sent to you if you lose your password, and give that to the website at signup. That way it would just work with email clients that support PGP.

In the worst case you could decrypt the encrypted password sent to you using GPG on the command line.

I agree that anything automated would look stupid these days, we've trained people to complain about websites emailing you your password because it usually means they're storing your password in plaintext somewhere. Good luck trying to get most people to understand public key crypto, why the approach I'm suggesting is safe, and how to distinguish it from websites storing your password in plaintext and just lying about using crypto (especially since you can't know unless you're sure you never ever sent your plaintext password to the website - not even at signup).
>>
>>59946581
I saw this in /sci/. Nice try.
>>
>>59946424
>>59946490

Computer science and programming are not one in the same. Once you have mastered logical statements, loops/recursion, binary/hex, the common data structures (linked list, tree) and basic algorithms (sorting, searching, recursion v iteration, etc) you'll be at the level a normie is after 1 year of CS; and you'll be behind them in terms of math almost definitely.

If you want to work at a code mill, or be a middle class web dev then programming is fine. If you want to work in systems development, game programming or algorithm development you want to go the CS route.

>>59946467
this is simply not true, universities are good for teaching you things you wouldn't know to learn. And also forcing you to learn things at a steady pace and expanding upon basic knowledge. It's also a place where you get hands on experience.
>>
>>59946076
Lies, the first version of reddit was written in LISP by Aaron "the one true martyr" Swartz
>>
>>59946697
why did they switch from lisp again?
>>
>>59946696
There's little science in CompSci unless you take postgrad courses and do it quickly before you forget what stochastic even means.
>>
>>59946718
Something about LISP web frameworks sucking or whatever. They talk about it one of the stack overflow podcasts but for the life of me I couldn't finish it because they are all so boring.
>>
anyone in a uni taking CS and fucking hate it? I feel like a meme for being a self-taught programmer.
>>
>>59946616
>>59946652
i recognize you b/c you post here all the time. i never read a book on python, i just read the learn x in y page for it to get basic grips, googling the error code, and absorbing from code golfing online. the more languages you learn, the quicker they are to pick up. i'm not really fluent in any language desu, i'd need to google stuff if you told me to write a java program or something. idk about certifications dude i just know they exist and some are better than others. look into what certifications in IT are reputable and maybe get a 2 year / community college degree. just tell your granddad regular college isn't working out. more importantly for your depression make sure you have a friends group, maybe go to the gym and strike up a conversation with a guy while you're working in on the same squat rack. i just met friends in class. only really got 1 friend, mexican guy in my software engineering 2 class i go to mcdonalds with b/t classes. got a fat fwb tho. i stay sane, used to be depressed

books i rec:
1. structure and interpretation of computer programs <-- the point isn't to learn Scheme
2. http://learnyouahaskell.com/chapters <-- the point isn't to learn haskell
3. K&R <-- the point is partially to learn C b/c C is cool
4. The art of assembly language <-- the point isn't to learn assembly
5. Introduction to algorithms <-- don't read the whole thing, and don't even necessarily read it linearly. act like the chapters that say advanced don't exist

even if you're not a software developer, programming is very useful for scripting. you need to know how machines work and about their anatomy. i'd say these should get your bases covered on the software end of things, with assembly delving just a bit into hardware. maybe do a small bit of each book every day
>>
>>59946729
>>59946718
http://www.aaronsw.com/weblog/rewritingreddit
>>
File: DIMG_0002949283.jpg (406KB, 2048x1536px) Image search: [Google]
DIMG_0002949283.jpg
406KB, 2048x1536px
예술하는사람으로서
코딩을 배우려는데 뭐부터 어떻게 배워야할까요
코알못은 서점에가서 방황하다 웁니다
파이썬? 프로세싱? C언어...?
책? 인강? 워크숍?
>>
>>59946752
>i recognize you b/c you post here all the time.
hehe that's true.

thanks for the advice, i'll try that

>>59946768
why are you posting in Korean?
>>
>>59946632
It could be as simple as they generate a nonce, you sign (nonce, username) and send the signature back to them. You wouldn't even need a password, rendering this whole discussion about forgotten password emails moot.

If you really want to use passwords, I think you could sign (nonce, username, hash(nonce, encrypted password)) and they could verify it. (The encrypted password would already be stored in the website database, along with your username and public key.)

>>59946660
I know. It's sad.
>>
>>59946776
also you can probably cop a lot of those books on lain's lambda board, there's always a thread up there on pdf sharing. the board just recovered from a wipe a few days ago so not as many are up there now, but i know it had intro to algorithms back
>>
>>59946721
>There's little science in CompSci

That depends on what you're taking, if you get some BS Bachelor of Arts or if you go to some shitty school then sure. But there is a /lot/ of physics in CS if you're taking the right courses. And I don't think I'd have stayed in a program that didn't teach at least a little of how the underlying hardware works.

But you are right, it's mostly a shit ton of math + implementing said in CS with programming classes teaching the code monkey stuff. The fun/interesting stuff doesn't happen until after your 4 years are up; but i don't know that i'd recommend quitting after your BS because there's a ton of pajeet with a BS in CS.
>>
>>59946800
Yeah there's also my university's library which provides free ebook access. Got plenty of time to read it over my free time. I go to the gym but don't really have a friends group.
>>
>>59946718
lisp
>>
>>59946801
>physics
what are you on about? unless you mean computer networks and stuff with sine waves? i'm just finishing a course on that now. we never had to do a fourier analysis or something by hand, closest to that was telling what the bandwidth of a composite signal would be from the equations etc.
>>
>>59946801
at most schools, getting a bachelors of arts in CS would be harder than getting a Bachelors of science, since CS courses are interwound around the requirements for a BS and not for a BA so youd have to technically get both
>>
>>59946779
Unfortunately for PGP, RSA is not that strong anymore is nearing its end of life.
>>
>>59946424
When is the new thread?
>>
>>59946822
you don't need to go partying with people on the weekend, that's only that one type of person that does that. just striking up a conversation with some guys in class asking about an assignment can lead to a friendship if you keep up the conversation
>>59946801
>but i don't know that i'd recommend quitting after your BS because there's a ton of pajeet with a BS in CS.
sadly for pajeet computer programmer was recently removed from the list of professions for the h1b program
>>
>>59946867
>just striking up a conversation with some guys in class asking about an assignment can lead to a friendship if you keep up the conversation
but that's just being classmates or acquaintances.

i have quite a few i know that way, but i don't consider them friends and neither do they.
>>
>>59946801
Shit ton of math is also a huge overstatement. The physics I had were mostly part of the curriculum which was completely tangential to the rest of my career, I only ever needed the very basics for doing computer graphics, pretty much just Hooke's Law for a cloth simulation and calculating normal vectors for pretty lighting.

You also need a bunch of statistics for simulation and markov chains and stochastic models and all that fun stuff but, again, unless you are on a postgrad course, you ain't doing much of that for most of your career.

And I don't know, maybe quantitative methods for optimization problems, but you can hardly call that "math heavy"

I mean, there's more maths in there than a fucking arts degree, that's for sure. But I'm not comfortable comparing myself to a bonafide engineer, I tell you what.
>>
>>59946881
talk to them more and become closer to them then. you're not labelled with a big sign over your head telling other people not to be friends with you, you probably just keep yourself distant from other people because you think it's less stressful to not be involved with anyone
>>
>>59946916
>you probably just keep yourself distant from other people because you think it's less stressful to not be involved with anyone
that's true

i ended up brushing away offers to study together and shit. not to mention by the second term, a robot had more friends in the department for some reason
>>
>>59946939
>i ended up brushing away offers to study together and shit.
there you go, simple as that. and next time you overhear a group of people saying they're doing a study group now you have to put yourself out there and say "hey mind if i join? i'm having trouble too" because you're in the negative. it's always like that, things are handed to you at first and you turn it down, not so easy the second time. after that you have to pursue it yourself
>>
>>59946768
코알못이면 일단 파이썬부터 배우는게...
>>
File: memedegree.jpg (581KB, 1784x1781px) Image search: [Google]
memedegree.jpg
581KB, 1784x1781px
rate my meme degree from a shitter state uni
>>
>>59947093
shit GPA/10
>>
>>59947093
fellow shitter state university bro reporting in. i'm in the honors program so i think that counts for something at least, builds up the name a little. if it's a physical university and they're accredited it can only be worth so little
>>
>>59939652
Would making a mock microsoft word be a good beginner project? The project I'm thinking of will basically be a txt file organizer. Nothing too fancy.
>>
>>59947093
>Calculus I
>D+
wew
>>
>>59947147

yes
>>
>>59946230

>Dynamic types
Why is this a bad thing? Ruby was designed around a model of message passing, like Smalltalk. It has meta-programming features that take full advantage of this. Ruby would be a pretty boring language if it were statically typed.

>Adding end to all your blocks
You mean like Ada and Lua do? It's not that terrible, mate. Which would you prefer instead -- braces, lispy syntax, or the forced indentation of code?
>>
New Thread:
>>59947259
>>
>>59946987
>it's always like that, things are handed to you at first and you turn it down, not so easy the second time. after that you have to pursue it yourself
that's basically my life though LOL

what are you up to with /dpt/ stuff?
>>
File: 1488086428994.png (372KB, 1019x1019px) Image search: [Google]
1488086428994.png
372KB, 1019x1019px
>>59947093
>tfw you failed Discrete Math I
They told me it was easier than Calc I, fucking liars
>>
>>59947237
I don't like Lua either. Never used Ada.

I prefer any of the other three (braces, lispy syntax, forced indentation) over what Ruby and Lua do.

Dynamic types aren't my thing. Advanced static type systems remove the need for a lot of boilerplate. I'm also a fan of the compiler yelling at me if I make dumb mistakes.
>>
>>59939652
Using 4chan as a distraction from learning C.
>>
Does Android dev still suck ass? Apple redeemed itself with Swift (which is actually a pretty fun language to use) but the Java environment on Android is just terrible.
Thread posts: 326
Thread images: 34


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.