31 points · by behnamoh · 10y ago · 75 comments
2) I don't intend to work for other startups/companies, just want to build my own projects and monetize them.
3) I like iOS/android programming, but I'd need to learn Swift+Java for both, and cross-platform solutions don't seem alright.
4) I also like web-apps, but I hate JS, and frankly, don't like any imperative lang for backend (python, ruby, ...)
?) Besides web and mobile dev, is there any other field where I can do solo? (of course, w/ money)
Here's an example of what I mean, a Promises/A+ implementation in less than 100 LOC - just for the fun of it: https://github.com/djfm/promesse/blob/master/lib/promise.js
I think it kinda feels like Haskell, yet browsers understand it :)
I feel the same way. And since you can write a cruddy jQuery mess that fetches data and spits out to backend-as-a-service providers, Javascript is hands down the easiest way to go from nothing -> project others can use.
The ecosystem is in a bunch of growing pains right now, but if you don't care about maintainability and scaling up to a large project, just throw up an HTML page with some styling and javascript that makes it interactive.
My #1 pain point with functional JS though, is that using a persistent data structure library like ImmutableJS or Mori removes the ability to use some of the awesome new syntactic sugar introduced in ES6 like the spread operator, destructuring, etc, for making code less verbose. So you have to make that tradeoff between being able to use a succinct syntax for common operations vs having the optimal performance in terms of memory efficiency and garbage collection pressure.
I'd really love to see native persistent data structures as a first class citizen in JS so they can make use of all new language features. Until then, I'll probably continue to choose ClojureScript for my own projects.
That said, if you want something more ML-like in your JS, Flow is an increasingly-viable option: https://flowtype.org/
What does this mysterious assertion mean?
You are looking for the one right answer. No such thing. Whichever you pick will have its short comings.
Remember programming languages are tools, they exist because they fill a need.
Also you have a lot of points here. Get started with one, then move on to the others.
You said you are interested in functional. Pick one. The easy way is to pick the most popular. Do a google search. Pick the most popular one, at least you'll be able to ask for help and have someone that's been in a similar situation.
For mobile, what do you have available? Pick that platform. iOS takes a bit more money. If you have both pick the one you use the most. I hear iOS brings in the most money but unless you have a great idea it's hard to standout from the millions of apps.
For web, look at what's popular so you'll have help when needed. People will tell you to use this or that but once you get started and have a few projects you'll understand what's best for you.
You can ask and ask but you will never know until you get going. Define a project, pick what language you find interesting at random and focus on only that until you finish a project.
You'll find out what you like and dislike and you'll be able to pick what language is best for you.
I'll try to just get going and pick a lang for that. Web-dev intimidates me, cause I should know HTML/CSS+JS for front-end, and SQL+{ruby|python|clojure|haskell|php|...} for back-end. That's why I was thinking about going w/ sth like clojure/ruby, cause that takes care of front-end as well. But what do I know?
If you don't want to learn js, then forget about web programming.
If you don't want to learn any of swift or java, then forget about mobile programming.
If you don't want to learn java/python/ruby, then forget about server programming.
That leaves you with nothing, maybe learn some MS excel to become an accountant? That qualifies as one man project that will earn you money.
Yes, unfortunately. I know it, but just can't help it. Maybe I'm an idealist, or maybe just not that familiar w/ the programming world.
oh and also that annoying bit about eating right, well that sounds like a pain, so let's not do that, either.
all this, while sitting on the couch, daydreaming of 6-pack abs. in reality, all you have to do is walk around the damn block and you're 1/4 mile ahead of where you were before.
Guess I'll have to inform the .NET, PHP, JavaScript, Clojure, Common Lisp, Haskell, Erlang and Elixir[1] guys that they are, in fact, _wrong_.
[1] ...and C, and any programming language in existence...
I think you should just choose whatever lets you build the project you want to start today, forget trying to cross platform / future-proof your decision.
> why are you trying to optimize your choices so severely before you've even learned anything?
Maybe because I can't become a full-time developer, so choosing the right language matters. I actually envy "real" programmers who have time to learn more than just one lang...
>I think you should just choose whatever lets you build the project you want to start today...
I like mobile/web apps, but I don't seem to find any other field where I can do on my own. Do you have any suggestions?
Do you have an Android or an iPhone? Download the IDE for your respective platform, get Hello World running on your phone. There, you're now a developer :D. Next step, follow some tutorials. Don't paralyze yourself with these decisions that seem important, they're really not.
I like Haskell and LISP for the challenge, but I wish I could do mobile/web dev in them easily (like RoR).
I really appreciate your answers, I think I should just get going then, and try to figure out the rest next.
Many of these have succeeded while being written in Visual Basic.
2) "Just". This is not a trivial exercise. I recommend reading your way through patio11's extensive writings on bootstrapping software companies if you're serious about this
3) OK.
4) You can't really build web apps without JS, at least in some form. Which part about web apps do you like, if it's not JS or "python/ruby/...". This is probably the easiest way to monetize software projects these days though, so maybe reconsider. You can still do some pretty nifty things if you find a niche market and put up a public facing CRUD application with a few lines of Django/Ruby boilerplate.
?) I think all that's really left after your exclusions is to try pick up on the dying markets like Wordpress/CMS development. This can be done through plugins or managing entire sites for other people, or building your own ecommerce business. For the latter, look into ready-made stuff like Magento. This is really how people made money a few decades ago though -- I know a few people who have tried recently and failed.
Last suggestion is to look at more business oriented stuff. VBA is still exceptionally powerful in terms of integrating into tools (Excel) that non-tech people use. A lot of managers etc spend an inordinate amount of time doing repetitive work on spreadsheets -- you can save them hours every day with a few lines of VBA dev. Not fun, but might be what you're looking for.
About that VBA thing, I was actually thinking about automation. Bash, Python, ruby, even JS, are really great for that. But then we have VBA. I guess most things you can do with VBA in Excel, you can do with python as well.
I agree, I need some background building before jumping into programming. I just figured maybe a good programming book will cover the necessary CS parts, too. "Learning Python" is over 1500 pages, and really is intimidating. "Haskell Programming" is also +1000 pages. Do you think picking up huge books like these, will help me build the required background?
If you can work your way through an intro book, it'll be super beneficial! Everything in either of those books will probably be useful at some point or another. No way I'd be able to do that in your position though. Personally the only way I can learn new technology is to have a goal that I find motivating (often, 'build a system that can solve some pain point in my life') and then identify the minimum useful step I can take towards that goal, and then mess around with books, forums, documentation, etc until I've achieved that step.
It's also, for this particular question, the family of programming languages most hostile to functional programming.
ES5 JS is a clunky language, but people have built amazing things in it. ES6 JS is a credible language on its own terms. I wouldn't be wary of someone saying "Javascript sucks" (I would mostly agree), but I would be wary of someone who said "Javascript isn't a programming language".
For instance you really can make web apps with very little Javascript and, for many applications, this is the way to go.
For instance, if you take the "path less taken" and not load your site up with 15 MB of Javascript, tracking pixels, third-party scripts, another 100 MB of junk from a CDN and instead move a minimal amount of data through http/2 you can make a site that loads like a bullet being shot out of a gun on a computer, phone, tablet, whatever.
This site
https://legalentityidentifier.info/lei/get/5493000HEH4YCM7L6...
has competitors that take 2 minutes to load the first page because the developers throw in everything but the kitchen sink so they can pad their resumes. It's hard to get people to see the difference, however, without actually sending them to a competitor.
Frankly I think CDNs are a scam like DOIs. DNS lookups are one of the worst things when it comes to long tail latency and if you hit enough servers the odds approach 100% that the browser is going to freeze up for 15 sec during loading because of a DNS hang.
Also keep in mind that while functional programming may be fun, it may be simpler and faster to just slap some php onto some random webhost (even more so when validating an idea and getting feedback) :)
Build me an iPhone app, written in Swift, that will let me sell my recycling (cans, bottles) to someone else so I don't have to drive to the recycling centre to collect the refund.
If you research your market, your audience, and verify your idea through testing and prototyping, you can get your business started without ever writing a line of code.
React and Redux are heavily inspired by functional languages, and the two can be used on the server-side as well (which, if you're serious about web development, is going to be important).
With React Native (https://facebook.github.io/react-native/), sharing code becomes even easier for mobile development without really sacrificing the quality of the end-result (no more WebViews).
If you want JS to have a type-system, consider TypeScript (https://www.typescriptlang.org/), or if you want a more powerful ML-like type-system consider using Flow (https://flowtype.org/).
I was once similarly minded in that I had read enough about programming to know what was out there and what it was used for.
I then formed impressions about what was 'hard' and what was 'easy' and what I would like. It took me ~2.5 years from the start of my desire to learn, to actually write my first line of code. Picking a language, then picking a learning methodology took me that long.
Then, 2 years of learning/programming on the side, I got my first paying gig for writing code (I'm was never a full time software engineer, just learning on the side, like you). This was 2 weeks ago.
Perhaps this is a common path, or we're a special breed. What helped me stay motivated was trying to solve my own problems with code. First project was a script that took data from a google spreadsheet and texted it to me at relevant times. Took me 3-4 months to complete. Could write it in 3-4 hours now.
Find a (small) problem, write code to solve it. Monetization will come, but probably slower than you expect. Good luck.
I guess my concern is that I want to do quality work (with well-designed languages) AND earn money for it. I'm beginning to realize that (sadly) it's not really how things are done in the programming world. As long as you can deliver a fancy web-app in short time, nobody cares if you have used JS or ClojureScript.
I picked Python, because:
1. I thought I would give up if the language was too hard.
2. I didn't know what I want to build eventually, and Python seemed to be used everywhere.
Getting into the mindset of spotting problems, defining it's scope and writing code to solve that SPECIFIC scope has been highly useful. It's also something to continually improve at. Good places to start are complaints from friends/family about commonly used software.
- JavaScript is basically a functional programming language, too.
- Meteor has Cordova integration for mobile development. However I never tried out Cordova, so I can't say whether it's good or not.
- Meteor is JavaScript, but as others have pointed out, your list of conditions doesn't make sense, so I ignored your fourth point. Or perhaps program in CoffeeScript, TypeScript or a different language which Meteor can compile to JavaScript.
- For the last point, there's a lot you could do. Depends on your experience of life. One example is emigrating to a country with low living costs and provide your knowledge from there remotely. This way you can sell for a lower price.
Elm is a nice functional frontend language that compiles to JS, which you'll need for web apps.
Elixir is a very good and solid functional backend language that is good for general purpose programming, as well as web app programming (via Phoenix) and embedded (via Nerves).
Both of those languages are functional and focused on developer productivity and have some very good tooling around them.
There's communities within Haxe that focus on things like game development for iOs/Android, or react-style web programming.
You can't expect Haxe to completely smooth out all of a given target's problems and quirks, so expect to sort out some target specific quirks if you're really trying to push performance (e.g. mobile gaming). However, having most of the core business logic in one language is incredibly gratifying. And, unless you're using Scala or Haskell, I bet Haxe ends up being the most expressive and powerful language that you use day to day.
Swift -> iOS
Java -> android
JS HTML CSS -> Front-end
RoR SQL -> Back-end
C# -> Desktop software
...
If I can't pick clojure, I gonna pick C because C works everywhere too and has all the libraries you need too. C is not functional but it is imperative and pretty damn simple.
If you are just starting out and are focusing on web development, I'd recommend JavaScript since all you need to get going is a browser and a text editor.
Is it sane to ditch JS (and node.js, angular.js, bootstrap.js, ...) and go with clojure? (maybe even ruby?)
Clojure/clojurescript will get you a single language on front-end and back-end, but I think that from a monetization standpoint you really want a Javascript front-end and Java or Ruby back-end.
Keep in mind that if you use "more standard" technologies, you'll also have a more likely chance of cashing out on whatever you build if you decide to sell because the buyer will be able to hire people to fix it. If you choose something obscure without a developed community, any price offered to you will be much, much lower or even just never come.
I'd personally skip the node.js hype for now.
On one hand, I like using something that makes me think and also gets the job done (clojure). On the other hand, it feels good to be a member of a huge community (JS, ruby, python developers) and know what many others know.
I had not thought about your points about selling a software in a "less standard" lang. I think you're right.
It will still be a logic work.
That used to be PHP + Javascript. You should still be prepared to put in some work in personal projects etc to convice people that you know what you claim.
If you have all time in the world and want to be perfectly positioned for some perfect future opportunity, I don't know, I have no idea.
Personally however, if I am the one to hire in the future I'll try to go with people who get stuff done.