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

/dpt/ - Daily Programming Thread

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

Thread replies: 321
Thread images: 24

File: POSA.jpg (34KB, 390x499px) Image search: [Google]
POSA.jpg
34KB, 390x499px
What are you working on, /g/?

Previous thread: >>60088699
>>
>>60095622
1.vbs
Set Sapi=Wscript.CreateObject("SAPI.spVoice")
Sapi.speak "Hello world"
>>
>>60095622
document printing layout in html
please somebody kill me
>>
File: 1491278222121.jpg (265KB, 689x816px) Image search: [Google]
1491278222121.jpg
265KB, 689x816px
Rate my Brainfuck interpreter

https://github.com/Akari-chan/brainf/blob/master/main.c
>>
nth for good morning /g/
>>
>>60095671
Looks good to me.
I haven't seen you post in a while.
>>
>>60095719
You're mistaking me for someone else senpai
>>
>>60095671
Fucking C toddler, can't even write the simplest program without a buffer overrun.
>>
>>60095740
>You're mistaking me for someone else senpai
Hmmm...
>>
>>60095671
Now make it compile to LLVM .
>>
>>60095742
Fuck off Rust cancer.
>>
>>60095671
Make it compile to javascript and then maybe it'll be of any use
>>
Trying to memorize all 86 reserved keywords in c++ because my professor is a douche
>>
>>60095771
I don't use Rust, whereas my original statement is correct.
>>
>>60095816
Rust cancer are notorious for calling out C programmers.
>>
>>60095798
bad news for you, there are 92 reserved keywords in C++
>>
>Cniles now have their own boogyman
>>
>>60095837
Shows you how well I'm doing
>>
Good morning /g/ !

>>60095742
>>60095771
>>60095816
>>60095832
This is what I come here for, the bickering.
>>
File: what_time_is_it.jpg (215KB, 441x594px) Image search: [Google]
what_time_is_it.jpg
215KB, 441x594px
hey /dpt/, its time to play `guess the language` game. i will start:
((((((((((((((((((((((((((((((((((((((((((((((
)))))))))))))))))))))))))))))))))))))))))))))))
((((((((((((((((((((((((((((((((((((((((((((((
AAAAAAAY
)))))))))))))))))))))))))))))))))))))))))))))))
((((((((((((((((((((((((((((((((((((((((((((((
)))))))))))))))))))))))))))))))))))))))))))))))
>>
>>60096024
>Syntax error:
>unknown location: unexpected syntax in form ()

hmm
>>
>>60096024
WOW! I wonder what language that could be?
>>
File: 1483073157801.jpg (110KB, 1280x720px) Image search: [Google]
1483073157801.jpg
110KB, 1280x720px
Employed Arch user and hardcore hacker here
>>
>>60096135
How many GBP(Good Boy Points) do you earn?
>>
Who /freebsd/ here?
>>
>>60096145
I used to, many years ago. I liked writing assembly for *BSD I thought the way they used the stack for system calls was pretty cool. It's been a long time though :-/
>>
File: 1385781422964.gif (1MB, 720x480px) Image search: [Google]
1385781422964.gif
1MB, 720x480px
>mfw starting first real dev job
>I have barely done any programming in the last year
>>
>>60096211
What programming did you do?
>>
>>60096211
What's the job?
>>
what's the n log(n) way to do it?
https://people.cs.clemson.edu/~bcdean/dp_practice/dp_3.swf

i already figured out the n^2 way before i watched this, and the whole way through i was thinking "BS this is n^2"
>>
>>60095128
>Try "how to think like a computer scientist" its a great book
I've skimmed through it and it's just some basic stuff, nothing really new from me except python syntax.
>>
>>60096254
>.swf
Wake up, grandpa, no one has Flash installed anymore.
>>
File: anal beads.png (59KB, 475x267px) Image search: [Google]
anal beads.png
59KB, 475x267px
>>60096195
>>60096211
Why did you do this?
>>
>>60096220
c# dev
>>60096217
just fucked with some simple API's during last year of uni and then when I was searching for a job I just relearned some database interactions, SQL, JS, and other pretty basic stuff. Was good enough to pass the programming test and the interviews I guess. But I do spend quite a lot of time reading about programming and software development and I care about how to do it well, I just dont really like programming at home.
>>60096338
had a typo and removed it , shitty extensions just dont remove deleted posts from threads
>>
>>60096338
To correct the grammar?
>>
File: Capture10.png (41KB, 928x646px) Image search: [Google]
Capture10.png
41KB, 928x646px
Trying to write a substitution cipher breaker. Never done anything in this area before but a good first step seemed to be to create a function that would compare the transitional probabilities between characters in an encrypted string given a proposal cipher to that of a large sample of English text.

It seems to be working; the scores of a bunch of encrypted strings given the correct cipher is about one standard deviation lower than a bunch of encrypted strings given the wrong cipher and a bunch of random strings. Does that seem like enough?

Now to think of what to do with it.
>>
Is anyone here familiar with deep learning in Caffe?

I'm generating an LMDB database in C++. Each value is a Datum formatted using SerializeToString. I've verified that they can be successfully parsed back into the same Datum in my program, but when Caffe begins to read the database to initialize the data layer it gives
> Check failed: datum_channels > 0 (0 vs. 0)
and then aborts. At some point between being written to the database and being read back in by Caffe, the number of channels in my datum is going from 2 to 0. Does anyone have any idea what I'm doing wrong?

All I can find on Google is someone who solved their own problem then didn't explain the solution.
>>
>>60096398
what language is that?
>>
>>60096516
Mathematica.
>>
>>60096398
>>60096516
looks like mathematica?

I'm not gonna know the language because it's really expressive and approachable to academics. I will say that you might run into an issue of processing power using it though. If you're trying to crack things quickly you need to use horsepower.

idk of mathematic has any clustering capabilities if it does you should look into a library that can help you put things in parallel. look at some of the SAAS cracking services out there

https://hashcrack.org/ etc
>>
Currently trying to figure out how to turn on and off bluetooth from the windows command line.

I want to run an autohotkey script that will turn BT on and off on a certain hotkey so that I don't waste battery when I don't need to. Anyone have any suggestions, because the search has been less than fruitful so far.
>>
Wanna hear a joke?
C walks into a bar.
SIGSEGV
>>
File: Screenshot (3).png (1MB, 1920x1080px) Image search: [Google]
Screenshot (3).png
1MB, 1920x1080px
Omg guise I compiled my first Jawa App!

Essentially gonna make a simple to do list sorted by deadline

