Or alternatively Visual Studio.
The Big Programming Thread - Page 542
Forum Index > General Forum |
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. | ||
iaretehnoob
Sweden741 Posts
Or alternatively Visual Studio. | ||
nunez
Norway4003 Posts
... even though they had an update half a year ago that broke perfectly fine c++11 code so violenlty, that their compiler choked out on it and crashed without letting you know what caused it. i'm still mentally scarred from that. c++14 too now! | ||
spinesheath
Germany8679 Posts
On November 03 2014 22:34 nunez wrote: visual studio is pretty good i think, and their compiler isn't that far behind the Holy Binary (GCC). ... even though they had an update half a year ago that broke perfectly fine c++11 code so violenlty, that their compiler choked out on it and crashed without letting you know what caused it. i'm still mentally scarred from that. c++14 too now! Granted, it's been a couple of years, but when I did my bachelor's thesis I compared the performance of binaries for a molecular dynamics simulation produced by gcc, and the microsoft and Intel C++ compilers. It was a pretty clear result gcc < MS < Intel. | ||
nunez
Norway4003 Posts
as a mere pleb i do not care that much about performance. i actually haven't even dared to time my ad-hoc abstraction against regular inheritance yet, in fear of the result bumming me out. did you try running a comparison vs opencl or cuda as well? i implemented a trivial x_dot=Ax+Bu simulator, and it was quite astounding how much faster the gpu was chomping through the simulation than the cpu (but i guess that's to be expected) when the number of particles got large. any new features you like in particular? or do you just think the extent of them make c++ attractive again? also i'd link your paper if possible! sounds pretty cool! | ||
Manit0u
Poland17046 Posts
I need to somehow find out one instance settings (what's installed, how is it configured) and re-create it on a different server (also Amazon EC2, but with different owner). Is such a thing even possible? | ||
FFGenerations
7088 Posts
The good news is that my tutor loved my anime recommendation/list idea even after I explained your thoughts on it being too simple a project. I also read other past projects at my university and can fulfil that standard I believe. (my uni is not a top uni) It might not be the best thing to show a prospective employer but who knows, maybe that's the sort of job i want to go into anyway, at the very least it is something I want to do as a project, and my tutor marks so it if he's happy I'm happy. The not so amazing news is someone just released a product very similar to my idea like 4 days ago lol. But that aside, I'm sure I can work with this still. As you know I have very little programming knowledge/understanding so if you could provide me with direction that would be awesome.... my first question is going to be........ Looking at this API https://www.mashape.com/vikhyat/hummingbird-v1 , it seems like you can connect to it using Java, PHP, Python etc. Could anyone very briefly shed some light on what route I should go in order to understand which of these I should prefer to use in my project? What I want to do: 1) have a mobile-friendly web front end with performance as priority and utilise cool interaction features (html5?) 2) connect to an anime database using their API to get data on the anime episodes including pictures 3) use caching on desktop/mobile browsers? to speed up re-visits 4) connect to my own database to store user login and other user data So (again) the question is, seemingly given many options? for a backend how should I go about investigating them? Should I google "java api database" , "python api database" etc , build prototype versions and then somehow compare them in terms of performance? THANKS GUYS ps: currently googling of course | ||
Manit0u
Poland17046 Posts
You should also look into jQuery and Bootstrap to make your life easier and deal with responsiveness right away. | ||
WolfintheSheep
Canada14127 Posts
Which basically means use whatever language you feel most comfortable with, then just figure out how to send Requests with the right syntax, and then parse the data you get back. Realistically, handling the 3rd party API should actually be one of the easiest parts of your project. As for what to use, you'll probably want some kind of MVC framework. Not technically required, but it keeps your back-end organized, and it's basically an industry standard...and it's really just good for back-end design in general. Depending on how much time you have, and how much you're willing to learn on your own, consider looking into Single-Page Application design. Not required either, but not bad if you really want to show off your end product to potential interviewers. | ||
FFGenerations
7088 Posts
so the (PHP) is used for connecting to the anime database API but also for connecting to my own database. so i'm guessing which language exactly isn't so important. but maybe if i decide to use one PHP framework over another than that might have an impact..? in the past i just needed...PHP...no framework or anything. i just had PHP to the database and an ajax/javascript file thing that my professor provided which let me use ajax. it was super simple, no framework.....why would i use a framework like Laravel? what does it let me do? jquery looks awesome! where do you think i might be able to investigate performance issues? would it still be in terms of the PHP? would it be in terms of database choice? i used phpmyadmin (and sql) in the past and that was just a case of ....dropdown menus or whatever to make a database. i've never made an object orientated style database but i'm very interested in this....is it an option? edit: WolfintheSheep cheers! i'll google those words edit2: man it feels so good to be able to ask these questions and get such answers. edit3: So I'm guessing..... a framework (PHP or other) incorporates database into it? so instead of having PHP backend and then a separate database system like phpmyadmin, we instead have our database as part of the framework. i had to do a talk on RubyOnRails so had to install it and saw the view, controller, database folders. my dickwad tutor gave me 40/100 for that even though the others got stuff like "html5" or whatever to talk about. you can basically piss into a bottle and get 40/100, idk why he done that to me. was the last mark of the year so he didn't have to see me again by the time i got it. idk why people hate me so i think the missing component to my project so far is a web server? | ||
LaNague
Germany9118 Posts
Microsoft cares a great deal about it, its a good IDE and you can use it for C# and other stuff as wel. C# is quite productive, lots of companies in my region use it, so its useful to allready know the IDE it uses if at some point you want to get into it. | ||
Manit0u
Poland17046 Posts
On November 04 2014 05:42 FFGenerations wrote: thanks dude. i've used PHP for this "sort of thing" in the past. (made a website with login & search functionality connected to phpmyadmin database) . so the (PHP) is used for connecting to the anime database API but also for connecting to my own database. so i'm guessing which language exactly isn't so important. but maybe if i decide to use one PHP framework over another than that might have an impact..? in the past i just needed...PHP...no framework or anything. i just had PHP to the database and an ajax/javascript file thing that my professor provided which let me use ajax. it was super simple, no framework.....why would i use a framework like Laravel? what does it let me do? jquery looks awesome! where do you think i might be able to investigate performance issues? would it still be in terms of the PHP? would it be in terms of database choice? i used phpmyadmin (and sql) in the past and that was just a case of ....dropdown menus or whatever to make a database. i've never made an object orientated style database but i'm very interested in this....is it an option? edit: WolfintheSheep cheers! i'll google those words edit2: man it feels so good to be able to ask these questions and get such answers. edit3: So I'm guessing..... a framework (PHP or other) incorporates database into it? so instead of having PHP backend and then a separate database system like phpmyadmin, we instead have our database as part of the framework. i had to do a talk on RubyOnRails so had to install it and saw the view, controller, database folders. my dickwad tutor gave me 40/100 for that even though the others got stuff like "html5" or whatever to talk about. you can basically piss into a bottle and get 40/100, idk why he done that to me. was the last mark of the year so he didn't have to see me again by the time i got it. idk why people hate me so i think the missing component to my project so far is a web server? So, let me address a couple of things: 1. What does the framework give me? - organized way to handle your code - lots (depending on the framework) of stuff that's already built into it and that you won't have to write yourself, like event listeners, form validation and what not - way of doing things that's then easy to maintain for you and others - easy way to create, edit and manage your web app Instead of me trying to search for good words to describe it, I'd better just let you read this as an example: http://symfony.com/doc/current/book/from_flat_php_to_symfony2.html 2. Does PHP framework incorporate a database? No, it does not. What you get are tools to work with database abstraction layers and object relational mapping (mapping of database in PHP object classes for easier acces). You can read more on that by simply googling "doctrine" and hitting the first link. Frameworks like Symfony2 and Laravel (I think, don't have much experience with Laravel) let you easily and automagically map your entire database, creating classes with required methods or create database out of the classes. You really need to read up on DBAL, ORM and PDO. That stuff makes working with databases in PHP really easy. | ||
Manit0u
Poland17046 Posts
Watch and weep. | ||
solidbebe
Netherlands4921 Posts
| ||
spinesheath
Germany8679 Posts
That's Java, right? What a great idea these anonymous subclasses are... Is there even an application where that stuff doesn't lead to awful code? | ||
Gowerly
United Kingdom916 Posts
Functions within functions within functions is also just slightly slipping into madness. Biggest sin, obviously, is where are the fucking comments. Comment your code or I will find you and end you. | ||
Manit0u
Poland17046 Posts
Some other cool methods I'm looking at right now:
I just can't wait to start tracking the errors... | ||
spinesheath
Germany8679 Posts
Is that 3rd method catching the exceptions it throws? | ||
Nesserev
Belgium2760 Posts
| ||
Gowerly
United Kingdom916 Posts
The only way. | ||
spinesheath
Germany8679 Posts
What I really can't stand is stuff like this: if(condition) return; You'd have to actually read the code to understand that the control flow is manipulated here. That actually costs a lot of time. | ||
| ||