Programming is fun!
>>
>>60096590
it's probably managed by a windows service right? make your script stop/start that service file--i'm talking out my ass though I know nothing about windows
>>
>>60096592
Wanna hear a joke?
Rust walks into a bar.
... compiling ...
Bar closes.
>>
>>60096617
My other car is a cdr.
>>
>>60096607
>not using dark theme
don't call yourself a programmer
>>
>>60096590
You can probably query device manager with PowerShell and disable any returned devices that have "Bluetooth" in the name.
>>
>>60096611
Yea I''ve been doing research on how to manage the bluetooth driver. So far the Microsoft bluetooth stack can't be managed from comand line, but I have the Intel drivers for bluetooth so maybe there is still hope.

I was able to find 2 services that deal with bluetooth, but I wasn't able to connect when I started them, so maybe thats not it...?
>>
>>60096550
I'll look into that. I was thinking MCMC methods could help, I'll see if there's a way to parallelize them. Mathematica has nice wrappers for parallelism like ParallelTable and also CUDA capabilities so it shouldn't be too hard to write my own I think.
>>
how do code in jevva?
>>
>>60096671
You don't. You mentally torture yourself in jevva.
>>
>>60096637
>>60096611

ipconfig doesn't show any bluetooth devices when it looks like it should. I have the bluetooth device turned on in the device manager so I feel like there should be SOME way too see if it's active or not, apart from looking at GUI's
>>
>>60096671
Just OOP in LOO
>>
>>60096655
methods will probably help to a certain point with optimization if there are CUDA libraries that is fantastic, I didn't know that. That actually raises my opinion of Mathematica quite a bit--I'd assumed they were sorta ivory tower not considering hardware.
>>
>>60095622
Doing my homework on Javafx.
Trying to make a traffic light with some buttons to mash and cross the lights :^).

here my current code:
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package autismus_maximus;

import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.scene.shape.Rectangle;
import javafx.stage.Stage;

/**
*
* @author you wish you knew my name.
*
*/
public class TrafficLights extends Application {

Group Ampel = new Group();

Circle makeLight(int x, int y, Color lightcolor) {
Circle light = new Circle(x, y, 25);
light.setFill(lightcolor);
light.setStroke(lightcolor);
light.setFill(null);

return light;
}

Rectangle Ampelkasten(int x, int y, int w, int h, Color farbe) {
Rectangle ampelkasten = new Rectangle(x, y, w, h);
ampelkasten.setStroke(farbe);
ampelkasten.strokeProperty();


return ampelkasten;
}

Group Ampel() {
Circle red = makeLight(200, 80, Color.RED);
Circle yellow = makeLight(200,140, Color.YELLOW);
Circle green = makeLight(200, 200, Color.GREEN);
Rectangle kasten = Ampelkasten(145, 25, 110, 220, Color.GREY);
return new Group(kasten,red, yellow, green);
}

@Override
public void start(Stage primaryStage) {
Scene Streets = new Scene(Ampel(), 480, 360, Color.WHITE);
primaryStage.setTitle("willkommen in den Straßen");
primaryStage.setScene(Streets);
primaryStage.show();
}

public static void main(String[] args) {
launch(args);
}

}

>>
>>60096687
>>60096651
I could be wrong (again I don't know much about windows) but I don't think you'd see bluetooth from your ipconfig. Bluetooth is a lower level protocol than TCP/IP. You'd use TCP/IP over ethernet, bluetooth is like ethernet if that makes sense. There is probably another method you would use to fetch it's data. Is there anything for it in the registry? (sorry for taking shots in the dark)
>>
is there a way that one method can use a switch where the case is a calling method or anything similar in c#?
>>
>>60096832
What are you actually trying to do?

You can probably use the new "when" syntax for this.
>>
>>60096809
>you wish you knew my name
Hans
>>
>>60096832
You're definitely doing something terrible wrong, but here's how you can check it: https://msdn.microsoft.com/en-us/library/system.environment.stacktrace(v=vs.110).aspx .
>>
>>60096863
:^)
>>
>>60096791
Yeah I haven't done much with it before but it's definitely there.

Looking through the documentation now and it seems pretty comprehensive. Looks like they have a bunch of built-in functions as well as the means to write your own kernels and stuff. There's also some symbolic functions that might be interesting for automatic code generation.
https://reference.wolfram.com/language/CUDALink/guide/CUDALink.html
https://reference.wolfram.com/language/CUDALink/tutorial/Overview.html
>>
>>60096406
Fixed it. Just in case anyone is ever struggling with the same issue: LMDB keys must be less than 8 characters long.
>>
File: enhanced-buzz-7802-1356646761-2.jpg (84KB, 600x401px) Image search: [Google]
enhanced-buzz-7802-1356646761-2.jpg
84KB, 600x401px
#include
>>
>>60096890
r.i.p. in pepperoni
>>
>>60096874
(^:
>>
>>60096874
>>60096933
^^
>>
>Error: addComponentAsRefTo(...): Only a ReactOwner can have refs.
>>
>>60096947
>>>/g/wdg
>>
>>60095622
So, something I'm currently fooling with
>Have Quickbooks
>Quickbooks can write up a report and export it into Excel
>Excel has an addin from Quickbooks that queries the program and updates data
>All data about said report is saved in the Excel file, but data strings I've found so far aren't going to be easy to screw with
>Want one option to be editable instead of set in stone on export
If I were to take the add-in .dll (Or some other method?), could I glean anything useful out of it? If I could figure out how the call is made I could re purpose instead of going full trial-and-error with that part of the API that isn't documented great
>>
>>60096949
>>>/g/ofuckyourself
>>
>>60096683
but i gotta hustle that $weet android dough..
milk that $weet 88% market share user base.. punch that sweet clueless botnet pussy.. i gotta git that money, nam sayin'?
>>
>>60096949
Oops, forgot we had that one. Cheers m8
>>
>>60096859
>>60096864
was more curious if it could be done. Just messing around with a form that takes user input and validates it before putting it into a database.

I have a class that has a method to validate each field and methods that accept the input for each type of person. Was thinking of ways to do the validation depending on the person type being validated, if that makes sense
>>
>>60096883
well I'll be. thats pretty neat. lots of my pals in data science (most of them U of M grad or industry in the area) swear by CUDA for their simulations. pretty cool that mathematica does that. keep those in your back pocket for sure
>>
>>60097018
switch (muhPerson)
{
case Person p when ValidatePhone(p.PhoneNumber):
// phone number is valid
// maybe set a flag saying the number is fine
// or throw exception here if it's not valid
break;

}

// when you get here, if any of the validation flags are wrong, do something about it
// otherwise, return the validated person
>>
Where do you guys find github projects to contribute to?
>>
>>60097153
>using github
>>
>>60097160
Gitlab* (?)
>>
>>60097153
Either see if any project that I'm using that I'd like to contribute to has a repo hosted on Github or https://github.com/explore
>>
>>60097153
Why not contribute to GNU? https://www.gnu.org/help/help.en.html
>>
File: 1474591598846.jpg (57KB, 876x960px) Image search: [Google]
1474591598846.jpg
57KB, 876x960px
Can someone explain
1. What Ok() does
2. What unwrap() does and
3. Why exactly Stdin() is a function in Rust?

Getting used to Rust for the last two days, it's pretty nice I suppose.


>>60095671
Are you microsound?
>>
finished, but I do not know how to use buttons...


package autismus_maximus;

import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.scene.shape.Rectangle;
import javafx.stage.Stage;

public class TrafficLights extends Application {

Group Ampel = new Group();

Circle makeLight(int x, int y, Color lightcolor) {
Circle light = new Circle(x, y, 25);
light.setFill(lightcolor);
light.setStroke(lightcolor);
light.setFill(lightcolor);

return light;
}

Button halteknopf(int x, int y, int w, int h,String name){
Button stop = new Button("STOP");

return stop;
}

Rectangle Ampelkasten(int x, int y, int w, int h, Color farbe) {
Rectangle ampelkasten = new Rectangle(x, y, w, h);
ampelkasten.setStroke(farbe);
ampelkasten.strokeProperty();


return ampelkasten;
}

Group Ampel() {
Circle red = makeLight(200, 80, Color.RED);
Circle yellow = makeLight(200,140, Color.YELLOW);
Circle green = makeLight(200, 200, Color.GREEN);
Rectangle kasten = Ampelkasten(147, 25, 105, 220, Color.GREY);
Rectangle stange = Ampelkasten(195, 245, 10, 300, Color.GREY);
Button halt= halteknopf(30, 30, 100, 100, STYLESHEET_CASPIAN);
return new Group(kasten,red, yellow, green, stange, halt);
}

@Override
public void start(Stage primaryStage) {
Scene Streets = new Scene(Ampel(), 480, 360, Color.WHITE);
primaryStage.setTitle("willkommen in den Straßen");
primaryStage.setScene(Streets);
primaryStage.show();
}

public static void main(String[] args) {
launch(args);
}

}
>>
>>60097242
>GNU
>a place notorious for their elitist manchildren and chronically female attention dependant neckbeards.
>>
File: jkc5so.jpg (46KB, 606x404px) Image search: [Google]
jkc5so.jpg
46KB, 606x404px
>>60097302
>>
Finally I have made an IO-less programming language. I call it "nio", short for "no io"
Each nio program consists of a single statement, either true or false.
true indicating the program terminates, and false indicating that it doesn't terminate.
So far the compiler only outputs C code and doesn't automatically call the C compiler yet.

Compiler source code here:
use std::fs::File;
use std::io::{Read, Write};
use std::process::exit;

fn main() {
let args: Vec<_> = std::env::args().collect();

if args.len() < 2 {
println!("Expected filename");
exit(1);
}

let file = match File::open(&args[1]) {
Ok(file) => file,

Err(e) => {
println!("Unable to open source file: {}", e);
exit(1);
}
};

let src: String = file.bytes().filter_map(|b| b.ok().map(|b| b as char)).take_while(|c| !c.is_whitespace()).collect();

compile(&src);
}

fn compile(src: &str) {
let program = match src {
"true" => true,
"false" => false,
_ => {
println!("Parse error: expected either a `true` program or a `false` program");
exit(1);
}
};

let mut out = match File::create("out.c") {
Ok(file) => file,

Err(e) => {
println!("Failed to open out.c for writing: {}", e);
exit(1);
}
};

out.write_all(b"int main() {\n").unwrap();

match program {
true => out.write_all(b"\treturn 0;\n").unwrap(),
false => out.write_all(b"\twhile (1);\n").unwrap(),
}

out.write_all(b"}\n").unwrap();
}
>>
>>60097372
An example of a nio program:
[@arch ioless]$ cat main.nio 
true
[@arch ioless]$ ./target/debug/ioless main.nio
[@arch ioless]$ cat out.c
int main() {
return 0;
}
[@arch ioless]$ gcc out.c
[@arch ioless]$ ./a.out
[@arch ioless]$
>>
>>60097372
>"\treturn 0;\n"
that's output right there

also, technically,
hardcoding is input too.
>>
>>60097259
1. The Result type has two Variants, i.e.
enum Result<T, E> {
Ok(T),
Err(E),
}

Normally, you would have to write
Result::Ok(foo)
, however both
Result::Ok
and
Result::Err
are imported by default by the prelude(https://doc.rust-lang.org/std/prelude/) so you can just write
Ok(foo) and Err(foo)
.
In case you haven't read it yet, the chapter on error handling is pretty good: https://doc.rust-lang.org/book/error-handling.html
2. Result and Option are error types that wrap the value of a computation in
Ok(val)
or
Some(val)
on success or return a
Err(err_val)
or None on failure. To handle these you would usually do some pattern-matching. However, if you don't care about error handling (e.g. when prototyping), you can call .unwrap() and get the contained value and simply
panic!()
in case of failure. Obviously, when writing a library, you shouldn't have any .unwrap() in it.
3. Looking at the source code of stdin(), it does some initialization under the hood: https://doc.rust-lang.org/src/std/io/stdio.rs.html#205-219

I have no idea what exactly is happening, though
>>
>>60097433
Yeah, that line is pretty questionable, but it's just an implementation detail really.
The actual language itself has no concept of IO.
I've just simplified the language down while still keeping all the functionality of an IO-less language, that's why they're such simple single-word programs.
>>
>>60097372
Trash.
>>
>>60097466
No shit.
>>
>>60097460
>
Lazy<Mutex<BufReader<Maybe<StdinRaw>>>>

Rust was a mistake.
>>
>>60097491
What's the matter, can't handle generics?
>>
>>60097491
I see nothing wrong there, m8
>>
i wonder what the next language to top Rust's meme status will look like.
>>
File: 1490485589879.png (64KB, 658x901px) Image search: [Google]
1490485589879.png
64KB, 658x901px
>>60095622
>start high level CS class for my major
>work more than 3/4's of the semester on developing a specific compiler for x programming language
>the assignments are fun and interesting to figure out
>last 1/4 of the semester professor completely drops finishing the compiler and gives us guidelines to make our own game in java
>can't understand how to make anything in java with graphics, don't find this interesting or fun at all, can't even figure out simple math for rotating players, bullet trajectory, or object collision detection

WHY THE CLASS WAS SO FUN WHEN WE WERE DOING PRACTICAL SHIT I FUCKING HATE MAKING GAMES AND ESPECIALLY IN JAVA

this shit will literally make me fail this class when i had a 100% before starting it.
>>
File: 1478108658794.jpg (41KB, 551x720px) Image search: [Google]
1478108658794.jpg
41KB, 551x720px
>>60097460
1. So, Ok(fn_returned_value) will generate Result that can either be of <T> or <E>?

2. unwrap() checks if the fn_returned_value is of type <T> and panics if it isn't?

Am I wrong?
>>
>>60097567
See Jai
>>
>>60097571
>>>/v/
>>
>>60097584
Nah Jai is just a not-C++ flavor, it has no real gimmick like rust
>>
>>60097605
nigger did you even read my post
>>
>>60097580
Result<T,E> is either a T or an E

Ok(T ..) generates a Result<T,E> that is a T

unwrap() checks that it stores a T, returning it, and fails otherwise
>>
>>60097491
Kek, is that shit real?
>>
>>60097643
*********************real++
>>
>>60097491
BufReader<Maybe<..>>
How does that work?
>>
>>60097580
1. Result is generic over two types. For example:
fn is_a_byte(n: u32) -> Result<u8, &'static str> {
match n {
0 ... 255 => Ok(n as u8),
_ => Err("Too big, fgt")
}
}

This function returns a byte if n is small enough, otherwise a string literal.

2. Yes, essentially unwrap looks like somewhat like this, written as a standalone function:
fn unwrap<T, E>(res: Result<T, E>) -> T {
match res {
Ok(v) => v,
Err(_) => panic!("Not Ok()!")
}
}
>>
File: 1492325168661.jpg (34KB, 710x720px) Image search: [Google]
1492325168661.jpg
34KB, 710x720px
>>60097717
>N-Not Ok!
>>
C++ doesn't look that bad after all
#[stable(feature = "rust1", since = "1.0.0")]
pub fn stdin() -> Stdin {
static INSTANCE: Lazy<Mutex<BufReader<Maybe<StdinRaw>>>> = Lazy::new(stdin_init);
return Stdin {
inner: INSTANCE.get().expect("cannot access stdin during shutdown"),
};

fn stdin_init() -> Arc<Mutex<BufReader<Maybe<StdinRaw>>>> {
let stdin = match stdin_raw() {
Ok(stdin) => Maybe::Real(stdin),
_ => Maybe::Fake
};

Arc::new(Mutex::new(BufReader::with_capacity(stdio::STDIN_BUF_SIZE, stdin)))
}
}
>>
>>60097786
Look at some internal code of a c++ compiler and you'll retract that statement
>>
>>60097816
That's no excuse.
>>
>>60097571
>PRACTICAL SHIT
>a fucking compiler
Dude nobody makes his own compiler unless you are the temple OS guy. (uni toy projects aside)
Graphics are much more practical and Java is one of the most used languages.
>>
File: 1481664473008.png (175KB, 482x436px) Image search: [Google]
1481664473008.png
175KB, 482x436px
>>60097761
>panic()
>>
>>60097853
>Dude nobody makes his own compiler
Are you one of those """self taught""" code artisan?
>>
Can you forward declare T for unique_ptr?
>>
>>60097853
drmeister did and he is a chemist or something like that.
https://drmeister.wordpress.com/2014/09/18/announcing-clasp/
>>
>>60096398
Find the character frequency of the language you're trying to decode (probably English), and look up Chi-square to measure the difference between your observed and expected frequencies
>>
Ok, I can use a button now.
And it says something.
How can I make my Trafficlight much more cool?

Here is the code:
https://pastebin.com/3cwbL24j
>>
>>60098078
Make them swastikas.
>>
>>60098116
No.
Give me practical ideas.

Btw. I am working on a politically uncorrect FPS, don't worry.
>>
>>60098078
Tie the light change event to some real world event (receive email, etc.).
>>
>>60098136
Make the Ampelkasten automatically go to red after a period of time.
>>
>>60095798
>>60095837
>>60095862
underrated exchange
>>
>>60098162
cool. gonna implement that in the next days.
>>
Fuck python IDEs

>Vim tmux bash
have to navigate between panes all the time, complete time waste
>PyDev on Eclipse
Basically no functionality besides autocomplete / shitty linter
Ugly AF 2003ish interface
Bloated startup
Still the F9 "run" shortcut and the integrated console is a luxury
>Anaconda Plugin on Sublime
Autocomplete is buggy AF
Hover on errors doesn't show errors
However the PEP recommendations and the syntax linter hinter is great but why don't they fucking show on hover
Also no integrated console (or I couldn't find it) and shortcut to run
>PyCharm
10sec+ startup on i3 3220 8Go RAM seriously

seriously is there an IDE with a linter as great as anaconda plugin, pretty as PyCharm/Sublime and integrated console ?
>>
i don't see how interviewee's could be expected to come up with solutions to these really difficult dynamic programming problems in an interview that lasts a couple hours. if it took years for some phd to come up with a solution, i think it's more likely that people try to memorize a bunch of solutions to dynamic programming problems, and then hope that the questions they're given can be rephrased in terms of a problem they know the answer to. because some of these dynamic programming questions have really arcane solutions i wouldn't have thought of in a million years
>>
>>60098229
>he needs an IDE
>>
>>60098229
emacs?
>>
>>60098229
It's not really an IDE but bpython is dope. Makes prototyping python a breeze.
>>
>>60098258
I have high doubts
>>
>>60098274
learn emacs lad
>>
File: 1468043719460.jpg (33KB, 640x480px) Image search: [Google]
1468043719460.jpg
33KB, 640x480px
>>60098229
>using an IDE for scripting languages
>>
>>60097874
>>60097938
Writing a compiler is a massive, insane project that takes a team of people. It's similar to making an AAA game or a Hollywood movie. Doing it alone would consume decades of your life.
>>
>>60098350
all I want is :
- Linter / Checker / Highlighter
- Run in integrated console on shortcut
- Pretty interface

I don't see how "hurr ez language" would prevent me from wanting these
>>
>>60098391
again, it's not an IDE per say but bpython does all of those things
>>
>>60098391
nigger just install emacs and properly configure it to meet your needs and you're done
you won't find the perfect IDE so just make it
>>
>>60098391
Sublime Text has a build command which can run Python inside of Sublime
>>
>>60098391
also if you did really want an IDE Eric isn't too bad, it's still a bit bulky but it doesn't have those other problems you mentioned.
>>
>>60098244
the optimistic answer is that they want to see your process, how you break the problem down, do you define a recursive step or look like you have no fucking clue what DP is, etc

the cynical answer is that interviews are mostly random, and most interviewers are untrained and don't know they'll be giving an interview that day
>>
javac C:/Users/AS_IF_I WOULD_TELL_YOU_MY_NAME/Documents/NetBeansProjects/Uni/Autismus_Maximus_1/src/autismus_maximus/TrafficLights.java
javac C:/Users/AS_IF_I WOULD_TELL_YOU_MY_NAME/Documents/NetBeansProjects/Uni/Autismus_Maximus_1/src/autismus_maximus/TrafficLights.java
CreateProcess() failed with error code 2:
The system cannot find the file specified.

================ READY ================

I am using Notepad++ in Windows.
Any help and hint would be appreciated.
Kthanks
>>
>>60095742

I looked over it, and Anon's program has no buffer overruns. Every time the pointer is changed, the check_pointer() function is invoked, causing an error if the pointer goes out of the range of acceptable memory.
>>
>>60098438

>The system cannot find the file specified.
There's your hint.
>>
File: annotated_monads.1.jpg (86KB, 711x1024px) Image search: [Google]
annotated_monads.1.jpg
86KB, 711x1024px
>>
>>60098438
>Any help and hint would be appreciated.
Stop using Notepad++.
>>
>>60098460
What if you have more than 100 loops?
>>
>>60098383
Compilers are pretty easy with things like LLVM
>>
>>60098527
A fucking nerd
>>
How useful are GCC __attribute__ modifiers outside of embedded programming?
>>
>>60095719
Do you mean the other akari poster who actually knows C?
>>
>>60098438
chdir ffs chdir you stupid fuck, it shortens all your commands, reduces your chances of running into this, and magically anonymizes you ffs
>>
>>60097998
For some reason when I was thinking about the problem I thought that wouldn't help but it definitely does, thanks.

Running into difficulty with Chi-square though due to some divisions by zero. Might try earth mover's distance though.
>>
>>60098578
>who actually knows C
haha no, you don't possibly remember his 4 week long struggle to get the basic parts of his imageboard done because he lacked fundamental C knowledge?
>>
>>60098669
>fundamental C knowledge

...like?
>>
>>60098682
lookup tables for his escaping stuff?
>>
>>60098425
So is it that big of a deal if you don't devise a solution?
>>
>>60098578
yes
>>
>>60098696
it was input sanitation and that wasn't a C problem
>>
>>60098438
I swear every language has a different way of doing paths thanks to how string literals work

it might be C://Users
it might be C:\Users
it may be that the path has to be in quotes "C://Users"

it may be that whatever youre doing is using relative paths so just "autismus_maximus/TrafficLights.java"

better go with >>60098587 advice.
avoid typing absolute paths
>>
>>60096398
The only programmer in the whole thread. Can I lick your nutsack?
>>
>>60098776
there wouldn't be any issues at all if macroshit wangblows didn't exist

the whole reason they use \ for directories is because / was already taken and they didn't want to rewrite anything
>>
>>60098738
>it was input sanitation
true
>and that wasn't a C problem
the initializers in LUT certainly were part of C

not sure why you'd even defend a shitty hobbyist when he'd continuously show his stupidity for weeks on, not to mention writing an imageboard in C for weeks instead of using a tool designed for it that would have taken like a day or two even for inexperienced person
>>
>>60096832
You want to call a method inside a switch statement?
>>
>>60098776
"C:\\\\Users"
>>
>>60098802
>not sure why you'd even defend a shitty hobbyist
Where you do think you are?
Nobody here actually has a job or any real skill.
>>
File: 1462974416338.png (845KB, 960x717px) Image search: [Google]
1462974416338.png
845KB, 960x717px
>tfw hacker rank doesn't properly newline terminate their input tests
>>
>>60097571
>compiler made by undergrad CS students
>practical
yeah ok
>>
>>60098827
if being convinced so helps you sleep at night
>>
>>60098799
Ironic considering that I've heard it said here that Mathematica is not an actual programming language.
>>
Give me something to build in C#. Trying to learn the language and I would love to have a personal project I could show off and put on my resume.

inb4 meme answers like "operating system", "haskell compiler" and "make your own relational database software"
>>
>>60098539

Ach, you are right. Forgot that he was storing back pointers.
>>
Java applets are not thing anymore and flash is dead.
What's the best way to implement web app without writing js?
>>
>>60098907
Write it in a language that transpiles to JS.
>>
>>60098907
Rust
(i'm not even joking)
>>
>>60098931
Yeah I rather use js than that shit.
>>
>>60098959
stop letting memes and NEETs influence you
why not "mess around" with Rust and see if you enjoy it
>>
>>60099007
It's shit and you should kys faggot.
>>
>>60098850
I stopped posting here when my skill level went above "first semester CS babby asking for homework help".

Aside from anti-language zealotry, that's all you see these days.
>>
>>60099038
>I stopped posting here
Really activated my almonds.
>>
File: dong.png (290KB, 343x432px) Image search: [Google]
dong.png
290KB, 343x432px
Thoughts on using Kotlin as a general purpose language? I just did an app in Kotlin and it was so fucking good. JVM has improved a lot over the past several years but Java still looks like a giant piece of pajeet shit. When I made my Android app in Kotlin, it was the first time I've ever had fun developing for a smartphone. Furthermore because of its compatibility with Java, I don't have all of the Java first and third party libraries to use without worries.

fun sumOf(vararg numbers: Int): Int {
var sum = 0
for (number in numbers) {
sum += number
}
return sum
}
sumOf(42, 597, 12)


Doesn't that look pretty fucking nice?
>>
just gone a Adafruit Monochrome 1.3" 128x64 OLED graphic display in the mail from amazon a bit ago. Going to hook it up to my arduino and put uLisp on it :-D
>>
>>60099147
goddamn yes, I was doing some Kotlin koans the other day and it was comfy. Still trying to think of an excuse to use it but can't think of any good ideas. Kotlin seems like Java without the bullshit
>>
>>60099150
>:-D
>>
>>60098868
It's /g/, dude, people fap for fucking PHP here.
>>
>>60099201
:-------------------D
>>
>>60097853
>learning programming language theory isn't useful
>muh games
I hated my compiler design class but I learned a lot
Same with functional programming

>>60098593
>divisions by zero
You're looking for observed characters in your expected frequency chart, causing a division by zero when decrypted text has no English. Do it the other way round.
You doing cryptopals btw?
>>
>>60099190
>Kotlin seems like Java without the bullshit
You still get some weird Java conventions in Kotlin, but that's just because of its insistence on being parallel to Java in functionality. This way, it doesn't carry some of the problems that Scala has.

In either case, I just love Kotlin. I'll probably replace Python with it if the support keeps popping out for it.
>>
>>60099147
>Int instead of int
>no line terminator
>needing : before type even if there is always going to be { after )
It's shit
>>
>>60099215
>PHP
>>>/g/wdg
>>
>>60098907
You can either use CSS on steroids or some shit like Brython (front-end Python).

http://www.brython.info

Happy fapping.

Still... just use JS.
>>
>>60099147
I'm trying to convince my supervisor to use Kotlin for all Android projects. He's not biting yet. My next plan is to write a Kotlin application when someone needs a POC.
>>
>>60099233
>Int instead of int
It's part of the naming convention. Types being capitalized is pretty for me. I like it.

>no line terminator
It supports newlines.

>needing : before type even if there is always going to be { after )
Yo check this out.

fun sumOf(vararg numbers: Int) = numbers.sum()

Woah!
>>
>>60099274
>It's part of the naming convention. Types being capitalized is pretty for me. I like it.
Kotlin is not the only programming languages with that convention. Haskell does it too.
>>
>>60099233
04/27/17 - the day anon on /dpt/ DESTROYED Kotlin
>>
>>60099328
There you go then, it's perfectly fine. If anything, I prefer it because my variables are almost always undercase anyways.

>>60099267
Just start writing Kotlin code but hide it by using the java interop features. Then when he tells you what an amazing job you're doing, just show him that you totally tricked him.
>>
>>60099358
>Just start writing Kotlin code but hide it by using the java interop features. Then when he tells you what an amazing job you're doing, just show him that you totally tricked him.
That won't work. We have peer reviews and anything not Java will be rejected. I'll just have to wait for the next POC.
>>
File: 1453510794776.gif (510KB, 324x216px) Image search: [Google]
1453510794776.gif
510KB, 324x216px
I made my first vidya hack today

fuck Unity games though, the C# virtual machine and its JIT code that appears and disappears after every launch gave me a bit of cancer.
>>
>>60099409
Yeah I was joking, but it's funny that they have that functionality built into the language just for users like us with bosses that resist change like the plague.

Good luck, I hope you never have to touch Java again after the POC.
>>
>>60099418
>>>/v/
>>
>case sensitive identifiers were a mistake
Prove me wrong
>>
>>60099450
let's see your work faggot i bet you cant even do fizzbuzz right
>>
>>60099462
Who are you quoting?
>>
>almost finished with associate's degree in Computer Science
>haven't done any projects in the little time I have
>have no connections
>still flipping burgers 40+ hrs a week
How do I get an actual job?
>>
>>60096817
I know next to nothing about windows registry so i'm gonna leave that alone for now.

However, I have found this: http://bluetoothinstaller.com/bluetooth-command-line-tools/ which looks promising. I'll see if I can get something working with this. Thanks for all your help anon
>>
>>60099494
>AS

literally worthless
>>
>>60099494
>associates degree in CS
ahahahahAHAHAHAHAHA
>>
>>60099490
I said in my post, you literal moron.
>>
>>60099494
seriously tho, with an associates you better be a programming god because the degree has as much weight as a high school diploma. shoulda gone for your bachelors
>>
>>60099433
I'm sure I can pull this off. I just have to throw around buzzwords like: concurrent, functional, open source, null safety.
Seriously, Kotlin brings the benefit of C# to the JVM.
>>
>>60099531
No you didn't
>>
I've heard the British dont have # symbols on their keyboards. Is their code full of £ symbols instead? (e.g. #include becomes £include)
>>
>>60099611
You could just google "british keyboards", you know?
>>
>>60099581
It's like a really fresh version of C# that focuses on solving logistical problems in the Java environment. The cleanse of verbosity in the syntax alone is like a new face lift that really shows off how good JVM has become.

I'm going to try some vulkan code with LWJGL. I bet I won't want to kill myself this time.
>>
>>60099607
;^)
>>
>>60099555
>shoulda gone for your bachelors
Due to my circumstances, I'm not allowed to take any student loans / FAFSA nor scholarships. I'm paying school out of pocket in cash.
Paying for university in cash every semester by myself is just not possible.
I would if I could
>>
>>60099654
What circumstances prevent you from even getting loans?
>>
>>60099654
that sucks dude. best bet is to beef up your resume with some side projects, and try to get an entry level web developer position.
at least the associates is better than a bootcamp certification or whatever
>>
>>60099668
maybe he's a felon
>>
>>60099357
There's no 27th month.
>>
>>60099462
Case sensitive writing system was a mistake.
>>
>>60099668
At 3 years old, I [spoiler]was brought to the United States illegally[/spoiler]
[spoiler]Sucks because I try to fit in, do my work (in high school I had a 4.2 GPA), but still get treated like a felon - can't vote, can't take welfare, can't take unemployment, etc. etc.[/spoiler]
[spoiler]Funniest thing about it is I pay my taxes - I put money into a system to get other people their education[/spoiler]
>>
>>60099716
month/day/year
are you seriously this autistic? I agree it's retarded, but this is the American date format
>>
>>60099778
you have to go back
>>
>>60099788
not him, but ISO 8601 or bust m8. should just make it a habit if you ask me
>>
>>60099788
It's order of importance, it's not retarded.
>>
>>60099778
The US doesn't actually have any road to citizenship right? I don't know about the US but getting a job here without citizenship or work visa doesn't seem all that possible. Then again you're turning burgers at what's presumably a major corporation so it must be different.
>>
>>60099791
I think I'll just program a meme game for iPhone, it'll be the next flappy bird :^)
>>
>>60099418
>doesnt show the hack or explain anything about what he has done

ok
>>
#include <stdio.h>

#include <sys/types.h>
#include <bsd/md5.h>

#define MAX(a, b) ((a) > (b) ? (a) : (b));

int main (int argc, char **argv) {
char buff[MD5_DIGEST_STRING_LENGTH];
int ec;
size_t i;
ec = 0;
for (i = 1; i < (size_t) argc; i++) {
if (MD5File (argv[i], buff) == NULL) {
fprintf (stderr, "%s: can not open %s\n", argv[0], argv[i]);
ec = 2;
} else {
if (printf ("%s %s\n", buff, argv[i]) < 0) {
ec = MAX (ec, 1);
}
}
}
return ec;
}
>>
>>60099996
is this for some sort of file checksum operation?
>>
Is it a bad idea to have an object keep track of its own index in a vector or array? I have an 'ObjectManager' with a vector of objects, and I want to user to be able to right click and delete any of the objects in the array. So I'm planning for the object to be able to tell the array "delete me, im at index x".
>>
>>60099996
Looks like something out of comedy Markov chains generators some anons have, but I see it's not...
>>
>>60100069
It's the beginning of reimplementing md5sum. Next step is reimplementing the hash function, because it's too slow.
>>
>>60100072
It's not necessary. In order to be able to check if you clicked on an object, you need to iterate through the vector anyway, so you will know the index.
>>
>>60100072
The user can make a multiselection and want to delete many objects at once. Store a set of indices.
>>
>>60100072
It's not a sin, but it shows to you how wildly retarded OOP is. Clicks should be handled by a view, basically a way to fool OOP shitbrains into thinking you're doing OOP while doing sane programming if you ask me.
>>
give me an idea for an android app that isn't totally stupid (calculator, lawl) or too crazy.
doesn't even have to be original, just something moderately difficult that shouldn't take a long ass time and that I can throw on a resume.
>>
>>60100072
Also if you delete an element from an array, doesn't it shift back all elements right from it, thus invalidating their redundant index? Pants on head retarded, definitely.
>>
>>60100072
do the objects have a key? if so, then use a hashmap. index the map by key, and delete the object
>>
>>60100125
speedometer using GPS
>>
>>60100125
Reference Manual for C, C++, and Ada standard libraries. I'd use it.
>>
>>60100106
>Clicks should be handled by a view
>spouting retarded dogma while trying to criticize OOPtards
>>
>>60100163
on android?
b-but why?
>>
>>60100106
that deletes the object from the view, but what about the model? what if the object needs deleted from some sort of data store? it makes perfect sense to have an ObjectManager that handles CRUD operations and is decoupled from the view.
>>
>>60100135
>if you delete an element from an array, doesn't it shift back all elements right from it
does it? im using the Qt framework, so i can tell the widget to commit suicide when the user closes it. I was just concerned if this would cause indices in the array to still point at something that has deleted its self. although there is probably on onDestructor signal i can use
>>
>>60100178
Mobile autism
>>
>>60100233
define delete ffs, I'm not talking about that stupid C++ delete keyword, I'm talking about
array.remove[i]
or whatever you write. It does defragment the array. If that behaviour is incompatible with your use, you need a different datastructure, as >>60100146
pointed out. That's how databases do it, and what you're doing is just reinventing them poorly.
>>
>>60100163
I am nowhere near qualified enough to be able tor write a reference manual for C or C++.
>>
>>60100283
Or you do >>60100093...
>>
>>60100287
[spoiler] they're already online [/spoiler]
>>
>>60095622
What is a pattern language?
>>
>>60100072
This isn't good oop. And you're currently having the kind of idea that fits oop well. Having the object defer to another object for deletion is a good thing in oop. But having the vector backed objects is breaking encapsulation.

But you're in a bad situation. Embrace it and learn. Try to ignore the dogma you were taught.
>>
>>60100422
It's a way of avoiding putting 'we're another object oriented programming book' on the cover.
>>
>>60100125
>resume
Make something moderately interesting while using Google maps api.
Google maps looks impressive to the uninitiated and can be fun to work with.
Having used an API is important in your project. It's essential to most software development. So showing that you can do that well is good.

I don't have many good ideas for it though. I'm sure you can think of something.
>>
>>60100528
What do you really think that reading a doc is essential in a CV? Really?
>>
new thread when
>>
>>60099611
of course we have a #
are you confused because you call it a pound?
>>
>>60100535
Do you think that being able to integrate a component into your program is somehow not better than writing just random shit?
>>
>>60099823
>can't be sorted
>medium/large/small
its shit
>>
>>60100559
At 310.

>>60100576
No you don't get it. Reading a documentation is basics. It's a bit like saying you wrote once in your life an hello world. Someone who think it worth mentioning is a code monkey.
>>
Rust 1.17 has been released: https://blog.rust-lang.org/2017/04/27/Rust-1.17.html

Quick, get it /dpt/!

t. rust shill
>>
>>60100598
Anon is looking for his first job. You're just retarded if you think he's gonna write some large impressive software project when he's explicitly asking for something small.
He's asking us to find ways to give the appearance that he's accomplished something.
What's your suggestion dummy?
>>
>>60098564
weak and always_inline are pretty useful.
>>
>>60100598
Another anon here, while it's obviously not proving you're a master programmer, it certainly shows that you can work with shit written by someone else and not play with your own code, and that's important in programming jobs.

If you see someone who has done simple calculator and someone who did calculator with posting result of equasion on facebook (however retarded that would be) to whom would you give the job?

inb4 first one cause fb is evil
>>
>>60100655
>What's your suggestion dummy?
That she/he open a book on agile and learn all the keywords.
>>
>>60100655
most companies are not going to give a shit about your custom shitty compiler anyway. and producing an mobile / web application that uses an API isn't exactly trivial either. it requires some effort and skill.
>>
>>60100692
>If you see someone who has done simple calculator and someone who did calculator with posting result of equasion on facebook (however retarded that would be) to whom would you give the job?
It totally depends of the interview. I don't give a fuck about someone reading a doc. I know how to judge coders.
>>
>>60100721
again, it's not as if you read the API, then the code is like
import api

main:
api_do_thing();
api_do_other_thing();
print_results();
return 0;
>>
>>60100711
>using an API isn't trivial
What. Are you mentally handicapped? For Google maps there's tutorials and plenty of easily accessible documentation. It's dead easy to use.
>compiler
Never said I made one. I have a job. I certainly don't think anon writing a compiler is a good way to get an entry level job.
>>60100703
OK. Why agile specifically? Why not every meme development process? Why not learn something more broad like test driven development?
>>60100721
>I know how to judge coders
Oh. Great. You don't hire programmers. I'm sure anon was actually looking for an exploitative workplace.
Regardless. Can you say the same for everyone? Think about the misshires, what did they lack? Who hired them?
Or maybe you're working in a completely irrelevant situation to this discussion.
>>
>>60100806
Do you really think I can't code? I see why you think it's important.
>>60100810
>Why agile specifically? Why not every meme development process?
Because agile is the new black
>test driven development?
Why not.
>You don't hire programmers,
You're right. But I know how to judge them. I know how to spot a code monkey from a true coder.
>>
>>60099226
Just to make sure, Chi-square distance is
f(Vector observed, Vector expected) = sum( (observed - expected)^2 / expected )
(pseudo-code)
Right?
>>
v1 = *(int (__fastcall **)(unsigned int))(dword_617A68 + 116);


Does v1 points to 0x617a68+116*4 or just +116?
>>
how can i hack java with c++?
>>
>>60101056
Find a vulnerability in a popular Virtual machine.
>>
I'm in the middle of making a Pool8 helper. So far it detects the game window and starts taking video in that region and then looks for circles in the scene.
>>
Should I just give up following my interests like gamedev and emulation and just become a lazy /webdev/?
>>
>>60095622
>pattern-oriented
AKA boilerplate-oriented
>>
>>60101269
Is there an online betting scene for this game.
>>
File: Slowpoke.png (125KB, 596x582px) Image search: [Google]
Slowpoke.png
125KB, 596x582px
Whatever happened to goto? Why did everyone abandon it?

Seems useful when you need to make something like a continuously running statemachine, where you wrap the states in infinite loops and write logic to trigger a goto to another state loop.
>>
>>60101445
Nah I'm just doing it to try out opencv
>>
>>60101478
FP and TCO
>>
>>60101478
It still used in state machines from parser-generators from what I've seen.
Also still hand-used for heavily optimized code just look at this beauty
https://github.com/citra-emu/citra/blob/master/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
>>
>>60100592
The month is the most significant part in a date for non historical things, which is why we say it first. We also don't say 2 and forty to talk about 42.
>>
Vim newbie here.
So far I really like it, lots of advanced features that makes things that are typically difficult with others editors easy. However it also has a tendency to make things that used to be really easy a bit harder.

For example, to delete a character I use d l, to delete 2 characters I use 2 d l. This feels like overkill compared to just <del> or <del><del>. Are there any shortcuts for the simple commands?
>>
>>60101577
x
>>
>>60101577
wat? you can slam d dd D, etc and delete entire lines or single chars if your cursor is at them
>>
>>60101478
>Seems useful when you need to make something like a continuously running statemachine, where you wrap the states in infinite loops and write logic to trigger a goto to another state loop.
That is possible in a structured manner with coroutines.
>>
>>60101478
Why do that instead of
while (true) {
switch (state) {
case 1: state1();
case 2: state2();
...
}
}


There's a few legit uses for goto still though, like if you're 5 loops deep it's better to goto end than to set 5 flags and break out of them.
>>
>>60101609
>There's a few legit uses for goto still though, like if you're 5 loops deep it's better to goto end than to set 5 flags and break out of them.
Some languages have loop labels for this.
>>
>>60101609
>not just throwing a BreakOutOfLoopException
>>
>>60101624
What do you think labels are, mong
>>
>>60101650
Point is you don't need full goto for that.
>>
>>60101660
They're identical
>>
>>60101701
goto is a lot more powerful than just loop labels that you can use with break/continue.
>>
>>60101609
Because say I had 50 states, and state 48 is just a bool check to switch to a different state, everytime that bool check fails I have to switch through 47 states to get back to state 48 and repeat that check.

Whereas you do it with my goto loop method, and there's no additional checks
>>
>>60101600
You missed my point. Yes, things like deleting 17 lines is a lot easier in vim with 17dd. So while I can now do that faster, things have gotten slower.

>>60101590
Thanks, no idea how I haven't stumbled upon that command yet... How about inserting newlines and spaces? I spend a lot of time pressing o<esc> or i<space><esc>.
>>
>>60101717
vimtutor
>>
>>60096398
language character frequencies are constant. this program is very simple, idk how you made it so complicated... you just replace the most common character with e, etc. for simple substitution cypher a middle schooler could make a program that solves it
>>
>>60101715
Make a dispatch table then, that's probably what a compiler will optimizing that switch into anyway.

while (true) {
funcs[state]();
}


I guess you could argue it's still not as fast as doing it yourself in one big functions with labels because of context switching... But if you're going to be managing your own stack in addition to jumping around with gotos you might as well be coding in assembly at that point.
>>
>>60101717
I guess i'm not sure what sorta answer you're looking for. You can map, remap keys to your liking though, and get rather complex with what you're doing. I'd suggest looking at tricking out your .vimrc to make you more comfortable.
>>
/dpt/ seems especially retarded today for some reason.
>>
>>60095622

Coding noob here. I wrote a python script to call a page thats just about 1500 plain text characters so I can pull a number off of it every minute.

If I use the requests module to call this page once every minute, am i causing any possible issues for the server or is the amount of traffic/load on the server negligible?
>>
>>60101811
slipped down the retard slope a long time ago
>>
>>60100640
I don't understand why they made it so difficult to just add strings. Every other language out there can already do this.
int main(void) {
puts("hello" + "world");
}
>>
>>60101822
You should be fine.
>>
>>60101872
Cuz if you do that instead of
puts("hello"), puts("world");
you have no idea of how much complexity is triggered by this sugar. Rust is designed to make everything explicit.
>>
>>60101872
>Every other language out there can already do this.
Except the one you seem to emulate here: C.
fail.
>>
>>60101554
What a reach. The entire world disagrees.
>>
>>60101934
Two memcpys to a buffer, vs two memcpys to a buffer. Really made me think, senpai.
>>
>not YYYY/MM/DD
>>
So, I've been amateur programming for years, but I've only ever studied language syntax and general concepts and stuff. Would reading something like SICP actually make me a better programmer, or would it be kind of pointless if I'm not actually a computer scientist?
>>
New thread:
>>60101975
>>60101975
>>60101975
>>
What level of programming should I have to be able to work on projects? I am still a newbie, but I am trying to practice at least an hour every day to be able to get good as fast as possible. Learning C, if anyone is curious.
>>
>>60101965
>slashes
>not hyphens
>>
>>60101956
Nice fallacy

>>60101965
I actually think this should be the proper way.
>>
I need ideas for a final project in C++. Everyone from this post on has to reply to me with one.
>>
>>60101978
Find a project that interests you, check on what the project requires, and make a task list of learning the skills you think you'll need to do said project.
>>
Java

I'm I on to something or is this complete bullshit? Trying to convert a String of numbers based on input from the user and post the total of said inputs.

value is a String

int sum =Integer.parseInt(cars.getvalue()); int total = IntStream.of(sum).sum(); System.out.println(total);

Never used parseInt or IntStream before.
>>
anyone have an good ideas for a software company start up?
>>
>>60103204
Wire me the money and I'll give you the details on a multimillion dollar startup idea.
>>
File: 1478904770056.jpg (82KB, 831x600px) Image search: [Google]
1478904770056.jpg
82KB, 831x600px
>>60095622
Pattern language shit has nothing to do with OO. Or rather vice versa. Bunch of OO nerds got all that shit wrong and ruined software development. A fucking axe handle has a name for each area of the topology, so that an axe handle maker can pass down to his son how to fashion the axe handle. THE PATTERN ISN'T THE FUCKING LANGUAGE; A PATTERN IS DESCRIBED BY THE "PATTERN LANGUAGE" VOCABULARY.
Thread posts: 321
Thread images: 24


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